Lines Matching refs:mmc
32 struct mmc mmc; member
36 static int wait_for_command_end(struct mmc *dev, struct mmc_cmd *cmd) in wait_for_command_end()
76 static int do_command(struct mmc *dev, struct mmc_cmd *cmd) in do_command()
108 static int read_bytes(struct mmc *dev, u32 *dest, u32 blkcount, u32 blksize) in read_bytes()
163 static int write_bytes(struct mmc *dev, u32 *src, u32 blkcount, u32 blksize) in write_bytes()
222 static int do_data_transfer(struct mmc *dev, in do_data_transfer()
268 static int host_request(struct mmc *dev, in host_request()
282 static int host_set_ios(struct mmc *dev) in host_set_ios()
346 static int mmc_host_reset(struct mmc *dev) in mmc_host_reset()
367 int arm_pl180_mmci_init(struct pl180_mmc_host *host, struct mmc **mmc) in arm_pl180_mmci_init() argument
393 *mmc = mmc_create(&host->cfg, host); in arm_pl180_mmci_init()
394 if (!*mmc) in arm_pl180_mmci_init()
398 (*mmc)->block_dev.devnum); in arm_pl180_mmci_init()
408 struct mmc *mmc = &pdata->mmc; in arm_pl180_mmc_probe() local
409 struct pl180_mmc_host *host = mmc->priv; in arm_pl180_mmc_probe()
452 ret = arm_pl180_mmci_init(host, &mmc); in arm_pl180_mmc_probe()
458 mmc->dev = dev; in arm_pl180_mmc_probe()
460 upriv->mmc = mmc; in arm_pl180_mmc_probe()
468 struct mmc *mmc = mmc_get_mmc_dev(dev); in dm_host_request() local
470 return host_request(mmc, cmd, data); in dm_host_request()
475 struct mmc *mmc = mmc_get_mmc_dev(dev); in dm_host_set_ios() local
477 return host_set_ios(mmc); in dm_host_set_ios()
483 struct mmc *mmc = &pdata->mmc; in dm_mmc_getcd() local
484 struct pl180_mmc_host *host = mmc->priv; in dm_mmc_getcd()
505 struct mmc *mmc = &pdata->mmc; in arm_pl180_mmc_ofdata_to_platdata() local
506 struct pl180_mmc_host *host = mmc->priv; in arm_pl180_mmc_ofdata_to_platdata()