Lines Matching defs:mmc

35 static int mmc_wait_dat0(struct mmc *mmc, int state, int timeout_us)  in mmc_wait_dat0()
40 __weak int board_mmc_getwp(struct mmc *mmc) in board_mmc_getwp()
45 int mmc_getwp(struct mmc *mmc) in mmc_getwp()
61 __weak int board_mmc_getcd(struct mmc *mmc) in board_mmc_getcd()
68 void mmmc_trace_before_send(struct mmc *mmc, struct mmc_cmd *cmd) in mmmc_trace_before_send()
74 void mmmc_trace_after_send(struct mmc *mmc, struct mmc_cmd *cmd, int ret) in mmmc_trace_after_send()
126 void mmc_trace_state(struct mmc *mmc, struct mmc_cmd *cmd) in mmc_trace_state()
161 static uint mmc_mode2freq(struct mmc *mmc, enum bus_mode mode) in mmc_mode2freq()
187 static int mmc_select_mode(struct mmc *mmc, enum bus_mode mode) in mmc_select_mode()
198 int mmc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, struct mmc_data *data) in mmc_send_cmd()
220 static int mmc_send_cmd_retry(struct mmc *mmc, struct mmc_cmd *cmd, in mmc_send_cmd_retry()
244 static int mmc_send_cmd_quirks(struct mmc *mmc, struct mmc_cmd *cmd, in mmc_send_cmd_quirks()
253 int mmc_send_status(struct mmc *mmc, unsigned int *status) in mmc_send_status()
271 int mmc_poll_for_busy(struct mmc *mmc, int timeout_ms) in mmc_poll_for_busy()
313 int mmc_set_blocklen(struct mmc *mmc, int len) in mmc_set_blocklen()
359 int mmc_send_tuning(struct mmc *mmc, u32 opcode, int *cmd_error) in mmc_send_tuning()
398 static int mmc_read_blocks(struct mmc *mmc, void *dst, lbaint_t start, in mmc_read_blocks()
440 static int mmc_get_b_max(struct mmc *mmc, void *dst, lbaint_t blkcnt) in mmc_get_b_max()
467 struct mmc *mmc = find_mmc_device(dev_num); in mmc_bread() local
508 static int mmc_go_idle(struct mmc *mmc) in mmc_go_idle()
530 static int mmc_switch_voltage(struct mmc *mmc, int signal_voltage) in mmc_switch_voltage()
591 static int sd_send_op_cond(struct mmc *mmc, bool uhs_en) in sd_send_op_cond()
671 static int mmc_send_op_cond_iter(struct mmc *mmc, int use_arg) in mmc_send_op_cond_iter()
692 static int mmc_send_op_cond(struct mmc *mmc) in mmc_send_op_cond()
720 static int mmc_complete_op_cond(struct mmc *mmc) in mmc_complete_op_cond()
767 int mmc_send_ext_csd(struct mmc *mmc, u8 *ext_csd) in mmc_send_ext_csd()
788 static int __mmc_switch(struct mmc *mmc, u8 set, u8 index, u8 value, in __mmc_switch()
853 int mmc_switch(struct mmc *mmc, u8 set, u8 index, u8 value) in mmc_switch()
858 int mmc_boot_wp(struct mmc *mmc) in mmc_boot_wp()
864 static int mmc_set_card_speed(struct mmc *mmc, enum bus_mode mode, in mmc_set_card_speed()
933 static int mmc_get_capabilities(struct mmc *mmc) in mmc_get_capabilities()
989 static int mmc_set_capacity(struct mmc *mmc, int part_num) in mmc_set_capacity()
1017 int mmc_switch_part(struct mmc *mmc, unsigned int part_num) in mmc_switch_part()
1042 int mmc_hwpart_config(struct mmc *mmc, in mmc_hwpart_config()
1240 int mmc_getcd(struct mmc *mmc) in mmc_getcd()
1258 static int sd_switch(struct mmc *mmc, int mode, int group, u8 value, u8 *resp) in sd_switch()
1278 static int sd_get_capabilities(struct mmc *mmc) in sd_get_capabilities()
1384 static int sd_set_card_speed(struct mmc *mmc, enum bus_mode mode) in sd_set_card_speed()
1433 static int sd_select_bus_width(struct mmc *mmc, int w) in sd_select_bus_width()
1464 static int sd_read_ssr(struct mmc *mmc) in sd_read_ssr()
1567 static int mmc_execute_tuning(struct mmc *mmc, uint opcode) in mmc_execute_tuning()
1573 static int mmc_set_ios(struct mmc *mmc) in mmc_set_ios()
1583 static int mmc_host_power_cycle(struct mmc *mmc) in mmc_host_power_cycle()
1594 int mmc_set_clock(struct mmc *mmc, uint clock, bool disable) in mmc_set_clock()
1612 static int mmc_set_bus_width(struct mmc *mmc, uint width) in mmc_set_bus_width()
1664 static int mmc_set_signal_voltage(struct mmc *mmc, uint signal_voltage) in mmc_set_signal_voltage()
1679 static inline int mmc_set_signal_voltage(struct mmc *mmc, uint signal_voltage) in mmc_set_signal_voltage()
1730 static int sd_select_mode_and_width(struct mmc *mmc, uint card_caps) in sd_select_mode_and_width()
1829 static int mmc_read_and_compare_ext_csd(struct mmc *mmc) in mmc_read_and_compare_ext_csd()
1859 static int mmc_set_lowest_voltage(struct mmc *mmc, enum bus_mode mode, in mmc_set_lowest_voltage()
1900 static inline int mmc_set_lowest_voltage(struct mmc *mmc, enum bus_mode mode, in mmc_set_lowest_voltage()
1965 static int mmc_select_hs400(struct mmc *mmc) in mmc_select_hs400()
2011 static int mmc_select_hs400(struct mmc *mmc) in mmc_select_hs400()
2019 static int mmc_set_enhanced_strobe(struct mmc *mmc) in mmc_set_enhanced_strobe()
2024 static int mmc_select_hs400es(struct mmc *mmc) in mmc_select_hs400es()
2052 static int mmc_select_hs400es(struct mmc *mmc) in mmc_select_hs400es()
2064 static int mmc_select_mode_and_width(struct mmc *mmc, uint card_caps) in mmc_select_mode_and_width()
2205 static int mmc_startup_v4(struct mmc *mmc) in mmc_startup_v4()
2411 static int mmc_startup(struct mmc *mmc) in mmc_startup()
2641 static int mmc_send_if_cond(struct mmc *mmc) in mmc_send_if_cond()
2671 static int mmc_power_init(struct mmc *mmc) in mmc_power_init()
2702 static void mmc_set_initial_state(struct mmc *mmc) in mmc_set_initial_state()
2718 static int mmc_power_on(struct mmc *mmc) in mmc_power_on()
2733 static int mmc_power_off(struct mmc *mmc) in mmc_power_off()
2749 static int mmc_power_cycle(struct mmc *mmc) in mmc_power_cycle()
2769 int mmc_get_op_cond(struct mmc *mmc) in mmc_get_op_cond()
2854 int mmc_start_init(struct mmc *mmc) in mmc_start_init()
2893 static int mmc_complete_init(struct mmc *mmc) in mmc_complete_init()
2910 int mmc_init(struct mmc *mmc) in mmc_init()
2938 int mmc_deinit(struct mmc *mmc) in mmc_deinit()
2961 int mmc_set_dsr(struct mmc *mmc, u16 val) in mmc_set_dsr()
2979 void mmc_set_preinit(struct mmc *mmc, int preinit) in mmc_set_preinit()
3070 int mmc_set_bkops_enable(struct mmc *mmc) in mmc_set_bkops_enable()