Lines Matching defs:device

10 #include <linux/device.h>
52 struct device *device;
60 device = &aux_dev->dev;
62 dev = mei_me_dev_init(device, cfg, adev->slow_firmware);
69 hw->mem_addr = devm_ioremap_resource(device, &adev->bar);
78 dev_set_drvdata(device, dev);
92 "kmegscirqd/%s", dev_name(device));
95 dev_err(device, "unable to create kernel thread: %d\n", ret);
99 ret = devm_request_threaded_irq(device, hw->irq,
104 dev_err(device, "irq register failed %d\n", ret);
109 pm_runtime_get_noresume(device);
110 pm_runtime_set_active(device);
111 pm_runtime_enable(device);
113 /* Continue to char device setup in spite of firmware handshake failure.
118 dev_warn(device, "init hw failure.\n");
120 pm_runtime_set_autosuspend_delay(device, MEI_GSC_RPM_TIMEOUT);
121 pm_runtime_use_autosuspend(device);
123 ret = mei_register(dev, device);
127 pm_runtime_put_noidle(device);
133 devm_free_irq(device, hw->irq, dev);
136 dev_err(device, "probe failed: %d\n", ret);
137 dev_set_drvdata(device, NULL);
167 static int __maybe_unused mei_gsc_pm_suspend(struct device *device)
169 struct mei_device *dev = dev_get_drvdata(device);
181 static int __maybe_unused mei_gsc_pm_resume(struct device *device)
183 struct mei_device *dev = dev_get_drvdata(device);
193 aux_dev = to_auxiliary_dev(device);
210 static int __maybe_unused mei_gsc_pm_runtime_idle(struct device *device)
212 struct mei_device *dev = dev_get_drvdata(device);
217 pm_runtime_autosuspend(device);
222 static int __maybe_unused mei_gsc_pm_runtime_suspend(struct device *device)
224 struct mei_device *dev = dev_get_drvdata(device);
249 static int __maybe_unused mei_gsc_pm_runtime_resume(struct device *device)
251 struct mei_device *dev = dev_get_drvdata(device);