Lines Matching refs:pdata
180 struct sdhci_pxa_platdata *pdata = pdev->dev.platform_data; in pxav3_reset() local
189 if (pdata && 0 != pdata->clk_delay_cycles) { in pxav3_reset()
193 tmp |= (pdata->clk_delay_cycles & SDCLK_DELAY_MASK) in pxav3_reset()
339 struct sdhci_pxa_platdata *pdata; in pxav3_get_mmc_pdata() local
343 pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); in pxav3_get_mmc_pdata()
344 if (!pdata) in pxav3_get_mmc_pdata()
349 pdata->clk_delay_cycles = clk_delay_cycles; in pxav3_get_mmc_pdata()
351 return pdata; in pxav3_get_mmc_pdata()
363 struct sdhci_pxa_platdata *pdata = pdev->dev.platform_data; in sdhci_pxav3_probe() local
415 pdata = pxav3_get_mmc_pdata(dev); in sdhci_pxav3_probe()
416 pdev->dev.platform_data = pdata; in sdhci_pxav3_probe()
417 } else if (pdata) { in sdhci_pxav3_probe()
419 if (pdata->flags & PXA_FLAG_CARD_PERMANENT) in sdhci_pxav3_probe()
423 if (pdata->flags & PXA_FLAG_SD_8_BIT_CAPABLE_SLOT) in sdhci_pxav3_probe()
426 if (pdata->quirks) in sdhci_pxav3_probe()
427 host->quirks |= pdata->quirks; in sdhci_pxav3_probe()
428 if (pdata->quirks2) in sdhci_pxav3_probe()
429 host->quirks2 |= pdata->quirks2; in sdhci_pxav3_probe()
430 if (pdata->host_caps) in sdhci_pxav3_probe()
431 host->mmc->caps |= pdata->host_caps; in sdhci_pxav3_probe()
432 if (pdata->host_caps2) in sdhci_pxav3_probe()
433 host->mmc->caps2 |= pdata->host_caps2; in sdhci_pxav3_probe()
434 if (pdata->pm_caps) in sdhci_pxav3_probe()
435 host->mmc->pm_caps |= pdata->pm_caps; in sdhci_pxav3_probe()
437 if (gpio_is_valid(pdata->ext_cd_gpio)) { in sdhci_pxav3_probe()
438 ret = mmc_gpio_request_cd(host->mmc, pdata->ext_cd_gpio, in sdhci_pxav3_probe()