Searched refs:nr (Results 1 - 9 of 9) sorted by relevance

/solaris-x11-s11/open-src/kernel/sys/drm/
H A Ddrm_os_solaris.h46 #define _IOC_NR(nr) (((nr) >> _IOC_NRSHIFT) & _IOC_NRMASK)
69 #define _IOC_SIZE(nr) (((nr) >> _IOC_SIZESHIFT) & _IOC_SIZEMASK)
H A Ddrm.h701 #define DRM_IO(nr) _IO(DRM_IOCTL_BASE,nr)
702 #define DRM_IOR(nr,type) _IOR(DRM_IOCTL_BASE,nr,type)
703 #define DRM_IOW(nr,type) _IOW(DRM_IOCTL_BASE,nr,type)
704 #define DRM_IOWR(nr,type) _IOWR(DRM_IOCTL_BASE,nr,type)
H A Ddrm_linux.h143 #define BITS_TO_LONGS(nr) DIV_ROUND_UP(nr, BITS_PER_BYTE * sizeof(long))
/solaris-x11-s11/open-src/kernel/efb/src/
H A Ddrm.h68 #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), sizeo
[all...]
H A Dr300_cmdbuf.c71 int nr; local
75 nr = cmdbuf->nbox - n;
76 if (nr > R300_SIMULTANEOUS_CLIPRECTS)
77 nr = R300_SIMULTANEOUS_CLIPRECTS;
79 DRM_DEBUG("%i cliprects\n", nr);
81 if (nr) {
82 BEGIN_RING(6 + nr * 2);
83 OUT_RING(CP_PACKET0(R300_RE_CLIPRECT_TL_0, nr * 2 - 1));
85 for (i = 0; i < nr; ++i) {
111 OUT_RING_REG(R300_RE_CLIPRECT_CNTL, r300_cliprect_cntl[nr
[all...]
H A Ddrm_linux.h135 #define BITS_TO_LONGS(nr) DIV_ROUND_UP(nr, BITS_PER_BYTE * sizeof(long))
H A Ddrm_sunmod.c329 int nr; local
366 nr = DRM_IOCTL_NR(cmd);
367 ioctl = &drm_ioctls[nr];
371 if (ioctl->func == NULL && nr >= DRM_COMMAND_BASE) {
372 /* The array entries begin at DRM_COMMAND_BASE ioctl nr */
373 nr -= DRM_COMMAND_BASE;
374 if (nr > dp->driver->max_driver_ioctl) {
376 nr, dp->driver->max_driver_ioctl);
379 ioctl = &dp->driver->driver_ioctls[nr];
H A Dradeon_state.c1518 static int bad_prim_vertex_nr(int primitive, int nr) argument
1523 return (nr < 1);
1525 return ((nr & 1) || nr == 0);
1527 return (nr < 2);
1532 return (nr % 3 || nr == 0);
1535 return (nr < 3);
1660 DRM_DEBUG("hwprim 0x%x vfmt 0x%x %d..%d offset: %x nr %d\n",
/solaris-x11-s11/open-src/kernel/drm/src/
H A Ddrm_drv.c362 unsigned int nr = DRM_IOCTL_NR(cmd); local
372 if ((nr >= DRM_CORE_IOCTL_COUNT) &&
373 ((nr < DRM_COMMAND_BASE) || (nr >= DRM_COMMAND_END)))
375 if ((nr >= DRM_COMMAND_BASE) && (nr < DRM_COMMAND_END) &&
376 (nr < DRM_COMMAND_BASE + dev->driver->num_ioctls)) {
377 ioctl = &dev->driver->ioctls[nr - DRM_COMMAND_BASE];
381 else if ((nr >= DRM_COMMAND_END) || (nr < DRM_COMMAND_BAS
[all...]

Completed in 37 milliseconds