Lines Matching defs:mmc

52 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()
225 int mmc_set_blockcount(struct mmc *mmc, unsigned int blkcnt, bool is_rel_write) in mmc_set_blockcount()
238 static int mmc_read_blocks(struct mmc *mmc, void *dst, lbaint_t start, in mmc_read_blocks()
280 static int mmc_read_blocks_prepare(struct mmc *mmc, void *dst, lbaint_t start, in mmc_read_blocks_prepare()
330 struct mmc *mmc = find_mmc_device(dev_num); in mmc_bread_prepare() local
408 struct mmc *mmc = find_mmc_device(dev_num); in mmc_bread() local
467 void mmc_set_clock(struct mmc *mmc, uint clock) in mmc_set_clock()
480 static void mmc_set_bus_width(struct mmc *mmc, uint width) in mmc_set_bus_width()
487 static void mmc_set_timing(struct mmc *mmc, uint timing) in mmc_set_timing()
493 static int mmc_go_idle(struct mmc *mmc) in mmc_go_idle()
515 static int sd_send_op_cond(struct mmc *mmc) in sd_send_op_cond()
584 static int mmc_send_op_cond_iter(struct mmc *mmc, int use_arg) in mmc_send_op_cond_iter()
606 static int mmc_send_op_cond(struct mmc *mmc) in mmc_send_op_cond()
627 static int mmc_complete_op_cond(struct mmc *mmc) in mmc_complete_op_cond()
674 static int mmc_send_ext_csd(struct mmc *mmc, u8 *ext_csd) in mmc_send_ext_csd()
715 static int mmc_poll_for_busy(struct mmc *mmc, u8 send_status) in mmc_poll_for_busy()
756 static int __mmc_switch(struct mmc *mmc, u8 set, u8 index, u8 value, in __mmc_switch()
779 int mmc_switch(struct mmc *mmc, u8 set, u8 index, u8 value) in mmc_switch()
784 static int mmc_select_bus_width(struct mmc *mmc) in mmc_select_bus_width()
888 int mmc_send_tuning(struct mmc *mmc, u32 opcode) in mmc_send_tuning()
934 static int mmc_execute_tuning(struct mmc *mmc)
959 static int mmc_hs200_tuning(struct mmc *mmc)
965 int mmc_send_tuning(struct mmc *mmc, u32 opcode) { return 0; }
966 int mmc_execute_tuning(struct mmc *mmc) { return 0; }
967 static int mmc_hs200_tuning(struct mmc *mmc) { return 0; }
970 static int mmc_select_hs(struct mmc *mmc)
983 static int mmc_select_hs_ddr(struct mmc *mmc)
1005 static int mmc_select_hs200(struct mmc *mmc)
1029 static int mmc_switch_to_hs400(struct mmc *mmc)
1042 static int mmc_select_hs400(struct mmc *mmc)
1080 static int mmc_select_hs400es(struct mmc *mmc)
1118 static int mmc_select_hs200(struct mmc *mmc) { return 0; }
1119 static int mmc_select_hs400(struct mmc *mmc) { return 0; }
1120 static int mmc_select_hs400es(struct mmc *mmc) { return 0; }
1123 static u32 mmc_select_card_type(struct mmc *mmc, u8 *ext_csd)
1174 static void mmc_set_bus_speed(struct mmc *mmc, u8 avail_type)
1189 static int mmc_change_freq(struct mmc *mmc)
1251 static int mmc_set_capacity(struct mmc *mmc, int part_num)
1279 int mmc_switch_part(struct mmc *mmc, unsigned int part_num)
1299 int mmc_hwpart_config(struct mmc *mmc,
1494 int mmc_getcd(struct mmc *mmc)
1511 static int sd_switch(struct mmc *mmc, int mode, int group, u8 value, u8 *resp)
1532 static int sd_change_freq(struct mmc *mmc)
1642 static int sd_read_ssr(struct mmc *mmc)
1730 static void mmc_set_ios(struct mmc *mmc)
1736 static bool mmc_card_busy(struct mmc *mmc)
1744 static bool mmc_can_card_busy(struct mmc *)
1750 static int mmc_startup(struct mmc *mmc)
2150 static int mmc_send_if_cond(struct mmc *mmc)
2182 static int mmc_power_init(struct mmc *mmc)
2213 static int mmc_select_card(struct mmc *mmc, int n)
2230 int mmc_start_init(struct mmc *mmc)
2261 int mmc_start_init(struct mmc *mmc)
2335 static int mmc_complete_init(struct mmc *mmc)
2352 int mmc_init(struct mmc *mmc)
2377 int mmc_set_dsr(struct mmc *mmc, u16 val)
2395 void mmc_set_preinit(struct mmc *mmc, int preinit)
2470 int mmc_set_bkops_enable(struct mmc *mmc)