• Home
  • Raw
  • Download

Lines Matching refs:dssdev

35 void omapdss_default_get_resolution(struct omap_dss_device *dssdev,  in omapdss_default_get_resolution()  argument
38 *xres = dssdev->panel.timings.x_res; in omapdss_default_get_resolution()
39 *yres = dssdev->panel.timings.y_res; in omapdss_default_get_resolution()
43 int omapdss_default_get_recommended_bpp(struct omap_dss_device *dssdev) in omapdss_default_get_recommended_bpp() argument
45 switch (dssdev->type) { in omapdss_default_get_recommended_bpp()
47 if (dssdev->phy.dpi.data_lines == 24) in omapdss_default_get_recommended_bpp()
53 if (dssdev->ctrl.pixel_size == 24) in omapdss_default_get_recommended_bpp()
58 if (dsi_get_pixel_size(dssdev->panel.dsi_pix_fmt) > 16) in omapdss_default_get_recommended_bpp()
74 void omapdss_default_get_timings(struct omap_dss_device *dssdev, in omapdss_default_get_timings() argument
77 *timings = dssdev->panel.timings; in omapdss_default_get_timings()
83 struct omap_dss_device *dssdev = NULL; in dss_suspend_all_devices() local
85 for_each_dss_dev(dssdev) { in dss_suspend_all_devices()
86 if (!dssdev->driver) in dss_suspend_all_devices()
89 if (dssdev->state == OMAP_DSS_DISPLAY_ACTIVE) { in dss_suspend_all_devices()
90 dssdev->driver->disable(dssdev); in dss_suspend_all_devices()
91 dssdev->activate_after_resume = true; in dss_suspend_all_devices()
93 dssdev->activate_after_resume = false; in dss_suspend_all_devices()
102 struct omap_dss_device *dssdev = NULL; in dss_resume_all_devices() local
104 for_each_dss_dev(dssdev) { in dss_resume_all_devices()
105 if (!dssdev->driver) in dss_resume_all_devices()
108 if (dssdev->activate_after_resume) { in dss_resume_all_devices()
109 dssdev->driver->enable(dssdev); in dss_resume_all_devices()
110 dssdev->activate_after_resume = false; in dss_resume_all_devices()
119 struct omap_dss_device *dssdev = NULL; in dss_disable_all_devices() local
121 for_each_dss_dev(dssdev) { in dss_disable_all_devices()
122 if (!dssdev->driver) in dss_disable_all_devices()
125 if (dssdev->state == OMAP_DSS_DISPLAY_ACTIVE) in dss_disable_all_devices()
126 dssdev->driver->disable(dssdev); in dss_disable_all_devices()
134 int omapdss_register_display(struct omap_dss_device *dssdev) in omapdss_register_display() argument
136 struct omap_dss_driver *drv = dssdev->driver; in omapdss_register_display()
145 if (dssdev->dev->of_node) { in omapdss_register_display()
146 id = of_alias_get_id(dssdev->dev->of_node, "display"); in omapdss_register_display()
154 snprintf(dssdev->alias, sizeof(dssdev->alias), "display%d", id); in omapdss_register_display()
157 if (dssdev->dev->of_node) in omapdss_register_display()
158 of_property_read_string(dssdev->dev->of_node, "label", in omapdss_register_display()
159 &dssdev->name); in omapdss_register_display()
161 if (dssdev->name == NULL) in omapdss_register_display()
162 dssdev->name = dssdev->alias; in omapdss_register_display()
172 list_add_tail(&dssdev->panel_list, &panel_list); in omapdss_register_display()
178 void omapdss_unregister_display(struct omap_dss_device *dssdev) in omapdss_unregister_display() argument
181 list_del(&dssdev->panel_list); in omapdss_unregister_display()
186 struct omap_dss_device *omap_dss_get_device(struct omap_dss_device *dssdev) in omap_dss_get_device() argument
188 if (!try_module_get(dssdev->owner)) in omap_dss_get_device()
191 if (get_device(dssdev->dev) == NULL) { in omap_dss_get_device()
192 module_put(dssdev->owner); in omap_dss_get_device()
196 return dssdev; in omap_dss_get_device()
200 void omap_dss_put_device(struct omap_dss_device *dssdev) in omap_dss_put_device() argument
202 put_device(dssdev->dev); in omap_dss_put_device()
203 module_put(dssdev->owner); in omap_dss_put_device()
214 struct omap_dss_device *dssdev; in omap_dss_get_next_device() local
219 dssdev = NULL; in omap_dss_get_next_device()
224 dssdev = list_first_entry(&panel_list, struct omap_dss_device, in omap_dss_get_next_device()
226 omap_dss_get_device(dssdev); in omap_dss_get_next_device()
233 dssdev = list_entry(l, struct omap_dss_device, panel_list); in omap_dss_get_next_device()
234 if (dssdev == from) { in omap_dss_get_next_device()
236 dssdev = NULL; in omap_dss_get_next_device()
240 dssdev = list_entry(l->next, struct omap_dss_device, in omap_dss_get_next_device()
242 omap_dss_get_device(dssdev); in omap_dss_get_next_device()
249 dssdev = NULL; in omap_dss_get_next_device()
252 return dssdev; in omap_dss_get_next_device()
257 int (*match)(struct omap_dss_device *dssdev, void *data)) in omap_dss_find_device() argument
259 struct omap_dss_device *dssdev = NULL; in omap_dss_find_device() local
261 while ((dssdev = omap_dss_get_next_device(dssdev)) != NULL) { in omap_dss_find_device()
262 if (match(dssdev, data)) in omap_dss_find_device()
263 return dssdev; in omap_dss_find_device()