Lines Matching refs:nr
68 #define _IOC_NR(nr) (((nr) >> _IOC_NRSHIFT) & _IOC_NRMASK)
89 #define _IOC(dir, type, nr, size) \
92 ((nr) << _IOC_NRSHIFT) | \
97 #define _IO(type, nr) _IOC(_IOC_NONE, (type), (nr), 0)
98 #define _IOR(type, nr, size) _IOC(_IOC_READ, (type), (nr), sizeof (size))
99 #define _IOW(type, nr, size) _IOC(_IOC_WRITE, (type), (nr), sizeof (size))
100 #define _IOWR(type, nr, size) _IOC(_IOC_READ|_IOC_WRITE, \
101 (type), (nr), sizeof (size))
103 #define _IOC_DIR(nr) (((nr) >> _IOC_DIRSHIFT) & _IOC_DIRMASK)
104 #define _IOC_TYPE(nr) (((nr) >> _IOC_TYPESHIFT) & _IOC_TYPEMASK)
105 #define _IOC_NR(nr) (((nr) >> _IOC_NRSHIFT) & _IOC_NRMASK)
114 #define _IOC_SIZE(nr) (((nr) >> _IOC_SIZESHIFT) & _IOC_SIZEMASK)
121 #define DRM_IOC(dir, group, nr, size) _IOC(dir, group, nr, size)
743 #define DRM_IO(nr) _IO(DRM_IOCTL_BASE,nr)
744 #define DRM_IOR(nr,type) _IOR(DRM_IOCTL_BASE,nr,type)
745 #define DRM_IOW(nr,type) _IOW(DRM_IOCTL_BASE,nr,type)
746 #define DRM_IOWR(nr,type) _IOWR(DRM_IOCTL_BASE,nr,type)