• Home
  • Raw
  • Download

Lines Matching refs:mmc

17 	struct mmc *mmc = mmc_get_mmc_dev(dev);  in dm_mmc_send_cmd()  local
21 mmmc_trace_before_send(mmc, cmd); in dm_mmc_send_cmd()
26 mmmc_trace_after_send(mmc, cmd, ret); in dm_mmc_send_cmd()
31 int mmc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, struct mmc_data *data) in mmc_send_cmd() argument
33 return dm_mmc_send_cmd(mmc->dev, cmd, data); in mmc_send_cmd()
45 int mmc_set_ios(struct mmc *mmc) in mmc_set_ios() argument
47 return dm_mmc_set_ios(mmc->dev); in mmc_set_ios()
58 void mmc_send_init_stream(struct mmc *mmc) in mmc_send_init_stream() argument
60 dm_mmc_send_init_stream(mmc->dev); in mmc_send_init_stream()
73 int mmc_wait_dat0(struct mmc *mmc, int state, int timeout) in mmc_wait_dat0() argument
75 return dm_mmc_wait_dat0(mmc->dev, state, timeout); in mmc_wait_dat0()
88 int mmc_getwp(struct mmc *mmc) in mmc_getwp() argument
90 return dm_mmc_get_wp(mmc->dev); in mmc_getwp()
102 int mmc_getcd(struct mmc *mmc) in mmc_getcd() argument
104 return dm_mmc_get_cd(mmc->dev); in mmc_getcd()
117 int mmc_execute_tuning(struct mmc *mmc, uint opcode) in mmc_execute_tuning() argument
119 return dm_mmc_execute_tuning(mmc->dev, opcode); in mmc_execute_tuning()
173 struct mmc *mmc_get_mmc_dev(struct udevice *dev) in mmc_get_mmc_dev()
180 return upriv->mmc; in mmc_get_mmc_dev()
184 struct mmc *find_mmc_device(int dev_num) in find_mmc_device()
200 struct mmc *mmc = mmc_get_mmc_dev(mmc_dev); in find_mmc_device() local
202 return mmc; in find_mmc_device()
215 struct blk_desc *mmc_get_blk_desc(struct mmc *mmc) in mmc_get_blk_desc() argument
220 device_find_first_child(mmc->dev, &dev); in mmc_get_blk_desc()
238 struct mmc *m = mmc_get_mmc_dev(dev); in mmc_do_preinit()
260 struct mmc *m = mmc_get_mmc_dev(dev); in print_mmc_devices()
284 int mmc_bind(struct udevice *dev, struct mmc *mmc, const struct mmc_config *cfg) in mmc_bind() argument
305 mmc->cfg = cfg; in mmc_bind()
306 mmc->priv = dev; in mmc_bind()
311 mmc->dsr_imp = 0; in mmc_bind()
312 mmc->dsr = 0xffffffff; in mmc_bind()
318 mmc->dev = dev; in mmc_bind()
339 struct mmc *mmc = mmc_get_mmc_dev(mmc_dev); in mmc_select_hwpart() local
345 if (mmc->part_config == MMCPART_NOAVAILABLE) in mmc_select_hwpart()
348 return mmc_switch_part(mmc, hwpart); in mmc_select_hwpart()
355 struct mmc *mmc = upriv->mmc; in mmc_blk_probe() local
358 ret = mmc_init(mmc); in mmc_blk_probe()
384 U_BOOT_DRIVER(mmc) = {
389 UCLASS_DRIVER(mmc) = {