Home
last modified time | relevance | path

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

12

/linux-3.4.99/include/linux/mmc/
Dcore.h134 struct mmc_card;
139 extern int mmc_interrupt_hpi(struct mmc_card *);
142 extern int mmc_app_cmd(struct mmc_host *, struct mmc_card *);
143 extern int mmc_wait_for_app_cmd(struct mmc_host *, struct mmc_card *,
145 extern int mmc_switch(struct mmc_card *, u8, u8, u8, unsigned int);
157 extern int mmc_erase(struct mmc_card *card, unsigned int from, unsigned int nr,
159 extern int mmc_can_erase(struct mmc_card *card);
160 extern int mmc_can_trim(struct mmc_card *card);
161 extern int mmc_can_discard(struct mmc_card *card);
162 extern int mmc_can_sanitize(struct mmc_card *card);
[all …]
Dcard.h204 struct mmc_card { struct
279 static inline void mmc_part_add(struct mmc_card *card, unsigned int size, in mmc_part_add() argument
309 void (*vendor_fixup)(struct mmc_card *card, int data);
366 static inline void __maybe_unused add_quirk(struct mmc_card *card, int data) in add_quirk()
371 static inline void __maybe_unused remove_quirk(struct mmc_card *card, int data) in remove_quirk()
409 static inline void __maybe_unused add_quirk_mmc(struct mmc_card *card, int data) in add_quirk_mmc()
415 static inline void __maybe_unused remove_quirk_mmc(struct mmc_card *card, in remove_quirk_mmc()
426 static inline void __maybe_unused add_quirk_sd(struct mmc_card *card, int data) in add_quirk_sd()
432 static inline void __maybe_unused remove_quirk_sd(struct mmc_card *card, in remove_quirk_sd()
439 static inline int mmc_card_lenient_fn0(const struct mmc_card *c) in mmc_card_lenient_fn0()
[all …]
Dhost.h129 void (*init_card)(struct mmc_host *host, struct mmc_card *card);
140 struct mmc_card;
150 int (*err_check) (struct mmc_card *, struct mmc_async_req *);
285 struct mmc_card *card; /* device attached to this host */
Dsdio_func.h20 struct mmc_card;
39 struct mmc_card *card; /* the card this device belongs to */
/linux-3.4.99/drivers/mmc/core/
Dmmc_ops.h15 int mmc_select_card(struct mmc_card *card);
20 int mmc_set_relative_addr(struct mmc_card *card);
21 int mmc_send_csd(struct mmc_card *card, u32 *csd);
22 int mmc_send_ext_csd(struct mmc_card *card, u8 *ext_csd);
23 int mmc_send_status(struct mmc_card *card, u32 *status);
28 int mmc_bus_test(struct mmc_card *card, u8 bus_width);
29 int mmc_send_hpi_cmd(struct mmc_card *card, u32 *status);
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);
15 void mmc_sd_go_highspeed(struct mmc_card *card);
Dbus.c33 struct mmc_card *card = mmc_dev_to_card(dev); in mmc_type_show()
67 struct mmc_card *card = mmc_dev_to_card(dev); in mmc_bus_uevent()
110 struct mmc_card *card = mmc_dev_to_card(dev); in mmc_bus_probe()
118 struct mmc_card *card = mmc_dev_to_card(dev); in mmc_bus_remove()
128 struct mmc_card *card = mmc_dev_to_card(dev); in mmc_bus_suspend()
139 struct mmc_card *card = mmc_dev_to_card(dev); in mmc_bus_resume()
151 struct mmc_card *card = mmc_dev_to_card(dev); in mmc_runtime_suspend()
158 struct mmc_card *card = mmc_dev_to_card(dev); in mmc_runtime_resume()
222 struct mmc_card *card = mmc_dev_to_card(dev); in mmc_release_card()
235 struct mmc_card *mmc_alloc_card(struct mmc_host *host, struct device_type *type) in mmc_alloc_card()
[all …]
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.c24 static int _mmc_select_card(struct mmc_host *host, struct mmc_card *card) in _mmc_select_card()
48 int mmc_select_card(struct mmc_card *card) in mmc_select_card()
63 struct mmc_card *card = host->card; in mmc_card_sleepawake()
192 int mmc_set_relative_addr(struct mmc_card *card) in mmc_set_relative_addr()
234 mmc_send_cxd_data(struct mmc_card *card, struct mmc_host *host, in mmc_send_cxd_data()
294 int mmc_send_csd(struct mmc_card *card, u32 *csd) in mmc_send_csd()
333 int mmc_send_ext_csd(struct mmc_card *card, u8 *ext_csd) in mmc_send_ext_csd()
380 int mmc_switch(struct mmc_card *card, u8 set, u8 index, u8 value, in mmc_switch()
428 int mmc_send_status(struct mmc_card *card, u32 *status) in mmc_send_status()
455 mmc_send_bus_test(struct mmc_card *card, struct mmc_host *host, u8 opcode, in mmc_send_bus_test()
[all …]
Dsd.c64 void mmc_decode_cid(struct mmc_card *card) in mmc_decode_cid()
93 static int mmc_decode_csd(struct mmc_card *card) in mmc_decode_csd()
180 static int mmc_decode_scr(struct mmc_card *card) in mmc_decode_scr()
215 static int mmc_read_ssr(struct mmc_card *card) in mmc_read_ssr()
268 static int mmc_read_switch(struct mmc_card *card) in mmc_read_switch()
366 int mmc_sd_switch_hs(struct mmc_card *card) in mmc_sd_switch_hs()
411 static int sd_select_driver_type(struct mmc_card *card, u8 *status) in sd_select_driver_type()
475 static void sd_update_bus_speed_mode(struct mmc_card *card) in sd_update_bus_speed_mode()
509 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 …]
Dcore.h33 void mmc_init_erase(struct mmc_card *card);
76 void mmc_add_card_debugfs(struct mmc_card *card);
77 void mmc_remove_card_debugfs(struct mmc_card *card);
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()
206 static int sdio_enable_wide(struct mmc_card *card) in sdio_enable_wide()
236 static int sdio_disable_cd(struct mmc_card *card) in sdio_disable_cd()
257 static int sdio_disable_wide(struct mmc_card *card) in sdio_disable_wide()
288 static int sdio_enable_4bit_bus(struct mmc_card *card) in sdio_enable_4bit_bus()
314 static int mmc_sdio_switch_hs(struct mmc_card *card, int enable) in mmc_sdio_switch_hs()
344 static int sdio_enable_hs(struct mmc_card *card) in sdio_enable_hs()
359 static unsigned mmc_sdio_get_max_clock(struct mmc_card *card) in mmc_sdio_get_max_clock()
397 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_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()
245 int mmc_app_send_scr(struct mmc_card *card, u32 *scr) in mmc_app_send_scr()
304 int mmc_sd_switch(struct mmc_card *card, int mode, int group, in mmc_sd_switch()
349 int mmc_app_sd_status(struct mmc_card *card, void *ssr) in mmc_app_sd_status()
Dcore.c402 int mmc_interrupt_hpi(struct mmc_card *card) in mmc_interrupt_hpi()
489 void mmc_set_data_timeout(struct mmc_data *data, const struct mmc_card *card) in mmc_set_data_timeout()
593 unsigned int mmc_align_data_size(struct mmc_card *card, unsigned int sz) in mmc_align_data_size()
1105 struct mmc_card *card; in mmc_poweroff_notify()
1358 void mmc_init_erase(struct mmc_card *card) in mmc_init_erase()
1407 static unsigned int mmc_mmc_erase_timeout(struct mmc_card *card, in mmc_mmc_erase_timeout()
1471 static unsigned int mmc_sd_erase_timeout(struct mmc_card *card, in mmc_sd_erase_timeout()
1496 static unsigned int mmc_erase_timeout(struct mmc_card *card, in mmc_erase_timeout()
1506 static int mmc_do_erase(struct mmc_card *card, unsigned int from, in mmc_do_erase()
1616 int mmc_erase(struct mmc_card *card, unsigned int from, unsigned int nr, in mmc_erase()
[all …]
Dsdio_irq.c33 struct mmc_card *card = host->card; in process_sdio_pending_irqs()
174 static int sdio_card_irq_get(struct mmc_card *card) in sdio_card_irq_get()
195 static int sdio_card_irq_put(struct mmc_card *card) in sdio_card_irq_put()
211 static void sdio_single_irq_set(struct mmc_card *card) in sdio_single_irq_set()
Ddebugfs.c241 struct mmc_card *card = data; in mmc_dbg_card_status_get()
262 struct mmc_card *card = inode->i_private; in mmc_ext_csd_open()
321 void mmc_add_card_debugfs(struct mmc_card *card) in mmc_add_card_debugfs()
361 void mmc_remove_card_debugfs(struct mmc_card *card) in mmc_remove_card_debugfs()
Dquirks.c36 static void add_quirk_for_sdio_devices(struct mmc_card *card, int data) in add_quirk_for_sdio_devices()
64 void mmc_fixup_device(struct mmc_card *card, const struct mmc_fixup *table) in mmc_fixup_device()
Dmmc.c62 static int mmc_decode_cid(struct mmc_card *card) in mmc_decode_cid()
113 static void mmc_set_erase_size(struct mmc_card *card) in mmc_set_erase_size()
126 static int mmc_decode_csd(struct mmc_card *card) in mmc_decode_csd()
180 static int mmc_get_ext_csd(struct mmc_card *card, u8 **new_ext_csd) in mmc_get_ext_csd()
241 static int mmc_read_ext_csd(struct mmc_card *card, u8 *ext_csd) in mmc_read_ext_csd()
548 static int mmc_compare_ext_csds(struct mmc_card *card, unsigned bus_width) in mmc_compare_ext_csds()
663 static int mmc_select_powerclass(struct mmc_card *card, in mmc_select_powerclass()
746 static int mmc_select_hs200(struct mmc_card *card) in mmc_select_hs200()
822 struct mmc_card *oldcard) in mmc_init_card()
824 struct mmc_card *card; in mmc_init_card()
[all …]
/linux-3.4.99/drivers/mmc/card/
Dblock.c175 struct mmc_card *card = md->queue.card; in power_ro_lock_show()
193 struct mmc_card *card; in power_ro_lock_store()
365 struct mmc_card *card; in mmc_blk_ioctl_cmd()
519 static inline int mmc_blk_part_switch(struct mmc_card *card, in mmc_blk_part_switch()
547 static u32 mmc_sd_num_wr_blocks(struct mmc_card *card) in mmc_sd_num_wr_blocks()
614 static int send_stop(struct mmc_card *card, u32 *status) in send_stop()
627 static int get_card_status(struct mmc_card *card, u32 *status, int retries) in get_card_status()
703 static int mmc_blk_cmd_recovery(struct mmc_card *card, struct request *req, in mmc_blk_cmd_recovery()
846 struct mmc_card *card = md->queue.card; in mmc_blk_issue_discard_rq()
892 struct mmc_card *card = md->queue.card; in mmc_blk_issue_secdiscard_rq()
[all …]
Dqueue.h26 struct mmc_card *card;
38 extern int mmc_init_queue(struct mmc_queue *, struct mmc_card *, spinlock_t *,
/linux-3.4.99/arch/arm/mach-omap2/
Dhsmmc.h9 struct mmc_card;
35 void (*init_card)(struct mmc_card *card);

12