Lines Matching full:connectors
59 modeset->connectors = kcalloc(max_connector_count, in drm_client_modeset_create()
60 sizeof(*modeset->connectors), GFP_KERNEL); in drm_client_modeset_create()
61 if (!modeset->connectors) in drm_client_modeset_create()
84 drm_connector_put(modeset->connectors[i]); in drm_client_modeset_release()
85 modeset->connectors[i] = NULL; in drm_client_modeset_release()
100 kfree(modeset->connectors); in drm_client_modeset_free()
238 static void drm_client_connectors_enabled(struct drm_connector **connectors, in drm_client_connectors_enabled() argument
247 connector = connectors[i]; in drm_client_connectors_enabled()
259 enabled[i] = drm_connector_enabled(connectors[i], false); in drm_client_connectors_enabled()
263 struct drm_connector **connectors, in drm_client_target_cloned() argument
292 modes[i] = drm_connector_pick_cmdline_mode(connectors[i]); in drm_client_target_cloned()
322 list_for_each_entry(mode, &connectors[i]->modes, head) { in drm_client_target_cloned()
342 static int drm_client_get_tile_offsets(struct drm_connector **connectors, in drm_client_get_tile_offsets() argument
354 connector = connectors[i]; in drm_client_get_tile_offsets()
375 static bool drm_client_target_preferred(struct drm_connector **connectors, in drm_client_target_preferred() argument
389 if (connectors[i]->has_tile && in drm_client_target_preferred()
390 connectors[i]->status == connector_status_connected) in drm_client_target_preferred()
396 connector = connectors[i]; in drm_client_target_preferred()
406 /* first pass over all the untiled connectors */ in drm_client_target_preferred()
425 drm_client_get_tile_offsets(connectors, connector_count, modes, offsets, i, in drm_client_target_preferred()
491 struct drm_connector **connectors, in drm_client_pick_crtcs() argument
507 connector = connectors[n]; in drm_client_pick_crtcs()
510 best_score = drm_client_pick_crtcs(client, connectors, connector_count, in drm_client_pick_crtcs()
529 * remaining connectors in drm_client_pick_crtcs()
552 score = my_score + drm_client_pick_crtcs(client, connectors, connector_count, in drm_client_pick_crtcs()
566 struct drm_connector **connectors, in drm_client_firmware_config() argument
603 if (connectors[i]->has_tile && in drm_client_firmware_config()
604 connectors[i]->status == connector_status_connected) in drm_client_firmware_config()
614 connector = connectors[i]; in drm_client_firmware_config()
656 * Make sure we're not trying to drive multiple connectors in drm_client_firmware_config()
765 * This function sets up display pipelines for enabled connectors and stores the
773 struct drm_connector *connector, **connectors = NULL; in drm_client_modeset_probe() local
795 tmp = krealloc(connectors, (connector_count + 1) * sizeof(*connectors), GFP_KERNEL); in drm_client_modeset_probe()
801 connectors = tmp; in drm_client_modeset_probe()
803 connectors[connector_count++] = connector; in drm_client_modeset_probe()
824 total_modes_count += connectors[i]->funcs->fill_modes(connectors[i], width, height); in drm_client_modeset_probe()
826 DRM_DEBUG_KMS("No connectors reported connected with modes\n"); in drm_client_modeset_probe()
827 drm_client_connectors_enabled(connectors, connector_count, enabled); in drm_client_modeset_probe()
829 if (!drm_client_firmware_config(client, connectors, connector_count, crtcs, in drm_client_modeset_probe()
835 if (!drm_client_target_cloned(dev, connectors, connector_count, modes, in drm_client_modeset_probe()
837 !drm_client_target_preferred(connectors, connector_count, modes, in drm_client_modeset_probe()
844 drm_client_pick_crtcs(client, connectors, connector_count, in drm_client_modeset_probe()
858 struct drm_connector *connector = connectors[i]; in drm_client_modeset_probe()
871 modeset->connectors[modeset->num_connectors++] = connector; in drm_client_modeset_probe()
885 drm_connector_put(connectors[i]); in drm_client_modeset_probe()
886 kfree(connectors); in drm_client_modeset_probe()
907 struct drm_connector *connector = modeset->connectors[0]; in drm_client_rotation()
1201 connector = modeset->connectors[j]; in drm_client_modeset_dpms_legacy()