Lines Matching refs:encoder

71 static void nv04_tv_dpms(struct drm_encoder *encoder, int mode)  in nv04_tv_dpms()  argument
73 struct drm_device *dev = encoder->dev; in nv04_tv_dpms()
75 struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); in nv04_tv_dpms()
85 int head = nouveau_crtc(encoder->crtc)->index; in nv04_tv_dpms()
99 get_slave_funcs(encoder)->dpms(encoder, mode); in nv04_tv_dpms()
121 static void nv04_tv_prepare(struct drm_encoder *encoder) in nv04_tv_prepare() argument
123 struct drm_device *dev = encoder->dev; in nv04_tv_prepare()
124 int head = nouveau_crtc(encoder->crtc)->index; in nv04_tv_prepare()
125 const struct drm_encoder_helper_funcs *helper = encoder->helper_private; in nv04_tv_prepare()
127 helper->dpms(encoder, DRM_MODE_DPMS_OFF); in nv04_tv_prepare()
137 static void nv04_tv_mode_set(struct drm_encoder *encoder, in nv04_tv_mode_set() argument
141 struct drm_device *dev = encoder->dev; in nv04_tv_mode_set()
142 struct nouveau_crtc *nv_crtc = nouveau_crtc(encoder->crtc); in nv04_tv_mode_set()
158 get_slave_funcs(encoder)->mode_set(encoder, mode, adjusted_mode); in nv04_tv_mode_set()
161 static void nv04_tv_commit(struct drm_encoder *encoder) in nv04_tv_commit() argument
163 struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); in nv04_tv_commit()
164 struct drm_device *dev = encoder->dev; in nv04_tv_commit()
166 struct nouveau_crtc *nv_crtc = nouveau_crtc(encoder->crtc); in nv04_tv_commit()
167 const struct drm_encoder_helper_funcs *helper = encoder->helper_private; in nv04_tv_commit()
169 helper->dpms(encoder, DRM_MODE_DPMS_ON); in nv04_tv_commit()
176 static void nv04_tv_destroy(struct drm_encoder *encoder) in nv04_tv_destroy() argument
178 get_slave_funcs(encoder)->destroy(encoder); in nv04_tv_destroy()
179 drm_encoder_cleanup(encoder); in nv04_tv_destroy()
181 kfree(encoder->helper_private); in nv04_tv_destroy()
182 kfree(nouveau_encoder(encoder)); in nv04_tv_destroy()
204 struct drm_encoder *encoder; in nv04_tv_create() local
222 encoder = to_drm_encoder(nv_encoder); in nv04_tv_create()
224 drm_encoder_init(dev, encoder, &nv04_tv_funcs, DRM_MODE_ENCODER_TVDAC); in nv04_tv_create()
225 drm_encoder_helper_add(encoder, &nv04_tv_helper_funcs); in nv04_tv_create()
227 encoder->possible_crtcs = entry->heads; in nv04_tv_create()
228 encoder->possible_clones = 0; in nv04_tv_create()
233 ret = drm_i2c_encoder_init(dev, to_encoder_slave(encoder), in nv04_tv_create()
240 get_slave_funcs(encoder)->create_resources(encoder, connector); in nv04_tv_create()
241 drm_mode_connector_attach_encoder(connector, encoder); in nv04_tv_create()
246 drm_encoder_cleanup(encoder); in nv04_tv_create()