Lines Matching defs:mmc
33 static int mmc_wait_dat0(struct mmc *mmc, int state, int timeout) in mmc_wait_dat0()
39 __weak int board_mmc_getwp(struct mmc *mmc) in board_mmc_getwp()
44 int mmc_getwp(struct mmc *mmc) in mmc_getwp()
60 __weak int board_mmc_getcd(struct mmc *mmc) in board_mmc_getcd()
67 void mmmc_trace_before_send(struct mmc *mmc, struct mmc_cmd *cmd) in mmmc_trace_before_send()
73 void mmmc_trace_after_send(struct mmc *mmc, struct mmc_cmd *cmd, int ret) in mmmc_trace_after_send()
125 void mmc_trace_state(struct mmc *mmc, struct mmc_cmd *cmd) in mmc_trace_state()
160 static uint mmc_mode2freq(struct mmc *mmc, enum bus_mode mode) in mmc_mode2freq()
186 static int mmc_select_mode(struct mmc *mmc, enum bus_mode mode) in mmc_select_mode()
197 int mmc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, struct mmc_data *data) in mmc_send_cmd()
209 int mmc_send_status(struct mmc *mmc, int timeout) in mmc_send_status()
254 int mmc_set_blocklen(struct mmc *mmc, int len) in mmc_set_blocklen()
317 int mmc_send_tuning(struct mmc *mmc, u32 opcode, int *cmd_error) in mmc_send_tuning()
356 static int mmc_read_blocks(struct mmc *mmc, void *dst, lbaint_t start, in mmc_read_blocks()
414 struct mmc *mmc = find_mmc_device(dev_num); in mmc_bread() local
454 static int mmc_go_idle(struct mmc *mmc) in mmc_go_idle()
476 static int mmc_switch_voltage(struct mmc *mmc, int signal_voltage) in mmc_switch_voltage()
537 static int sd_send_op_cond(struct mmc *mmc, bool uhs_en) in sd_send_op_cond()
617 static int mmc_send_op_cond_iter(struct mmc *mmc, int use_arg) in mmc_send_op_cond_iter()
638 static int mmc_send_op_cond(struct mmc *mmc) in mmc_send_op_cond()
659 static int mmc_complete_op_cond(struct mmc *mmc) in mmc_complete_op_cond()
706 static int mmc_send_ext_csd(struct mmc *mmc, u8 *ext_csd) in mmc_send_ext_csd()
727 static int __mmc_switch(struct mmc *mmc, u8 set, u8 index, u8 value, in __mmc_switch()
762 int mmc_switch(struct mmc *mmc, u8 set, u8 index, u8 value) in mmc_switch()
768 static int mmc_set_card_speed(struct mmc *mmc, enum bus_mode mode, in mmc_set_card_speed()
832 static int mmc_get_capabilities(struct mmc *mmc) in mmc_get_capabilities()
880 static int mmc_set_capacity(struct mmc *mmc, int part_num) in mmc_set_capacity()
909 static int mmc_boot_part_access_chk(struct mmc *mmc, unsigned int part_num) in mmc_boot_part_access_chk()
933 static inline int mmc_boot_part_access_chk(struct mmc *mmc, in mmc_boot_part_access_chk()
940 int mmc_switch_part(struct mmc *mmc, unsigned int part_num) in mmc_switch_part()
965 int mmc_hwpart_config(struct mmc *mmc, in mmc_hwpart_config()
1161 int mmc_getcd(struct mmc *mmc) in mmc_getcd()
1179 static int sd_switch(struct mmc *mmc, int mode, int group, u8 value, u8 *resp) in sd_switch()
1199 static int sd_get_capabilities(struct mmc *mmc) in sd_get_capabilities()
1312 static int sd_set_card_speed(struct mmc *mmc, enum bus_mode mode) in sd_set_card_speed()
1361 static int sd_select_bus_width(struct mmc *mmc, int w) in sd_select_bus_width()
1392 static int sd_read_ssr(struct mmc *mmc) in sd_read_ssr()
1501 static int mmc_execute_tuning(struct mmc *mmc, uint opcode) in mmc_execute_tuning()
1507 static void mmc_send_init_stream(struct mmc *mmc) in mmc_send_init_stream()
1511 static int mmc_set_ios(struct mmc *mmc) in mmc_set_ios()
1522 int mmc_set_clock(struct mmc *mmc, uint clock, bool disable) in mmc_set_clock()
1540 static int mmc_set_bus_width(struct mmc *mmc, uint width) in mmc_set_bus_width()
1592 static int mmc_set_signal_voltage(struct mmc *mmc, uint signal_voltage) in mmc_set_signal_voltage()
1607 static inline int mmc_set_signal_voltage(struct mmc *mmc, uint signal_voltage) in mmc_set_signal_voltage()
1658 static int sd_select_mode_and_width(struct mmc *mmc, uint card_caps) in sd_select_mode_and_width()
1745 static int mmc_read_and_compare_ext_csd(struct mmc *mmc) in mmc_read_and_compare_ext_csd()
1775 static int mmc_set_lowest_voltage(struct mmc *mmc, enum bus_mode mode, in mmc_set_lowest_voltage()
1815 static inline int mmc_set_lowest_voltage(struct mmc *mmc, enum bus_mode mode, in mmc_set_lowest_voltage()
1874 static int mmc_select_hs400(struct mmc *mmc) in mmc_select_hs400()
1914 static int mmc_select_hs400(struct mmc *mmc) in mmc_select_hs400()
1926 static int mmc_select_mode_and_width(struct mmc *mmc, uint card_caps) in mmc_select_mode_and_width()
2053 static int mmc_startup_v4(struct mmc *mmc) in mmc_startup_v4()
2251 static int mmc_startup(struct mmc *mmc) in mmc_startup()
2497 static int mmc_send_if_cond(struct mmc *mmc) in mmc_send_if_cond()
2527 static int mmc_power_init(struct mmc *mmc) in mmc_power_init()
2558 static void mmc_set_initial_state(struct mmc *mmc) in mmc_set_initial_state()
2574 static int mmc_power_on(struct mmc *mmc) in mmc_power_on()
2589 static int mmc_power_off(struct mmc *mmc) in mmc_power_off()
2605 static int mmc_power_cycle(struct mmc *mmc) in mmc_power_cycle()
2620 int mmc_get_op_cond(struct mmc *mmc) in mmc_get_op_cond()
2704 int mmc_start_init(struct mmc *mmc) in mmc_start_init()
2741 static int mmc_complete_init(struct mmc *mmc) in mmc_complete_init()
2758 int mmc_init(struct mmc *mmc) in mmc_init()
2786 int mmc_deinit(struct mmc *mmc) in mmc_deinit()
2809 int mmc_set_dsr(struct mmc *mmc, u16 val) in mmc_set_dsr()
2827 void mmc_set_preinit(struct mmc *mmc, int preinit) in mmc_set_preinit()
2897 int mmc_set_bkops_enable(struct mmc *mmc) in mmc_set_bkops_enable()