Lines Matching refs:drmmode

111 //	drmmode_ptr drmmode = drmmode_crtc->drmmode;
118 // drmModeSetCrtc(drmmode->fd, drmmode_crtc->mode_crtc->crtc_id,
132 drmmode_ptr drmmode = drmmode_crtc->drmmode;
148 if (drmmode->fb_id == 0) {
149 ret = drmModeAddFB(drmmode->fd,
154 &drmmode->fb_id);
202 fb_id = drmmode->fb_id;
207 ret = drmModeSetCrtc(drmmode->fd, drmmode_crtc->mode_crtc->crtc_id,
265 drmmode_ptr drmmode = drmmode_crtc->drmmode;
267 drmModeMoveCursor(drmmode->fd, drmmode_crtc->mode_crtc->crtc_id, x, y);
274 drmmode_ptr drmmode = drmmode_crtc->drmmode;
282 ret = drmModeSetCursor2(drmmode->fd, drmmode_crtc->mode_crtc->crtc_id, handle, 64, 64, cursor->bits->xhot, cursor->bits->yhot);
288 drmModeSetCursor(drmmode->fd, drmmode_crtc->mode_crtc->crtc_id, handle, 64, 64);
311 drmmode_ptr drmmode = drmmode_crtc->drmmode;
313 drmModeSetCursor(drmmode->fd, drmmode_crtc->mode_crtc->crtc_id, 0, 64, 64);
321 drmmode_ptr drmmode = drmmode_crtc->drmmode;
323 drmModeCrtcSetGamma(drmmode->fd, drmmode_crtc->mode_crtc->crtc_id,
340 drmmode_crtc_init(ScrnInfoPtr pScrn, drmmode_ptr drmmode, int num)
352 drmmode_crtc->mode_crtc = drmModeGetCrtc(drmmode->fd, drmmode->mode_res->crtcs[num]);
353 drmmode_crtc->drmmode = drmmode;
377 drmmode_ptr drmmode = drmmode_output->drmmode;
381 drmmode_output->mode_output = drmModeGetConnector(drmmode->fd, drmmode_output->output_id);
409 drmmode_ptr drmmode = drmmode_output->drmmode;
417 props = drmModeGetProperty(drmmode->fd, koutput->props[i]);
422 drmmode_output->edid_blob = drmModeGetPropertyBlob(drmmode->fd, koutput->prop_values[i]);
474 drmmode_ptr drmmode = drmmode_output->drmmode;
476 drmModeConnectorSetProperty(drmmode->fd, koutput->connector_id,
503 drmmode_ptr drmmode = drmmode_output->drmmode;
513 drmmode_prop = drmModeGetProperty(drmmode->fd, mode_output->props[i]);
591 drmmode_ptr drmmode = drmmode_output->drmmode;
608 drmModeConnectorSetProperty(drmmode->fd, drmmode_output->output_id,
625 drmModeConnectorSetProperty(drmmode->fd, drmmode_output->output_id,
640 drmmode_ptr drmmode = drmmode_output->drmmode;
647 drmModeGetConnector(drmmode->fd, drmmode_output->output_id);
739 drmmode_output_init(ScrnInfoPtr pScrn, drmmode_ptr drmmode, int num)
749 koutput = drmModeGetConnector(drmmode->fd, drmmode->mode_res->connectors[num]);
759 kencoders[i] = drmModeGetEncoder(drmmode->fd, koutput->encoders[i]);
779 drmmode_output->output_id = drmmode->mode_res->connectors[num];
782 drmmode_output->drmmode = drmmode;
799 props = drmModeGetProperty(drmmode->fd, koutput->props[i]);
827 drmmode_ptr drmmode = drmmode_crtc->drmmode;
848 old_fb_id = drmmode->fb_id;
859 ret = drmModeAddFB(drmmode->fd,
864 &drmmode->fb_id);
899 drmModeRmFB(drmmode->fd, old_fb_id);
909 drmmode->fb_id = old_fb_id;
918 Bool drmmode_pre_init(ScrnInfoPtr pScrn, drmmode_ptr drmmode, int cpp)
924 drmmode->scrn = pScrn;
925 drmmode->cpp = cpp;
926 drmmode->mode_res = drmModeGetResources(drmmode->fd);
927 if (!drmmode->mode_res)
930 xf86CrtcSetSizeRange(pScrn, 320, 200, drmmode->mode_res->max_width, drmmode->mode_res->max_height);
931 for (i = 0; i < drmmode->mode_res->count_crtcs; i++)
932 drmmode_crtc_init(pScrn, drmmode, i);
934 for (i = 0; i < drmmode->mode_res->count_connectors; i++)
935 drmmode_output_init(pScrn, drmmode, i);
949 drmmode_ptr drmmode = closure;
950 ScrnInfoPtr scrn = drmmode->scrn;
952 dev = udev_monitor_receive_device(drmmode->uevent_monitor);
961 void qxl_drmmode_uevent_init(ScrnInfoPtr scrn, drmmode_ptr drmmode)
985 drmmode->uevent_handler =
988 drmmode);
990 drmmode->uevent_monitor = mon;
994 void qxl_drmmode_uevent_fini(ScrnInfoPtr scrn, drmmode_ptr drmmode)
997 if (drmmode->uevent_handler) {
998 struct udev *u = udev_monitor_get_udev(drmmode->uevent_monitor);
999 xf86RemoveGeneralHandler(drmmode->uevent_handler);
1001 udev_monitor_unref(drmmode->uevent_monitor);