Lines Matching defs:connector
205 struct drm_connector *connector = state->connectors[i].ptr;
207 if (!connector)
210 connector->funcs->atomic_destroy_state(connector,
216 drm_connector_put(connector);
463 static int drm_atomic_connector_check(struct drm_connector *connector,
468 const struct drm_display_info *info = &connector->display_info;
471 if (connector->max_bpc_property)
474 if ((connector->connector_type != DRM_MODE_CONNECTOR_WRITEBACK) || !writeback_job)
478 drm_dbg_atomic(connector->dev,
480 connector->base.id, connector->name);
489 drm_dbg_atomic(connector->dev,
491 connector->base.id, connector->name,
498 drm_dbg_atomic(connector->dev,
500 connector->base.id, connector->name);
937 * drm_atomic_get_old_connector_for_encoder - Get old connector for an encoder
939 * @encoder: The encoder to fetch the connector state for
941 * This function finds and returns the connector that was connected to @encoder
944 * If there is no connector in @state which previously had @encoder connected to
951 * Returns: The old connector connected to @encoder, or NULL if the encoder is
959 struct drm_connector *connector;
962 for_each_old_connector_in_state(state, connector, conn_state, i) {
964 return connector;
972 * drm_atomic_get_new_connector_for_encoder - Get new connector for an encoder
974 * @encoder: The encoder to fetch the connector state for
976 * This function finds and returns the connector that will be connected to
979 * If there is no connector in @state which will have @encoder connected to it,
985 * Returns: The new connector connected to @encoder, or NULL if the encoder is
993 struct drm_connector *connector;
996 for_each_new_connector_in_state(state, connector, conn_state, i) {
998 return connector;
1020 struct drm_connector *connector;
1023 connector = drm_atomic_get_old_connector_for_encoder(state, encoder);
1024 if (!connector)
1027 conn_state = drm_atomic_get_old_connector_state(state, connector);
1050 struct drm_connector *connector;
1053 connector = drm_atomic_get_new_connector_for_encoder(state, encoder);
1054 if (!connector)
1057 conn_state = drm_atomic_get_new_connector_state(state, connector);
1066 * drm_atomic_get_connector_state - get connector state
1068 * @connector: connector to get state object for
1070 * This function returns the connector state for the given connector,
1071 * allocating it if needed. It will also grab the relevant connector lock to
1082 struct drm_connector *connector)
1085 struct drm_mode_config *config = &connector->dev->mode_config;
1094 index = drm_connector_index(connector);
1125 connector_state = connector->funcs->atomic_duplicate_state(connector);
1129 drm_connector_get(connector);
1131 state->connectors[index].old_state = connector->state;
1133 state->connectors[index].ptr = connector;
1136 drm_dbg_atomic(connector->dev, "Added [CONNECTOR:%d:%s] %p state to %p\n",
1137 connector->base.id, connector->name,
1156 struct drm_connector *connector = state->connector;
1158 drm_printf(p, "connector[%u]: %s\n", connector->base.id, connector->name);
1164 if (connector->connector_type == DRM_MODE_CONNECTOR_WRITEBACK)
1168 if (connector->funcs->atomic_print_state)
1169 connector->funcs->atomic_print_state(p, state);
1311 struct drm_connector *connector;
1334 drm_for_each_connector_iter(connector, &conn_iter) {
1335 if (!(crtc_state->connector_mask & drm_connector_mask(connector)))
1338 conn_state = drm_atomic_get_connector_state(state, connector);
1595 struct drm_connector *connector;
1609 for_each_new_connector_in_state(state, connector, new_conn_state, i) {
1760 struct drm_connector *connector;
1779 for_each_new_connector_in_state(state, connector, connector_state, i)
1793 struct drm_connector *connector;
1818 drm_for_each_connector_iter(connector, &conn_iter)
1819 drm_atomic_connector_print_state(p, connector->state);