Lines Matching refs:mmc
118 struct mmc_host *mmc; member
180 dev_err(mmc_dev(host->mmc), in goldfish_mmc_start_command()
229 dma_unmap_sg(mmc_dev(host->mmc), data->sg, host->sg_len, in goldfish_mmc_xfer_done()
244 mmc_request_done(host->mmc, data->mrq); in goldfish_mmc_xfer_done()
286 mmc_request_done(host->mmc, cmd->mrq); in goldfish_mmc_cmd_done()
322 mmc_request_done(host->mmc, mrq); in goldfish_mmc_irq()
350 mmc_detect_change(host->mmc, 0); in goldfish_mmc_irq()
356 dev_info(mmc_dev(host->mmc),"spurious irq 0x%04x\n", status); in goldfish_mmc_irq()
398 host->sg_len = dma_map_sg(mmc_dev(host->mmc), data->sg, in goldfish_mmc_prepare_data()
413 static void goldfish_mmc_request(struct mmc_host *mmc, struct mmc_request *req) in goldfish_mmc_request() argument
415 struct goldfish_mmc_host *host = mmc_priv(mmc); in goldfish_mmc_request()
432 static void goldfish_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in goldfish_mmc_set_ios() argument
434 struct goldfish_mmc_host *host = mmc_priv(mmc); in goldfish_mmc_set_ios()
440 static int goldfish_mmc_get_ro(struct mmc_host *mmc) in goldfish_mmc_get_ro() argument
443 struct goldfish_mmc_host *host = mmc_priv(mmc); in goldfish_mmc_get_ro()
457 struct mmc_host *mmc; in goldfish_mmc_probe() local
469 mmc = mmc_alloc_host(sizeof(struct goldfish_mmc_host), &pdev->dev); in goldfish_mmc_probe()
470 if (mmc == NULL) { in goldfish_mmc_probe()
475 host = mmc_priv(mmc); in goldfish_mmc_probe()
476 host->mmc = mmc; in goldfish_mmc_probe()
496 mmc->ops = &goldfish_mmc_ops; in goldfish_mmc_probe()
497 mmc->f_min = 400000; in goldfish_mmc_probe()
498 mmc->f_max = 24000000; in goldfish_mmc_probe()
499 mmc->ocr_avail = MMC_VDD_32_33 | MMC_VDD_33_34; in goldfish_mmc_probe()
500 mmc->caps = MMC_CAP_4_BIT_DATA; in goldfish_mmc_probe()
506 mmc->max_segs = 32; in goldfish_mmc_probe()
507 mmc->max_blk_size = 2048; /* MMC_BLOCK_LENGTH is 11 bits (+1) */ in goldfish_mmc_probe()
508 mmc->max_blk_count = 2048; /* MMC_BLOCK_COUNT is 11 bits (+1) */ in goldfish_mmc_probe()
509 mmc->max_req_size = BUFFER_SIZE; in goldfish_mmc_probe()
510 mmc->max_seg_size = mmc->max_req_size; in goldfish_mmc_probe()
523 dev_warn(mmc_dev(host->mmc), in goldfish_mmc_probe()
531 mmc_add_host(mmc); in goldfish_mmc_probe()
540 mmc_free_host(host->mmc); in goldfish_mmc_probe()
553 mmc_remove_host(host->mmc); in goldfish_mmc_remove()
557 mmc_free_host(host->mmc); in goldfish_mmc_remove()