Lines Matching refs:pdata

67 	struct pxamci_platform_data *pdata;  member
95 if (host->pdata && host->pdata->ocr_mask) in pxamci_init_ocr()
102 host->mmc->ocr_avail = host->pdata ? in pxamci_init_ocr()
103 host->pdata->ocr_mask : in pxamci_init_ocr()
127 if (!host->vcc && host->pdata && in pxamci_set_power()
128 gpio_is_valid(host->pdata->gpio_power)) { in pxamci_set_power()
129 on = ((1 << vdd) & host->pdata->ocr_mask); in pxamci_set_power()
130 gpio_set_value(host->pdata->gpio_power, in pxamci_set_power()
131 !!on ^ host->pdata->gpio_power_invert); in pxamci_set_power()
133 if (!host->vcc && host->pdata && host->pdata->setpower) in pxamci_set_power()
134 return host->pdata->setpower(mmc_dev(host->mmc), vdd); in pxamci_set_power()
458 if (host->pdata && gpio_is_valid(host->pdata->gpio_card_ro)) in pxamci_get_ro()
460 if (host->pdata && host->pdata->get_ro) in pxamci_get_ro()
461 return !!host->pdata->get_ro(mmc_dev(mmc)); in pxamci_get_ro()
594 mmc_detect_change(devid, msecs_to_jiffies(host->pdata->detect_delay_ms)); in pxamci_detect_irq()
609 struct pxamci_platform_data *pdata; in pxamci_of_init() local
615 pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); in pxamci_of_init()
616 if (!pdata) in pxamci_of_init()
619 pdata->gpio_card_detect = in pxamci_of_init()
621 pdata->gpio_card_ro = in pxamci_of_init()
625 pdata->gpio_power = in pxamci_of_init()
629 pdata->detect_delay_ms = tmp; in pxamci_of_init()
631 pdev->dev.platform_data = pdata; in pxamci_of_init()
695 host->pdata = pdev->dev.platform_data; in pxamci_probe()
785 if (host->pdata) { in pxamci_probe()
786 gpio_cd = host->pdata->gpio_card_detect; in pxamci_probe()
787 gpio_ro = host->pdata->gpio_card_ro; in pxamci_probe()
788 gpio_power = host->pdata->gpio_power; in pxamci_probe()
799 host->pdata->gpio_power_invert); in pxamci_probe()
807 mmc->caps2 |= host->pdata->gpio_card_ro_invert ? in pxamci_probe()
818 if (host->pdata && host->pdata->init) in pxamci_probe()
819 host->pdata->init(&pdev->dev, pxamci_detect_irq, mmc); in pxamci_probe()
821 if (gpio_is_valid(gpio_power) && host->pdata->setpower) in pxamci_probe()
823 if (gpio_is_valid(gpio_ro) && host->pdata->get_ro) in pxamci_probe()
857 if (host->pdata) { in pxamci_remove()
858 gpio_cd = host->pdata->gpio_card_detect; in pxamci_remove()
859 gpio_ro = host->pdata->gpio_card_ro; in pxamci_remove()
860 gpio_power = host->pdata->gpio_power; in pxamci_remove()
865 if (host->pdata && host->pdata->exit) in pxamci_remove()
866 host->pdata->exit(&pdev->dev, mmc); in pxamci_remove()