Lines Matching refs:dev

170 	struct	device		*dev;  member
291 dev_err(host->dev, "pbias reg enable fail\n"); in omap_hsmmc_set_pbias()
300 dev_err(host->dev, "pbias reg disable fail\n"); in omap_hsmmc_set_pbias()
393 dev_err(host->dev, "fail to disable boot enabled vmmc reg\n"); in omap_hsmmc_disable_boot_regulators()
399 dev_err(host->dev, in omap_hsmmc_disable_boot_regulators()
406 dev_err(host->dev, in omap_hsmmc_disable_boot_regulators()
426 mmc->supply.vqmmc = devm_regulator_get_optional(host->dev, in omap_hsmmc_reg_get()
430 if ((ret != -ENODEV) && host->dev->of_node) in omap_hsmmc_reg_get()
432 dev_dbg(host->dev, "unable to get vmmc_aux regulator %ld\n", in omap_hsmmc_reg_get()
437 host->pbias = devm_regulator_get_optional(host->dev, "pbias"); in omap_hsmmc_reg_get()
440 if ((ret != -ENODEV) && host->dev->of_node) { in omap_hsmmc_reg_get()
441 dev_err(host->dev, in omap_hsmmc_reg_get()
445 dev_dbg(host->dev, "unable to get pbias regulator %ld\n", in omap_hsmmc_reg_get()
741 omap_hsmmc_show_slot_name(struct device *dev, struct device_attribute *attr, in omap_hsmmc_show_slot_name() argument
744 struct mmc_host *mmc = container_of(dev, struct mmc_host, class_dev); in omap_hsmmc_show_slot_name()
919 dma_unmap_sg(chan->device->dev, in omap_hsmmc_dma_cleanup()
1174 dma_unmap_sg(chan->device->dev, in omap_hsmmc_dma_callback()
1200 dev_warn(host->dev, "[%s] invalid cookie: data->host_cookie %d" in omap_hsmmc_pre_dma_transfer()
1208 dma_len = dma_map_sg(chan->device->dev, data->sg, data->sg_len, in omap_hsmmc_pre_dma_transfer()
1394 dma_unmap_sg(c->device->dev, data->sg, data->sg_len, in omap_hsmmc_post_req()
1547 if (!host->dev->of_node || !host->wake_irq) in omap_hsmmc_configure_wake_irq()
1550 ret = dev_pm_set_dedicated_wake_irq(host->dev, host->wake_irq); in omap_hsmmc_configure_wake_irq()
1561 struct pinctrl *p = devm_pinctrl_get(host->dev); in omap_hsmmc_configure_wake_irq()
1568 dev_info(host->dev, "missing idle pinctrl state\n"); in omap_hsmmc_configure_wake_irq()
1581 dev_pm_clear_wake_irq(host->dev); in omap_hsmmc_configure_wake_irq()
1583 dev_warn(host->dev, "no SDIO IRQ support, falling back to polling\n"); in omap_hsmmc_configure_wake_irq()
1649 pm_runtime_get_sync(host->dev); in mmc_regs_show()
1666 pm_runtime_mark_last_busy(host->dev); in mmc_regs_show()
1667 pm_runtime_put_autosuspend(host->dev); in mmc_regs_show()
1726 static struct omap_hsmmc_platform_data *of_get_hsmmc_pdata(struct device *dev) in of_get_hsmmc_pdata() argument
1729 struct device_node *np = dev->of_node; in of_get_hsmmc_pdata()
1731 pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); in of_get_hsmmc_pdata()
1735 legacy = dev_get_platdata(dev); in of_get_hsmmc_pdata()
1757 *of_get_hsmmc_pdata(struct device *dev) in of_get_hsmmc_pdata() argument
1765 struct omap_hsmmc_platform_data *pdata = pdev->dev.platform_data; in omap_hsmmc_probe()
1774 match = of_match_device(of_match_ptr(omap_mmc_of_match), &pdev->dev); in omap_hsmmc_probe()
1776 pdata = of_get_hsmmc_pdata(&pdev->dev); in omap_hsmmc_probe()
1789 dev_err(&pdev->dev, "Platform Data is missing\n"); in omap_hsmmc_probe()
1801 mmc = mmc_alloc_host(sizeof(struct omap_hsmmc_host), &pdev->dev); in omap_hsmmc_probe()
1814 host->dev = &pdev->dev; in omap_hsmmc_probe()
1827 if (pdev->dev.of_node) in omap_hsmmc_probe()
1828 host->wake_irq = irq_of_parse_and_map(pdev->dev.of_node, 1); in omap_hsmmc_probe()
1841 host->fclk = devm_clk_get(&pdev->dev, "fck"); in omap_hsmmc_probe()
1849 …dev_info(&pdev->dev, "multiblock reads disabled due to 35xx erratum 2.1.1.128; MMC read performanc… in omap_hsmmc_probe()
1853 device_init_wakeup(&pdev->dev, true); in omap_hsmmc_probe()
1854 pm_runtime_enable(host->dev); in omap_hsmmc_probe()
1855 pm_runtime_get_sync(host->dev); in omap_hsmmc_probe()
1856 pm_runtime_set_autosuspend_delay(host->dev, MMC_AUTOSUSPEND_DELAY); in omap_hsmmc_probe()
1857 pm_runtime_use_autosuspend(host->dev); in omap_hsmmc_probe()
1861 host->dbclk = devm_clk_get(&pdev->dev, "mmchsdb_fck"); in omap_hsmmc_probe()
1894 host->rx_chan = dma_request_chan(&pdev->dev, "rx"); in omap_hsmmc_probe()
1901 host->tx_chan = dma_request_chan(&pdev->dev, "tx"); in omap_hsmmc_probe()
1916 dma_get_max_seg_size(host->rx_chan->device->dev), in omap_hsmmc_probe()
1917 dma_get_max_seg_size(host->tx_chan->device->dev)); in omap_hsmmc_probe()
1920 ret = devm_request_irq(&pdev->dev, host->irq, omap_hsmmc_irq, 0, in omap_hsmmc_probe()
1959 pm_runtime_mark_last_busy(host->dev); in omap_hsmmc_probe()
1960 pm_runtime_put_autosuspend(host->dev); in omap_hsmmc_probe()
1967 device_init_wakeup(&pdev->dev, false); in omap_hsmmc_probe()
1972 pm_runtime_dont_use_autosuspend(host->dev); in omap_hsmmc_probe()
1973 pm_runtime_put_sync(host->dev); in omap_hsmmc_probe()
1974 pm_runtime_disable(host->dev); in omap_hsmmc_probe()
1986 pm_runtime_get_sync(host->dev); in omap_hsmmc_remove()
1992 dev_pm_clear_wake_irq(host->dev); in omap_hsmmc_remove()
1993 pm_runtime_dont_use_autosuspend(host->dev); in omap_hsmmc_remove()
1994 pm_runtime_put_sync(host->dev); in omap_hsmmc_remove()
1995 pm_runtime_disable(host->dev); in omap_hsmmc_remove()
1996 device_init_wakeup(&pdev->dev, false); in omap_hsmmc_remove()
2003 static int omap_hsmmc_suspend(struct device *dev) in omap_hsmmc_suspend() argument
2005 struct omap_hsmmc_host *host = dev_get_drvdata(dev); in omap_hsmmc_suspend()
2010 pm_runtime_get_sync(host->dev); in omap_hsmmc_suspend()
2022 pm_runtime_put_sync(host->dev); in omap_hsmmc_suspend()
2027 static int omap_hsmmc_resume(struct device *dev) in omap_hsmmc_resume() argument
2029 struct omap_hsmmc_host *host = dev_get_drvdata(dev); in omap_hsmmc_resume()
2034 pm_runtime_get_sync(host->dev); in omap_hsmmc_resume()
2041 pm_runtime_mark_last_busy(host->dev); in omap_hsmmc_resume()
2042 pm_runtime_put_autosuspend(host->dev); in omap_hsmmc_resume()
2048 static int omap_hsmmc_runtime_suspend(struct device *dev) in omap_hsmmc_runtime_suspend() argument
2054 host = dev_get_drvdata(dev); in omap_hsmmc_runtime_suspend()
2056 dev_dbg(dev, "disabled\n"); in omap_hsmmc_runtime_suspend()
2071 dev_dbg(dev, "pending sdio irq, abort suspend\n"); in omap_hsmmc_runtime_suspend()
2075 pm_runtime_mark_last_busy(dev); in omap_hsmmc_runtime_suspend()
2080 pinctrl_pm_select_idle_state(dev); in omap_hsmmc_runtime_suspend()
2082 pinctrl_pm_select_idle_state(dev); in omap_hsmmc_runtime_suspend()
2090 static int omap_hsmmc_runtime_resume(struct device *dev) in omap_hsmmc_runtime_resume() argument
2095 host = dev_get_drvdata(dev); in omap_hsmmc_runtime_resume()
2097 dev_dbg(dev, "enabled\n"); in omap_hsmmc_runtime_resume()
2103 pinctrl_select_default_state(host->dev); in omap_hsmmc_runtime_resume()
2110 pinctrl_select_default_state(host->dev); in omap_hsmmc_runtime_resume()