Lines Matching refs:encoder

174  * Connector and encoder types.
204 const char *drm_get_encoder_name(const struct drm_encoder *encoder)
209 drm_encoder_enum_list[encoder->encoder_type].name,
210 encoder->base.id);
762 struct drm_encoder *encoder,
769 ret = drm_mode_object_get(dev, &encoder->base, DRM_MODE_OBJECT_ENCODER);
773 encoder->dev = dev;
774 encoder->encoder_type = encoder_type;
775 encoder->funcs = funcs;
777 list_add_tail(&encoder->head, &dev->mode_config.encoder_list, (caddr_t)encoder);
786 void drm_encoder_cleanup(struct drm_encoder *encoder)
788 struct drm_device *dev = encoder->dev;
790 drm_mode_object_put(dev, &encoder->base);
791 list_del(&encoder->head);
1175 struct drm_encoder *encoder;
1185 list_for_each_entry(encoder, struct drm_encoder, &dev->mode_config.encoder_list, head)
1187 encoder->base.id;
1293 struct drm_encoder *encoder;
1391 list_for_each_entry(encoder, struct drm_encoder,
1394 DRM_DEBUG_KMS("[ENCODER:%d:%s]\n", encoder->base.id,
1395 drm_get_encoder_name(encoder));
1396 if (put_user(encoder->base.id, encoder_id +
1592 if (connector->encoder)
1593 out_resp->encoder_id = connector->encoder->base.id;
1663 struct drm_encoder *encoder;
1676 encoder = obj_to_encoder(obj);
1678 if (encoder->crtc)
1679 enc_resp->crtc_id = encoder->crtc->base.id;
1682 enc_resp->encoder_type = encoder->encoder_type;
1683 enc_resp->encoder_id = encoder->base.id;
1684 enc_resp->possible_crtcs = encoder->possible_crtcs;
1685 enc_resp->possible_clones = encoder->possible_clones;
3313 struct drm_encoder *encoder)
3319 connector->encoder_ids[i] = encoder->base.id;
3327 struct drm_encoder *encoder)
3331 if (connector->encoder_ids[i] == encoder->base.id) {
3333 if (connector->encoder == encoder)
3334 connector->encoder = NULL;
3587 struct drm_encoder *encoder;
3594 list_for_each_entry(encoder, struct drm_encoder, &dev->mode_config.encoder_list, head)
3595 if (encoder->funcs->reset)
3596 encoder->funcs->reset(encoder);
3895 struct drm_encoder *encoder, *enct;
3901 list_for_each_entry_safe(encoder, enct, struct drm_encoder, &dev->mode_config.encoder_list,
3903 encoder->funcs->destroy(encoder);