search for: crtc_mask

Displaying 6 results from an estimated 6 matches for "crtc_mask".

Did you mean: cr_mask
2007 Jul 05
0
RANDR1.2 and LVDS
...7 @@ static void nv_add_analog_output(ScrnInfoPtr pScrn, int i2c_index) pNv->analog_count++; } +static void nv_add_lvds_output(ScrnInfoPtr pScrn, int i2c_index) +{ + NVPtr pNv = NVPTR(pScrn); + xf86OutputPtr output; + NVOutputPrivatePtr nv_output; + char outputname[20]; + int crtc_mask = (1<<0) | (1<<1); + + sprintf(outputname, "LVDS-%d", pNv->lvds_count); + output = xf86OutputCreate (pScrn, &nv_lvds_output_funcs, outputname); + if (!output) + return; + nv_output = xnfcalloc (sizeof (NVOutputPrivateRec), 1); + if (!nv_output) + { + xf86Out...
2020 Mar 05
0
[PATCH 06/22] drm/hisilicon/kirin: Use simple encoder
...dw_encoder_funcs = { - .destroy = drm_encoder_cleanup, -}; - static int dw_drm_encoder_init(struct device *dev, struct drm_device *drm_dev, struct drm_encoder *encoder) @@ -713,8 +710,7 @@ static int dw_drm_encoder_init(struct device *dev, } encoder->possible_crtcs = crtc_mask; - ret = drm_encoder_init(drm_dev, encoder, &dw_encoder_funcs, - DRM_MODE_ENCODER_DSI, NULL); + ret = drm_simple_encoder_init(drm_dev, encoder, DRM_MODE_ENCODER_DSI); if (ret) { DRM_ERROR("failed to init dsi encoder\n"); return ret; -- 2.25.1
2017 Jun 28
5
[PATCH 1/2] drm/atomic: Change drm_atomic_helper_swap_state to return an error.
...rm/msm/msm_atomic.c index 9633a68b14d7..85dd485fdef4 100644 --- a/drivers/gpu/drm/msm/msm_atomic.c +++ b/drivers/gpu/drm/msm/msm_atomic.c @@ -232,8 +232,12 @@ int msm_atomic_commit(struct drm_device *dev, * mark our set of crtc's as busy: */ ret = start_atomic(dev->dev_private, c->crtc_mask); + if (ret) + goto err_free; + + ret = drm_atomic_helper_swap_state(state, true); if (ret) { - kfree(c); + commit_destroy(c); goto error; } @@ -241,11 +245,9 @@ int msm_atomic_commit(struct drm_device *dev, * This is the point of no return - everything below never fails except *...
2017 Jun 30
0
[Intel-gfx] [PATCH 1/2] drm/atomic: Change drm_atomic_helper_swap_state to return an error.
...a68b14d7..85dd485fdef4 100644 > --- a/drivers/gpu/drm/msm/msm_atomic.c > +++ b/drivers/gpu/drm/msm/msm_atomic.c > @@ -232,8 +232,12 @@ int msm_atomic_commit(struct drm_device *dev, > * mark our set of crtc's as busy: > */ > ret = start_atomic(dev->dev_private, c->crtc_mask); > + if (ret) > + goto err_free; > + > + ret = drm_atomic_helper_swap_state(state, true); Hm, might be simpler to have stall = false (which btw makes your __must_check annotation a lie, you only have to check when you stall), since start_atomic above already does stall for everything...
2020 Mar 05
55
[PATCH 00/22] drm: Convert drivers to drm_simple_encoder_init()
A call to drm_simple_encoder_init() initializes an encoder without further functionality. It only provides the destroy callback to cleanup the encoder's state. Only few drivers implement more sophisticated encoders than that. Most drivers implement such a simple encoder and can use drm_simple_encoder_init() instead. The patchset converts drivers where the encoder's instance is embedded in
2020 Mar 05
55
[PATCH 00/22] drm: Convert drivers to drm_simple_encoder_init()
A call to drm_simple_encoder_init() initializes an encoder without further functionality. It only provides the destroy callback to cleanup the encoder's state. Only few drivers implement more sophisticated encoders than that. Most drivers implement such a simple encoder and can use drm_simple_encoder_init() instead. The patchset converts drivers where the encoder's instance is embedded in