Lines Matching refs:pdata
51 struct s3c_sdhci_platdata *pdata; member
393 struct sdhci_host *host, struct s3c_sdhci_platdata *pdata) in sdhci_s3c_parse_dt() argument
401 pdata->max_width = max_width; in sdhci_s3c_parse_dt()
405 pdata->cd_type = S3C_SDHCI_CD_NONE; in sdhci_s3c_parse_dt()
410 pdata->cd_type = S3C_SDHCI_CD_PERMANENT; in sdhci_s3c_parse_dt()
418 pdata->cd_type = S3C_SDHCI_CD_INTERNAL; in sdhci_s3c_parse_dt()
423 struct sdhci_host *host, struct s3c_sdhci_platdata *pdata) in sdhci_s3c_parse_dt() argument
447 struct s3c_sdhci_platdata *pdata; in sdhci_s3c_probe() local
473 pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); in sdhci_s3c_probe()
474 if (!pdata) { in sdhci_s3c_probe()
480 ret = sdhci_s3c_parse_dt(&pdev->dev, host, pdata); in sdhci_s3c_probe()
484 memcpy(pdata, pdev->dev.platform_data, sizeof(*pdata)); in sdhci_s3c_probe()
492 sc->pdata = pdata; in sdhci_s3c_probe()
536 if (pdata->cfg_gpio) in sdhci_s3c_probe()
537 pdata->cfg_gpio(pdev, pdata->max_width); in sdhci_s3c_probe()
572 if (pdata->cd_type == S3C_SDHCI_CD_NONE || in sdhci_s3c_probe()
573 pdata->cd_type == S3C_SDHCI_CD_PERMANENT) in sdhci_s3c_probe()
576 if (pdata->cd_type == S3C_SDHCI_CD_PERMANENT) in sdhci_s3c_probe()
579 switch (pdata->max_width) { in sdhci_s3c_probe()
587 if (pdata->pm_caps) in sdhci_s3c_probe()
588 host->mmc->pm_caps |= pdata->pm_caps; in sdhci_s3c_probe()
607 if (pdata->host_caps) in sdhci_s3c_probe()
608 host->mmc->caps |= pdata->host_caps; in sdhci_s3c_probe()
610 if (pdata->host_caps2) in sdhci_s3c_probe()
611 host->mmc->caps2 |= pdata->host_caps2; in sdhci_s3c_probe()
629 if (pdata->cd_type != S3C_SDHCI_CD_INTERNAL) in sdhci_s3c_probe()
655 if (sc->pdata->cd_type != S3C_SDHCI_CD_INTERNAL) in sdhci_s3c_remove()