Lines Matching refs:mmc
197 pr_err("%s: Resetting chip\n", mmc_hostname(host->mmc)); in wbsd_reset()
232 mmc_request_done(host->mmc, mrq); in wbsd_request_end()
726 mmc_hostname(host->mmc), count); in wbsd_finish_data()
754 static void wbsd_request(struct mmc_host *mmc, struct mmc_request *mrq) in wbsd_request() argument
756 struct wbsd_host *host = mmc_priv(mmc); in wbsd_request()
807 mmc_hostname(host->mmc), cmd->opcode); in wbsd_request()
850 static void wbsd_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in wbsd_set_ios() argument
852 struct wbsd_host *host = mmc_priv(mmc); in wbsd_set_ios()
923 static int wbsd_get_ro(struct mmc_host *mmc) in wbsd_get_ro() argument
925 struct wbsd_host *host = mmc_priv(mmc); in wbsd_get_ro()
1032 mmc_hostname(host->mmc)); in wbsd_tasklet_card()
1049 mmc_detect_change(host->mmc, msecs_to_jiffies(delay)); in wbsd_tasklet_card()
1200 struct mmc_host *mmc; in wbsd_alloc_mmc() local
1206 mmc = mmc_alloc_host(sizeof(struct wbsd_host), dev); in wbsd_alloc_mmc()
1207 if (!mmc) in wbsd_alloc_mmc()
1210 host = mmc_priv(mmc); in wbsd_alloc_mmc()
1211 host->mmc = mmc; in wbsd_alloc_mmc()
1218 mmc->ops = &wbsd_ops; in wbsd_alloc_mmc()
1219 mmc->f_min = 375000; in wbsd_alloc_mmc()
1220 mmc->f_max = 24000000; in wbsd_alloc_mmc()
1221 mmc->ocr_avail = MMC_VDD_32_33 | MMC_VDD_33_34; in wbsd_alloc_mmc()
1222 mmc->caps = MMC_CAP_4_BIT_DATA; in wbsd_alloc_mmc()
1237 mmc->max_segs = 128; in wbsd_alloc_mmc()
1242 mmc->max_req_size = 65536; in wbsd_alloc_mmc()
1248 mmc->max_seg_size = mmc->max_req_size; in wbsd_alloc_mmc()
1254 mmc->max_blk_size = 4087; in wbsd_alloc_mmc()
1260 mmc->max_blk_count = mmc->max_req_size; in wbsd_alloc_mmc()
1262 dev_set_drvdata(dev, mmc); in wbsd_alloc_mmc()
1269 struct mmc_host *mmc; in wbsd_free_mmc() local
1272 mmc = dev_get_drvdata(dev); in wbsd_free_mmc()
1273 if (!mmc) in wbsd_free_mmc()
1276 host = mmc_priv(mmc); in wbsd_free_mmc()
1281 mmc_free_host(mmc); in wbsd_free_mmc()
1396 host->dma_addr = dma_map_single(mmc_dev(host->mmc), host->dma_buffer, in wbsd_request_dma()
1420 dma_unmap_single(mmc_dev(host->mmc), host->dma_addr, in wbsd_request_dma()
1438 dma_unmap_single(mmc_dev(host->mmc), host->dma_addr, in wbsd_release_dma()
1650 struct mmc_host *mmc = NULL; in wbsd_init() local
1657 mmc = dev_get_drvdata(dev); in wbsd_init()
1658 host = mmc_priv(mmc); in wbsd_init()
1715 mmc_add_host(mmc); in wbsd_init()
1717 pr_info("%s: W83L51xD", mmc_hostname(mmc)); in wbsd_init()
1734 struct mmc_host *mmc = dev_get_drvdata(dev); in wbsd_shutdown() local
1737 if (!mmc) in wbsd_shutdown()
1740 host = mmc_priv(mmc); in wbsd_shutdown()
1742 mmc_remove_host(mmc); in wbsd_shutdown()
1814 struct mmc_host *mmc = platform_get_drvdata(dev); in wbsd_platform_suspend() local
1817 if (mmc == NULL) in wbsd_platform_suspend()
1822 host = mmc_priv(mmc); in wbsd_platform_suspend()
1830 struct mmc_host *mmc = platform_get_drvdata(dev); in wbsd_platform_resume() local
1833 if (mmc == NULL) in wbsd_platform_resume()
1838 host = mmc_priv(mmc); in wbsd_platform_resume()
1855 struct mmc_host *mmc = dev_get_drvdata(&pnp_dev->dev); in wbsd_pnp_suspend() local
1857 if (mmc == NULL) in wbsd_pnp_suspend()
1866 struct mmc_host *mmc = dev_get_drvdata(&pnp_dev->dev); in wbsd_pnp_resume() local
1869 if (mmc == NULL) in wbsd_pnp_resume()
1874 host = mmc_priv(mmc); in wbsd_pnp_resume()