Lines Matching refs:dev
26 #include "ccp-dev.h"
64 match = of_match_node(sp_of_match, pdev->dev.of_node);
76 match = acpi_match_device(sp_acpi_match, &pdev->dev);
86 struct device *dev = sp->dev;
87 struct platform_device *pdev = to_platform_device(dev);
94 dev_notice(dev, "unable to get IRQ (%d)\n", ret);
104 dev_notice(dev, "unable to get IRQ (%d)\n", ret);
118 struct device *dev = &pdev->dev;
123 sp = sp_alloc_struct(dev);
127 sp_platform = devm_kzalloc(dev, sizeof(*sp_platform), GFP_KERNEL);
132 sp->dev_vdata = pdev->dev.of_node ? sp_get_of_version(pdev)
136 dev_err(dev, "missing driver data\n");
146 attr = device_get_dma_attr(dev);
148 dev_err(dev, "DMA is not supported");
158 ret = dma_set_mask_and_coherent(dev, DMA_BIT_MASK(48));
160 dev_err(dev, "dma_set_mask_and_coherent failed (%d)\n", ret);
168 dev_set_drvdata(dev, sp);
174 dev_notice(dev, "enabled\n");
179 dev_notice(dev, "initialization failed\n");
185 struct device *dev = &pdev->dev;
186 struct sp_device *sp = dev_get_drvdata(dev);
190 dev_notice(dev, "disabled\n");
199 struct device *dev = &pdev->dev;
200 struct sp_device *sp = dev_get_drvdata(dev);
207 struct device *dev = &pdev->dev;
208 struct sp_device *sp = dev_get_drvdata(dev);