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.c152 struct rcar_du_device *rcdu = dev->dev_private; in rcar_du_dumb_create() local
159 if (rcar_du_needs(rcdu, RCAR_DU_QUIRK_ALIGN_128B)) in rcar_du_dumb_create()
173 struct rcar_du_device *rcdu = dev->dev_private; in rcar_du_fb_create() local
194 if (rcar_du_needs(rcdu, RCAR_DU_QUIRK_ALIGN_128B)) in rcar_du_fb_create()
219 struct rcar_du_device *rcdu = dev->dev_private; in rcar_du_output_poll_changed() local
221 drm_fbdev_cma_hotplug_event(rcdu->fbdev); in rcar_du_output_poll_changed()
231 struct rcar_du_device *rcdu = dev->dev_private; in rcar_du_atomic_check() local
246 if (rcar_du_has(rcdu, RCAR_DU_FEATURE_VSP1_SOURCE)) in rcar_du_atomic_check()
262 struct rcar_du_device *rcdu = dev->dev_private; in rcar_du_atomic_complete() local
278 spin_lock(&rcdu->commit.wait.lock); in rcar_du_atomic_complete()
[all …]
Drcar_du_drv.c178 struct rcar_du_device *rcdu = dev->dev_private; in rcar_du_lastclose() local
180 drm_fbdev_cma_restore_mode(rcdu->fbdev); in rcar_du_lastclose()
185 struct rcar_du_device *rcdu = dev->dev_private; in rcar_du_enable_vblank() local
187 rcar_du_crtc_enable_vblank(&rcdu->crtcs[pipe], true); in rcar_du_enable_vblank()
194 struct rcar_du_device *rcdu = dev->dev_private; in rcar_du_disable_vblank() local
196 rcar_du_crtc_enable_vblank(&rcdu->crtcs[pipe], false); in rcar_du_disable_vblank()
249 struct rcar_du_device *rcdu = dev_get_drvdata(dev); in rcar_du_pm_suspend() local
251 drm_kms_helper_poll_disable(rcdu->ddev); in rcar_du_pm_suspend()
259 struct rcar_du_device *rcdu = dev_get_drvdata(dev); in rcar_du_pm_resume() local
263 drm_kms_helper_poll_enable(rcdu->ddev); in rcar_du_pm_resume()
[all …]
Drcar_du_crtc.c35 struct rcar_du_device *rcdu = rcrtc->group->dev; in rcar_du_crtc_read() local
37 return rcar_du_read(rcdu, rcrtc->mmio_offset + reg); in rcar_du_crtc_read()
42 struct rcar_du_device *rcdu = rcrtc->group->dev; in rcar_du_crtc_write() local
44 rcar_du_write(rcdu, rcrtc->mmio_offset + reg, data); in rcar_du_crtc_write()
49 struct rcar_du_device *rcdu = rcrtc->group->dev; in rcar_du_crtc_clr() local
51 rcar_du_write(rcdu, rcrtc->mmio_offset + reg, in rcar_du_crtc_clr()
52 rcar_du_read(rcdu, rcrtc->mmio_offset + reg) & ~clr); in rcar_du_crtc_clr()
57 struct rcar_du_device *rcdu = rcrtc->group->dev; in rcar_du_crtc_set() local
59 rcar_du_write(rcdu, rcrtc->mmio_offset + reg, in rcar_du_crtc_set()
60 rcar_du_read(rcdu, rcrtc->mmio_offset + reg) | set); in rcar_du_crtc_set()
[all …]
Drcar_du_plane.c137 struct rcar_du_device *rcdu = dev->dev_private; in rcar_du_atomic_check_planes() local
155 dev_dbg(rcdu->dev, "%s: checking plane (%u,%tu)\n", __func__, in rcar_du_atomic_check_planes()
163 dev_dbg(rcdu->dev, "%s: plane is being disabled\n", in rcar_du_atomic_check_planes()
175 dev_dbg(rcdu->dev, "%s: plane needs reallocation\n", in rcar_du_atomic_check_planes()
199 struct rcar_du_group *group = &rcdu->groups[index]; in rcar_du_atomic_check_planes()
202 dev_dbg(rcdu->dev, "%s: finding free planes for group %u\n", in rcar_du_atomic_check_planes()
222 dev_dbg(rcdu->dev, in rcar_du_atomic_check_planes()
232 dev_dbg(rcdu->dev, in rcar_du_atomic_check_planes()
244 dev_dbg(rcdu->dev, "%s: group %u free planes mask 0x%02x\n", in rcar_du_atomic_check_planes()
259 dev_dbg(rcdu->dev, "%s: allocating plane (%u,%tu)\n", __func__, in rcar_du_atomic_check_planes()
[all …]
Drcar_du_group.c59 struct rcar_du_device *rcdu = rgrp->dev; in rcar_du_group_setup_defr8() local
61 rcdu->info->routes[RCAR_DU_OUTPUT_DPAD0].possible_crtcs; in rcar_du_group_setup_defr8()
64 if (rcdu->info->gen < 3) { in rcar_du_group_setup_defr8()
73 defr8 |= DEFR8_DRGBS_DU(rcdu->dpad0_source); in rcar_du_group_setup_defr8()
92 struct rcar_du_device *rcdu = rgrp->dev; in rcar_du_group_setup() local
96 if (rcdu->info->gen < 3) { in rcar_du_group_setup()
120 if (rcdu->info->gen >= 3) in rcar_du_group_setup()
205 int rcar_du_set_dpad0_vsp1_routing(struct rcar_du_device *rcdu) in rcar_du_set_dpad0_vsp1_routing() argument
209 if (!rcar_du_has(rcdu, RCAR_DU_FEATURE_EXT_CTRL_REGS)) in rcar_du_set_dpad0_vsp1_routing()
217 ret = clk_prepare_enable(rcdu->crtcs[0].clock); in rcar_du_set_dpad0_vsp1_routing()
[all …]
Drcar_du_drv.h108 static inline bool rcar_du_has(struct rcar_du_device *rcdu, in rcar_du_has() argument
111 return rcdu->info->features & feature; in rcar_du_has()
114 static inline bool rcar_du_needs(struct rcar_du_device *rcdu, in rcar_du_needs() argument
117 return rcdu->info->quirks & quirk; in rcar_du_needs()
120 static inline u32 rcar_du_read(struct rcar_du_device *rcdu, u32 reg) in rcar_du_read() argument
122 return ioread32(rcdu->mmio + reg); in rcar_du_read()
125 static inline void rcar_du_write(struct rcar_du_device *rcdu, u32 reg, u32 data) in rcar_du_write() argument
127 iowrite32(data, rcdu->mmio + reg); in rcar_du_write()
Drcar_du_encoder.c105 int rcar_du_encoder_init(struct rcar_du_device *rcdu, in rcar_du_encoder_init() argument
116 renc = devm_kzalloc(rcdu->dev, sizeof(*renc), GFP_KERNEL); in rcar_du_encoder_init()
125 renc->lvds = rcdu->lvds[0]; in rcar_du_encoder_init()
129 renc->lvds = rcdu->lvds[1]; in rcar_du_encoder_init()
149 encoder_type = rcdu->info->routes[output].encoder_type; in rcar_du_encoder_init()
154 ret = rcar_du_hdmienc_init(rcdu, renc, enc_node); in rcar_du_encoder_init()
158 ret = drm_encoder_init(rcdu->ddev, encoder, &encoder_funcs, in rcar_du_encoder_init()
168 ret = rcar_du_lvds_connector_init(rcdu, renc, con_node); in rcar_du_encoder_init()
172 ret = rcar_du_vga_connector_init(rcdu, renc); in rcar_du_encoder_init()
188 devm_kfree(rcdu->dev, renc); in rcar_du_encoder_init()
Drcar_du_vsp.c34 struct rcar_du_device *rcdu = crtc->group->dev; in rcar_du_vsp_enable() local
54 if (rcdu->info->gen >= 3) in rcar_du_vsp_enable()
191 struct rcar_du_device *rcdu = rplane->vsp->dev; in rcar_du_vsp_plane_atomic_check() local
200 dev_dbg(rcdu->dev, "%s: scaling not supported\n", __func__); in rcar_du_vsp_plane_atomic_check()
206 dev_dbg(rcdu->dev, "%s: unsupported format %08x\n", __func__, in rcar_du_vsp_plane_atomic_check()
281 struct rcar_du_device *rcdu = to_rcar_vsp_plane(plane)->vsp->dev; in rcar_du_vsp_plane_atomic_set_property() local
283 if (property == rcdu->props.alpha) in rcar_du_vsp_plane_atomic_set_property()
297 struct rcar_du_device *rcdu = to_rcar_vsp_plane(plane)->vsp->dev; in rcar_du_vsp_plane_atomic_get_property() local
299 if (property == rcdu->props.alpha) in rcar_du_vsp_plane_atomic_get_property()
321 struct rcar_du_device *rcdu = vsp->dev; in rcar_du_vsp_init() local
[all …]
Drcar_du_lvdsenc.c201 struct rcar_du_device *rcdu = lvds->dev; in rcar_du_lvdsenc_atomic_check() local
207 if (rcdu->info->gen < 3) in rcar_du_lvdsenc_atomic_check()
235 int rcar_du_lvdsenc_init(struct rcar_du_device *rcdu) in rcar_du_lvdsenc_init() argument
237 struct platform_device *pdev = to_platform_device(rcdu->dev); in rcar_du_lvdsenc_init()
242 for (i = 0; i < rcdu->info->num_lvds; ++i) { in rcar_du_lvdsenc_init()
249 lvds->dev = rcdu; in rcar_du_lvdsenc_init()
258 rcdu->lvds[i] = lvds; in rcar_du_lvdsenc_init()
Drcar_du_vgacon.c49 int rcar_du_vga_connector_init(struct rcar_du_device *rcdu, in rcar_du_vga_connector_init() argument
57 rcon = devm_kzalloc(rcdu->dev, sizeof(*rcon), GFP_KERNEL); in rcar_du_vga_connector_init()
66 ret = drm_connector_init(rcdu->ddev, connector, &connector_funcs, in rcar_du_vga_connector_init()
75 rcdu->ddev->mode_config.dpms_property, DRM_MODE_DPMS_OFF); in rcar_du_vga_connector_init()
Drcar_du_lvdscon.c80 int rcar_du_lvds_connector_init(struct rcar_du_device *rcdu, in rcar_du_lvds_connector_init() argument
90 lvdscon = devm_kzalloc(rcdu->dev, sizeof(*lvdscon), GFP_KERNEL); in rcar_du_lvds_connector_init()
107 ret = drm_connector_init(rcdu->ddev, connector, &connector_funcs, in rcar_du_lvds_connector_init()
116 rcdu->ddev->mode_config.dpms_property, DRM_MODE_DPMS_OFF); in rcar_du_lvds_connector_init()
Drcar_du_hdmienc.c99 int rcar_du_hdmienc_init(struct rcar_du_device *rcdu, in rcar_du_hdmienc_init() argument
107 hdmienc = devm_kzalloc(rcdu->dev, sizeof(*hdmienc), GFP_KERNEL); in rcar_du_hdmienc_init()
116 ret = drm_encoder_init(rcdu->ddev, encoder, &encoder_funcs, in rcar_du_hdmienc_init()
130 ret = drm_bridge_attach(rcdu->ddev, bridge); in rcar_du_hdmienc_init()
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);
36 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_group.h63 int rcar_du_set_dpad0_vsp1_routing(struct rcar_du_device *rcdu);
Drcar_du_encoder.h51 int rcar_du_encoder_init(struct rcar_du_device *rcdu,