Lines Matching refs:oms
38 struct of_mmc_spi *oms = to_of_mmc_spi(dev); in of_mmc_spi_init() local
40 return request_threaded_irq(oms->detect_irq, NULL, irqhandler, in of_mmc_spi_init()
46 struct of_mmc_spi *oms = to_of_mmc_spi(dev); in of_mmc_spi_exit() local
48 free_irq(oms->detect_irq, mmc); in of_mmc_spi_exit()
55 struct of_mmc_spi *oms; in mmc_spi_get_pdata() local
60 oms = kzalloc(sizeof(*oms), GFP_KERNEL); in mmc_spi_get_pdata()
61 if (!oms) in mmc_spi_get_pdata()
64 if (mmc_of_parse_voltage(mmc, &oms->pdata.ocr_mask) < 0) in mmc_spi_get_pdata()
67 oms->detect_irq = spi->irq; in mmc_spi_get_pdata()
68 if (oms->detect_irq > 0) { in mmc_spi_get_pdata()
69 oms->pdata.init = of_mmc_spi_init; in mmc_spi_get_pdata()
70 oms->pdata.exit = of_mmc_spi_exit; in mmc_spi_get_pdata()
72 oms->pdata.caps |= MMC_CAP_NEEDS_POLL; in mmc_spi_get_pdata()
75 oms->pdata.caps |= MMC_CAP_SD_HIGHSPEED; in mmc_spi_get_pdata()
77 oms->pdata.caps |= MMC_CAP_MMC_HIGHSPEED; in mmc_spi_get_pdata()
79 dev->platform_data = &oms->pdata; in mmc_spi_get_pdata()
82 kfree(oms); in mmc_spi_get_pdata()
90 struct of_mmc_spi *oms = to_of_mmc_spi(dev); in mmc_spi_put_pdata() local
95 kfree(oms); in mmc_spi_put_pdata()