Lines Matching refs:drmIoctl
183 drmIoctl(int fd, unsigned long request, void *arg) in drmIoctl() function
866 if (drmIoctl(fd, DRM_IOCTL_VERSION, version)) { in drmGetVersion()
878 if (drmIoctl(fd, DRM_IOCTL_VERSION, version)) { in drmGetVersion()
938 ret = drmIoctl(fd, DRM_IOCTL_GET_CAP, &cap); in drmGetCap()
954 return drmIoctl(fd, DRM_IOCTL_SET_CLIENT_CAP, &cap); in drmSetClientCap()
989 if (drmIoctl(fd, DRM_IOCTL_GET_UNIQUE, &u)) in drmGetBusid()
992 if (drmIoctl(fd, DRM_IOCTL_GET_UNIQUE, &u)) { in drmGetBusid()
1022 if (drmIoctl(fd, DRM_IOCTL_SET_UNIQUE, &u)) { in drmSetBusid()
1035 if (drmIoctl(fd, DRM_IOCTL_GET_MAGIC, &auth)) in drmGetMagic()
1047 if (drmIoctl(fd, DRM_IOCTL_AUTH_MAGIC, &auth)) in drmAuthMagic()
1112 if (drmIoctl(fd, DRM_IOCTL_ADD_MAP, &map)) in drmAddMap()
1126 if(drmIoctl(fd, DRM_IOCTL_RM_MAP, &map)) in drmRmMap()
1158 if (drmIoctl(fd, DRM_IOCTL_ADD_BUFS, &request)) in drmAddBufs()
1170 if (drmIoctl(fd, DRM_IOCTL_INFO_BUFS, &info)) in drmMarkBufs()
1179 if (drmIoctl(fd, DRM_IOCTL_INFO_BUFS, &info)) { in drmMarkBufs()
1188 if (drmIoctl(fd, DRM_IOCTL_MARK_BUFS, &info.list[i])) { in drmMarkBufs()
1221 if (drmIoctl(fd, DRM_IOCTL_FREE_BUFS, &request)) in drmFreeBufs()
1309 if (drmIoctl(fd, DRM_IOCTL_INFO_BUFS, &info)) in drmGetBufInfo()
1316 if (drmIoctl(fd, DRM_IOCTL_INFO_BUFS, &info)) { in drmGetBufInfo()
1358 if (drmIoctl(fd, DRM_IOCTL_MAP_BUFS, &bufs)) in drmMapBufs()
1367 if (drmIoctl(fd, DRM_IOCTL_MAP_BUFS, &bufs)) { in drmMapBufs()
1481 while (drmIoctl(fd, DRM_IOCTL_LOCK, &lock)) in drmGetLock()
1504 return drmIoctl(fd, DRM_IOCTL_UNLOCK, &lock); in drmUnlock()
1515 if (drmIoctl(fd, DRM_IOCTL_RES_CTX, &res)) in drmGetReservedContextList()
1527 if (drmIoctl(fd, DRM_IOCTL_RES_CTX, &res)) in drmGetReservedContextList()
1572 if (drmIoctl(fd, DRM_IOCTL_ADD_CTX, &ctx)) in drmCreateContext()
1584 if (drmIoctl(fd, DRM_IOCTL_SWITCH_CTX, &ctx)) in drmSwitchToContext()
1605 if (drmIoctl(fd, DRM_IOCTL_MOD_CTX, &ctx)) in drmSetContextFlags()
1617 if (drmIoctl(fd, DRM_IOCTL_GET_CTX, &ctx)) in drmGetContextFlags()
1650 if (drmIoctl(fd, DRM_IOCTL_RM_CTX, &ctx)) in drmDestroyContext()
1660 if (drmIoctl(fd, DRM_IOCTL_ADD_DRAW, &draw)) in drmCreateDrawable()
1672 if (drmIoctl(fd, DRM_IOCTL_RM_DRAW, &draw)) in drmDestroyDrawable()
1689 if (drmIoctl(fd, DRM_IOCTL_UPDATE_DRAW, &update)) in drmUpdateDrawableInfo()
1702 ret = drmIoctl(fd, DRM_IOCTL_CRTC_GET_SEQUENCE, &get_seq); in drmCrtcGetSequence()
1725 ret = drmIoctl(fd, DRM_IOCTL_CRTC_QUEUE_SEQUENCE, &queue_seq); in drmCrtcQueueSequence()
1746 if (drmIoctl(fd, DRM_IOCTL_AGP_ACQUIRE, NULL)) in drmAgpAcquire()
1764 if (drmIoctl(fd, DRM_IOCTL_AGP_RELEASE, NULL)) in drmAgpRelease()
1788 if (drmIoctl(fd, DRM_IOCTL_AGP_ENABLE, &m)) in drmAgpEnable()
1819 if (drmIoctl(fd, DRM_IOCTL_AGP_ALLOC, &b)) in drmAgpAlloc()
1846 if (drmIoctl(fd, DRM_IOCTL_AGP_FREE, &b)) in drmAgpFree()
1872 if (drmIoctl(fd, DRM_IOCTL_AGP_BIND, &b)) in drmAgpBind()
1896 if (drmIoctl(fd, DRM_IOCTL_AGP_UNBIND, &b)) in drmAgpUnbind()
1919 if (drmIoctl(fd, DRM_IOCTL_AGP_INFO, &i)) in drmAgpVersionMajor()
1942 if (drmIoctl(fd, DRM_IOCTL_AGP_INFO, &i)) in drmAgpVersionMinor()
1965 if (drmIoctl(fd, DRM_IOCTL_AGP_INFO, &i)) in drmAgpGetMode()
1988 if (drmIoctl(fd, DRM_IOCTL_AGP_INFO, &i)) in drmAgpBase()
2011 if (drmIoctl(fd, DRM_IOCTL_AGP_INFO, &i)) in drmAgpSize()
2034 if (drmIoctl(fd, DRM_IOCTL_AGP_INFO, &i)) in drmAgpMemoryUsed()
2057 if (drmIoctl(fd, DRM_IOCTL_AGP_INFO, &i)) in drmAgpMemoryAvail()
2080 if (drmIoctl(fd, DRM_IOCTL_AGP_INFO, &i)) in drmAgpVendorId()
2103 if (drmIoctl(fd, DRM_IOCTL_AGP_INFO, &i)) in drmAgpDeviceId()
2116 if (drmIoctl(fd, DRM_IOCTL_SG_ALLOC, &sg)) in drmScatterGatherAlloc()
2128 if (drmIoctl(fd, DRM_IOCTL_SG_FREE, &sg)) in drmScatterGatherFree()
2220 if (drmIoctl(fd, DRM_IOCTL_CONTROL, &ctl)) in drmCtlInstHandler()
2244 if (drmIoctl(fd, DRM_IOCTL_CONTROL, &ctl)) in drmCtlUninstHandler()
2261 if (drmIoctl(fd, DRM_IOCTL_FINISH, &lock)) in drmFinish()
2288 if (drmIoctl(fd, DRM_IOCTL_IRQ_BUSID, &p)) in drmGetInterruptFromBusID()
2331 if (drmIoctl(fd, DRM_IOCTL_SET_SAREA_CTX, &map)) in drmAddContextPrivateMapping()
2344 if (drmIoctl(fd, DRM_IOCTL_GET_SAREA_CTX, &map)) in drmGetContextPrivateMapping()
2360 if (drmIoctl(fd, DRM_IOCTL_GET_MAP, &map)) in drmGetMap()
2378 if (drmIoctl(fd, DRM_IOCTL_GET_CLIENT, &client)) in drmGetClient()
2394 if (drmIoctl(fd, DRM_IOCTL_GET_STATS, &s)) in drmGetStats()
2537 if (drmIoctl(fd, DRM_IOCTL_SET_VERSION, &sv)) { in drmSetInterfaceVersion()
2567 if (drmIoctl(fd, request, NULL)) { in drmCommandNone()
2596 if (drmIoctl(fd, request, data)) { in drmCommandRead()
2625 if (drmIoctl(fd, request, data)) { in drmCommandWrite()
2654 if (drmIoctl(fd, request, data)) in drmCommandWriteRead()
2730 return drmIoctl(fd, DRM_IOCTL_SET_MASTER, NULL); in drmSetMaster()
2735 return drmIoctl(fd, DRM_IOCTL_DROP_MASTER, NULL); in drmDropMaster()
2795 ret = drmIoctl(fd, DRM_IOCTL_PRIME_HANDLE_TO_FD, &args); in drmPrimeHandleToFD()
2810 ret = drmIoctl(fd, DRM_IOCTL_PRIME_FD_TO_HANDLE, &args); in drmPrimeFDToHandle()
3030 if (drmIoctl(fd, DRM_IOCTL_GET_PCIINFO, &pinfo)) { in drmParsePciBusInfo()
3194 if (drmIoctl(fd, DRM_IOCTL_GET_PCIINFO, &pinfo)) { in drmParsePciDeviceInfo()
4174 ret = drmIoctl(fd, DRM_IOCTL_SYNCOBJ_CREATE, &args); in drmSyncobjCreate()
4187 return drmIoctl(fd, DRM_IOCTL_SYNCOBJ_DESTROY, &args); in drmSyncobjDestroy()
4198 ret = drmIoctl(fd, DRM_IOCTL_SYNCOBJ_HANDLE_TO_FD, &args); in drmSyncobjHandleToFD()
4213 ret = drmIoctl(fd, DRM_IOCTL_SYNCOBJ_FD_TO_HANDLE, &args); in drmSyncobjFDToHandle()
4228 return drmIoctl(fd, DRM_IOCTL_SYNCOBJ_FD_TO_HANDLE, &args); in drmSyncobjImportSyncFile()
4240 ret = drmIoctl(fd, DRM_IOCTL_SYNCOBJ_HANDLE_TO_FD, &args); in drmSyncobjExportSyncFile()
4260 ret = drmIoctl(fd, DRM_IOCTL_SYNCOBJ_WAIT, &args); in drmSyncobjWait()
4278 ret = drmIoctl(fd, DRM_IOCTL_SYNCOBJ_RESET, &args); in drmSyncobjReset()
4291 ret = drmIoctl(fd, DRM_IOCTL_SYNCOBJ_SIGNAL, &args); in drmSyncobjSignal()