Searched refs:crtc (Results 1 - 25 of 30) sorted by relevance

12

/external/libdrm/tests/planetest/
H A Dmodeset.c13 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 Dmodeset.h10 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);
H A Dplanetest.c43 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 Ddev.h37 drmModeCrtcPtr crtc; member in struct:sp_crtc
60 void parse_arguments(int argc, char *argv[], int *card, int *crtc);
H A Datomictest.c55 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];
115 test_crtc->crtc->mode.hdisplay - plane_w);
116 incrementor(&y_inc, &y, 5, 0, test_crtc->crtc->mode.vdisplay -
H A Ddev.c22 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) {
200 dev->crtcs[i].crtc = drmModeGetCrtc(dev->fd, r->crtcs[i]);
201 if (!dev->crtcs[i].crtc) {
[all...]
/external/mesa3d/src/gallium/state_trackers/xorg/
H A Dxorg_crtc.c73 crtc_dpms(xf86CrtcPtr crtc, int mode) argument
75 /* ScrnInfoPtr pScrn = crtc->scrn; */
88 crtc_set_mode_major(xf86CrtcPtr crtc, DisplayModePtr mode, argument
91 xf86CrtcConfigPtr config = XF86_CRTC_CONFIG_PTR(crtc->scrn);
92 modesettingPtr ms = modesettingPTR(crtc->scrn);
94 struct crtc_private *crtcp = crtc->driver_private;
103 if (output->crtc == crtc)
139 if (!crtc->active && crtc
154 crtc_gamma_set(xf86CrtcPtr crtc, CARD16 * red, CARD16 * green, CARD16 * blue, int size) argument
193 crtc_set_cursor_colors(xf86CrtcPtr crtc, int bg, int fg) argument
199 crtc_set_cursor_position(xf86CrtcPtr crtc, int x, int y) argument
208 crtc_load_cursor_argb_ga3d(xf86CrtcPtr crtc, CARD32 * image) argument
267 crtc_load_cursor_argb_kms(xf86CrtcPtr crtc, CARD32 * image) argument
312 crtc_load_cursor_argb(xf86CrtcPtr crtc, CARD32 * image) argument
338 crtc_show_cursor(xf86CrtcPtr crtc) argument
349 crtc_hide_cursor(xf86CrtcPtr crtc) argument
361 xorg_crtc_cursor_destroy(xf86CrtcPtr crtc) argument
378 crtc_destroy(xf86CrtcPtr crtc) argument
412 xf86CrtcPtr crtc; local
[all...]
H A Dxorg_driver.c231 * create && bind will turn off all crtc(s) in the kernel so we need to
236 xf86CrtcPtr crtc = xf86_config->crtc[i]; local
238 if (!crtc->enabled)
241 crtc->funcs->set_mode_major(crtc, &crtc->mode, crtc->rotation, crtc->x, crtc
729 xf86CrtcPtr crtc = xf86_config->crtc[c]; local
900 xf86CrtcPtr crtc = output->crtc; local
930 xf86CrtcPtr crtc = config->crtc[o]; local
[all...]
/external/drm_hwcomposer/
H A Ddrmencoder.cpp41 DrmCrtc *DrmEncoder::crtc() const { function in class:android::DrmEncoder
45 void DrmEncoder::set_crtc(DrmCrtc *crtc) { argument
46 crtc_ = crtc;
H A Ddrmencoder.h38 DrmCrtc *crtc() const;
39 void set_crtc(DrmCrtc *crtc);
H A Ddrmcomposition.cpp59 DrmCrtc *crtc = drm_->GetCrtcForDisplay(display); local
61 int ret = composition_map_[display]->Init(drm_, crtc, importer_, frame_no);
137 DrmCrtc *crtc = drm_->GetCrtcForDisplay(display); local
138 if (!crtc) {
139 ALOGE("Failed to find crtc for display %d", display);
145 if ((*iter)->GetCrtcSupported(*crtc)) {
153 if ((*iter)->GetCrtcSupported(*crtc)) {
H A Ddrmresources.cpp99 ALOGE("Failed to get crtc %d", res->crtcs[i]);
104 DrmCrtc *crtc = new DrmCrtc(this, c, i); local
108 if (!crtc) {
109 ALOGE("Failed to allocate crtc %d", res->crtcs[i]);
114 ret = crtc->Init();
116 ALOGE("Failed to initialize crtc %d", res->crtcs[i]);
117 delete crtc;
120 crtcs_.push_back(crtc);
311 /* First try to use the currently-bound crtc */
312 DrmCrtc *crtc local
472 GetCrtcProperty(const DrmCrtc &crtc, const char *prop_name, DrmProperty *property) argument
[all...]
H A Ddrmdisplaycomposition.h55 DrmCrtc *crtc; member in struct:android::DrmCompositionPlane
65 int Init(DrmResources *drm, DrmCrtc *crtc, Importer *importer,
119 DrmCrtc *crtc() const { function in class:android::DrmDisplayComposition
H A Ddrmdisplaycomposition.cpp48 int DrmDisplayComposition::Init(DrmResources *drm, DrmCrtc *crtc, argument
51 crtc_ = crtc; // Can be NULL if we haven't modeset yet
126 static size_t CountUsablePlanes(DrmCrtc *crtc, argument
131 [=](DrmPlane *plane) { return plane->GetCrtcSupported(*crtc); }) +
134 [=](DrmPlane *plane) { return plane->GetCrtcSupported(*crtc); });
137 static DrmPlane *TakePlane(DrmCrtc *crtc, std::vector<DrmPlane *> *planes) { argument
139 if ((*iter)->GetCrtcSupported(*crtc)) {
148 static DrmPlane *TakePlane(DrmCrtc *crtc, argument
151 DrmPlane *plane = TakePlane(crtc, primary_planes);
154 return TakePlane(crtc, overlay_plane
[all...]
H A Dvsyncworker.cpp164 DrmCrtc *crtc = drm_->GetCrtcForDisplay(display);
165 if (!crtc) {
166 ALOGE("Failed to get crtc for display");
169 uint32_t high_crtc = (crtc->pipe() << DRM_VBLANK_HIGH_CRTC_SHIFT);
H A Ddrmplane.cpp138 bool DrmPlane::GetCrtcSupported(const DrmCrtc &crtc) const {
139 return !!((1 << crtc.pipe()) & possible_crtc_mask_);
H A Ddrmplane.h40 bool GetCrtcSupported(const DrmCrtc &crtc) const;
H A Ddrmresources.h54 int GetCrtcProperty(const DrmCrtc &crtc, const char *prop_name,
H A Ddrmdisplaycompositor.cpp603 DrmCrtc *crtc = drm_->GetCrtcForDisplay(display_); local
604 if (!crtc) {
605 ALOGE("Could not locate crtc for display %d", display_);
619 ret = drm_->GetCrtcProperty(*crtc, crtc->mode_property().name().c_str(),
622 ALOGE("Failed to get old mode property from crtc %d", crtc->id());
645 ret = drmModePropertySetAdd(pset, crtc->id(), crtc->mode_property().id(),
648 connector->crtc_id_property().id(), crtc
659 DrmCrtc *crtc = comp_plane.crtc; local
[all...]
/external/libdrm/tests/modeprint/
H A Dmodeprint.c228 int printCrtc(int fd, drmModeResPtr res, drmModeCrtcPtr crtc, uint32_t id) argument
232 printf("\tx : %i\n", crtc->x);
233 printf("\ty : %i\n", crtc->y);
234 printf("\twidth : %i\n", crtc->width);
235 printf("\theight : %i\n", crtc->height);
236 printf("\tmode : %p\n", &crtc->mode);
237 printf("\tgamma size : %d\n", crtc->gamma_size);
260 drmModeCrtcPtr crtc; local
304 crtc = drmModeGetCrtc(fd, res->crtcs[i]);
306 if (!crtc)
[all...]
/external/mesa3d/src/gallium/state_trackers/egl/drm/
H A Dmodeset.c171 if (drmsurf->is_shown && drmcrtc->crtc) {
172 err = drmModePageFlip(drmdpy->fd, drmcrtc->crtc->crtc_id,
236 if (drmsurf->current_crtc.crtc)
237 drmModeFreeCrtc(drmsurf->current_crtc.crtc);
397 if (drmcrtc->crtc) {
398 crtc_id = drmcrtc->crtc->crtc_id;
411 drmcrtc->crtc = drmModeGetCrtc(drmdpy->fd, crtc_id);
412 if (!drmcrtc->crtc)
437 drmModeFreeCrtc(drmcrtc->crtc);
438 drmcrtc->crtc
[all...]
H A Dnative_drm.h82 drmModeCrtcPtr crtc; member in struct:drm_crtc
/external/libdrm/tests/modetest/
H A Dmodetest.c65 struct crtc { struct
66 drmModeCrtc *crtc; member in struct:crtc
96 struct crtc *crtcs;
415 struct crtc *_crtc = &dev->resources->crtcs[i];
416 drmModeCrtc *crtc = _crtc->crtc; local
417 if (!crtc)
421 crtc->crtc_id,
422 crtc->buffer_id,
423 crtc
665 drmModeCrtc *crtc = dev->resources->crtcs[i].crtc; local
721 struct crtc *crtc; member in struct:pipe_arg
838 struct crtc *crtc = &dev->resources->crtcs[i]; local
974 struct crtc *crtc = NULL; local
[all...]
/external/libdrm/
H A Dxf86drmMode.c351 struct drm_mode_crtc crtc; local
354 VG_CLEAR(crtc);
355 crtc.crtc_id = crtcId;
357 if (drmIoctl(fd, DRM_IOCTL_MODE_GETCRTC, &crtc))
367 r->crtc_id = crtc.crtc_id;
368 r->x = crtc.x;
369 r->y = crtc.y;
370 r->mode_valid = crtc.mode_valid;
372 memcpy(&r->mode, &crtc.mode, sizeof(struct drm_mode_modeinfo));
373 r->width = crtc
386 struct drm_mode_crtc crtc; local
[all...]
/external/libdrm/tests/exynos/
H A Dexynos_fimg2d_test.c67 int crtc; member in struct:connector
139 if (c->crtc == -1)
140 c->crtc = c->encoder->crtc_id;
179 ret = drmModeSetCrtc(dev->fd, c->crtc,
575 con.crtc = -1;
581 &con.crtc,

Completed in 433 milliseconds

12