• Home
  • Raw
  • Download

Lines Matching refs:crtc

74 struct crtc {  struct
75 drmModeCrtc *crtc; member
103 struct crtc *crtcs;
463 struct crtc *_crtc = &dev->resources->crtcs[i]; in dump_crtcs()
464 drmModeCrtc *crtc = _crtc->crtc; in dump_crtcs() local
465 if (!crtc) in dump_crtcs()
469 crtc->crtc_id, in dump_crtcs()
470 crtc->buffer_id, in dump_crtcs()
471 crtc->x, crtc->y, in dump_crtcs()
472 crtc->width, crtc->height); in dump_crtcs()
473 dump_mode(&crtc->mode, 0); in dump_crtcs()
583 free_properties(res, crtc); in free_resources()
591 free_resource(res, crtc, Crtc); in free_resources()
645 get_resource(res, _res, crtc, Crtc); in get_resources()
690 get_properties(res, crtc, CRTC); in get_resources()
694 res->crtcs[i].mode = &res->crtcs[i].crtc->mode; in get_resources()
722 static struct crtc *get_crtc_by_id(struct device *dev, uint32_t id) in get_crtc_by_id()
727 drmModeCrtc *crtc = dev->resources->crtcs[i].crtc; in get_crtc_by_id() local
728 if (crtc && crtc->crtc_id == id) in get_crtc_by_id()
735 static uint32_t get_crtc_mask(struct device *dev, struct crtc *crtc) in get_crtc_mask() argument
740 if (crtc->crtc->crtc_id == dev->resources->crtcs[i].crtc->crtc_id) in get_crtc_mask()
813 struct crtc *crtc; member
875 static struct crtc *pipe_find_crtc(struct device *dev, struct pipe_arg *pipe) in pipe_find_crtc()
887 struct crtc *crtc; in pipe_find_crtc() local
899 crtc = get_crtc_by_id(dev, encoder->crtc_id); in pipe_find_crtc()
900 if (!crtc) in pipe_find_crtc()
902 active_crtcs |= get_crtc_mask(dev, crtc); in pipe_find_crtc()
950 pipe->crtc = get_crtc_by_id(dev, pipe->crtc_id); in pipe_find_crtc_and_mode()
952 pipe->crtc = pipe_find_crtc(dev, pipe); in pipe_find_crtc_and_mode()
953 pipe->crtc_id = pipe->crtc->crtc->crtc_id; in pipe_find_crtc_and_mode()
956 if (!pipe->crtc) { in pipe_find_crtc_and_mode()
962 pipe->crtc->mode = mode; in pipe_find_crtc_and_mode()
1004 find_object(dev->resources, crtc, CRTC); in set_property()
1182 struct crtc *crtc = NULL; in atomic_set_plane() local
1188 crtc = get_crtc_by_id(dev, p->crtc_id); in atomic_set_plane()
1189 if (!crtc) { in atomic_set_plane()
1216 crtc_x = (crtc->mode->hdisplay - crtc_w) / 2; in atomic_set_plane()
1217 crtc_y = (crtc->mode->vdisplay - crtc_h) / 2; in atomic_set_plane()
1242 struct crtc *crtc = NULL; in set_plane() local
1248 crtc = get_crtc_by_id(dev, p->crtc_id); in set_plane()
1249 if (!crtc) { in set_plane()
1253 crtc_mask = get_crtc_mask(dev, crtc); in set_plane()
1292 crtc_x = (crtc->mode->hdisplay - crtc_w) / 2; in set_plane()
1293 crtc_y = (crtc->mode->vdisplay - crtc_h) / 2; in set_plane()
1469 pipe->crtc = pipe_find_crtc(dev, pipe); in pipe_attempt_connector()
1470 if (!pipe->crtc) in pipe_attempt_connector()
1473 pipe->crtc_id = pipe->crtc->crtc->crtc_id; in pipe_attempt_connector()
1537 static struct plane *get_primary_plane_by_crtc(struct device *dev, struct crtc *crtc) in get_primary_plane_by_crtc() argument
1549 if (ovr->possible_crtcs & get_crtc_mask(dev, crtc)) in get_primary_plane_by_crtc()
1650 struct plane *plane = get_primary_plane_by_crtc(dev, pipe->crtc); in set_mode()