Home
last modified time | relevance | path

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

/linux-4.1.27/include/linux/mmc/
Dcore.h141 struct mmc_card;
144 extern int mmc_stop_bkops(struct mmc_card *);
145 extern int mmc_read_bkops_status(struct mmc_card *);
148 extern int mmc_interrupt_hpi(struct mmc_card *);
151 extern int mmc_app_cmd(struct mmc_host *, struct mmc_card *);
152 extern int mmc_wait_for_app_cmd(struct mmc_host *, struct mmc_card *,
154 extern void mmc_start_bkops(struct mmc_card *card, bool from_exception);
155 extern int __mmc_switch(struct mmc_card *, u8, u8, u8, unsigned int, bool,
157 extern int mmc_switch(struct mmc_card *, u8, u8, u8, unsigned int);
159 extern int mmc_get_ext_csd(struct mmc_card *card, u8 **new_ext_csd);
[all …]
Dcard.h247 struct mmc_card { struct
317 static inline void mmc_part_add(struct mmc_card *card, unsigned int size, in mmc_part_add() argument
329 static inline bool mmc_large_sector(struct mmc_card *card) in mmc_large_sector()
352 void (*vendor_fixup)(struct mmc_card *card, int data);
409 static inline void __maybe_unused add_quirk(struct mmc_card *card, int data) in add_quirk()
414 static inline void __maybe_unused remove_quirk(struct mmc_card *card, int data) in remove_quirk()
445 static inline void __maybe_unused add_quirk_mmc(struct mmc_card *card, int data) in add_quirk_mmc()
451 static inline void __maybe_unused remove_quirk_mmc(struct mmc_card *card, in remove_quirk_mmc()
462 static inline void __maybe_unused add_quirk_sd(struct mmc_card *card, int data) in add_quirk_sd()
468 static inline void __maybe_unused remove_quirk_sd(struct mmc_card *card, in remove_quirk_sd()
[all …]
Dhost.h122 void (*init_card)(struct mmc_host *host, struct mmc_card *card);
142 int (*multi_io_quirk)(struct mmc_card *card,
146 struct mmc_card;
156 int (*err_check) (struct mmc_card *, struct mmc_async_req *);
330 struct mmc_card *card; /* device attached to this host */
489 static inline int mmc_card_hs(struct mmc_card *card) in mmc_card_hs()
495 static inline int mmc_card_uhs(struct mmc_card *card) in mmc_card_uhs()
501 static inline bool mmc_card_hs200(struct mmc_card *card) in mmc_card_hs200()
506 static inline bool mmc_card_ddr52(struct mmc_card *card) in mmc_card_ddr52()
511 static inline bool mmc_card_hs400(struct mmc_card *card) in mmc_card_hs400()
Dsdio_func.h20 struct mmc_card;
39 struct mmc_card *card; /* the card this device belongs to */
/linux-4.1.27/drivers/mmc/core/
Dmmc_ops.h15 int mmc_select_card(struct mmc_card *card);
21 int mmc_set_relative_addr(struct mmc_card *card);
22 int mmc_send_csd(struct mmc_card *card, u32 *csd);
23 int mmc_send_status(struct mmc_card *card, u32 *status);
27 int mmc_bus_test(struct mmc_card *card, u8 bus_width);
28 int mmc_send_hpi_cmd(struct mmc_card *card, u32 *status);
29 int mmc_can_ext_csd(struct mmc_card *card);
Dbus.c34 struct mmc_card *card = mmc_dev_to_card(dev); in type_show()
70 struct mmc_card *card = mmc_dev_to_card(dev); in mmc_bus_uevent()
113 struct mmc_card *card = mmc_dev_to_card(dev); in mmc_bus_probe()
121 struct mmc_card *card = mmc_dev_to_card(dev); in mmc_bus_remove()
131 struct mmc_card *card = mmc_dev_to_card(dev); in mmc_bus_shutdown()
149 struct mmc_card *card = mmc_dev_to_card(dev); in mmc_bus_suspend()
163 struct mmc_card *card = mmc_dev_to_card(dev); in mmc_bus_resume()
180 struct mmc_card *card = mmc_dev_to_card(dev); in mmc_runtime_suspend()
188 struct mmc_card *card = mmc_dev_to_card(dev); in mmc_runtime_resume()
247 struct mmc_card *card = mmc_dev_to_card(dev); in mmc_release_card()
[all …]
Dsd.h9 int mmc_sd_get_csd(struct mmc_host *host, struct mmc_card *card);
10 void mmc_decode_cid(struct mmc_card *card);
11 int mmc_sd_setup_card(struct mmc_host *host, struct mmc_card *card,
13 unsigned mmc_sd_get_max_clock(struct mmc_card *card);
14 int mmc_sd_switch_hs(struct mmc_card *card);
Dsd_ops.h15 int mmc_app_set_bus_width(struct mmc_card *card, int width);
19 int mmc_app_send_scr(struct mmc_card *card, u32 *scr);
20 int mmc_sd_switch(struct mmc_card *card, int mode, int group,
22 int mmc_app_sd_status(struct mmc_card *card, void *ssr);
Dbus.h17 struct mmc_card *card = mmc_dev_to_card(dev); \
22 struct mmc_card *mmc_alloc_card(struct mmc_host *host,
24 int mmc_add_card(struct mmc_card *card);
25 void mmc_remove_card(struct mmc_card *card);
Dsdio_cis.c27 static int cistpl_vers_1(struct mmc_card *card, struct sdio_func *func, in cistpl_vers_1()
74 static int cistpl_manfid(struct mmc_card *card, struct sdio_func *func, in cistpl_manfid()
102 typedef int (tpl_parse_t)(struct mmc_card *, struct sdio_func *,
111 static int cis_tpl_parse(struct mmc_card *card, struct sdio_func *func, in cis_tpl_parse()
146 static int cistpl_funce_common(struct mmc_card *card, struct sdio_func *func, in cistpl_funce_common()
163 static int cistpl_funce_func(struct mmc_card *card, struct sdio_func *func, in cistpl_funce_func()
208 static int cistpl_funce(struct mmc_card *card, struct sdio_func *func, in cistpl_funce()
228 static int sdio_read_cis(struct mmc_card *card, struct sdio_func *func) in sdio_read_cis()
346 int sdio_read_common_cis(struct mmc_card *card) in sdio_read_common_cis()
351 void sdio_free_common_cis(struct mmc_card *card) in sdio_free_common_cis()
Dmmc_ops.c56 static inline int __mmc_send_status(struct mmc_card *card, u32 *status, in __mmc_send_status()
85 int mmc_send_status(struct mmc_card *card, u32 *status) in mmc_send_status()
90 static int _mmc_select_card(struct mmc_host *host, struct mmc_card *card) in _mmc_select_card()
114 int mmc_select_card(struct mmc_card *card) in mmc_select_card()
244 int mmc_set_relative_addr(struct mmc_card *card) in mmc_set_relative_addr()
290 mmc_send_cxd_data(struct mmc_card *card, struct mmc_host *host, in mmc_send_cxd_data()
339 int mmc_send_csd(struct mmc_card *card, u32 *csd) in mmc_send_csd()
392 int mmc_get_ext_csd(struct mmc_card *card, u8 **new_ext_csd) in mmc_get_ext_csd()
466 int __mmc_switch(struct mmc_card *card, u8 set, u8 index, u8 value, in __mmc_switch()
572 int mmc_switch(struct mmc_card *card, u8 set, u8 index, u8 value, in mmc_switch()
[all …]
Dcore.h39 void mmc_init_erase(struct mmc_card *card);
85 void mmc_add_card_debugfs(struct mmc_card *card);
86 void mmc_remove_card_debugfs(struct mmc_card *card);
90 int mmc_execute_tuning(struct mmc_card *card);
Dmmc.c64 static int mmc_decode_cid(struct mmc_card *card) in mmc_decode_cid()
116 static void mmc_set_erase_size(struct mmc_card *card) in mmc_set_erase_size()
129 static int mmc_decode_csd(struct mmc_card *card) in mmc_decode_csd()
181 static void mmc_select_card_type(struct mmc_card *card) in mmc_select_card_type()
242 static void mmc_manage_enhanced_area(struct mmc_card *card, u8 *ext_csd) in mmc_manage_enhanced_area()
289 static void mmc_manage_gp_partitions(struct mmc_card *card, u8 *ext_csd) in mmc_manage_gp_partitions()
339 static int mmc_decode_ext_csd(struct mmc_card *card, u8 *ext_csd) in mmc_decode_ext_csd()
596 static int mmc_read_ext_csd(struct mmc_card *card) in mmc_read_ext_csd()
634 static int mmc_compare_ext_csds(struct mmc_card *card, unsigned bus_width) in mmc_compare_ext_csds()
731 struct mmc_card *card = mmc_dev_to_card(dev); in mmc_fwrev_show()
[all …]
Dsdio_cis.h17 int sdio_read_common_cis(struct mmc_card *card);
18 void sdio_free_common_cis(struct mmc_card *card);
Dsdio.c61 static int sdio_init_func(struct mmc_card *card, unsigned int fn) in sdio_init_func()
101 static int sdio_read_cccr(struct mmc_card *card, u32 ocr) in sdio_read_cccr()
203 static int sdio_enable_wide(struct mmc_card *card) in sdio_enable_wide()
239 static int sdio_disable_cd(struct mmc_card *card) in sdio_disable_cd()
260 static int sdio_disable_wide(struct mmc_card *card) in sdio_disable_wide()
291 static int sdio_enable_4bit_bus(struct mmc_card *card) in sdio_enable_4bit_bus()
320 static int mmc_sdio_switch_hs(struct mmc_card *card, int enable) in mmc_sdio_switch_hs()
350 static int sdio_enable_hs(struct mmc_card *card) in sdio_enable_hs()
365 static unsigned mmc_sdio_get_max_clock(struct mmc_card *card) in mmc_sdio_get_max_clock()
403 static void sdio_select_driver_type(struct mmc_card *card) in sdio_select_driver_type()
[all …]
Dsdio_ops.h16 int mmc_io_rw_direct(struct mmc_card *card, int write, unsigned fn,
18 int mmc_io_rw_extended(struct mmc_card *card, int write, unsigned fn,
Dsd.c73 void mmc_decode_cid(struct mmc_card *card) in mmc_decode_cid()
102 static int mmc_decode_csd(struct mmc_card *card) in mmc_decode_csd()
190 static int mmc_decode_scr(struct mmc_card *card) in mmc_decode_scr()
225 static int mmc_read_ssr(struct mmc_card *card) in mmc_read_ssr()
280 static int mmc_read_switch(struct mmc_card *card) in mmc_read_switch()
343 int mmc_sd_switch_hs(struct mmc_card *card) in mmc_sd_switch_hs()
387 static int sd_select_driver_type(struct mmc_card *card, u8 *status) in sd_select_driver_type()
451 static void sd_update_bus_speed_mode(struct mmc_card *card) in sd_update_bus_speed_mode()
484 static int sd_set_bus_speed_mode(struct mmc_card *card, u8 *status) in sd_set_bus_speed_mode()
554 static int sd_set_current_limit(struct mmc_card *card, u8 *status) in sd_set_current_limit()
[all …]
Dsd_ops.c25 int mmc_app_cmd(struct mmc_host *host, struct mmc_card *card) in mmc_app_cmd()
68 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()
248 int mmc_app_send_scr(struct mmc_card *card, u32 *scr) in mmc_app_send_scr()
307 int mmc_sd_switch(struct mmc_card *card, int mode, int group, in mmc_sd_switch()
352 int mmc_app_sd_status(struct mmc_card *card, void *ssr) in mmc_app_sd_status()
Dcore.c270 void mmc_start_bkops(struct mmc_card *card, bool from_exception) in mmc_start_bkops()
622 int mmc_interrupt_hpi(struct mmc_card *card) in mmc_interrupt_hpi()
720 int mmc_stop_bkops(struct mmc_card *card) in mmc_stop_bkops()
740 int mmc_read_bkops_status(struct mmc_card *card) in mmc_read_bkops_status()
766 void mmc_set_data_timeout(struct mmc_data *data, const struct mmc_card *card) in mmc_set_data_timeout()
874 unsigned int mmc_align_data_size(struct mmc_card *card, unsigned int sz) in mmc_align_data_size()
968 void mmc_get_card(struct mmc_card *card) in mmc_get_card()
979 void mmc_put_card(struct mmc_card *card) in mmc_put_card()
1094 int mmc_execute_tuning(struct mmc_card *card) in mmc_execute_tuning()
1818 void mmc_init_erase(struct mmc_card *card) in mmc_init_erase()
[all …]
Dsdio_irq.c33 struct mmc_card *card = host->card; in process_sdio_pending_irqs()
193 static int sdio_card_irq_get(struct mmc_card *card) in sdio_card_irq_get()
220 static int sdio_card_irq_put(struct mmc_card *card) in sdio_card_irq_put()
242 static void sdio_single_irq_set(struct mmc_card *card) in sdio_single_irq_set()
Ddebugfs.c263 struct mmc_card *card = data; in mmc_dbg_card_status_get()
284 struct mmc_card *card = inode->i_private; in mmc_ext_csd_open()
336 void mmc_add_card_debugfs(struct mmc_card *card) in mmc_add_card_debugfs()
376 void mmc_remove_card_debugfs(struct mmc_card *card) in mmc_remove_card_debugfs()
Dquirks.c41 static void add_quirk_for_sdio_devices(struct mmc_card *card, int data) in add_quirk_for_sdio_devices()
72 void mmc_fixup_device(struct mmc_card *card, const struct mmc_fixup *table) in mmc_fixup_device()
Dsdio_bus.h14 struct sdio_func *sdio_alloc_func(struct mmc_card *card);
Dsdio_ops.c114 int mmc_io_rw_direct(struct mmc_card *card, int write, unsigned fn, in mmc_io_rw_direct()
121 int mmc_io_rw_extended(struct mmc_card *card, int write, unsigned fn, in mmc_io_rw_extended()
Dsdio_bus.c269 struct sdio_func *sdio_alloc_func(struct mmc_card *card) in sdio_alloc_func()
Dhost.c182 static bool mmc_host_may_gate_card(struct mmc_card *card) in mmc_host_may_gate_card()
/linux-4.1.27/drivers/mmc/card/
Dqueue.h47 struct mmc_card *card;
62 extern int mmc_init_queue(struct mmc_queue *, struct mmc_card *, spinlock_t *,
73 extern int mmc_packed_init(struct mmc_queue *, struct mmc_card *);
Dblock.c138 static inline int mmc_blk_part_switch(struct mmc_card *card,
140 static int get_card_status(struct mmc_card *card, u32 *status, int retries);
201 struct mmc_card *card = md->queue.card; in power_ro_lock_show()
221 struct mmc_card *card; in power_ro_lock_store()
387 static int ioctl_rpmb_card_status_poll(struct mmc_card *card, u32 *status, in ioctl_rpmb_card_status_poll()
419 static int ioctl_do_sanitize(struct mmc_card *card) in ioctl_do_sanitize()
452 struct mmc_card *card; in mmc_blk_ioctl_cmd()
646 static inline int mmc_blk_part_switch(struct mmc_card *card, in mmc_blk_part_switch()
674 static u32 mmc_sd_num_wr_blocks(struct mmc_card *card) in mmc_sd_num_wr_blocks()
729 static int get_card_status(struct mmc_card *card, u32 *status, int retries) in get_card_status()
[all …]
Dmmc_test.c115 struct mmc_card *card;
129 struct mmc_card *card;
143 struct mmc_card *card;
599 static unsigned int mmc_test_capacity(struct mmc_card *card) in mmc_test_capacity()
718 static int mmc_test_check_result_async(struct mmc_card *card, in mmc_test_check_result_async()
2340 struct mmc_card *card = test->card; in mmc_test_hw_reset()
2784 static void mmc_test_free_result(struct mmc_card *card) in mmc_test_free_result()
2812 struct mmc_card *card = (struct mmc_card *)sf->private; in mtf_test_show()
2848 struct mmc_card *card = (struct mmc_card *)sf->private;
2927 static void mmc_test_free_dbgfs_file(struct mmc_card *card)
[all …]
Dqueue.c161 struct mmc_card *card) in mmc_queue_setup_discard()
190 int mmc_init_queue(struct mmc_queue *mq, struct mmc_card *card, in mmc_init_queue()
364 int mmc_packed_init(struct mmc_queue *mq, struct mmc_card *card) in mmc_packed_init()
/linux-4.1.27/arch/arm/mach-omap2/
Dhsmmc.h9 struct mmc_card;
28 void (*init_card)(struct mmc_card *card);
Dboard-omap3pandora.c251 static void pandora_wl1251_init_card(struct mmc_card *card) in pandora_wl1251_init_card()
/linux-4.1.27/include/linux/platform_data/
Dhsmmc-omap.h35 struct mmc_card;
84 void (*init_card)(struct mmc_card *card);
Dmmc-omap.h13 struct mmc_card;
101 void (*init_card)(struct mmc_card *card);
/linux-4.1.27/drivers/net/wireless/ti/wlcore/
Dsdio.c155 struct mmc_card *card = func->card; in wl12xx_sdio_power_on()
183 struct mmc_card *card = func->card; in wl12xx_sdio_power_off()
/linux-4.1.27/drivers/net/wireless/rsi/
Drsi_91x_sdio.c52 static int rsi_cmd52writebyte(struct mmc_card *card, in rsi_cmd52writebyte()
76 static int rsi_cmd52readbyte(struct mmc_card *card, in rsi_cmd52readbyte()
156 struct mmc_card *card = pfunction->card; in rsi_reset_card()
/linux-4.1.27/drivers/mmc/host/
Dtmio_mmc.h100 int (*multi_io_quirk)(struct mmc_card *card,
Dsh_mobile_sdhi.c172 static int sh_mobile_sdhi_multi_io_quirk(struct mmc_card *card, in sh_mobile_sdhi_multi_io_quirk()
Drtsx_pci_sdmmc.c446 struct mmc_card *card = mmc->card; in sd_read_long_data()
504 struct mmc_card *card = mmc->card; in sd_write_long_data()
Domap_hsmmc.c1623 static void omap_hsmmc_init_card(struct mmc_host *mmc, struct mmc_card *card) in omap_hsmmc_init_card()
1751 static int omap_hsmmc_multi_io_quirk(struct mmc_card *card, in omap_hsmmc_multi_io_quirk()
Dtmio_mmc_pio.c1003 static int tmio_multi_io_quirk(struct mmc_card *card, in tmio_multi_io_quirk()
Dmxcmmc.c941 static void mxcmci_init_card(struct mmc_host *host, struct mmc_card *card) in mxcmci_init_card()
Dvub300.c1363 struct mmc_card *card = vub300->mmc->card; in download_offload_pseudocode()
2080 static void vub300_init_card(struct mmc_host *mmc, struct mmc_card *card) in vub300_init_card()
Ddw_mmc.c1360 static void dw_mci_init_card(struct mmc_host *mmc, struct mmc_card *card) in dw_mci_init_card()
/linux-4.1.27/drivers/net/wireless/ath/ath6kl/
Dsdio.c134 static int ath6kl_sdio_func0_cmd52_wr_byte(struct mmc_card *card, in ath6kl_sdio_func0_cmd52_wr_byte()