Lines Matching full:connector

40 int intel_connector_init(struct intel_connector *connector)  in intel_connector_init()  argument
54 __drm_atomic_helper_connector_reset(&connector->base, in intel_connector_init()
57 INIT_LIST_HEAD(&connector->panel.fixed_modes); in intel_connector_init()
64 struct intel_connector *connector; in intel_connector_alloc() local
66 connector = kzalloc(sizeof(*connector), GFP_KERNEL); in intel_connector_alloc()
67 if (!connector) in intel_connector_alloc()
70 if (intel_connector_init(connector) < 0) { in intel_connector_alloc()
71 kfree(connector); in intel_connector_alloc()
75 return connector; in intel_connector_alloc()
82 * Otherwise the destroy callbacks for the connector and the state should
85 void intel_connector_free(struct intel_connector *connector) in intel_connector_free() argument
87 kfree(to_intel_digital_connector_state(connector->base.state)); in intel_connector_free()
88 kfree(connector); in intel_connector_free()
92 * Connector type independent destroy hook for drm_connector_funcs.
94 void intel_connector_destroy(struct drm_connector *connector) in intel_connector_destroy() argument
96 struct intel_connector *intel_connector = to_intel_connector(connector); in intel_connector_destroy()
107 drm_connector_cleanup(connector); in intel_connector_destroy()
112 kfree(connector); in intel_connector_destroy()
115 int intel_connector_register(struct drm_connector *connector) in intel_connector_register() argument
117 struct intel_connector *intel_connector = to_intel_connector(connector); in intel_connector_register()
124 if (i915_inject_probe_failure(to_i915(connector->dev))) { in intel_connector_register()
139 void intel_connector_unregister(struct drm_connector *connector) in intel_connector_unregister() argument
141 struct intel_connector *intel_connector = to_intel_connector(connector); in intel_connector_unregister()
146 void intel_connector_attach_encoder(struct intel_connector *connector, in intel_connector_attach_encoder() argument
149 connector->encoder = encoder; in intel_connector_attach_encoder()
150 drm_connector_attach_encoder(&connector->base, &encoder->base); in intel_connector_attach_encoder()
154 * Simple connector->get_hw_state implementation for encoders that support only
155 * one connector and no cloning and hence the encoder state determines the state
156 * of the connector.
158 bool intel_connector_get_hw_state(struct intel_connector *connector) in intel_connector_get_hw_state() argument
161 struct intel_encoder *encoder = intel_attached_encoder(connector); in intel_connector_get_hw_state()
166 enum pipe intel_connector_get_pipe(struct intel_connector *connector) in intel_connector_get_pipe() argument
168 struct drm_device *dev = connector->base.dev; in intel_connector_get_pipe()
173 if (!connector->base.state->crtc) in intel_connector_get_pipe()
176 return to_intel_crtc(connector->base.state->crtc)->pipe; in intel_connector_get_pipe()
180 * intel_connector_update_modes - update connector from edid
181 * @connector: DRM connector device to use
184 int intel_connector_update_modes(struct drm_connector *connector, in intel_connector_update_modes() argument
189 drm_connector_update_edid_property(connector, edid); in intel_connector_update_modes()
190 ret = drm_add_edid_modes(connector, edid); in intel_connector_update_modes()
197 * @connector: DRM connector device to use
200 * Fetch the EDID information from @connector using the DDC bus.
202 int intel_ddc_get_modes(struct drm_connector *connector, in intel_ddc_get_modes() argument
208 edid = drm_get_edid(connector, adapter); in intel_ddc_get_modes()
212 ret = intel_connector_update_modes(connector, edid); in intel_ddc_get_modes()
226 intel_attach_force_audio_property(struct drm_connector *connector) in intel_attach_force_audio_property() argument
228 struct drm_device *dev = connector->dev; in intel_attach_force_audio_property()
243 drm_object_attach_property(&connector->base, prop, 0); in intel_attach_force_audio_property()
253 intel_attach_broadcast_rgb_property(struct drm_connector *connector) in intel_attach_broadcast_rgb_property() argument
255 struct drm_device *dev = connector->dev; in intel_attach_broadcast_rgb_property()
271 drm_object_attach_property(&connector->base, prop, 0); in intel_attach_broadcast_rgb_property()
275 intel_attach_aspect_ratio_property(struct drm_connector *connector) in intel_attach_aspect_ratio_property() argument
277 if (!drm_mode_create_aspect_ratio_property(connector->dev)) in intel_attach_aspect_ratio_property()
278 drm_object_attach_property(&connector->base, in intel_attach_aspect_ratio_property()
279 connector->dev->mode_config.aspect_ratio_property, in intel_attach_aspect_ratio_property()
284 intel_attach_hdmi_colorspace_property(struct drm_connector *connector) in intel_attach_hdmi_colorspace_property() argument
286 if (!drm_mode_create_hdmi_colorspace_property(connector)) in intel_attach_hdmi_colorspace_property()
287 drm_connector_attach_colorspace_property(connector); in intel_attach_hdmi_colorspace_property()
291 intel_attach_dp_colorspace_property(struct drm_connector *connector) in intel_attach_dp_colorspace_property() argument
293 if (!drm_mode_create_dp_colorspace_property(connector)) in intel_attach_dp_colorspace_property()
294 drm_connector_attach_colorspace_property(connector); in intel_attach_dp_colorspace_property()