/external/libdrm/tests/kms/ |
H A D | libkms-test-crtc.c | 32 struct kms_crtc *crtc; local 34 crtc = calloc(1, sizeof(*crtc)); 35 if (!crtc) 38 crtc->device = device; 39 crtc->id = id; 41 return crtc; 44 void kms_crtc_free(struct kms_crtc *crtc) argument 46 free(crtc);
|
H A D | libkms-test-screen.c | 80 int kms_screen_set(struct kms_screen *screen, struct kms_crtc *crtc, argument 86 err = drmModeSetCrtc(device->fd, crtc->id, fb->id, 0, 0, &screen->id,
|
H A D | libkms-test-device.c | 105 struct kms_crtc *crtc; local 113 device->crtcs = calloc(res->count_crtcs, sizeof(crtc)); 118 crtc = kms_crtc_create(device, res->crtcs[i]); 119 if (!crtc) 122 device->crtcs[i] = crtc;
|
H A 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 in struct:kms_plane
|
/external/drm_hwcomposer/ |
H A D | drmencoder.cpp | 38 DrmCrtc *DrmEncoder::crtc() const { function in class:android::DrmEncoder 42 void DrmEncoder::set_crtc(DrmCrtc *crtc) { argument 43 crtc_ = crtc;
|
H A D | platform.cpp | 27 DrmCrtc *crtc, std::vector<DrmPlane *> *primary_planes, 32 [=](DrmPlane *plane) { return plane->GetCrtcSupported(*crtc); }); 35 [=](DrmPlane *plane) { return plane->GetCrtcSupported(*crtc); }); 40 std::map<size_t, DrmHwcLayer *> &layers, bool use_squash_fb, DrmCrtc *crtc, 45 GetUsablePlanes(crtc, primary_planes, overlay_planes); 47 ALOGE("Display %d has no usable planes", crtc->display()); 69 precomp_plane, crtc); 77 int ret = i->ProvisionPlanes(&composition, layers, crtc, &planes); 86 crtc); 93 std::map<size_t, DrmHwcLayer *> &layers, DrmCrtc *crtc, 26 GetUsablePlanes( DrmCrtc *crtc, std::vector<DrmPlane *> *primary_planes, std::vector<DrmPlane *> *overlay_planes) argument 39 ProvisionPlanes( std::map<size_t, DrmHwcLayer *> &layers, bool use_squash_fb, DrmCrtc *crtc, std::vector<DrmPlane *> *primary_planes, std::vector<DrmPlane *> *overlay_planes) argument 91 ProvisionPlanes( std::vector<DrmCompositionPlane> *composition, std::map<size_t, DrmHwcLayer *> &layers, DrmCrtc *crtc, std::vector<DrmPlane *> *planes) argument 143 ProvisionPlanes( std::vector<DrmCompositionPlane> *composition, std::map<size_t, DrmHwcLayer *> &layers, DrmCrtc *crtc, std::vector<DrmPlane *> *planes) argument 171 ProvisionPlanes( std::vector<DrmCompositionPlane> *composition, std::map<size_t, DrmHwcLayer *> &layers, DrmCrtc *crtc, std::vector<DrmPlane *> *planes) argument [all...] |
H A D | drmcomposition.cpp | 59 DrmCrtc *crtc = drm_->GetCrtcForDisplay(display); local 61 int ret = composition_map_[display]->Init(drm_, crtc, importer_, planner_, 136 DrmCrtc *crtc = drm_->GetCrtcForDisplay(display); local 137 if (!crtc) { 138 ALOGE("Failed to find crtc for display %d", display); 144 if ((*iter)->GetCrtcSupported(*crtc)) { 152 if ((*iter)->GetCrtcSupported(*crtc)) {
|
H A D | platform.h | 67 DrmCrtc *crtc, 93 DrmCompositionPlane::Type type, DrmCrtc *crtc, 100 composition->emplace(precomp, type, plane, crtc, source_layer); 133 DrmCrtc *crtc, std::vector<DrmPlane *> *primary_planes, 144 DrmCrtc *crtc, std::vector<DrmPlane *> *primary_planes, 155 std::map<size_t, DrmHwcLayer *> &layers, DrmCrtc *crtc, 167 std::map<size_t, DrmHwcLayer *> &layers, DrmCrtc *crtc, 177 std::map<size_t, DrmHwcLayer *> &layers, DrmCrtc *crtc, 91 Emplace(std::vector<DrmCompositionPlane> *composition, std::vector<DrmPlane *> *planes, DrmCompositionPlane::Type type, DrmCrtc *crtc, size_t source_layer) argument
|
H A D | drmdisplaycomposition.h | 62 DrmCompositionPlane(Type type, DrmPlane *plane, DrmCrtc *crtc) argument 63 : type_(type), plane_(plane), crtc_(crtc) { 65 DrmCompositionPlane(Type type, DrmPlane *plane, DrmCrtc *crtc, argument 69 crtc_(crtc), 84 DrmCrtc *crtc() const { function in class:android::DrmCompositionPlane 109 int Init(DrmResources *drm, DrmCrtc *crtc, Importer *importer, 170 DrmCrtc *crtc() const { function in class:android::DrmDisplayComposition
|
H A D | drmresources.cpp | 85 ALOGE("Failed to get crtc %d", res->crtcs[i]); 90 std::unique_ptr<DrmCrtc> crtc(new DrmCrtc(this, c, i)); 93 ret = crtc->Init(); 95 ALOGE("Failed to initialize crtc %d", res->crtcs[i]); 98 crtcs_.emplace_back(std::move(crtc)); 111 for (auto &crtc : crtcs_) { 112 if ((1 << crtc->pipe()) & e->possible_crtcs) 113 possible_crtcs.push_back(crtc.get()); 115 if (crtc->id() == e->crtc_id) 116 current_crtc = crtc 254 DrmCrtc *crtc = enc->crtc(); local 417 GetCrtcProperty(const DrmCrtc &crtc, const char *prop_name, DrmProperty *property) argument [all...] |
H A D | platformnv.cpp | 212 static DrmPlane *GetCrtcPrimaryPlane(DrmCrtc *crtc, argument 215 if ((*i)->GetCrtcSupported(*crtc)) { 226 std::map<size_t, DrmHwcLayer *> &layers, DrmCrtc *crtc, 243 // crtc, we know we'll only hit this case once. So we blindly insert the 249 crtc, i->first); 279 precomp_plane, crtc, i->first); 339 std::map<size_t, DrmHwcLayer *> &layers, DrmCrtc *crtc, 365 precomp_plane, crtc, i->first); 224 ProvisionPlanes( std::vector<DrmCompositionPlane> *composition, std::map<size_t, DrmHwcLayer *> &layers, DrmCrtc *crtc, std::vector<DrmPlane *> *planes) argument 337 ProvisionPlanes( std::vector<DrmCompositionPlane> *composition, std::map<size_t, DrmHwcLayer *> &layers, DrmCrtc *crtc, std::vector<DrmPlane *> *planes) argument
|
H A D | drmdisplaycomposition.cpp | 44 int DrmDisplayComposition::Init(DrmResources *drm, DrmCrtc *crtc, argument 48 crtc_ = crtc; // Can be NULL if we haven't modeset yet 527 << " crtc=" << (crtc_ ? crtc_->id() : -1)
|
H A D | drmhwctwo.cpp | 86 DrmCrtc *crtc = drm_.GetCrtcForDisplay(static_cast<int>(HWC_DISPLAY_PRIMARY)); local 87 if (!crtc) { 88 ALOGE("Failed to get crtc for display %d", 95 if (plane->GetCrtcSupported(*crtc)) 202 ALOGE("Failed to get crtc for display %d", display);
|
/external/libdrm/tests/planetest/ |
H A D | dev.c | 22 printf(" -r, --crtc Index of crtc to use for test\n"); 26 void parse_arguments(int argc, char *argv[], int *card, int *crtc) argument 30 { "crtc", required_argument, NULL, 'r' }, 37 *crtc = -1; 57 printf("Invalid crtc value '%s'!\n", optarg); 61 *crtc = optarg[0] - '0'; 66 if (*card < 0 || *crtc < 0) { 201 dev->crtcs[i].crtc = drmModeGetCrtc(dev->fd, r->crtcs[i]); 202 if (!dev->crtcs[i].crtc) { [all...] |
H A D | modeset.c | 13 static int set_crtc_mode(struct sp_dev *dev, struct sp_crtc *crtc, argument 36 ret = drmModePropertySetAdd(pset, crtc->crtc->crtc_id, 37 crtc->mode_pid, create_blob.blob_id) || 38 drmModePropertySetAdd(pset, crtc->crtc->crtc_id, 39 crtc->active_pid, 1) || 41 conn->crtc_id_pid, crtc->crtc->crtc_id); 58 memcpy(&crtc 133 get_sp_plane(struct sp_dev *dev, struct sp_crtc *crtc) argument 168 set_sp_plane(struct sp_dev *dev, struct sp_plane *plane, struct sp_crtc *crtc, int x, int y) argument 192 set_sp_plane_pset(struct sp_dev *dev, struct sp_plane *plane, drmModePropertySetPtr pset, struct sp_crtc *crtc, int x, int y) argument [all...] |
H A D | planetest.c | 43 int card = 0, crtc = 0; local 47 parse_arguments(argc, argv, &card, &crtc); 55 if (crtc >= dev->num_crtcs) { 56 printf("Invalid crtc %d (num=%d)\n", crtc, dev->num_crtcs); 65 test_crtc = &dev->crtcs[crtc]; 94 test_crtc->crtc->mode.hdisplay - plane_w); 95 incrementor(&y_inc, &y, 5, 0, test_crtc->crtc->mode.vdisplay -
|
H A D | atomictest.c | 55 int card = 0, crtc = 0; local 59 parse_arguments(argc, argv, &card, &crtc); 67 if (crtc >= dev->num_crtcs) { 68 printf("Invalid crtc %d (num=%d)\n", crtc, dev->num_crtcs); 77 test_crtc = &dev->crtcs[crtc]; 114 test_crtc->crtc->mode.hdisplay - plane_w); 115 incrementor(&y_inc, &y, 5, 0, test_crtc->crtc->mode.vdisplay -
|
H A D | dev.h | 37 drmModeCrtcPtr crtc; member in struct:sp_crtc 60 void parse_arguments(int argc, char *argv[], int *card, int *crtc);
|
/external/libdrm/tests/modeprint/ |
H A D | modeprint.c | 227 static int printCrtc(int fd, drmModeResPtr res, drmModeCrtcPtr crtc, uint32_t id) argument 231 printf("\tx : %i\n", crtc->x); 232 printf("\ty : %i\n", crtc->y); 233 printf("\twidth : %i\n", crtc->width); 234 printf("\theight : %i\n", crtc->height); 235 printf("\tmode : %p\n", &crtc->mode); 236 printf("\tgamma size : %d\n", crtc->gamma_size); 259 drmModeCrtcPtr crtc; local 303 crtc = drmModeGetCrtc(fd, res->crtcs[i]); 305 if (!crtc) [all...] |
/external/libdrm/tests/exynos/ |
H A D | exynos_fimg2d_test.c | 45 int crtc; member in struct:connector 111 if (c->crtc == -1) 112 c->crtc = c->encoder->crtc_id; 120 ret = drmModeSetCrtc(dev->fd, c->crtc, 734 con.crtc = -1; 740 &con.crtc,
|
/external/libdrm/tests/modetest/ |
H A D | modetest.c | 74 struct crtc { struct 75 drmModeCrtc *crtc; member in struct:crtc 106 struct crtc *crtcs; 375 struct crtc *_crtc = &dev->resources->crtcs[i]; 376 drmModeCrtc *crtc = _crtc->crtc; local 377 if (!crtc) 381 crtc->crtc_id, 382 crtc->buffer_id, 383 crtc 628 drmModeCrtc *crtc = dev->resources->crtcs[i].crtc; local 700 struct crtc *crtc; member in struct:pipe_arg 819 struct crtc *crtc = &dev->resources->crtcs[i]; local 967 struct crtc *crtc = NULL; local [all...] |
/external/syslinux/gpxe/src/arch/i386/include/ |
H A D | vga.h | 168 u8 crtc[CRTC_C]; member in struct:vga_par
|
/external/libdrm/ |
H A D | xf86drmMode.c | 359 struct drm_mode_crtc crtc; local 362 memclear(crtc); 363 crtc.crtc_id = crtcId; 365 if (drmIoctl(fd, DRM_IOCTL_MODE_GETCRTC, &crtc)) 375 r->crtc_id = crtc.crtc_id; 376 r->x = crtc.x; 377 r->y = crtc.y; 378 r->mode_valid = crtc.mode_valid; 380 memcpy(&r->mode, &crtc.mode, sizeof(struct drm_mode_modeinfo)); 381 r->width = crtc 393 struct drm_mode_crtc crtc; local [all...] |
/external/kernel-headers/original/uapi/drm/ |
H A D | drm.h | 526 __u32 crtc; member in struct:drm_modeset_ctl 743 __u32 active; /* return: crtc output is active */
|
/external/libdrm/include/drm/ |
H A D | drm.h | 520 __u32 crtc; member in struct:drm_modeset_ctl
|