Home
last modified time | relevance | path

Searched defs:mmc (Results 1 – 25 of 256) sorted by relevance

1234567891011

/OK3568_Linux_fs/u-boot/drivers/mmc/
H A Dmmc.c52 struct blk_desc *mmc_get_blk_desc(struct mmc *mmc) in mmc_get_blk_desc()
59 __weak int board_mmc_getwp(struct mmc *mmc) in board_mmc_getwp()
64 int mmc_getwp(struct mmc *mmc) in mmc_getwp()
80 __weak int board_mmc_getcd(struct mmc *mmc) in board_mmc_getcd()
87 void mmmc_trace_before_send(struct mmc *mmc, struct mmc_cmd *cmd) in mmmc_trace_before_send()
93 void mmmc_trace_after_send(struct mmc *mmc, struct mmc_cmd *cmd, int ret) in mmmc_trace_after_send()
145 void mmc_trace_state(struct mmc *mmc, struct mmc_cmd *cmd) in mmc_trace_state()
155 int mmc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, struct mmc_data *data) in mmc_send_cmd()
167 int mmc_send_status(struct mmc *mmc, int timeout) in mmc_send_status()
211 int mmc_set_blocklen(struct mmc *mmc, int len) in mmc_set_blocklen()
[all …]
H A Dmmc-uclass.c21 struct mmc *mmc = mmc_get_mmc_dev(dev); in dm_mmc_send_cmd() local
58 struct mmc *mmc = mmc_get_mmc_dev(dev); in dm_mmc_send_cmd_prepare() local
76 int mmc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, struct mmc_data *data) in mmc_send_cmd()
82 int mmc_send_cmd_prepare(struct mmc *mmc, struct mmc_cmd *cmd, struct mmc_data *data) in mmc_send_cmd_prepare()
88 bool mmc_card_busy(struct mmc *mmc) in mmc_card_busy()
97 bool mmc_can_card_busy(struct mmc *mmc) in mmc_can_card_busy()
113 int mmc_set_ios(struct mmc *mmc) in mmc_set_ios()
127 int mmc_getwp(struct mmc *mmc) in mmc_getwp()
141 int mmc_getcd(struct mmc *mmc) in mmc_getcd()
156 int mmc_set_enhanced_strobe(struct mmc *mmc) in mmc_set_enhanced_strobe()
[all …]
H A Dmeson_gx_mmc.c16 static inline void *get_regbase(const struct mmc *mmc) in get_regbase()
23 static inline uint32_t meson_read(struct mmc *mmc, int offset) in meson_read()
28 static inline void meson_write(struct mmc *mmc, uint32_t val, int offset) in meson_write()
33 static void meson_mmc_config_clock(struct mmc *mmc) in meson_mmc_config_clock()
63 struct mmc *mmc = mmc_get_mmc_dev(dev); in meson_dm_mmc_set_ios() local
97 static void meson_mmc_setup_cmd(struct mmc *mmc, struct mmc_data *data, in meson_mmc_setup_cmd()
136 static void meson_mmc_setup_addr(struct mmc *mmc, struct mmc_data *data) in meson_mmc_setup_addr()
160 static void meson_mmc_read_response(struct mmc *mmc, struct mmc_cmd *cmd) in meson_mmc_read_response()
175 struct mmc *mmc = mmc_get_mmc_dev(dev); in meson_dm_mmc_send_cmd() local
237 struct mmc *mmc = &pdata->mmc; in meson_mmc_probe() local
H A Drpmb.c57 static int mmc_set_blockcount(struct mmc *mmc, unsigned int blockcount, in mmc_set_blockcount()
70 static int mmc_rpmb_request(struct mmc *mmc, const void *s, in mmc_rpmb_request()
103 static int mmc_rpmb_response(struct mmc *mmc, struct s_rpmb *s, in mmc_rpmb_response()
151 static int mmc_rpmb_status(struct mmc *mmc, unsigned short expected) in mmc_rpmb_status()
207 int mmc_rpmb_get_counter(struct mmc *mmc, unsigned long *pcounter) in mmc_rpmb_get_counter()
226 int mmc_rpmb_set_key(struct mmc *mmc, void *key) in mmc_rpmb_set_key()
240 int mmc_rpmb_read(struct mmc *mmc, void *addr, unsigned short blk, in mmc_rpmb_read()
296 int mmc_rpmb_write(struct mmc *mmc, void *addr, unsigned short blk, in mmc_rpmb_write()
354 int read_counter(struct mmc *mmc, struct s_rpmb *requestpackets) in read_counter()
365 int program_key(struct mmc *mmc, struct s_rpmb *requestpackets) in program_key()
[all …]
H A Dmmc_legacy.c41 struct blk_desc *mmc_get_blk_desc(struct mmc *mmc) in mmc_get_blk_desc()
74 void mmc_list_add(struct mmc *mmc) in mmc_list_add()
131 struct mmc *mmc = &mmc_static; in mmc_create() local
139 void mmc_destroy(struct mmc *mmc) in mmc_destroy()
146 struct mmc *mmc; in mmc_create() local
186 void mmc_destroy(struct mmc *mmc) in mmc_destroy()
195 struct mmc *mmc = find_mmc_device(desc->devnum); in mmc_select_hwpartp() local
216 struct mmc *mmc = find_mmc_device(dev); in mmc_get_dev() local
H A Dpxa_mmc_gen.c51 static int pxa_mmc_wait(struct mmc *mmc, uint32_t mask) in pxa_mmc_wait()
70 static int pxa_mmc_stop_clock(struct mmc *mmc) in pxa_mmc_stop_clock()
98 static int pxa_mmc_start_cmd(struct mmc *mmc, struct mmc_cmd *cmd, in pxa_mmc_start_cmd()
142 static int pxa_mmc_cmd_done(struct mmc *mmc, struct mmc_cmd *cmd) in pxa_mmc_cmd_done()
184 static int pxa_mmc_do_read_xfer(struct mmc *mmc, struct mmc_data *data) in pxa_mmc_do_read_xfer()
220 static int pxa_mmc_do_write_xfer(struct mmc *mmc, struct mmc_data *data) in pxa_mmc_do_write_xfer()
262 static int pxa_mmc_request(struct mmc *mmc, struct mmc_cmd *cmd, in pxa_mmc_request()
316 static int pxa_mmc_set_ios(struct mmc *mmc) in pxa_mmc_set_ios()
349 static int pxa_mmc_init(struct mmc *mmc) in pxa_mmc_init()
387 struct mmc *mmc; in pxa_mmc_register() local
H A Dsunxi_mmc.c25 struct mmc mmc; member
207 static int mmc_config_clock(struct sunxi_mmc_priv *priv, struct mmc *mmc) in mmc_config_clock()
235 struct mmc *mmc) in sunxi_mmc_set_ios_common()
258 static int sunxi_mmc_core_init(struct mmc *mmc) in sunxi_mmc_core_init()
270 static int mmc_trans_data_by_cpu(struct sunxi_mmc_priv *priv, struct mmc *mmc, in mmc_trans_data_by_cpu()
302 static int mmc_rint_wait(struct sunxi_mmc_priv *priv, struct mmc *mmc, in mmc_rint_wait()
322 struct mmc *mmc, struct mmc_cmd *cmd, in sunxi_mmc_send_cmd_common()
444 static int sunxi_mmc_set_ios_legacy(struct mmc *mmc) in sunxi_mmc_set_ios_legacy()
451 static int sunxi_mmc_send_cmd_legacy(struct mmc *mmc, struct mmc_cmd *cmd, in sunxi_mmc_send_cmd_legacy()
459 static int sunxi_mmc_getcd_legacy(struct mmc *mmc) in sunxi_mmc_getcd_legacy()
H A Domap_hsmmc.c87 static inline struct omap_hsmmc_data *omap_hsmmc_get_data(struct mmc *mmc) in omap_hsmmc_get_data()
95 static inline struct mmc_config *omap_hsmmc_get_cfg(struct mmc *mmc) in omap_hsmmc_get_cfg()
126 static unsigned char mmc_board_init(struct mmc *mmc) in mmc_board_init()
220 static int omap_hsmmc_init_setup(struct mmc *mmc) in omap_hsmmc_init_setup()
330 static int omap_hsmmc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd,
568 static int omap_hsmmc_set_ios(struct mmc *mmc)
661 static int omap_hsmmc_getcd(struct mmc *mmc)
675 static int omap_hsmmc_getwp(struct mmc *mmc)
716 struct mmc *mmc; local
861 struct mmc *mmc; local
H A Dmmc_spi.c53 static uint mmc_spi_sendcmd(struct mmc *mmc, ushort cmdidx, u32 cmdarg) in mmc_spi_sendcmd()
76 static uint mmc_spi_readdata(struct mmc *mmc, void *xbuf, in mmc_spi_readdata()
111 static uint mmc_spi_writedata(struct mmc *mmc, const void *xbuf, in mmc_spi_writedata()
173 static int mmc_spi_request(struct mmc *mmc, struct mmc_cmd *cmd, in mmc_spi_request()
239 static int mmc_spi_set_ios(struct mmc *mmc) in mmc_spi_set_ios()
249 static int mmc_spi_init_p(struct mmc *mmc) in mmc_spi_init_p()
278 struct mmc *mmc; in mmc_spi_init() local
H A Dmmc_boot.c24 int mmc_boot_partition_size_change(struct mmc *mmc, unsigned long bootsize, in mmc_boot_partition_size_change()
86 int mmc_set_boot_bus_width(struct mmc *mmc, u8 width, u8 reset, u8 mode) in mmc_set_boot_bus_width()
101 int mmc_set_part_conf(struct mmc *mmc, u8 ack, u8 part_num, u8 access) in mmc_set_part_conf()
124 int mmc_set_rst_n_function(struct mmc *mmc, u8 enable) in mmc_set_rst_n_function()
H A Dftsdc010_mci.c33 static inline int ftsdc010_send_cmd(struct mmc *mmc, struct mmc_cmd *mmc_cmd) in ftsdc010_send_cmd()
103 static void ftsdc010_clkset(struct mmc *mmc, uint32_t rate) in ftsdc010_clkset()
151 static int ftsdc010_request(struct mmc *mmc, struct mmc_cmd *cmd, in ftsdc010_request()
254 static int ftsdc010_set_ios(struct mmc *mmc) in ftsdc010_set_ios()
277 static int ftsdc010_init(struct mmc *mmc) in ftsdc010_init()
322 struct mmc *mmc; in ftsdc010_mmc_init() local
H A Dsdhci.c141 struct mmc *mmc = mmc_get_mmc_dev(dev); local
480 struct mmc *mmc = mmc_get_mmc_dev(dev); local
497 struct mmc *mmc = mmc_get_mmc_dev(dev); local
554 static int sdhci_init(struct mmc *mmc)
649 struct mmc *mmc = mmc_get_mmc_dev(dev); local
688 struct mmc *mmc = mmc_get_mmc_dev(dev); local
695 struct mmc *mmc = mmc_get_mmc_dev(dev); local
809 int sdhci_bind(struct udevice *dev, struct mmc *mmc, struct mmc_config *cfg)
/OK3568_Linux_fs/kernel/drivers/mmc/host/
H A Dmmc_hsq.c22 struct mmc_host *mmc = hsq->mmc; in mmc_hsq_retry_handler() local
29 struct mmc_host *mmc = hsq->mmc; in mmc_hsq_pump_requests() local
153 bool mmc_hsq_finalize_request(struct mmc_host *mmc, struct mmc_request *mrq) in mmc_hsq_finalize_request()
180 static void mmc_hsq_recovery_start(struct mmc_host *mmc) in mmc_hsq_recovery_start()
192 static void mmc_hsq_recovery_finish(struct mmc_host *mmc) in mmc_hsq_recovery_finish()
212 static int mmc_hsq_request(struct mmc_host *mmc, struct mmc_request *mrq) in mmc_hsq_request()
248 static void mmc_hsq_post_req(struct mmc_host *mmc, struct mmc_request *mrq) in mmc_hsq_post_req()
271 static int mmc_hsq_wait_for_idle(struct mmc_host *mmc) in mmc_hsq_wait_for_idle()
282 static void mmc_hsq_disable(struct mmc_host *mmc) in mmc_hsq_disable()
312 static int mmc_hsq_enable(struct mmc_host *mmc, struct mmc_card *card) in mmc_hsq_enable()
[all …]
H A Dmeson-mx-sdhc-mmc.c45 struct mmc_host *mmc; member
68 static void meson_mx_sdhc_hw_reset(struct mmc_host *mmc) in meson_mx_sdhc_hw_reset()
82 static void meson_mx_sdhc_clear_fifo(struct mmc_host *mmc) in meson_mx_sdhc_clear_fifo()
105 static void meson_mx_sdhc_wait_cmd_ready(struct mmc_host *mmc) in meson_mx_sdhc_wait_cmd_ready()
134 static void meson_mx_sdhc_start_cmd(struct mmc_host *mmc, in meson_mx_sdhc_start_cmd()
239 static void meson_mx_sdhc_disable_clks(struct mmc_host *mmc) in meson_mx_sdhc_disable_clks()
251 static int meson_mx_sdhc_enable_clks(struct mmc_host *mmc) in meson_mx_sdhc_enable_clks()
269 static int meson_mx_sdhc_set_clk(struct mmc_host *mmc, struct mmc_ios *ios) in meson_mx_sdhc_set_clk()
325 static void meson_mx_sdhc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in meson_mx_sdhc_set_ios()
381 static int meson_mx_sdhc_map_dma(struct mmc_host *mmc, struct mmc_request *mrq) in meson_mx_sdhc_map_dma()
[all …]
H A Dcqhci-core.c104 struct mmc_host *mmc = cq_host->mmc; in cqhci_dumpregs() local
243 struct mmc_host *mmc = cq_host->mmc; in __cqhci_enable() local
309 int cqhci_deactivate(struct mmc_host *mmc) in cqhci_deactivate()
320 int cqhci_resume(struct mmc_host *mmc) in cqhci_resume()
327 static int cqhci_enable(struct mmc_host *mmc, struct mmc_card *card) in cqhci_enable()
365 static void cqhci_off(struct mmc_host *mmc) in cqhci_off()
392 static void cqhci_disable(struct mmc_host *mmc) in cqhci_disable()
527 static void cqhci_prep_dcmd_desc(struct mmc_host *mmc, in cqhci_prep_dcmd_desc()
587 static int cqhci_request(struct mmc_host *mmc, struct mmc_request *mrq) in cqhci_request()
657 static void cqhci_recovery_needed(struct mmc_host *mmc, struct mmc_request *mrq, in cqhci_recovery_needed()
[all …]
H A Dtmio_mmc_core.c137 static void tmio_mmc_enable_sdio_irq(struct mmc_host *mmc, int enable) in tmio_mmc_enable_sdio_irq()
587 struct mmc_host *mmc = host->mmc; in __tmio_mmc_card_detect_irq() local
633 struct mmc_host *mmc = host->mmc; in __tmio_mmc_sdio_irq() local
747 static void tmio_mmc_request(struct mmc_host *mmc, struct mmc_request *mrq) in tmio_mmc_request()
827 struct mmc_host *mmc = host->mmc; in tmio_mmc_power_on() local
861 struct mmc_host *mmc = host->mmc; in tmio_mmc_power_off() local
894 static void tmio_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in tmio_mmc_set_ios()
960 static int tmio_mmc_get_ro(struct mmc_host *mmc) in tmio_mmc_get_ro()
968 static int tmio_mmc_get_cd(struct mmc_host *mmc) in tmio_mmc_get_cd()
999 struct mmc_host *mmc = host->mmc; in tmio_mmc_init_ocr() local
[all …]
H A Dalcor.c692 static void alcor_set_timing(struct mmc_host *mmc, struct mmc_ios *ios) in alcor_set_timing()
705 static void alcor_set_bus_width(struct mmc_host *mmc, struct mmc_ios *ios) in alcor_set_bus_width()
720 static int alcor_card_busy(struct mmc_host *mmc) in alcor_card_busy()
732 static int alcor_get_cd(struct mmc_host *mmc) in alcor_get_cd()
744 static int alcor_get_ro(struct mmc_host *mmc) in alcor_get_ro()
756 static void alcor_request(struct mmc_host *mmc, struct mmc_request *mrq) in alcor_request()
775 static void alcor_pre_req(struct mmc_host *mmc, in alcor_pre_req()
825 static void alcor_post_req(struct mmc_host *mmc, in alcor_post_req()
845 static void alcor_set_power_mode(struct mmc_host *mmc, struct mmc_ios *ios) in alcor_set_power_mode()
906 static void alcor_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in alcor_set_ios()
[all …]
H A Dsdhci.c241 struct mmc_host *mmc = host->mmc; in sdhci_do_reset() local
324 struct mmc_host *mmc = host->mmc; in sdhci_init() local
411 struct mmc_host *mmc = host->mmc; in sdhci_led_register() local
900 struct mmc_host *mmc = host->mmc; in sdhci_calc_sw_timeout() local
1180 struct mmc_host *mmc = host->mmc; in sdhci_external_dma_init() local
2015 struct mmc_host *mmc = host->mmc; in sdhci_set_power_reg() local
2126 struct mmc_host *mmc = host->mmc; in sdhci_set_power_and_bus_voltage() local
2140 void sdhci_request(struct mmc_host *mmc, struct mmc_request *mrq) in sdhci_request()
2172 int sdhci_request_atomic(struct mmc_host *mmc, struct mmc_request *mrq) in sdhci_request_atomic()
2251 void sdhci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in sdhci_set_ios()
[all …]
H A Dpxamci.c51 struct mmc_host *mmc; member
79 struct mmc_host *mmc = host->mmc; in pxamci_init_ocr() local
100 struct mmc_host *mmc = host->mmc; in pxamci_set_power() local
400 static void pxamci_request(struct mmc_host *mmc, struct mmc_request *mrq) in pxamci_request()
426 static int pxamci_get_ro(struct mmc_host *mmc) in pxamci_get_ro()
441 static void pxamci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in pxamci_set_ios()
579 struct mmc_host *mmc) in pxamci_of_init()
601 struct mmc_host *mmc) in pxamci_of_init()
609 struct mmc_host *mmc; in pxamci_probe() local
784 struct mmc_host *mmc = platform_get_drvdata(pdev); in pxamci_remove() local
H A Dcb710-mmc.c27 static void cb710_mmc_select_clock_divider(struct mmc_host *mmc, int hz) in cb710_mmc_select_clock_divider()
443 static int cb710_mmc_command(struct mmc_host *mmc, struct mmc_command *cmd) in cb710_mmc_command()
483 static void cb710_mmc_request(struct mmc_host *mmc, struct mmc_request *mrq) in cb710_mmc_request()
560 static void cb710_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in cb710_mmc_set_ios()
601 static int cb710_mmc_get_ro(struct mmc_host *mmc) in cb710_mmc_get_ro()
609 static int cb710_mmc_get_cd(struct mmc_host *mmc) in cb710_mmc_get_cd()
619 struct mmc_host *mmc = cb710_slot_to_mmc(slot); in cb710_mmc_irq_handler() local
651 struct mmc_host *mmc = (void *)data; in cb710_mmc_finish_request_tasklet() local
690 struct mmc_host *mmc; in cb710_mmc_init() local
751 struct mmc_host *mmc = cb710_slot_to_mmc(slot); in cb710_mmc_exit() local
H A Dmeson-gx-mmc.c151 struct mmc_host *mmc; member
226 static void meson_mmc_get_transfer_mode(struct mmc_host *mmc, in meson_mmc_get_transfer_mode()
275 static void meson_mmc_pre_req(struct mmc_host *mmc, struct mmc_request *mrq) in meson_mmc_pre_req()
294 static void meson_mmc_post_req(struct mmc_host *mmc, struct mmc_request *mrq, in meson_mmc_post_req()
343 struct mmc_host *mmc = host->mmc; in meson_mmc_clk_set() local
511 static int meson_mmc_resampling_tuning(struct mmc_host *mmc, u32 opcode) in meson_mmc_resampling_tuning()
579 static void meson_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in meson_mmc_set_ios()
651 static void meson_mmc_request_done(struct mmc_host *mmc, in meson_mmc_request_done()
662 static void meson_mmc_set_blksz(struct mmc_host *mmc, unsigned int blksz) in meson_mmc_set_blksz()
704 static void meson_mmc_desc_chain_transfer(struct mmc_host *mmc, u32 cmd_cfg) in meson_mmc_desc_chain_transfer()
[all …]
/OK3568_Linux_fs/u-boot/cmd/
H A Dmmc.c17 static void print_mmcinfo(struct mmc *mmc) in print_mmcinfo()
94 struct mmc *mmc; in init_mmc_device() local
109 struct mmc *mmc; in do_mmcinfo() local
133 struct mmc *mmc; in do_mmc_test_secure_storage() local
191 struct mmc *mmc; in init_rpmb() local
244 struct mmc *mmc = find_mmc_device(curr_device); in do_readcounter() local
251 struct mmc *mmc = find_mmc_device(curr_device); in do_programkey() local
258 struct mmc *mmc = find_mmc_device(curr_device); in do_authenticatedread() local
265 struct mmc *mmc = find_mmc_device(curr_device); in do_authenticatedwrite() local
272 struct mmc *mmc = find_mmc_device(curr_device); in do_returnmmc() local
[all …]
/OK3568_Linux_fs/u-boot/include/
H A Dmmc.h360 struct mmc *mmc; member
535 struct mmc { struct
539 const struct mmc_config *cfg; /* provided configuration */ argument
540 uint version;
541 void *priv;
542 uint has_init;
543 int high_capacity;
544 uint bus_width;
550 uint timing;
565 uint clock;
[all …]
/OK3568_Linux_fs/u-boot/env/
H A Dmmc.c114 __weak int mmc_get_env_addr(struct mmc *mmc, int copy, u32 *env_addr) in mmc_get_env_addr()
132 __weak uint mmc_get_env_part(struct mmc *mmc) in mmc_get_env_part()
139 static int mmc_set_env_part(struct mmc *mmc) in mmc_set_env_part()
153 static inline int mmc_set_env_part(struct mmc *mmc) {return 0; }; in mmc_set_env_part()
156 static const char *init_mmc_for_env(struct mmc *mmc) in init_mmc_for_env()
176 static void fini_mmc_for_env(struct mmc *mmc) in fini_mmc_for_env()
186 static inline int write_env(struct mmc *mmc, unsigned long size, in write_env()
204 struct mmc *mmc = find_mmc_device(dev); in env_mmc_save() local
249 static inline int read_env(struct mmc *mmc, unsigned long size, in read_env()
267 struct mmc *mmc; in env_mmc_load() local
[all …]
/OK3568_Linux_fs/u-boot/common/spl/
H A Dspl_mmc.c24 static int mmc_load_legacy(struct spl_image_info *spl_image, struct mmc *mmc, in mmc_load_legacy()
58 struct mmc *mmc, unsigned long sector)
154 struct mmc *mmc,
193 struct mmc *mmc)
227 struct mmc *mmc)
234 static int spl_mmc_do_fs_boot(struct spl_image_info *spl_image, struct mmc *mmc)
276 static int spl_mmc_do_fs_boot(struct spl_image_info *spl_image, struct mmc *mmc)
285 struct mmc *mmc = NULL; local

1234567891011