Lines Matching refs:cconfs
90 struct connector_config *cconfs; member
130 if (!connector_supports_mode(crtc->cconfs[i].connector, mode)) in crtc_supports_mode()
197 mode = &crtc->cconfs[i].default_mode; in get_mode_for_crtc()
206 for (i = 0; i < crtc->cconfs[0].connector->count_modes; i++) { in get_mode_for_crtc()
207 mode = &crtc->cconfs[0].connector->modes[i]; in get_mode_for_crtc()
217 mode = &crtc->cconfs[0].default_mode; in get_mode_for_crtc()
219 if (crtc->cconfs[i].default_mode.clock < mode->clock) in get_mode_for_crtc()
220 mode = &crtc->cconfs[i].default_mode; in get_mode_for_crtc()
248 drmModeConnector *connector = crtc->cconfs[i].connector; in get_crtc_config_str()
296 crtc->cconfs = malloc(sizeof(*crtc->cconfs) * in setup_crtcs()
298 igt_assert(crtc->cconfs); in setup_crtcs()
305 crtc->cconfs[j] = cconf[i + j]; in setup_crtcs()
370 free(crtcs[i].cconfs); in cleanup_crtcs()
382 ids[i] = crtc->cconfs[i].connector->connector_id; in get_connector_ids()
599 struct connector_config *cconfs, in test_one_combination() argument
606 setup_crtcs(tconf->resources, cconfs, connector_count, crtcs, in test_one_combination()
617 struct connector_config *cconfs) in assign_crtc_to_connectors() argument
636 cconfs[i].crtc_idx = crtc_idx; in assign_crtc_to_connectors()
666 int connector_count, struct connector_config *cconfs) in get_connectors() argument
678 if (get_one_connector(resources, connector_id, &cconfs[i]) < 0) in get_connectors()
687 drmModeFreeConnector(cconfs[i].connector); in get_connectors()
692 static void free_connectors(struct connector_config *cconfs, in free_connectors() argument
698 drmModeFreeConnector(cconfs[i].connector); in free_connectors()
751 struct connector_config *cconfs; in test_combinations() local
779 cconfs = malloc(sizeof(*cconfs) * connector_count); in test_combinations()
780 igt_assert(cconfs); in test_combinations()
784 connector_count, cconfs); in test_combinations()
792 cconfs); in test_combinations()
796 test_one_combination(tconf, cconfs, connector_count); in test_combinations()
799 free_connectors(cconfs, connector_count); in test_combinations()
801 free(cconfs); in test_combinations()