Lines Matching refs:oms
37 struct of_mmc_spi *oms = to_of_mmc_spi(dev); in of_mmc_spi_init() local
39 return request_threaded_irq(oms->detect_irq, NULL, irqhandler, in of_mmc_spi_init()
45 struct of_mmc_spi *oms = to_of_mmc_spi(dev); in of_mmc_spi_exit() local
47 free_irq(oms->detect_irq, mmc); in of_mmc_spi_exit()
54 struct of_mmc_spi *oms; in mmc_spi_get_pdata() local
59 oms = kzalloc(sizeof(*oms), GFP_KERNEL); in mmc_spi_get_pdata()
60 if (!oms) in mmc_spi_get_pdata()
63 if (mmc_of_parse_voltage(mmc, &oms->pdata.ocr_mask) < 0) in mmc_spi_get_pdata()
66 oms->detect_irq = spi->irq; in mmc_spi_get_pdata()
67 if (oms->detect_irq > 0) { in mmc_spi_get_pdata()
68 oms->pdata.init = of_mmc_spi_init; in mmc_spi_get_pdata()
69 oms->pdata.exit = of_mmc_spi_exit; in mmc_spi_get_pdata()
71 oms->pdata.caps |= MMC_CAP_NEEDS_POLL; in mmc_spi_get_pdata()
74 oms->pdata.caps |= MMC_CAP_SD_HIGHSPEED; in mmc_spi_get_pdata()
76 oms->pdata.caps |= MMC_CAP_MMC_HIGHSPEED; in mmc_spi_get_pdata()
78 dev->platform_data = &oms->pdata; in mmc_spi_get_pdata()
81 kfree(oms); in mmc_spi_get_pdata()
89 struct of_mmc_spi *oms = to_of_mmc_spi(dev); in mmc_spi_put_pdata() local
94 kfree(oms); in mmc_spi_put_pdata()