Home
last modified time | relevance | path

Searched refs:mmc_card (Results 1 – 25 of 54) sorted by relevance

123

/linux/drivers/mmc/core/
H A Dcore.h15 struct mmc_card;
43 void mmc_init_erase(struct mmc_card *card);
56 int mmc_select_drive_strength(struct mmc_card *card, unsigned int max_dtr,
99 void mmc_add_card_debugfs(struct mmc_card *card);
100 void mmc_remove_card_debugfs(struct mmc_card *card);
108 static inline void mmc_add_card_debugfs(struct mmc_card *card) in mmc_add_card_debugfs()
111 static inline void mmc_remove_card_debugfs(struct mmc_card *card) in mmc_remove_card_debugfs()
116 int mmc_execute_tuning(struct mmc_card *card);
117 int mmc_hs200_to_hs400(struct mmc_card *card);
118 int mmc_hs400_to_hs200(struct mmc_card *card);
[all …]
H A Dmmc_ops.h22 struct mmc_card;
25 int mmc_select_card(struct mmc_card *card);
31 int mmc_set_relative_addr(struct mmc_card *card);
32 int mmc_send_adtc_data(struct mmc_card *card, struct mmc_host *host, u32 opcode,
34 int mmc_send_csd(struct mmc_card *card, u32 *csd);
35 int __mmc_send_status(struct mmc_card *card, u32 *status, unsigned int retries);
39 int mmc_bus_test(struct mmc_card *card, u8 bus_width);
40 bool mmc_card_can_ext_csd(struct mmc_card *card);
41 int mmc_switch_status(struct mmc_card *card, bool crc_err_fatal);
48 int mmc_poll_for_busy(struct mmc_card *card, unsigned int timeout_ms,
[all …]
H A Dcard.h17 #define mmc_dev_to_card(d) container_of(d, struct mmc_card, dev)
72 void (*vendor_fixup)(struct mmc_card *card, int data);
172 static inline void __maybe_unused add_quirk(struct mmc_card *card, int data) in add_quirk()
177 static inline void __maybe_unused remove_quirk(struct mmc_card *card, int data) in remove_quirk()
182 static inline void __maybe_unused add_limit_rate_quirk(struct mmc_card *card, in add_limit_rate_quirk()
188 static inline void __maybe_unused wl1251_quirk(struct mmc_card *card, in wl1251_quirk()
209 static inline void __maybe_unused add_quirk_mmc(struct mmc_card *card, int data) in add_quirk_mmc()
215 static inline void __maybe_unused remove_quirk_mmc(struct mmc_card *card, in remove_quirk_mmc()
225 static inline void __maybe_unused add_quirk_sd(struct mmc_card *card, int data) in add_quirk_sd()
231 static inline void __maybe_unused remove_quirk_sd(struct mmc_card *card, in remove_quirk_sd()
[all …]
H A Dbus.h15 struct mmc_card;
20 struct mmc_card *card = mmc_dev_to_card(dev); \
25 struct mmc_card *mmc_alloc_card(struct mmc_host *host,
27 int mmc_add_card(struct mmc_card *card);
28 void mmc_remove_card(struct mmc_card *card);
35 int (*probe)(struct mmc_card *card);
36 void (*remove)(struct mmc_card *card);
37 void (*shutdown)(struct mmc_card *card);
H A Dsd.h10 struct mmc_card;
13 int mmc_sd_get_csd(struct mmc_card *card, bool is_sduc);
14 int mmc_decode_scr(struct mmc_card *card);
16 void mmc_decode_cid(struct mmc_card *card);
17 int mmc_sd_setup_card(struct mmc_host *host, struct mmc_card *card,
19 unsigned mmc_sd_get_max_clock(struct mmc_card *card);
20 int mmc_sd_switch_hs(struct mmc_card *card);
H A Dbus.c35 struct mmc_card *card = mmc_dev_to_card(dev); in type_show()
61 const struct mmc_card *card = mmc_dev_to_card(dev); in mmc_bus_uevent()
130 struct mmc_card *card = mmc_dev_to_card(dev); in mmc_bus_probe()
138 struct mmc_card *card = mmc_dev_to_card(dev); in mmc_bus_remove()
146 struct mmc_card *card = mmc_dev_to_card(dev); in mmc_bus_shutdown()
166 struct mmc_card *card = mmc_dev_to_card(dev); in mmc_bus_suspend()
183 struct mmc_card *card = mmc_dev_to_card(dev); in mmc_bus_resume()
200 struct mmc_card *card = mmc_dev_to_card(dev); in mmc_runtime_suspend()
208 struct mmc_card *card = mmc_dev_to_card(dev); in mmc_runtime_resume()
266 struct mmc_card *card = mmc_dev_to_card(dev); in mmc_release_card()
[all …]
H A Dsd_ops.h13 struct mmc_card;
17 int mmc_app_set_bus_width(struct mmc_card *card, int width);
22 int mmc_app_send_scr(struct mmc_card *card);
23 int mmc_app_sd_status(struct mmc_card *card, void *ssr);
24 int mmc_app_cmd(struct mmc_host *host, struct mmc_card *card);
H A Dmmc_ops.c58 struct mmc_card *card;
69 int __mmc_send_status(struct mmc_card *card, u32 *status, unsigned int retries) in __mmc_send_status()
93 int mmc_send_status(struct mmc_card *card, u32 *status) in mmc_send_status()
99 static int _mmc_select_card(struct mmc_host *host, struct mmc_card *card) in _mmc_select_card()
116 int mmc_select_card(struct mmc_card *card) in mmc_select_card()
257 int mmc_set_relative_addr(struct mmc_card *card) in mmc_set_relative_addr()
291 int mmc_send_adtc_data(struct mmc_card *card, struct mmc_host *host, u32 opcode, in mmc_send_adtc_data()
361 int mmc_send_csd(struct mmc_card *card, u32 *csd) in mmc_send_csd()
378 int mmc_get_ext_csd(struct mmc_card *card, u8 **new_ext_csd) in mmc_get_ext_csd()
454 int mmc_switch_status(struct mmc_card *card, bool crc_err_fatal) in mmc_switch_status()
[all …]
H A Dsdio_cis.c25 static int cistpl_vers_1(struct mmc_card *card, struct sdio_func *func, in cistpl_vers_1()
83 static int cistpl_manfid(struct mmc_card *card, struct sdio_func *func, in cistpl_manfid()
111 typedef int (tpl_parse_t)(struct mmc_card *, struct sdio_func *,
120 static int cis_tpl_parse(struct mmc_card *card, struct sdio_func *func, in cis_tpl_parse()
155 static int cistpl_funce_common(struct mmc_card *card, struct sdio_func *func, in cistpl_funce_common()
172 static int cistpl_funce_func(struct mmc_card *card, struct sdio_func *func, in cistpl_funce_func()
222 static int cistpl_funce(struct mmc_card *card, struct sdio_func *func, in cistpl_funce()
243 static int sdio_read_cis(struct mmc_card *card, struct sdio_func *func) in sdio_read_cis()
378 int sdio_read_common_cis(struct mmc_card *card) in sdio_read_common_cis()
383 void sdio_free_common_cis(struct mmc_card *card) in sdio_free_common_cis()
H A Dsd.c64 struct mmc_card *card;
71 void mmc_decode_cid(struct mmc_card *card) in mmc_decode_cid()
107 static int mmc_decode_csd(struct mmc_card *card, bool is_sduc) in mmc_decode_csd()
207 int mmc_decode_scr(struct mmc_card *card) in mmc_decode_scr()
257 static int mmc_read_ssr(struct mmc_card *card) in mmc_read_ssr()
322 static int mmc_read_switch(struct mmc_card *card) in mmc_read_switch()
380 int mmc_sd_switch_hs(struct mmc_card *card) in mmc_sd_switch_hs()
420 static int sd_select_driver_type(struct mmc_card *card, u8 *status) in sd_select_driver_type()
452 static void sd_update_bus_speed_mode(struct mmc_card *card) in sd_update_bus_speed_mode()
485 static int sd_set_bus_speed_mode(struct mmc_card *card, u8 *status) in sd_set_bus_speed_mode()
[all …]
H A Dsdio.c40 struct mmc_card *card = mmc_dev_to_card(dev); \
103 static int sdio_init_func(struct mmc_card *card, unsigned int fn) in sdio_init_func()
144 static int sdio_read_cccr(struct mmc_card *card, u32 ocr) in sdio_read_cccr()
261 static int sdio_enable_wide(struct mmc_card *card) in sdio_enable_wide()
297 static int sdio_disable_cd(struct mmc_card *card) in sdio_disable_cd()
318 static int sdio_disable_wide(struct mmc_card *card) in sdio_disable_wide()
348 static int sdio_disable_4bit_bus(struct mmc_card *card) in sdio_disable_4bit_bus()
370 static int sdio_enable_4bit_bus(struct mmc_card *card) in sdio_enable_4bit_bus()
397 static int mmc_sdio_switch_hs(struct mmc_card *card, int enable) in mmc_sdio_switch_hs()
427 static int sdio_enable_hs(struct mmc_card *card) in sdio_enable_hs()
[all …]
H A Dhost.h66 static inline bool mmc_card_hs200(struct mmc_card *card) in mmc_card_hs200()
71 static inline bool mmc_card_ddr52(struct mmc_card *card) in mmc_card_ddr52()
76 static inline bool mmc_card_hs400(struct mmc_card *card) in mmc_card_hs400()
81 static inline bool mmc_card_hs400es(struct mmc_card *card) in mmc_card_hs400es()
H A Dmmc.c65 static int mmc_decode_cid(struct mmc_card *card) in mmc_decode_cid()
126 static void mmc_set_erase_size(struct mmc_card *card) in mmc_set_erase_size()
137 static void mmc_set_wp_grp_size(struct mmc_card *card) in mmc_set_wp_grp_size()
150 static int mmc_decode_csd(struct mmc_card *card) in mmc_decode_csd()
203 static void mmc_select_card_type(struct mmc_card *card) in mmc_select_card_type()
269 static void mmc_manage_enhanced_area(struct mmc_card *card, u8 *ext_csd) in mmc_manage_enhanced_area()
318 static void mmc_part_add(struct mmc_card *card, u64 size, in mmc_part_add()
330 static void mmc_manage_gp_partitions(struct mmc_card *card, u8 *ext_csd) in mmc_manage_gp_partitions()
379 static int mmc_decode_ext_csd(struct mmc_card *card, u8 *ext_csd) in mmc_decode_ext_csd()
679 static int mmc_read_ext_csd(struct mmc_card *card) in mmc_read_ext_csd()
[all …]
H A Dsdio_cis.h13 struct mmc_card;
16 int sdio_read_common_cis(struct mmc_card *card);
17 void sdio_free_common_cis(struct mmc_card *card);
H A Dblock.c107 struct mmc_card *card;
183 static inline int mmc_blk_part_switch(struct mmc_card *card,
186 struct mmc_card *card,
190 static int mmc_spi_err_check(struct mmc_card *card);
238 struct mmc_card *card = md->queue.card; in power_ro_lock_show()
480 static int __mmc_blk_ioctl_cmd(struct mmc_card *card, struct mmc_blk_data *md, in __mmc_blk_ioctl_cmd()
673 struct mmc_card *card; in mmc_blk_ioctl_cmd()
722 struct mmc_card *card; in mmc_blk_ioctl_multi_cmd()
883 static int mmc_blk_part_switch_pre(struct mmc_card *card, in mmc_blk_part_switch_pre()
902 static int mmc_blk_part_switch_post(struct mmc_card *card, in mmc_blk_part_switch_post()
[all …]
H A Dsdio_ops.h15 struct mmc_card;
19 int mmc_io_rw_direct(struct mmc_card *card, int write, unsigned fn,
21 int mmc_io_rw_extended(struct mmc_card *card, int write, unsigned fn,
H A Dcore.c659 void mmc_set_data_timeout(struct mmc_data *data, const struct mmc_card *card) in mmc_set_data_timeout()
867 void mmc_get_card(struct mmc_card *card, struct mmc_ctx *ctx) in mmc_get_card()
878 void mmc_put_card(struct mmc_card *card, struct mmc_ctx *ctx) in mmc_put_card()
930 int mmc_execute_tuning(struct mmc_card *card) in mmc_execute_tuning()
1293 int mmc_select_drive_strength(struct mmc_card *card, unsigned int max_dtr, in mmc_select_drive_strength()
1471 void mmc_init_erase(struct mmc_card *card) in mmc_init_erase()
1524 static unsigned int mmc_mmc_erase_timeout(struct mmc_card *card, in mmc_mmc_erase_timeout()
1588 static unsigned int mmc_sd_erase_timeout(struct mmc_card *card, in mmc_sd_erase_timeout()
1619 static unsigned int mmc_erase_timeout(struct mmc_card *card, in mmc_erase_timeout()
1629 static int mmc_do_erase(struct mmc_card *card, sector_t from, in mmc_do_erase()
[all …]
H A Dsd_ops.c37 int mmc_app_cmd(struct mmc_host *host, struct mmc_card *card) in mmc_app_cmd()
76 static int mmc_wait_for_app_cmd(struct mmc_host *host, struct mmc_card *card, in mmc_wait_for_app_cmd()
121 int mmc_app_set_bus_width(struct mmc_card *card, int width) in mmc_app_set_bus_width()
309 int mmc_app_send_scr(struct mmc_card *card) in mmc_app_send_scr()
363 int mmc_sd_switch(struct mmc_card *card, bool mode, int group, in mmc_sd_switch()
380 int mmc_app_sd_status(struct mmc_card *card, void *ssr) in mmc_app_sd_status()
H A Dsdio_irq.c32 struct mmc_card *card = host->card; in sdio_get_pending_irqs()
60 struct mmc_card *card = host->card; in process_sdio_pending_irqs()
224 static int sdio_card_irq_get(struct mmc_card *card) in sdio_card_irq_get()
249 static int sdio_card_irq_put(struct mmc_card *card) in sdio_card_irq_put()
271 static void sdio_single_irq_set(struct mmc_card *card) in sdio_single_irq_set()
H A Dsdio_bus.h10 struct mmc_card;
13 struct sdio_func *sdio_alloc_func(struct mmc_card *card);
H A Dqueue.c124 struct mmc_card *card = mq->card; in mmc_mq_timed_out()
177 static void mmc_queue_setup_discard(struct mmc_card *card, in mmc_queue_setup_discard()
210 struct mmc_card *card = mq->card; in mmc_mq_init_request()
235 struct mmc_card *card = mq->card; in mmc_mq_queue_rq()
347 struct mmc_card *card, unsigned int features) in mmc_alloc_disk()
421 struct gendisk *mmc_init_queue(struct mmc_queue *mq, struct mmc_card *card, in mmc_init_queue()
/linux/include/linux/mmc/
H A Dhost.h217 void (*init_card)(struct mmc_host *host, struct mmc_card *card);
231 int (*execute_hs400_tuning)(struct mmc_host *host, struct mmc_card *card);
234 int (*prepare_sd_hs_tuning)(struct mmc_host *host, struct mmc_card *card);
237 int (*execute_sd_hs_tuning)(struct mmc_host *host, struct mmc_card *card);
251 int (*select_drive_strength)(struct mmc_card *card,
262 int (*multi_io_quirk)(struct mmc_card *card,
279 int (*cqe_enable)(struct mmc_host *host, struct mmc_card *card);
519 struct mmc_card *card; /* device attached to this host */
692 static inline int mmc_card_hs(struct mmc_card *card) in mmc_card_hs()
699 static inline int mmc_card_uhs(struct mmc_card *card) in mmc_card_uhs()
[all …]
H A Dcore.h178 struct mmc_card;
184 int mmc_hw_reset(struct mmc_card *card);
185 int mmc_sw_reset(struct mmc_card *card);
186 void mmc_set_data_timeout(struct mmc_data *data, const struct mmc_card *card);
H A Dcard.h298 struct mmc_card { struct
382 static inline bool mmc_large_sector(struct mmc_card *card) in mmc_large_sector() argument
387 static inline int mmc_card_enable_async_irq(struct mmc_card *card) in mmc_card_enable_async_irq()
392 bool mmc_card_is_blockaddr(struct mmc_card *card);
/linux/include/linux/platform_data/
H A Dmmc-omap.h10 struct mmc_card;
96 void (*init_card)(struct mmc_card *card);

123