Home
last modified time | relevance | path

Searched refs:crtcs (Results 1 – 25 of 28) sorted by relevance

12

/external/libdrm/tests/planetest/
Ddev.c193 dev->crtcs = calloc(dev->num_crtcs, sizeof(struct sp_crtc)); in create_sp_dev()
194 if (!dev->crtcs) { in create_sp_dev()
201 dev->crtcs[i].crtc = drmModeGetCrtc(dev->fd, r->crtcs[i]); in create_sp_dev()
202 if (!dev->crtcs[i].crtc) { in create_sp_dev()
206 dev->crtcs[i].pipe = i; in create_sp_dev()
207 dev->crtcs[i].num_planes = 0; in create_sp_dev()
209 props = drmModeObjectGetProperties(dev->fd, r->crtcs[i], in create_sp_dev()
216 dev->crtcs[i].mode_pid = get_prop_id(dev, props, "MODE_ID"); in create_sp_dev()
217 dev->crtcs[i].active_pid = get_prop_id(dev, props, "ACTIVE"); in create_sp_dev()
219 if (!dev->crtcs[i].mode_pid || !dev->crtcs[i].active_pid) in create_sp_dev()
[all …]
Ddev.h54 struct sp_crtc *crtcs; member
Dplanetest.c65 test_crtc = &dev->crtcs[crtc]; in main()
Datomictest.c77 test_crtc = &dev->crtcs[crtc]; in main()
Dmodeset.c113 cr = &dev->crtcs[j]; in initialize_screens()
/external/libdrm/tests/kms/
Dlibkms-test-device.c110 device->crtcs = calloc(res->count_crtcs, sizeof(crtc)); in kms_device_probe_crtcs()
111 if (!device->crtcs) in kms_device_probe_crtcs()
115 crtc = kms_crtc_create(device, res->crtcs[i]); in kms_device_probe_crtcs()
119 device->crtcs[i] = crtc; in kms_device_probe_crtcs()
186 kms_crtc_free(device->crtcs[i]); in kms_device_close()
188 free(device->crtcs); in kms_device_close()
Dlibkms-test-plane.c44 p->crtc_id = device->crtcs[i]->id; in kms_plane_probe()
51 if (device->crtcs[i]->id == p->crtc_id) { in kms_plane_probe()
52 plane->crtc = device->crtcs[i]; in kms_plane_probe()
Dkms-steal-crtc.c111 err = kms_screen_set(screen, device->crtcs[index++], fb); in main()
147 err = kms_screen_set(screen, device->crtcs[index], fb); in main()
Dlibkms-test.h39 struct kms_crtc **crtcs; member
/external/libdrm/tests/modeprint/
Dmodeprint.c53 int crtcs; variable
301 if (crtcs) { in printRes()
303 crtc = drmModeGetCrtc(fd, res->crtcs[i]); in printRes()
306 printf("Could not get crtc %i\n", res->crtcs[i]); in printRes()
308 printCrtc(fd, res, crtc, res->crtcs[i]); in printRes()
338 crtcs = 0; in args()
353 crtcs = 1; in args()
382 crtcs = 1; in args()
397 crtcs = 1; in args()
/external/autotest/client/cros/graphics/
Dgraphics_utils.py670 crtcs = []
686 crtcs.append(CRTC(crtc_id, fb, (x, y), (width, height)))
688 return crtcs
691 return crtcs
751 crtcs = get_modetest_crtcs()
752 if len(crtcs) > 0:
753 return crtcs[0].size
772 crtcs = get_modetest_crtcs()
773 if len(crtcs) > offset and crtcs[offset].size != (0, 0):
774 return crtcs[offset].size
[all …]
/external/libkmsxx/kms++/src/
Dplane.cpp74 auto crtcs = card().get_crtcs(); in get_possible_crtcs() local
83 auto iter = find_if(crtcs.begin(), crtcs.end(), [idx](Crtc* crtc) { return crtc->idx() == idx; }); in get_possible_crtcs()
85 if (iter == crtcs.end()) in get_possible_crtcs()
Dencoder.cpp67 vector<Crtc*> crtcs; in get_possible_crtcs() local
74 crtcs.push_back(crtc); in get_possible_crtcs()
77 return crtcs; in get_possible_crtcs()
Dconnector.cpp200 vector<Crtc*> crtcs; in get_possible_crtcs() local
207 crtcs.insert(crtcs.end(), l.begin(), l.end()); in get_possible_crtcs()
210 return crtcs; in get_possible_crtcs()
Dcard.cpp73 uint32_t id = res->crtcs[i]; in Card()
/external/libdrm/tests/modetest/
Dmodetest.c102 struct crtc *crtcs; member
466 struct crtc *_crtc = &dev->resources->crtcs[i]; in dump_crtcs()
626 res->crtcs = calloc(res->res->count_crtcs, sizeof(*res->crtcs)); in get_resources()
631 if (!res->crtcs || !res->encoders || !res->connectors || !res->fbs) in get_resources()
693 res->crtcs[i].mode = &res->crtcs[i].crtc->mode; in get_resources()
721 drmModeCrtc *crtc = dev->resources->crtcs[i].crtc; in get_crtc_index()
886 return &dev->resources->crtcs[crtc_idx - 1]; in pipe_find_crtc()
912 struct crtc *crtc = &dev->resources->crtcs[i]; in pipe_find_crtc_and_mode()
1068 if (p->crtc_id == dev->resources->res->crtcs[i]) { in set_plane()
1069 crtc = &dev->resources->crtcs[i]; in set_plane()
[all …]
/external/drm_hwcomposer/
Ddrmdevice.cpp89 drmModeCrtcPtr c = drmModeGetCrtc(fd(), res->crtcs[i]); in Init()
91 ALOGE("Failed to get crtc %d", res->crtcs[i]); in Init()
101 ALOGE("Failed to initialize crtc %d", res->crtcs[i]); in Init()
321 const std::vector<std::unique_ptr<DrmCrtc>> &DrmDevice::crtcs() const { in crtcs() function in android::DrmDevice
Ddrmdevice.h73 const std::vector<std::unique_ptr<DrmCrtc>> &crtcs() const;
/external/libkmsxx/
DREADME.md11 - kmstest - set modes and planes and show test pattern on crtcs/planes, and test page flips
14 - kmscube - rotating 3D cube on crtcs/planes
/external/libdrm/tests/proptest/
Dproptest.c211 c = drmModeGetCrtc(fd, res->crtcs[i]); in listCrtcProperties()
215 res->crtcs[i], strerror(errno)); in listCrtcProperties()
/external/libkmsxx/utils/
Dkmstest.cpp142 auto crtcs = card.get_crtcs(); in parse_crtc() local
144 if (num >= crtcs.size()) in parse_crtc()
147 output.crtc = crtcs[num]; in parse_crtc()
191 auto crtcs = card.get_crtcs(); in parse_crtc() local
193 if (num >= crtcs.size()) in parse_crtc()
196 output.crtc = crtcs[num]; in parse_crtc()
Dkmsprint.cpp106 …string crtcs = join<Crtc*>(p.get_possible_crtcs(), " ", [](Crtc* crtc) { return to_string(crtc->id… in format_plane() local
108 str += sformat(" (crtcs: %s)", crtcs.c_str()); in format_plane()
/external/libkmsxx/py/tests/
Diact.py28 for c in card.crtcs:
/external/libdrm/
Dxf86drmMode.c109 drmFree(ptr->crtcs); in drmModeFreeResources()
222 r->crtcs = drmAllocCpy(U642VOID(res.crtc_id_ptr), res.count_crtcs, sizeof(uint32_t)); in drmModeGetResources()
226 (res.count_crtcs && !r->crtcs) || in drmModeGetResources()
231 drmFree(r->crtcs); in drmModeGetResources()
Dxf86drmMode.h192 uint32_t *crtcs; member

12