Lines Matching refs:pd

230 	struct platform_device *pd;  member
277 dev_dbg(&host->pd->dev, "Command completed\n"); in mmcif_dma_complete()
280 dev_name(&host->pd->dev))) in mmcif_dma_complete()
310 dev_dbg(&host->pd->dev, "%s(): mapped %d -> %d, cookie %d\n", in sh_mmcif_start_dma_rx()
326 dev_warn(&host->pd->dev, in sh_mmcif_start_dma_rx()
331 dev_dbg(&host->pd->dev, "%s(): desc %p, cookie %d, sg[%d]\n", __func__, in sh_mmcif_start_dma_rx()
359 dev_dbg(&host->pd->dev, "%s(): mapped %d -> %d, cookie %d\n", in sh_mmcif_start_dma_tx()
375 dev_warn(&host->pd->dev, in sh_mmcif_start_dma_tx()
380 dev_dbg(&host->pd->dev, "%s(): desc %p, cookie %d\n", __func__, in sh_mmcif_start_dma_tx()
405 slave_data, &host->pd->dev, in sh_mmcif_request_dma_one()
408 dev_dbg(&host->pd->dev, "%s: %s: got channel %p\n", __func__, in sh_mmcif_request_dma_one()
414 res = platform_get_resource(host->pd, IORESOURCE_MEM, 0); in sh_mmcif_request_dma_one()
443 } else if (!host->pd->dev.of_node) { in sh_mmcif_request_dma()
479 struct sh_mmcif_plat_data *p = host->pd->dev.platform_data; in sh_mmcif_clock_control()
524 dev_dbg(&host->pd->dev, "ERR HOST_STS1 = %08x\n", state1); in sh_mmcif_error_manage()
525 dev_dbg(&host->pd->dev, "ERR HOST_STS2 = %08x\n", state2); in sh_mmcif_error_manage()
537 dev_err(&host->pd->dev, in sh_mmcif_error_manage()
542 dev_dbg(&host->pd->dev, "Forced end of command sequence\n"); in sh_mmcif_error_manage()
547 dev_err(&host->pd->dev, " CRC error: state %u, wait %u\n", in sh_mmcif_error_manage()
551 dev_err(&host->pd->dev, " Timeout: state %u, wait %u\n", in sh_mmcif_error_manage()
555 dev_dbg(&host->pd->dev, " End/Index error: state %u, wait %u\n", in sh_mmcif_error_manage()
602 dev_dbg(&host->pd->dev, "%s(): %d\n", __func__, data->error); in sh_mmcif_read_block()
643 dev_dbg(&host->pd->dev, "%s(): %d\n", __func__, data->error); in sh_mmcif_mread_block()
680 dev_dbg(&host->pd->dev, "%s(): %d\n", __func__, data->error); in sh_mmcif_write_block()
721 dev_dbg(&host->pd->dev, "%s(): %d\n", __func__, data->error); in sh_mmcif_mwrite_block()
778 dev_err(&host->pd->dev, "Unsupported response type.\n"); in sh_mmcif_set_cmd()
806 dev_err(&host->pd->dev, "Unsupported bus width.\n"); in sh_mmcif_set_cmd()
864 dev_err(&host->pd->dev, "Unsupported CMD%d\n", opc); in sh_mmcif_data_trans()
929 dev_err(&host->pd->dev, "unsupported stop cmd\n"); in sh_mmcif_stop_cmd()
944 dev_dbg(&host->pd->dev, "%s() rejected, state %u\n", __func__, host->state); in sh_mmcif_request()
1005 dev_dbg(&host->pd->dev, "%s() rejected, state %u\n", __func__, host->state); in sh_mmcif_set_ios()
1016 sh_mmcif_request_dma(host, host->pd->dev.platform_data); in sh_mmcif_set_ios()
1030 pm_runtime_put_sync(&host->pd->dev); in sh_mmcif_set_ios()
1043 pm_runtime_get_sync(&host->pd->dev); in sh_mmcif_set_ios()
1058 struct sh_mmcif_plat_data *p = host->pd->dev.platform_data; in sh_mmcif_get_cd()
1067 return p->get_cd(host->pd); in sh_mmcif_get_cd()
1093 dev_dbg(&host->pd->dev, "CMD%d error %d\n", in sh_mmcif_end_cmd()
1187 dev_dbg(&host->pd->dev, "IRQ thread state %u, wait %u: NULL mrq!\n", in sh_mmcif_irqt()
1225 dev_dbg(&host->pd->dev, "%s(): %d\n", __func__, mrq->stop->error); in sh_mmcif_irqt()
1235 dev_dbg(&host->pd->dev, "%s(): %d\n", __func__, mrq->data->error); in sh_mmcif_irqt()
1289 dev_dbg(&host->pd->dev, "IRQ state = 0x%08x incompletely cleared\n", in sh_mmcif_intr()
1294 dev_dbg(&host->pd->dev, "int err state = 0x%08x\n", state); in sh_mmcif_intr()
1298 dev_dbg(&host->pd->dev, "NULL IRQ state = 0x%08x\n", state); in sh_mmcif_intr()
1304 dev_dbg(&host->pd->dev, "Unexpected IRQ 0x%x\n", state); in sh_mmcif_intr()
1327 dev_err(&host->pd->dev, "Timeout waiting for %u on CMD%u\n", in mmcif_timeout_work()
1364 struct sh_mmcif_plat_data *pd = host->pd->dev.platform_data; in sh_mmcif_init_ocr() local
1369 if (!pd) in sh_mmcif_init_ocr()
1373 mmc->ocr_avail = pd->ocr; in sh_mmcif_init_ocr()
1374 else if (pd->ocr) in sh_mmcif_init_ocr()
1383 struct sh_mmcif_plat_data *pd = pdev->dev.platform_data; in sh_mmcif_probe() local
1412 host->ccs_enable = !pd || !pd->ccs_unsupported; in sh_mmcif_probe()
1413 host->clk_ctrl2_enable = pd && pd->clk_ctrl2_present; in sh_mmcif_probe()
1415 host->pd = pdev; in sh_mmcif_probe()
1423 if (pd && pd->caps) in sh_mmcif_probe()
1424 mmc->caps |= pd->caps; in sh_mmcif_probe()
1472 if (pd && pd->use_cd_gpio) { in sh_mmcif_probe()
1473 ret = mmc_gpio_request_cd(mmc, pd->cd_gpio, 0); in sh_mmcif_probe()