Lines Matching refs:drmmode

60     drmmode_ptr drmmode;
83 drmmode_ptr drmmode;
102 return crtc->drmmode;
139 drmmode_ptr drmmode = drmmode_from_scrn(scrn);
140 *prev = drmmode->fb_id;
141 drmmode->fb_id = next;
146 drmmode_ptr drmmode;
188 drmmode_ptr drmmode = drmmode_from_scrn(scrn);
192 if (e->drmmode == drmmode && e->name == name) {
206 drmmode_ptr drmmode = drmmode_from_scrn(scrn);
211 e->drmmode = drmmode;
224 drmmode_ptr drmmode = drmmode_from_scrn(scrn);
225 return drmHandleEvent(drmmode->fd, &drmmode->event_context);
231 drmmode_ptr drmmode = drmmode_from_scrn(scrn);
235 if (e->drmmode == drmmode) {
245 drmmode_ptr drmmode = drmmode_from_scrn(scrn);
246 drmmode->event_context.version = DRM_EVENT_CONTEXT_VERSION;
247 drmmode->event_context.vblank_handler = drmmode_event_handler;
248 drmmode->event_context.page_flip_handler = drmmode_event_handler;
355 drmmode_ptr drmmode = drmmode_crtc->drmmode;
363 if (drmmode->fb_id == 0) {
367 ret = drmModeAddFB(drmmode->fd,
371 &drmmode->fb_id);
402 fb_id = drmmode->fb_id;
415 ret = drmModeSetCrtc(drmmode->fd, drmmode_crtc->mode_crtc->crtc_id,
451 drmmode_ptr drmmode = drmmode_crtc->drmmode;
453 drmModeMoveCursor(drmmode->fd, drmmode_crtc->mode_crtc->crtc_id, x, y);
474 drmmode_ptr drmmode = drmmode_crtc->drmmode;
480 drmModeSetCursor(drmmode->fd, drmmode_crtc->mode_crtc->crtc_id,
489 drmmode_ptr drmmode = drmmode_crtc->drmmode;
491 drmModeSetCursor(drmmode->fd, drmmode_crtc->mode_crtc->crtc_id,
500 drmmode_ptr drmmode = drmmode_crtc->drmmode;
502 drmModeSetCursor(drmmode->fd, drmmode_crtc->mode_crtc->crtc_id,
512 drmmode_ptr drmmode = drmmode_crtc->drmmode;
537 ret = drmModeAddFB(drmmode->fd, width, height, crtc->scrn->depth,
575 drmmode_ptr drmmode = drmmode_crtc->drmmode;
581 drmModeRmFB(drmmode->fd, drmmode_crtc->rotate_fb_id);
593 drmmode_ptr drmmode = drmmode_crtc->drmmode;
596 ret = drmModeCrtcSetGamma(drmmode->fd, drmmode_crtc->mode_crtc->crtc_id,
613 drmmode_ptr drmmode = drmmode_crtc->drmmode;
622 if (drmmode && drmmode->fb_id) {
623 drmModeRmFB(drmmode->fd, drmmode->fb_id);
624 drmmode->fb_id = 0;
690 drmmode_crtc_init(ScrnInfoPtr pScrn, drmmode_ptr drmmode, drmModeResPtr mode_res, int num)
703 drmmode_crtc->mode_crtc = drmModeGetCrtc(drmmode->fd,
705 drmmode_crtc->drmmode = drmmode;
727 drmmode_ptr drmmode = drmmode_output->drmmode;
736 drmModeGetConnector(drmmode->fd, drmmode_output->output_id);
809 drmmode_ptr drmmode = drmmode_output->drmmode;
821 koutput_get_prop_blob(drmmode->fd, koutput, "TILE");
836 drmmode_ptr drmmode = drmmode_output->drmmode;
846 koutput_get_prop_blob(drmmode->fd, koutput, "EDID");
895 drmmode_ptr drmmode = drmmode_output->drmmode;
902 props = drmModeGetProperty(drmmode->fd, koutput->props[i]);
916 drmModeConnectorSetProperty(drmmode->fd, koutput->connector_id,
941 drmmode_ptr drmmode = drmmode_output->drmmode;
952 drmmode_prop = drmModeGetProperty(drmmode->fd, mode_output->props[i]);
1031 drmmode_ptr drmmode = drmmode_output->drmmode;
1048 ret = drmModeConnectorSetProperty(drmmode->fd, drmmode_output->output_id,
1070 ret = drmModeConnectorSetProperty(drmmode->fd,
1094 drmmode_ptr drmmode = drmmode_output->drmmode;
1101 drmModeGetConnector(drmmode->fd, drmmode_output->output_id);
1286 drmmode_output_init(ScrnInfoPtr pScrn, drmmode_ptr drmmode, drmModeResPtr mode_res, int num, Bool dynamic, int crtcshift)
1299 koutput = drmModeGetConnector(drmmode->fd,
1304 path_blob = koutput_get_prop_blob(drmmode->fd, koutput, "PATH");
1328 kencoder = drmModeGetEncoder(drmmode->fd, koutput->encoders[0]);
1374 drmmode_output->drmmode = drmmode;
1400 drmmode_ptr drmmode = NULL;
1408 drmmode = drmmode_crtc->drmmode;
1418 if (drmmode)
1419 old_fb_id = drmmode->fb_id;
1436 if (drmmode) {
1437 ret = drmModeAddFB(drmmode->fd, width, height, scrn->depth,
1439 &drmmode->fb_id);
1477 drmModeRmFB(drmmode->fd, old_fb_id);
1487 if (drmmode)
1488 drmmode->fb_id = old_fb_id;
1499 drmmode_ptr drmmode;
1506 drmmode = XNFcallocarray(sizeof(*drmmode), 1);
1507 drmmode->fd = fd;
1508 drmmode->fb_id = 0;
1512 drmmode->cpp = cpp;
1513 mode_res = drmModeGetResources(drmmode->fd);
1522 free(drmmode);
1529 crtcs_needed += drmmode_output_init(pScrn, drmmode, mode_res, i, FALSE, crtcshift);
1537 crtcs_needed -= drmmode_crtc_init(pScrn, drmmode, mode_res, i);
1577 drmmode_ptr drmmode;
1585 drmmode = drmmode_crtc->drmmode;
1587 if (drmmode->fb_id)
1588 drmModeRmFB(drmmode->fd, drmmode->fb_id);
1589 drmmode->fb_id = 0;
1614 drmmode_ptr drmmode = drmmode_from_scrn(scrn);
1621 while ((dev = udev_monitor_receive_device(drmmode->uevent_monitor))) {
1651 koutput = drmModeGetConnectorCurrent(drmmode->fd, con_id);
1655 idx = koutput_get_prop_idx(drmmode->fd, koutput,
1673 mode_res = drmModeGetResources(drmmode->fd);
1724 drmmode_output_init(scrn, drmmode, mode_res, i, TRUE, 0);
1763 drmmode_ptr drmmode = drmmode_from_scrn(scrn);
1796 drmmode->uevent_monitor = mon;
1804 drmmode_ptr drmmode = drmmode_from_scrn(scrn);
1806 if (drmmode->uevent_monitor) {
1807 struct udev *u = udev_monitor_get_udev(drmmode->uevent_monitor);
1810 RemoveNotifyFd(udev_monitor_get_fd(drmmode->uevent_monitor));
1812 RemoveGeneralSocket(udev_monitor_get_fd(drmmode->uevent_monitor));
1814 udev_monitor_unref(drmmode->uevent_monitor);
1825 drmmode_ptr drmmode = drmmode_from_scrn(scrn);
1826 drmHandleEvent(drmmode->fd, &drmmode->event_context);
1834 drmmode_ptr drmmode = drmmode_from_scrn(scrn);
1840 if (FD_ISSET(drmmode->fd, read_mask))
1841 drmHandleEvent(drmmode->fd, &drmmode->event_context);
1844 if (FD_ISSET(udev_monitor_get_fd(drmmode->uevent_monitor), read_mask))
1854 drmmode_ptr drmmode = drmmode_from_scrn(scrn);
1867 SetNotifyFd(drmmode->fd, drmmode_notify_fd, X_NOTIFY_READ, scrn);
1869 AddGeneralSocket(drmmode->fd);
1884 drmmode_ptr drmmode = drmmode_from_scrn(scrn);
1892 RemoveNotifyFd(drmmode->fd);
1897 RemoveGeneralSocket(drmmode->fd);