/external/mesa3d/src/gallium/state_trackers/xorg/ |
D | xorg_crtc.c | 73 crtc_dpms(xf86CrtcPtr crtc, int mode) in crtc_dpms() argument 88 crtc_set_mode_major(xf86CrtcPtr crtc, DisplayModePtr mode, in crtc_set_mode_major() argument 91 xf86CrtcConfigPtr config = XF86_CRTC_CONFIG_PTR(crtc->scrn); in crtc_set_mode_major() 92 modesettingPtr ms = modesettingPTR(crtc->scrn); in crtc_set_mode_major() 94 struct crtc_private *crtcp = crtc->driver_private; in crtc_set_mode_major() 103 if (output->crtc == crtc) in crtc_set_mode_major() 139 if (!crtc->active && crtc->version >= 3) in crtc_set_mode_major() 140 crtc->funcs->gamma_set(crtc, crtc->gamma_red, crtc->gamma_green, in crtc_set_mode_major() 141 crtc->gamma_blue, crtc->gamma_size); in crtc_set_mode_major() 142 crtc->active = TRUE; in crtc_set_mode_major() [all …]
|
D | xorg_driver.c | 236 xf86CrtcPtr crtc = xf86_config->crtc[i]; in drv_crtc_resize() local 238 if (!crtc->enabled) in drv_crtc_resize() 241 crtc->funcs->set_mode_major(crtc, &crtc->mode, crtc->rotation, crtc->x, crtc->y); in drv_crtc_resize() 729 xf86CrtcPtr crtc = xf86_config->crtc[c]; in drv_load_palette() local 733 if (crtc->randr_crtc) in drv_load_palette() 734 RRCrtcGammaSet(crtc->randr_crtc, ms->lut_r, ms->lut_g, ms->lut_b); in drv_load_palette() 737 crtc->funcs->gamma_set(crtc, ms->lut_r, ms->lut_g, ms->lut_b, 256); in drv_load_palette() 900 xf86CrtcPtr crtc = output->crtc; in drv_adjust_frame() local 902 if (crtc && crtc->enabled) { in drv_adjust_frame() 903 crtc->funcs->set_mode_major(crtc, pScrn->currentMode, in drv_adjust_frame() [all …]
|
/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() 115 test_crtc->crtc->mode.hdisplay - plane_w); in main() 116 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() 200 dev->crtcs[i].crtc = drmModeGetCrtc(dev->fd, r->crtcs[i]); in create_sp_dev() 201 if (!dev->crtcs[i].crtc) { in create_sp_dev() 344 if (dev->crtcs[i].crtc) in destroy_sp_dev() 345 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/modetest/ |
D | modetest.c | 65 struct crtc { struct 66 drmModeCrtc *crtc; argument 96 struct crtc *crtcs; 415 struct crtc *_crtc = &dev->resources->crtcs[i]; in dump_crtcs() 416 drmModeCrtc *crtc = _crtc->crtc; in dump_crtcs() local 417 if (!crtc) in dump_crtcs() 421 crtc->crtc_id, in dump_crtcs() 422 crtc->buffer_id, in dump_crtcs() 423 crtc->x, crtc->y, in dump_crtcs() 424 crtc->width, crtc->height); in dump_crtcs() [all …]
|
/external/mesa3d/src/gallium/state_trackers/egl/drm/ |
D | modeset.c | 171 if (drmsurf->is_shown && drmcrtc->crtc) { in drm_surface_swap_buffers() 172 err = drmModePageFlip(drmdpy->fd, drmcrtc->crtc->crtc_id, in drm_surface_swap_buffers() 236 if (drmsurf->current_crtc.crtc) in drm_surface_destroy() 237 drmModeFreeCrtc(drmsurf->current_crtc.crtc); in drm_surface_destroy() 397 if (drmcrtc->crtc) { in drm_display_set_crtc() 398 crtc_id = drmcrtc->crtc->crtc_id; in drm_display_set_crtc() 411 drmcrtc->crtc = drmModeGetCrtc(drmdpy->fd, crtc_id); in drm_display_set_crtc() 412 if (!drmcrtc->crtc) in drm_display_set_crtc() 437 drmModeFreeCrtc(drmcrtc->crtc); in drm_display_set_crtc() 438 drmcrtc->crtc = NULL; in drm_display_set_crtc() [all …]
|
D | native_drm.h | 82 drmModeCrtcPtr crtc; member
|
/external/libdrm/tests/modeprint/ |
D | modeprint.c | 228 int printCrtc(int fd, drmModeResPtr res, drmModeCrtcPtr crtc, uint32_t id) in printCrtc() argument 232 printf("\tx : %i\n", crtc->x); in printCrtc() 233 printf("\ty : %i\n", crtc->y); in printCrtc() 234 printf("\twidth : %i\n", crtc->width); in printCrtc() 235 printf("\theight : %i\n", crtc->height); in printCrtc() 236 printf("\tmode : %p\n", &crtc->mode); in printCrtc() 237 printf("\tgamma size : %d\n", crtc->gamma_size); in printCrtc() 260 drmModeCrtcPtr crtc; in printRes() local 304 crtc = drmModeGetCrtc(fd, res->crtcs[i]); in printRes() 306 if (!crtc) in printRes() [all …]
|
/external/drm_hwcomposer/ |
D | drmresources.cpp | 104 DrmCrtc *crtc = new DrmCrtc(this, c, i); in Init() local 108 if (!crtc) { in Init() 114 ret = crtc->Init(); in Init() 117 delete crtc; in Init() 120 crtcs_.push_back(crtc); in Init() 312 DrmCrtc *crtc = enc->crtc(); in TryEncoderForDisplay() local 313 if (crtc && crtc->can_bind(display)) { in TryEncoderForDisplay() 314 crtc->set_display(display); in TryEncoderForDisplay() 322 if (*iter == enc->crtc()) in TryEncoderForDisplay() 472 int DrmResources::GetCrtcProperty(const DrmCrtc &crtc, const char *prop_name, in GetCrtcProperty() argument [all …]
|
D | drmcomposition.cpp | 59 DrmCrtc *crtc = drm_->GetCrtcForDisplay(display); in Init() local 61 int ret = composition_map_[display]->Init(drm_, crtc, importer_, frame_no); in Init() 137 DrmCrtc *crtc = drm_->GetCrtcForDisplay(display); in DisableUnusedPlanes() local 138 if (!crtc) { in DisableUnusedPlanes() 145 if ((*iter)->GetCrtcSupported(*crtc)) { in DisableUnusedPlanes() 153 if ((*iter)->GetCrtcSupported(*crtc)) { in DisableUnusedPlanes()
|
D | drmencoder.cpp | 41 DrmCrtc *DrmEncoder::crtc() const { in crtc() function in android::DrmEncoder 45 void DrmEncoder::set_crtc(DrmCrtc *crtc) { in set_crtc() argument 46 crtc_ = crtc; in set_crtc()
|
D | drmdisplaycomposition.cpp | 48 int DrmDisplayComposition::Init(DrmResources *drm, DrmCrtc *crtc, in Init() argument 51 crtc_ = crtc; // Can be NULL if we haven't modeset yet in Init() 126 static size_t CountUsablePlanes(DrmCrtc *crtc, in CountUsablePlanes() argument 131 [=](DrmPlane *plane) { return plane->GetCrtcSupported(*crtc); }) + in CountUsablePlanes() 134 [=](DrmPlane *plane) { return plane->GetCrtcSupported(*crtc); }); in CountUsablePlanes() 137 static DrmPlane *TakePlane(DrmCrtc *crtc, std::vector<DrmPlane *> *planes) { in TakePlane() argument 139 if ((*iter)->GetCrtcSupported(*crtc)) { in TakePlane() 148 static DrmPlane *TakePlane(DrmCrtc *crtc, in TakePlane() argument 151 DrmPlane *plane = TakePlane(crtc, primary_planes); in TakePlane() 154 return TakePlane(crtc, overlay_planes); in TakePlane()
|
D | drmdisplaycomposition.h | 55 DrmCrtc *crtc; member 65 int Init(DrmResources *drm, DrmCrtc *crtc, Importer *importer, 119 DrmCrtc *crtc() const { in crtc() function
|
D | drmencoder.h | 38 DrmCrtc *crtc() const; 39 void set_crtc(DrmCrtc *crtc);
|
D | vsyncworker.cpp | 164 DrmCrtc *crtc = drm_->GetCrtcForDisplay(display); in Routine() local 165 if (!crtc) { in Routine() 169 uint32_t high_crtc = (crtc->pipe() << DRM_VBLANK_HIGH_CRTC_SHIFT); in Routine()
|
D | drmdisplaycompositor.cpp | 603 DrmCrtc *crtc = drm_->GetCrtcForDisplay(display_); in CommitFrame() local 604 if (!crtc) { in CommitFrame() 619 ret = drm_->GetCrtcProperty(*crtc, crtc->mode_property().name().c_str(), in CommitFrame() 622 ALOGE("Failed to get old mode property from crtc %d", crtc->id()); in CommitFrame() 645 ret = drmModePropertySetAdd(pset, crtc->id(), crtc->mode_property().id(), in CommitFrame() 648 connector->crtc_id_property().id(), crtc->id()); in CommitFrame() 659 DrmCrtc *crtc = comp_plane.crtc; in CommitFrame() local 761 crtc->id()) || in CommitFrame()
|
D | drmplane.cpp | 138 bool DrmPlane::GetCrtcSupported(const DrmCrtc &crtc) const { in GetCrtcSupported() 139 return !!((1 << crtc.pipe()) & possible_crtc_mask_); in GetCrtcSupported()
|
D | drmplane.h | 40 bool GetCrtcSupported(const DrmCrtc &crtc) const;
|
D | drmresources.h | 54 int GetCrtcProperty(const DrmCrtc &crtc, const char *prop_name,
|
/external/libdrm/ |
D | xf86drmMode.c | 351 struct drm_mode_crtc crtc; in drmModeGetCrtc() local 354 VG_CLEAR(crtc); in drmModeGetCrtc() 355 crtc.crtc_id = crtcId; in drmModeGetCrtc() 357 if (drmIoctl(fd, DRM_IOCTL_MODE_GETCRTC, &crtc)) in drmModeGetCrtc() 367 r->crtc_id = crtc.crtc_id; in drmModeGetCrtc() 368 r->x = crtc.x; in drmModeGetCrtc() 369 r->y = crtc.y; in drmModeGetCrtc() 370 r->mode_valid = crtc.mode_valid; in drmModeGetCrtc() 372 memcpy(&r->mode, &crtc.mode, sizeof(struct drm_mode_modeinfo)); in drmModeGetCrtc() 373 r->width = crtc.mode.hdisplay; in drmModeGetCrtc() [all …]
|
/external/libdrm/tests/exynos/ |
D | exynos_fimg2d_test.c | 67 int crtc; member 139 if (c->crtc == -1) in connector_find_mode() 140 c->crtc = c->encoder->crtc_id; in connector_find_mode() 179 ret = drmModeSetCrtc(dev->fd, c->crtc, in drm_set_crtc() 575 con.crtc = -1; in main() 581 &con.crtc, in main()
|