Home
last modified time | relevance | path

Searched refs:rcdu (Results 1 – 19 of 19) sorted by relevance

/drivers/gpu/drm/rcar-du/
Drcar_du_kms.c120 struct rcar_du_device *rcdu = dev->dev_private; in rcar_du_dumb_create() local
127 if (rcar_du_needs(rcdu, RCAR_DU_QUIRK_ALIGN_128B)) in rcar_du_dumb_create()
141 struct rcar_du_device *rcdu = dev->dev_private; in rcar_du_fb_create() local
161 if (rcar_du_needs(rcdu, RCAR_DU_QUIRK_ALIGN_128B)) in rcar_du_fb_create()
186 struct rcar_du_device *rcdu = dev->dev_private; in rcar_du_output_poll_changed() local
188 drm_fbdev_cma_hotplug_event(rcdu->fbdev); in rcar_du_output_poll_changed()
265 struct rcar_du_device *rcdu = dev->dev_private; in rcar_du_atomic_check() local
289 dev_dbg(rcdu->dev, "%s: checking plane (%u,%u)\n", __func__, in rcar_du_atomic_check()
297 dev_dbg(rcdu->dev, "%s: plane is being disabled\n", in rcar_du_atomic_check()
309 dev_dbg(rcdu->dev, "%s: plane needs reallocation\n", in rcar_du_atomic_check()
[all …]
Drcar_du_drv.c149 struct rcar_du_device *rcdu = dev->dev_private; in rcar_du_lastclose() local
151 drm_fbdev_cma_restore_mode(rcdu->fbdev); in rcar_du_lastclose()
156 struct rcar_du_device *rcdu = dev->dev_private; in rcar_du_enable_vblank() local
158 rcar_du_crtc_enable_vblank(&rcdu->crtcs[pipe], true); in rcar_du_enable_vblank()
165 struct rcar_du_device *rcdu = dev->dev_private; in rcar_du_disable_vblank() local
167 rcar_du_crtc_enable_vblank(&rcdu->crtcs[pipe], false); in rcar_du_disable_vblank()
220 struct rcar_du_device *rcdu = dev_get_drvdata(dev); in rcar_du_pm_suspend() local
222 drm_kms_helper_poll_disable(rcdu->ddev); in rcar_du_pm_suspend()
230 struct rcar_du_device *rcdu = dev_get_drvdata(dev); in rcar_du_pm_resume() local
234 drm_kms_helper_poll_enable(rcdu->ddev); in rcar_du_pm_resume()
[all …]
Drcar_du_crtc.c34 struct rcar_du_device *rcdu = rcrtc->group->dev; in rcar_du_crtc_read() local
36 return rcar_du_read(rcdu, rcrtc->mmio_offset + reg); in rcar_du_crtc_read()
41 struct rcar_du_device *rcdu = rcrtc->group->dev; in rcar_du_crtc_write() local
43 rcar_du_write(rcdu, rcrtc->mmio_offset + reg, data); in rcar_du_crtc_write()
48 struct rcar_du_device *rcdu = rcrtc->group->dev; in rcar_du_crtc_clr() local
50 rcar_du_write(rcdu, rcrtc->mmio_offset + reg, in rcar_du_crtc_clr()
51 rcar_du_read(rcdu, rcrtc->mmio_offset + reg) & ~clr); in rcar_du_crtc_clr()
56 struct rcar_du_device *rcdu = rcrtc->group->dev; in rcar_du_crtc_set() local
58 rcar_du_write(rcdu, rcrtc->mmio_offset + reg, in rcar_du_crtc_set()
59 rcar_du_read(rcdu, rcrtc->mmio_offset + reg) | set); in rcar_du_crtc_set()
[all …]
Drcar_du_encoder.c122 int rcar_du_encoder_init(struct rcar_du_device *rcdu, in rcar_du_encoder_init() argument
133 renc = devm_kzalloc(rcdu->dev, sizeof(*renc), GFP_KERNEL); in rcar_du_encoder_init()
142 renc->lvds = rcdu->lvds[0]; in rcar_du_encoder_init()
146 renc->lvds = rcdu->lvds[1]; in rcar_du_encoder_init()
166 encoder_type = rcdu->info->routes[output].encoder_type; in rcar_du_encoder_init()
171 ret = rcar_du_hdmienc_init(rcdu, renc, enc_node); in rcar_du_encoder_init()
175 ret = drm_encoder_init(rcdu->ddev, encoder, &encoder_funcs, in rcar_du_encoder_init()
185 ret = rcar_du_lvds_connector_init(rcdu, renc, con_node); in rcar_du_encoder_init()
189 ret = rcar_du_vga_connector_init(rcdu, renc); in rcar_du_encoder_init()
193 ret = rcar_du_hdmi_connector_init(rcdu, renc); in rcar_du_encoder_init()
[all …]
Drcar_du_drv.h101 static inline bool rcar_du_has(struct rcar_du_device *rcdu, in rcar_du_has() argument
104 return rcdu->info->features & feature; in rcar_du_has()
107 static inline bool rcar_du_needs(struct rcar_du_device *rcdu, in rcar_du_needs() argument
110 return rcdu->info->quirks & quirk; in rcar_du_needs()
113 static inline u32 rcar_du_read(struct rcar_du_device *rcdu, u32 reg) in rcar_du_read() argument
115 return ioread32(rcdu->mmio + reg); in rcar_du_read()
118 static inline void rcar_du_write(struct rcar_du_device *rcdu, u32 reg, u32 data) in rcar_du_write() argument
120 iowrite32(data, rcdu->mmio + reg); in rcar_du_write()
Drcar_du_plane.c239 struct rcar_du_device *rcdu = rplane->group->dev; in rcar_du_plane_atomic_check() local
248 dev_dbg(rcdu->dev, "%s: scaling not supported\n", __func__); in rcar_du_plane_atomic_check()
254 dev_dbg(rcdu->dev, "%s: unsupported format %08x\n", __func__, in rcar_du_plane_atomic_check()
330 struct rcar_du_device *rcdu = to_rcar_plane(plane)->group->dev; in rcar_du_plane_atomic_set_property() local
332 if (property == rcdu->props.alpha) in rcar_du_plane_atomic_set_property()
334 else if (property == rcdu->props.colorkey) in rcar_du_plane_atomic_set_property()
336 else if (property == rcdu->props.zpos) in rcar_du_plane_atomic_set_property()
350 struct rcar_du_device *rcdu = to_rcar_plane(plane)->group->dev; in rcar_du_plane_atomic_get_property() local
352 if (property == rcdu->props.alpha) in rcar_du_plane_atomic_get_property()
354 else if (property == rcdu->props.colorkey) in rcar_du_plane_atomic_get_property()
[all …]
Drcar_du_vgacon.c50 int rcar_du_vga_connector_init(struct rcar_du_device *rcdu, in rcar_du_vga_connector_init() argument
58 rcon = devm_kzalloc(rcdu->dev, sizeof(*rcon), GFP_KERNEL); in rcar_du_vga_connector_init()
67 ret = drm_connector_init(rcdu->ddev, connector, &connector_funcs, in rcar_du_vga_connector_init()
76 rcdu->ddev->mode_config.dpms_property, DRM_MODE_DPMS_OFF); in rcar_du_vga_connector_init()
Drcar_du_group.c165 static int rcar_du_set_dpad0_routing(struct rcar_du_device *rcdu) in rcar_du_set_dpad0_routing() argument
169 if (!rcar_du_has(rcdu, RCAR_DU_FEATURE_EXT_CTRL_REGS)) in rcar_du_set_dpad0_routing()
177 ret = clk_prepare_enable(rcdu->crtcs[0].clock); in rcar_du_set_dpad0_routing()
181 rcar_du_group_setup_defr8(&rcdu->groups[0]); in rcar_du_set_dpad0_routing()
183 clk_disable_unprepare(rcdu->crtcs[0].clock); in rcar_du_set_dpad0_routing()
Drcar_du_lvdsenc.c165 int rcar_du_lvdsenc_init(struct rcar_du_device *rcdu) in rcar_du_lvdsenc_init() argument
167 struct platform_device *pdev = to_platform_device(rcdu->dev); in rcar_du_lvdsenc_init()
172 for (i = 0; i < rcdu->info->num_lvds; ++i) { in rcar_du_lvdsenc_init()
179 lvds->dev = rcdu; in rcar_du_lvdsenc_init()
188 rcdu->lvds[i] = lvds; in rcar_du_lvdsenc_init()
Drcar_du_lvdscon.c81 int rcar_du_lvds_connector_init(struct rcar_du_device *rcdu, in rcar_du_lvds_connector_init() argument
91 lvdscon = devm_kzalloc(rcdu->dev, sizeof(*lvdscon), GFP_KERNEL); in rcar_du_lvds_connector_init()
108 ret = drm_connector_init(rcdu->ddev, connector, &connector_funcs, in rcar_du_lvds_connector_init()
117 rcdu->ddev->mode_config.dpms_property, DRM_MODE_DPMS_OFF); in rcar_du_lvds_connector_init()
Drcar_du_hdmicon.c81 int rcar_du_hdmi_connector_init(struct rcar_du_device *rcdu, in rcar_du_hdmi_connector_init() argument
89 rcon = devm_kzalloc(rcdu->dev, sizeof(*rcon), GFP_KERNEL); in rcar_du_hdmi_connector_init()
99 ret = drm_connector_init(rcdu->ddev, connector, &connector_funcs, in rcar_du_hdmi_connector_init()
108 rcdu->ddev->mode_config.dpms_property, DRM_MODE_DPMS_OFF); in rcar_du_hdmi_connector_init()
Drcar_du_hdmienc.c122 int rcar_du_hdmienc_init(struct rcar_du_device *rcdu, in rcar_du_hdmienc_init() argument
131 hdmienc = devm_kzalloc(rcdu->dev, sizeof(*hdmienc), GFP_KERNEL); in rcar_du_hdmienc_init()
149 ret = driver->encoder_init(i2c_slave, rcdu->ddev, &renc->slave); in rcar_du_hdmienc_init()
153 ret = drm_encoder_init(rcdu->ddev, encoder, &encoder_funcs, in rcar_du_hdmienc_init()
Drcar_du_hdmicon.h21 int rcar_du_hdmi_connector_init(struct rcar_du_device *rcdu,
24 static inline int rcar_du_hdmi_connector_init(struct rcar_du_device *rcdu, in rcar_du_hdmi_connector_init() argument
Drcar_du_hdmienc.h24 int rcar_du_hdmienc_init(struct rcar_du_device *rcdu,
27 static inline int rcar_du_hdmienc_init(struct rcar_du_device *rcdu, in rcar_du_hdmienc_init() argument
Drcar_du_lvdsenc.h30 int rcar_du_lvdsenc_init(struct rcar_du_device *rcdu);
34 static inline int rcar_du_lvdsenc_init(struct rcar_du_device *rcdu) in rcar_du_lvdsenc_init() argument
Drcar_du_vgacon.h20 int rcar_du_vga_connector_init(struct rcar_du_device *rcdu,
Drcar_du_lvdscon.h20 int rcar_du_lvds_connector_init(struct rcar_du_device *rcdu,
Drcar_du_kms.h34 int rcar_du_modeset_init(struct rcar_du_device *rcdu);
Drcar_du_encoder.h55 int rcar_du_encoder_init(struct rcar_du_device *rcdu,