Lines Matching defs:dev
31 struct device *dev = &pdev->dev;
34 match = device_get_match_data(dev);
38 data = devm_kmemdup(&pdev->dev, match, sizeof(*match), GFP_KERNEL);
42 chip = devm_kzalloc(dev, sizeof(*chip), GFP_KERNEL);
54 err = dma_coerce_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32));
59 data->pdata = dev_get_platdata(dev);
63 chip->dev = dev;
69 chip->clk = devm_clk_get_optional(chip->dev, "hclk");
76 pm_runtime_enable(&pdev->dev);
91 pm_runtime_disable(&pdev->dev);
108 dev_warn(chip->dev, "can't remove device properly: %d\n", ret);
110 pm_runtime_disable(&pdev->dev);
130 pm_runtime_get_sync(chip->dev);
132 pm_runtime_put_sync_suspend(chip->dev);
164 static int dw_suspend_late(struct device *dev)
166 struct dw_dma_chip_pdata *data = dev_get_drvdata(dev);
175 static int dw_resume_early(struct device *dev)
177 struct dw_dma_chip_pdata *data = dev_get_drvdata(dev);