Lines Matching refs:dev

62 static int atana33xc20_suspend(struct device *dev)
64 struct atana33xc20_panel *p = dev_get_drvdata(dev);
84 static int atana33xc20_resume(struct device *dev)
86 struct atana33xc20_panel *p = dev_get_drvdata(dev);
111 dev_warn(dev, "Error waiting for HPD GPIO: %d\n", ret);
120 dev_warn(dev, "Controller error waiting for HPD: %d\n", ret);
214 ret = pm_runtime_put_sync_suspend(panel->dev);
231 ret = pm_runtime_get_sync(panel->dev);
233 pm_runtime_put_autosuspend(panel->dev);
245 struct dp_aux_ep_device *aux_ep = to_dp_aux_ep_dev(panel->dev);
248 pm_runtime_get_sync(panel->dev);
254 pm_runtime_mark_last_busy(panel->dev);
255 pm_runtime_put_autosuspend(panel->dev);
281 struct device *dev = &aux_ep->dev;
284 panel = devm_kzalloc(dev, sizeof(*panel), GFP_KERNEL);
287 dev_set_drvdata(dev, panel);
291 panel->supply = devm_regulator_get(dev, "power");
293 return dev_err_probe(dev, PTR_ERR(panel->supply),
296 panel->el_on3_gpio = devm_gpiod_get(dev, "enable", GPIOD_OUT_LOW);
298 return dev_err_probe(dev, PTR_ERR(panel->el_on3_gpio),
301 panel->no_hpd = of_property_read_bool(dev->of_node, "no-hpd");
303 panel->hpd_gpio = devm_gpiod_get_optional(dev, "hpd", GPIOD_IN);
305 return dev_err_probe(dev, PTR_ERR(panel->hpd_gpio),
309 pm_runtime_enable(dev);
310 ret = devm_add_action_or_reset(dev, atana33xc20_runtime_disable, dev);
313 pm_runtime_set_autosuspend_delay(dev, 2000);
314 pm_runtime_use_autosuspend(dev);
315 ret = devm_add_action_or_reset(dev, atana33xc20_dont_use_autosuspend, dev);
319 drm_panel_init(&panel->base, dev, &atana33xc20_funcs, DRM_MODE_CONNECTOR_eDP);
321 pm_runtime_get_sync(dev);
323 pm_runtime_mark_last_busy(dev);
324 pm_runtime_put_autosuspend(dev);
326 return dev_err_probe(dev, ret,
336 struct device *dev = &aux_ep->dev;
337 struct atana33xc20_panel *panel = dev_get_drvdata(dev);
348 struct device *dev = &aux_ep->dev;
349 struct atana33xc20_panel *panel = dev_get_drvdata(dev);