Lines Matching refs:pdata
179 struct sdhci_pxa_platdata *pdata = pdev->dev.platform_data; in pxav3_reset() local
188 if (pdata && 0 != pdata->clk_delay_cycles) { in pxav3_reset()
192 tmp |= (pdata->clk_delay_cycles & SDCLK_DELAY_MASK) in pxav3_reset()
341 struct sdhci_pxa_platdata *pdata; in pxav3_get_mmc_pdata() local
345 pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); in pxav3_get_mmc_pdata()
346 if (!pdata) in pxav3_get_mmc_pdata()
351 pdata->clk_delay_cycles = clk_delay_cycles; in pxav3_get_mmc_pdata()
353 return pdata; in pxav3_get_mmc_pdata()
365 struct sdhci_pxa_platdata *pdata = pdev->dev.platform_data; in sdhci_pxav3_probe() local
417 pdata = pxav3_get_mmc_pdata(dev); in sdhci_pxav3_probe()
418 pdev->dev.platform_data = pdata; in sdhci_pxav3_probe()
419 } else if (pdata) { in sdhci_pxav3_probe()
421 if (pdata->flags & PXA_FLAG_CARD_PERMANENT) in sdhci_pxav3_probe()
425 if (pdata->flags & PXA_FLAG_SD_8_BIT_CAPABLE_SLOT) in sdhci_pxav3_probe()
428 if (pdata->quirks) in sdhci_pxav3_probe()
429 host->quirks |= pdata->quirks; in sdhci_pxav3_probe()
430 if (pdata->quirks2) in sdhci_pxav3_probe()
431 host->quirks2 |= pdata->quirks2; in sdhci_pxav3_probe()
432 if (pdata->host_caps) in sdhci_pxav3_probe()
433 host->mmc->caps |= pdata->host_caps; in sdhci_pxav3_probe()
434 if (pdata->host_caps2) in sdhci_pxav3_probe()
435 host->mmc->caps2 |= pdata->host_caps2; in sdhci_pxav3_probe()
436 if (pdata->pm_caps) in sdhci_pxav3_probe()
437 host->mmc->pm_caps |= pdata->pm_caps; in sdhci_pxav3_probe()
439 if (gpio_is_valid(pdata->ext_cd_gpio)) { in sdhci_pxav3_probe()
440 ret = mmc_gpio_request_cd(host->mmc, pdata->ext_cd_gpio, in sdhci_pxav3_probe()