Home
last modified time | relevance | path

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

/linux-4.4.14/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);
157 extern int mmc_get_ext_csd(struct mmc_card *card, u8 **new_ext_csd);
169 extern int mmc_erase(struct mmc_card *card, unsigned int from, unsigned int nr,
[all …]
Dcard.h248 struct mmc_card { struct
321 static inline void mmc_part_add(struct mmc_card *card, unsigned int size, in mmc_part_add() argument
333 static inline bool mmc_large_sector(struct mmc_card *card) in mmc_large_sector()
356 void (*vendor_fixup)(struct mmc_card *card, int data);
413 static inline void __maybe_unused add_quirk(struct mmc_card *card, int data) in add_quirk()
418 static inline void __maybe_unused remove_quirk(struct mmc_card *card, int data) in remove_quirk()
449 static inline void __maybe_unused add_quirk_mmc(struct mmc_card *card, int data) in add_quirk_mmc()
455 static inline void __maybe_unused remove_quirk_mmc(struct mmc_card *card, in remove_quirk_mmc()
466 static inline void __maybe_unused add_quirk_sd(struct mmc_card *card, int data) in add_quirk_sd()
472 static inline void __maybe_unused remove_quirk_sd(struct mmc_card *card, in remove_quirk_sd()
[all …]
Dhost.h123 void (*init_card)(struct mmc_host *host, struct mmc_card *card);
135 int (*select_drive_strength)(struct mmc_card *card,
145 int (*multi_io_quirk)(struct mmc_card *card,
149 struct mmc_card;
159 int (*err_check) (struct mmc_card *, struct mmc_async_req *);
330 struct mmc_card *card; /* device attached to this host */
477 static inline int mmc_card_hs(struct mmc_card *card) in mmc_card_hs()
483 static inline int mmc_card_uhs(struct mmc_card *card) in mmc_card_uhs()
489 static inline bool mmc_card_hs200(struct mmc_card *card) in mmc_card_hs200()
494 static inline bool mmc_card_ddr52(struct mmc_card *card) in mmc_card_ddr52()
[all …]
Dsdio_func.h20 struct mmc_card;
39 struct mmc_card *card; /* the card this device belongs to */
/linux-4.4.14/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);
31 int __mmc_switch(struct mmc_card *card, u8 set, u8 index, u8 value,
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);
Dcore.h39 void mmc_init_erase(struct mmc_card *card);
50 int mmc_select_drive_strength(struct mmc_card *card, unsigned int max_dtr,
84 void mmc_add_card_debugfs(struct mmc_card *card);
85 void mmc_remove_card_debugfs(struct mmc_card *card);
89 int mmc_execute_tuning(struct mmc_card *card);
90 int mmc_hs200_to_hs400(struct mmc_card *card);
91 int mmc_hs400_to_hs200(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.c57 static inline int __mmc_send_status(struct mmc_card *card, u32 *status, in __mmc_send_status()
86 int mmc_send_status(struct mmc_card *card, u32 *status) in mmc_send_status()
91 static int _mmc_select_card(struct mmc_host *host, struct mmc_card *card) in _mmc_select_card()
115 int mmc_select_card(struct mmc_card *card) in mmc_select_card()
245 int mmc_set_relative_addr(struct mmc_card *card) in mmc_set_relative_addr()
291 mmc_send_cxd_data(struct mmc_card *card, struct mmc_host *host, in mmc_send_cxd_data()
340 int mmc_send_csd(struct mmc_card *card, u32 *csd) in mmc_send_csd()
393 int mmc_get_ext_csd(struct mmc_card *card, u8 **new_ext_csd) in mmc_get_ext_csd()
482 int __mmc_switch(struct mmc_card *card, u8 set, u8 index, u8 value, in __mmc_switch()
583 int mmc_switch(struct mmc_card *card, u8 set, u8 index, u8 value, in mmc_switch()
[all …]
Dmmc.c65 static int mmc_decode_cid(struct mmc_card *card) in mmc_decode_cid()
117 static void mmc_set_erase_size(struct mmc_card *card) in mmc_set_erase_size()
130 static int mmc_decode_csd(struct mmc_card *card) in mmc_decode_csd()
182 static void mmc_select_card_type(struct mmc_card *card) in mmc_select_card_type()
243 static void mmc_manage_enhanced_area(struct mmc_card *card, u8 *ext_csd) in mmc_manage_enhanced_area()
292 static void mmc_manage_gp_partitions(struct mmc_card *card, u8 *ext_csd) in mmc_manage_gp_partitions()
342 static int mmc_decode_ext_csd(struct mmc_card *card, u8 *ext_csd) in mmc_decode_ext_csd()
600 static int mmc_read_ext_csd(struct mmc_card *card) in mmc_read_ext_csd()
638 static int mmc_compare_ext_csds(struct mmc_card *card, unsigned bus_width) in mmc_compare_ext_csds()
735 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 …]
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()
385 static int sd_select_driver_type(struct mmc_card *card, u8 *status) in sd_select_driver_type()
416 static void sd_update_bus_speed_mode(struct mmc_card *card) in sd_update_bus_speed_mode()
449 static int sd_set_bus_speed_mode(struct mmc_card *card, u8 *status) in sd_set_bus_speed_mode()
519 static int sd_set_current_limit(struct mmc_card *card, u8 *status) in sd_set_current_limit()
[all …]
Dsdio_ops.h18 int mmc_io_rw_direct(struct mmc_card *card, int write, unsigned fn,
20 int mmc_io_rw_extended(struct mmc_card *card, int write, unsigned fn,
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.c309 void mmc_start_bkops(struct mmc_card *card, bool from_exception) in mmc_start_bkops()
664 int mmc_interrupt_hpi(struct mmc_card *card) in mmc_interrupt_hpi()
762 int mmc_stop_bkops(struct mmc_card *card) in mmc_stop_bkops()
783 int mmc_read_bkops_status(struct mmc_card *card) in mmc_read_bkops_status()
809 void mmc_set_data_timeout(struct mmc_data *data, const struct mmc_card *card) in mmc_set_data_timeout()
917 unsigned int mmc_align_data_size(struct mmc_card *card, unsigned int sz) in mmc_align_data_size()
1011 void mmc_get_card(struct mmc_card *card) in mmc_get_card()
1022 void mmc_put_card(struct mmc_card *card) in mmc_put_card()
1071 int mmc_execute_tuning(struct mmc_card *card) in mmc_execute_tuning()
1666 int mmc_select_drive_strength(struct mmc_card *card, unsigned int max_dtr, in mmc_select_drive_strength()
[all …]
Dsdio_irq.c33 struct mmc_card *card = host->card; in process_sdio_pending_irqs()
187 static int sdio_card_irq_get(struct mmc_card *card) in sdio_card_irq_get()
212 static int sdio_card_irq_put(struct mmc_card *card) in sdio_card_irq_put()
232 static void sdio_single_irq_set(struct mmc_card *card) in sdio_single_irq_set()
Ddebugfs.c283 struct mmc_card *card = data; in mmc_dbg_card_status_get()
304 struct mmc_card *card = inode->i_private; in mmc_ext_csd_open()
356 void mmc_add_card_debugfs(struct mmc_card *card) in mmc_add_card_debugfs()
396 void mmc_remove_card_debugfs(struct mmc_card *card) in mmc_remove_card_debugfs()
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()
Dquirks.c54 void mmc_fixup_device(struct mmc_card *card, const struct mmc_fixup *table) in mmc_fixup_device()
Dsdio_bus.c276 struct sdio_func *sdio_alloc_func(struct mmc_card *card) in sdio_alloc_func()
/linux-4.4.14/drivers/mmc/card/
Dqueue.h48 struct mmc_card *card;
63 extern int mmc_init_queue(struct mmc_queue *, struct mmc_card *, spinlock_t *,
74 extern int mmc_packed_init(struct mmc_queue *, struct mmc_card *);
Dblock.c140 static inline int mmc_blk_part_switch(struct mmc_card *card,
142 static int get_card_status(struct mmc_card *card, u32 *status, int retries);
203 struct mmc_card *card = md->queue.card; in power_ro_lock_show()
223 struct mmc_card *card; in power_ro_lock_store()
407 static int ioctl_rpmb_card_status_poll(struct mmc_card *card, u32 *status, in ioctl_rpmb_card_status_poll()
439 static int ioctl_do_sanitize(struct mmc_card *card) in ioctl_do_sanitize()
467 static int __mmc_blk_ioctl_cmd(struct mmc_card *card, struct mmc_blk_data *md, in __mmc_blk_ioctl_cmd()
596 struct mmc_card *card; in mmc_blk_ioctl_cmd()
644 struct mmc_card *card; in mmc_blk_ioctl_multi_cmd()
743 static inline int mmc_blk_part_switch(struct mmc_card *card, in mmc_blk_part_switch()
[all …]
Dmmc_test.c115 struct mmc_card *card;
129 struct mmc_card *card;
143 struct mmc_card *card;
593 static unsigned int mmc_test_capacity(struct mmc_card *card) in mmc_test_capacity()
712 static int mmc_test_check_result_async(struct mmc_card *card, in mmc_test_check_result_async()
2268 struct mmc_card *card = test->card; in mmc_test_reset()
2709 static void mmc_test_free_result(struct mmc_card *card) in mmc_test_free_result()
2737 struct mmc_card *card = (struct mmc_card *)sf->private; in mtf_test_show()
2773 struct mmc_card *card = (struct mmc_card *)sf->private;
2852 static void mmc_test_free_dbgfs_file(struct mmc_card *card)
[all …]
Dqueue.c159 struct mmc_card *card) in mmc_queue_setup_discard()
188 int mmc_init_queue(struct mmc_queue *mq, struct mmc_card *card, in mmc_init_queue()
362 int mmc_packed_init(struct mmc_queue *mq, struct mmc_card *card) in mmc_packed_init()
/linux-4.4.14/arch/arm/mach-omap2/
Dhsmmc.h9 struct mmc_card;
28 void (*init_card)(struct mmc_card *card);
Dpdata-quirks.c317 static void pandora_wl1251_init_card(struct mmc_card *card) in pandora_wl1251_init_card()
/linux-4.4.14/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.4.14/drivers/mmc/host/
Dsdhci-pci.h86 struct mmc_card *card,
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()
Dsdhci.h550 struct mmc_card *card,
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()
Dsdhci-pci-core.c271 struct mmc_card *card, in spt_select_drive_strength()
1405 struct mmc_card *card, in sdhci_pci_select_drive_strength()
Domap_hsmmc.c1711 static void omap_hsmmc_init_card(struct mmc_host *mmc, struct mmc_card *card) in omap_hsmmc_init_card()
1834 static int omap_hsmmc_multi_io_quirk(struct mmc_card *card, in omap_hsmmc_multi_io_quirk()
Dtmio_mmc_pio.c1005 static int tmio_multi_io_quirk(struct mmc_card *card, in tmio_multi_io_quirk()
Dmxcmmc.c937 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.c1480 static void dw_mci_init_card(struct mmc_host *mmc, struct mmc_card *card) in dw_mci_init_card()
Dsdhci.c2092 static int sdhci_select_drive_strength(struct mmc_card *card, in sdhci_select_drive_strength()
/linux-4.4.14/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.4.14/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.4.14/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()