Lines Matching refs:fd

116     int      fd;  member
121 extern int drmIoctl(int fd, unsigned long request, void *arg);
123 extern drmHashEntry *drmGetEntry(int fd);
487 #define DRM_LIGHT_LOCK(fd,lock,context) \ argument
491 if (__ret) drmGetLock(fd,context,0); \
496 #define DRM_LIGHT_LOCK_COUNT(fd,lock,context,count) \ argument
500 if (__ret) drmGetLock(fd,context,0); \
504 #define DRM_LOCK(fd,lock,context,flags) \ argument
506 if (flags) drmGetLock(fd,context,flags); \
507 else DRM_LIGHT_LOCK(fd,lock,context); \
510 #define DRM_UNLOCK(fd,lock,context) \ argument
514 if (__ret) drmUnlock(fd,context); \
573 extern int drmClose(int fd);
574 extern drmVersionPtr drmGetVersion(int fd);
575 extern drmVersionPtr drmGetLibVersion(int fd);
576 extern int drmGetCap(int fd, uint64_t capability, uint64_t *value);
578 extern int drmGetMagic(int fd, drm_magic_t * magic);
579 extern char *drmGetBusid(int fd);
580 extern int drmGetInterruptFromBusID(int fd, int busnum, int devnum,
582 extern int drmGetMap(int fd, int idx, drm_handle_t *offset,
586 extern int drmGetClient(int fd, int idx, int *auth, int *pid,
589 extern int drmGetStats(int fd, drmStatsT *stats);
590 extern int drmSetInterfaceVersion(int fd, drmSetVersion *version);
591 extern int drmCommandNone(int fd, unsigned long drmCommandIndex);
592 extern int drmCommandRead(int fd, unsigned long drmCommandIndex,
594 extern int drmCommandWrite(int fd, unsigned long drmCommandIndex,
596 extern int drmCommandWriteRead(int fd, unsigned long drmCommandIndex,
601 extern int drmSetBusid(int fd, const char *busid);
602 extern int drmAuthMagic(int fd, drm_magic_t magic);
603 extern int drmAddMap(int fd,
609 extern int drmRmMap(int fd, drm_handle_t handle);
610 extern int drmAddContextPrivateMapping(int fd, drm_context_t ctx_id,
613 extern int drmAddBufs(int fd, int count, int size,
616 extern int drmMarkBufs(int fd, double low, double high);
617 extern int drmCreateContext(int fd, drm_context_t * handle);
618 extern int drmSetContextFlags(int fd, drm_context_t context,
620 extern int drmGetContextFlags(int fd, drm_context_t context,
622 extern int drmAddContextTag(int fd, drm_context_t context, void *tag);
623 extern int drmDelContextTag(int fd, drm_context_t context);
624 extern void *drmGetContextTag(int fd, drm_context_t context);
625 extern drm_context_t * drmGetReservedContextList(int fd, int *count);
627 extern int drmSwitchToContext(int fd, drm_context_t context);
628 extern int drmDestroyContext(int fd, drm_context_t handle);
629 extern int drmCreateDrawable(int fd, drm_drawable_t * handle);
630 extern int drmDestroyDrawable(int fd, drm_drawable_t handle);
631 extern int drmUpdateDrawableInfo(int fd, drm_drawable_t handle,
634 extern int drmCtlInstHandler(int fd, int irq);
635 extern int drmCtlUninstHandler(int fd);
636 extern int drmSetClientCap(int fd, uint64_t capability,
640 extern int drmMap(int fd,
645 extern drmBufInfoPtr drmGetBufInfo(int fd);
646 extern drmBufMapPtr drmMapBufs(int fd);
648 extern int drmDMA(int fd, drmDMAReqPtr request);
649 extern int drmFreeBufs(int fd, int count, int *list);
650 extern int drmGetLock(int fd,
653 extern int drmUnlock(int fd, drm_context_t context);
654 extern int drmFinish(int fd, int context, drmLockFlags flags);
655 extern int drmGetContextPrivateMapping(int fd, drm_context_t ctx_id,
659 extern int drmAgpAcquire(int fd);
660 extern int drmAgpRelease(int fd);
661 extern int drmAgpEnable(int fd, unsigned long mode);
662 extern int drmAgpAlloc(int fd, unsigned long size,
665 extern int drmAgpFree(int fd, drm_handle_t handle);
666 extern int drmAgpBind(int fd, drm_handle_t handle,
668 extern int drmAgpUnbind(int fd, drm_handle_t handle);
671 extern int drmAgpVersionMajor(int fd);
672 extern int drmAgpVersionMinor(int fd);
673 extern unsigned long drmAgpGetMode(int fd);
674 extern unsigned long drmAgpBase(int fd); /* Physical location */
675 extern unsigned long drmAgpSize(int fd); /* Bytes */
676 extern unsigned long drmAgpMemoryUsed(int fd);
677 extern unsigned long drmAgpMemoryAvail(int fd);
678 extern unsigned int drmAgpVendorId(int fd);
679 extern unsigned int drmAgpDeviceId(int fd);
682 extern int drmScatterGatherAlloc(int fd, unsigned long size,
684 extern int drmScatterGatherFree(int fd, drm_handle_t handle);
686 extern int drmWaitVBlank(int fd, drmVBlankPtr vbl);
725 extern void drmCloseOnce(int fd);
728 extern int drmSetMaster(int fd);
729 extern int drmDropMaster(int fd);
739 void (*vblank_handler)(int fd,
745 void (*page_flip_handler)(int fd,
753 extern int drmHandleEvent(int fd, drmEventContextPtr evctx);
755 extern char *drmGetDeviceNameFromFd(int fd);
756 extern int drmGetNodeTypeFromFd(int fd);
758 extern int drmPrimeHandleToFD(int fd, uint32_t handle, uint32_t flags, int *prime_fd);
759 extern int drmPrimeFDToHandle(int fd, int prime_fd, uint32_t *handle);
761 extern char *drmGetPrimaryDeviceNameFromFd(int fd);
762 extern char *drmGetRenderDeviceNameFromFd(int fd);
793 extern int drmGetDevice(int fd, drmDevicePtr *device);