/external/libdrm/tests/planetest/ |
D | modeset.c | 13 static int set_crtc_mode(struct sp_dev *dev, struct sp_crtc *crtc, in set_crtc_mode() argument 36 ret = drmModePropertySetAdd(pset, crtc->crtc->crtc_id, in set_crtc_mode() 37 crtc->mode_pid, create_blob.blob_id) || in set_crtc_mode() 38 drmModePropertySetAdd(pset, crtc->crtc->crtc_id, in set_crtc_mode() 39 crtc->active_pid, 1) || in set_crtc_mode() 41 conn->crtc_id_pid, crtc->crtc->crtc_id); in set_crtc_mode() 58 memcpy(&crtc->crtc->mode, mode, sizeof(struct drm_mode_modeinfo)); in set_crtc_mode() 59 crtc->crtc->mode_valid = 1; in set_crtc_mode() 133 struct sp_plane *get_sp_plane(struct sp_dev *dev, struct sp_crtc *crtc) in get_sp_plane() argument 143 if (!(p->plane->possible_crtcs & (1 << crtc->pipe))) in get_sp_plane() [all …]
|
D | planetest.c | 43 int card = 0, crtc = 0; in main() local 47 parse_arguments(argc, argv, &card, &crtc); in main() 55 if (crtc >= dev->num_crtcs) { in main() 56 printf("Invalid crtc %d (num=%d)\n", crtc, dev->num_crtcs); in main() 65 test_crtc = &dev->crtcs[crtc]; in main() 94 test_crtc->crtc->mode.hdisplay - plane_w); in main() 95 incrementor(&y_inc, &y, 5, 0, test_crtc->crtc->mode.vdisplay - in main()
|
D | atomictest.c | 55 int card = 0, crtc = 0; in main() local 59 parse_arguments(argc, argv, &card, &crtc); in main() 67 if (crtc >= dev->num_crtcs) { in main() 68 printf("Invalid crtc %d (num=%d)\n", crtc, dev->num_crtcs); in main() 77 test_crtc = &dev->crtcs[crtc]; in main() 114 test_crtc->crtc->mode.hdisplay - plane_w); in main() 115 incrementor(&y_inc, &y, 5, 0, test_crtc->crtc->mode.vdisplay - in main()
|
D | modeset.h | 10 struct sp_plane *get_sp_plane(struct sp_dev *dev, struct sp_crtc *crtc); 14 struct sp_crtc *crtc, int x, int y); 17 drmModePropertySetPtr pset, struct sp_crtc *crtc, int x, int y);
|
D | dev.c | 26 void parse_arguments(int argc, char *argv[], int *card, int *crtc) in parse_arguments() argument 37 *crtc = -1; in parse_arguments() 61 *crtc = optarg[0] - '0'; in parse_arguments() 66 if (*card < 0 || *crtc < 0) { in parse_arguments() 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() 345 if (dev->crtcs[i].crtc) in destroy_sp_dev() 346 drmModeFreeCrtc(dev->crtcs[i].crtc); in destroy_sp_dev()
|
D | dev.h | 37 drmModeCrtcPtr crtc; member 60 void parse_arguments(int argc, char *argv[], int *card, int *crtc);
|
/external/libdrm/tests/kms/ |
D | libkms-test-crtc.c | 32 struct kms_crtc *crtc; in kms_crtc_create() local 34 crtc = calloc(1, sizeof(*crtc)); in kms_crtc_create() 35 if (!crtc) in kms_crtc_create() 38 crtc->device = device; in kms_crtc_create() 39 crtc->id = id; in kms_crtc_create() 41 return crtc; in kms_crtc_create() 44 void kms_crtc_free(struct kms_crtc *crtc) in kms_crtc_free() argument 46 free(crtc); in kms_crtc_free()
|
D | Makefile.am | 13 libkms-test-crtc.c \ 24 kms-steal-crtc \ 28 kms-steal-crtc \ 32 kms_steal_crtc_SOURCES = kms-steal-crtc.c
|
D | libkms-test-device.c | 105 struct kms_crtc *crtc; in kms_device_probe_crtcs() local 113 device->crtcs = calloc(res->count_crtcs, sizeof(crtc)); in kms_device_probe_crtcs() 118 crtc = kms_crtc_create(device, res->crtcs[i]); in kms_device_probe_crtcs() 119 if (!crtc) in kms_device_probe_crtcs() 122 device->crtcs[i] = crtc; in kms_device_probe_crtcs()
|
D | libkms-test.h | 59 void kms_crtc_free(struct kms_crtc *crtc); 100 int kms_screen_set(struct kms_screen *screen, struct kms_crtc *crtc, 105 struct kms_crtc *crtc; member
|
D | libkms-test-screen.c | 80 int kms_screen_set(struct kms_screen *screen, struct kms_crtc *crtc, in kms_screen_set() argument 86 err = drmModeSetCrtc(device->fd, crtc->id, fb->id, 0, 0, &screen->id, in kms_screen_set()
|
/external/drm_hwcomposer/ |
D | drmresources.cpp | 85 std::unique_ptr<DrmCrtc> crtc(new DrmCrtc(this, c, i)); in Init() local 88 ret = crtc->Init(); in Init() 93 crtcs_.emplace_back(std::move(crtc)); in Init() 106 for (auto &crtc : crtcs_) { in Init() local 107 if ((1 << crtc->pipe()) & e->possible_crtcs) in Init() 108 possible_crtcs.push_back(crtc.get()); in Init() 110 if (crtc->id() == e->crtc_id) in Init() 111 current_crtc = crtc.get(); in Init() 228 for (auto &crtc : crtcs_) { in GetCrtcForDisplay() local 229 if (crtc->display() == display) in GetCrtcForDisplay() [all …]
|
D | platform.cpp | 27 DrmCrtc *crtc, std::vector<DrmPlane *> *primary_planes, in GetUsablePlanes() argument 32 [=](DrmPlane *plane) { return plane->GetCrtcSupported(*crtc); }); in GetUsablePlanes() 35 [=](DrmPlane *plane) { return plane->GetCrtcSupported(*crtc); }); in GetUsablePlanes() 40 std::map<size_t, DrmHwcLayer *> &layers, bool use_squash_fb, DrmCrtc *crtc, in ProvisionPlanes() argument 45 GetUsablePlanes(crtc, primary_planes, overlay_planes); in ProvisionPlanes() 47 ALOGE("Display %d has no usable planes", crtc->display()); in ProvisionPlanes() 69 precomp_plane, crtc); in ProvisionPlanes() 77 int ret = i->ProvisionPlanes(&composition, layers, crtc, &planes); in ProvisionPlanes() 86 crtc); in ProvisionPlanes() 93 std::map<size_t, DrmHwcLayer *> &layers, DrmCrtc *crtc, in ProvisionPlanes() argument [all …]
|
D | platform.h | 63 DrmCrtc *crtc, 89 DrmCompositionPlane::Type type, DrmCrtc *crtc, in Emplace() argument 96 composition->emplace(precomp, type, plane, crtc, source_layer); in Emplace() 129 DrmCrtc *crtc, std::vector<DrmPlane *> *primary_planes, 140 DrmCrtc *crtc, std::vector<DrmPlane *> *primary_planes, 151 std::map<size_t, DrmHwcLayer *> &layers, DrmCrtc *crtc, 163 std::map<size_t, DrmHwcLayer *> &layers, DrmCrtc *crtc, 173 std::map<size_t, DrmHwcLayer *> &layers, DrmCrtc *crtc,
|
D | drmdisplaycomposition.h | 62 DrmCompositionPlane(Type type, DrmPlane *plane, DrmCrtc *crtc) in DrmCompositionPlane() argument 63 : type_(type), plane_(plane), crtc_(crtc) { in DrmCompositionPlane() 65 DrmCompositionPlane(Type type, DrmPlane *plane, DrmCrtc *crtc, in DrmCompositionPlane() argument 69 crtc_(crtc), in DrmCompositionPlane() 84 DrmCrtc *crtc() const { in crtc() function 109 int Init(DrmResources *drm, DrmCrtc *crtc, Importer *importer, 170 DrmCrtc *crtc() const { in crtc() function
|
D | drmcomposition.cpp | 59 DrmCrtc *crtc = drm_->GetCrtcForDisplay(display); in Init() local 61 int ret = composition_map_[display]->Init(drm_, crtc, importer_, planner_, in Init() 136 DrmCrtc *crtc = drm_->GetCrtcForDisplay(display); in DisableUnusedPlanes() local 137 if (!crtc) { in DisableUnusedPlanes() 144 if ((*iter)->GetCrtcSupported(*crtc)) { in DisableUnusedPlanes() 152 if ((*iter)->GetCrtcSupported(*crtc)) { in DisableUnusedPlanes()
|
D | drmencoder.cpp | 38 DrmCrtc *DrmEncoder::crtc() const { in crtc() function in android::DrmEncoder 42 void DrmEncoder::set_crtc(DrmCrtc *crtc) { in set_crtc() argument 43 crtc_ = crtc; in set_crtc()
|
D | platformnv.cpp | 201 static DrmPlane *GetCrtcPrimaryPlane(DrmCrtc *crtc, in GetCrtcPrimaryPlane() argument 204 if ((*i)->GetCrtcSupported(*crtc)) { in GetCrtcPrimaryPlane() 215 std::map<size_t, DrmHwcLayer *> &layers, DrmCrtc *crtc, in ProvisionPlanes() argument 238 crtc, i->first); in ProvisionPlanes() 268 precomp_plane, crtc, i->first); in ProvisionPlanes() 328 std::map<size_t, DrmHwcLayer *> &layers, DrmCrtc *crtc, in ProvisionPlanes() argument 354 precomp_plane, crtc, i->first); in ProvisionPlanes()
|
D | drmencoder.h | 37 DrmCrtc *crtc() const; 38 void set_crtc(DrmCrtc *crtc);
|
D | vsyncworker.cpp | 135 DrmCrtc *crtc = drm_->GetCrtcForDisplay(display); in Routine() local 136 if (!crtc) { in Routine() 140 uint32_t high_crtc = (crtc->pipe() << DRM_VBLANK_HIGH_CRTC_SHIFT); in Routine()
|
D | platformnv.h | 71 std::map<size_t, DrmHwcLayer *> &layers, DrmCrtc *crtc, 82 std::map<size_t, DrmHwcLayer *> &layers, DrmCrtc *crtc,
|
/external/libdrm/tests/modetest/ |
D | modetest.c | 74 struct crtc { struct 75 drmModeCrtc *crtc; member 106 struct crtc *crtcs; 375 struct crtc *_crtc = &dev->resources->crtcs[i]; in dump_crtcs() 376 drmModeCrtc *crtc = _crtc->crtc; in dump_crtcs() local 377 if (!crtc) in dump_crtcs() 381 crtc->crtc_id, in dump_crtcs() 382 crtc->buffer_id, in dump_crtcs() 383 crtc->x, crtc->y, in dump_crtcs() 384 crtc->width, crtc->height); in dump_crtcs() [all …]
|
/external/autotest/client/cros/graphics/ |
D | drm.py | 129 crtc = self._l.drmModeGetCrtc(self._fd, crtc_id).contents 130 if crtc.mode_valid: 131 return crtc 145 crtc = self.getCrtc(crtc_id) 146 if crtc is None: 148 crtc = self.getCrtc(crtc_id) 149 if crtc is not None: 150 crtc._fd = self._fd 151 crtc._l = self._l 152 return crtc [all …]
|
/external/libdrm/tests/modeprint/ |
D | modeprint.c | 227 static int printCrtc(int fd, drmModeResPtr res, drmModeCrtcPtr crtc, uint32_t id) in printCrtc() argument 231 printf("\tx : %i\n", crtc->x); in printCrtc() 232 printf("\ty : %i\n", crtc->y); in printCrtc() 233 printf("\twidth : %i\n", crtc->width); in printCrtc() 234 printf("\theight : %i\n", crtc->height); in printCrtc() 235 printf("\tmode : %p\n", &crtc->mode); in printCrtc() 236 printf("\tgamma size : %d\n", crtc->gamma_size); in printCrtc() 259 drmModeCrtcPtr crtc; in printRes() local 303 crtc = drmModeGetCrtc(fd, res->crtcs[i]); in printRes() 305 if (!crtc) in printRes() [all …]
|
/external/libdrm/ |
D | xf86drmMode.c | 359 struct drm_mode_crtc crtc; in drmModeGetCrtc() local 362 memclear(crtc); in drmModeGetCrtc() 363 crtc.crtc_id = crtcId; in drmModeGetCrtc() 365 if (drmIoctl(fd, DRM_IOCTL_MODE_GETCRTC, &crtc)) in drmModeGetCrtc() 375 r->crtc_id = crtc.crtc_id; in drmModeGetCrtc() 376 r->x = crtc.x; in drmModeGetCrtc() 377 r->y = crtc.y; in drmModeGetCrtc() 378 r->mode_valid = crtc.mode_valid; in drmModeGetCrtc() 380 memcpy(&r->mode, &crtc.mode, sizeof(struct drm_mode_modeinfo)); in drmModeGetCrtc() 381 r->width = crtc.mode.hdisplay; in drmModeGetCrtc() [all …]
|