• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/drivers/mmc/host/

Lines Matching refs:mmc

2  *  linux/drivers/mmc/imxmmc.c - Motorola i.MX MMCI driver
42 #include <linux/mmc/host.h>
43 #include <linux/mmc/card.h>
50 #include <asm/arch/mmc.h>
55 #define DRIVER_NAME "imx-mmc"
62 struct mmc_host *mmc;
133 dev_dbg(mmc_dev(host->mmc), "imxmci_stop_clock blocked, no luck\n");
179 dev_err(mmc_dev(host->mmc), "imxmci_start_clock blocked, no luck\n");
211 dev_dbg(mmc_dev(host->mmc), "busy wait timeout in %s, STATUS = 0x%x (0x%x)\n",
222 if(!(stat_mask & STATUS_END_CMD_RESP) || (host->mmc->ios.clock>=8000000))
223 dev_info(mmc_dev(host->mmc), "busy wait for %d usec in %s, STATUS = 0x%x (0x%x)\n",
276 host->dma_nents = dma_map_sg(mmc_dev(host->mmc), data->sg,
287 host->dma_nents = dma_map_sg(mmc_dev(host->mmc), data->sg,
302 dev_err(mmc_dev(host->mmc), "imxmci_setup_data datasz 0x%x > 0x%x dm_size\n",
386 dev_dbg(mmc_dev(host->mmc), "CMD%02d (0x%02x) mask set to 0x%04x\n",
412 mmc_request_done(host->mmc, req);
422 dma_unmap_sg(mmc_dev(host->mmc), data->sg, host->dma_nents,
427 dev_dbg(mmc_dev(host->mmc), "request failed. status: 0x%08x\n",stat);
458 dev_dbg(mmc_dev(host->mmc), "CMD TIMEOUT\n");
461 dev_dbg(mmc_dev(host->mmc), "cmd crc error\n");
480 dev_dbg(mmc_dev(host->mmc), "RESP 0x%08x, 0x%08x, 0x%08x, 0x%08x, error %d\n",
496 dev_warn(mmc_dev(host->mmc), "STATUS = 0x%04x\n",
516 dev_warn(mmc_dev(host->mmc), "imxmci_cmd_done: no request to finish\n");
542 dev_warn(mmc_dev(host->mmc), "imxmci_data_done: no request to finish\n");
562 dev_dbg(mmc_dev(host->mmc), "imxmci_cpu_driven_data running STATUS = 0x%x\n",
594 dev_dbg(mmc_dev(host->mmc), "imxmci_cpu_driven_data read %d burst %d STATUS = 0x%x\n",
605 dev_dbg(mmc_dev(host->mmc), "imxmci_cpu_driven_data read timeout STATUS = 0x%x\n",
630 dev_dbg(mmc_dev(host->mmc), "imxmci_cpu_driven_data write burst %d STATUS = 0x%x\n",
694 dev_err(mmc_dev(host->mmc), "%s TIMEOUT, hardware stucked STATUS = 0x%04x IMASK = 0x%04x\n",
696 dev_err(mmc_dev(host->mmc), "CMD_DAT_CONT = 0x%04x, MMC_BLK_LEN = 0x%04x, MMC_NOB = 0x%04x, DMA_CCR = 0x%08x\n",
698 dev_err(mmc_dev(host->mmc), "CMD%d, prevCMD%d, bus %d-bit, dma_size = 0x%x\n",
776 mmc_detect_change(host->mmc, msecs_to_jiffies(100));
781 static void imxmci_request(struct mmc_host *mmc, struct mmc_request *req)
783 struct imxmci_host *host = mmc_priv(mmc);
810 static void imxmci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
812 struct imxmci_host *host = mmc_priv(mmc);
859 dev_dbg(mmc_dev(host->mmc), "PERCLK2 %d MHz -> prescaler %d\n",
879 dev_dbg(mmc_dev(host->mmc), "MMC_CLK_RATE: 0x%08x\n", MMC_CLK_RATE);
916 dev_info(mmc_dev(host->mmc), "card %s\n",
938 struct mmc_host *mmc;
943 printk(KERN_INFO "i.MX mmc driver\n");
954 mmc = mmc_alloc_host(sizeof(struct imxmci_host), &pdev->dev);
955 if (!mmc) {
960 mmc->ops = &imxmci_ops;
961 mmc->f_min = 150000;
962 mmc->f_max = CLK_RATE/2;
963 mmc->ocr_avail = MMC_VDD_32_33;
964 mmc->caps = MMC_CAP_4_BIT_DATA | MMC_CAP_BYTEBLOCK;
967 mmc->max_hw_segs = 64;
968 mmc->max_phys_segs = 64;
969 mmc->max_seg_size = 64*512; /* default PAGE_CACHE_SIZE */
970 mmc->max_req_size = 64*512; /* default PAGE_CACHE_SIZE */
971 mmc->max_blk_size = 2048;
972 mmc->max_blk_count = 65535;
974 host = mmc_priv(mmc);
975 host->mmc = mmc;
996 dev_err(mmc_dev(host->mmc), "wrong rev.no. 0x%08x. aborting.\n",
1008 dev_err(mmc_dev(host->mmc), "imx_dma_request_by_prio failed\n");
1030 platform_set_drvdata(pdev, mmc);
1032 mmc_add_host(mmc);
1043 if (mmc)
1044 mmc_free_host(mmc);
1051 struct mmc_host *mmc = platform_get_drvdata(pdev);
1055 if (mmc) {
1056 struct imxmci_host *host = mmc_priv(mmc);
1061 mmc_remove_host(mmc);
1073 mmc_free_host(mmc);
1081 struct mmc_host *mmc = platform_get_drvdata(dev);
1084 if (mmc)
1085 ret = mmc_suspend_host(mmc, state);
1092 struct mmc_host *mmc = platform_get_drvdata(dev);
1096 if (mmc) {
1097 host = mmc_priv(mmc);
1100 ret = mmc_resume_host(mmc);