Lines Matching defs:nr
362 unsigned int nr = DRM_IOCTL_NR(cmd);
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_BASE)) {
382 ioctl = &drm_ioctls[nr];
391 if ((nr == DRM_IOCTL_NR(DRM_IOCTL_DMA)) && dev->driver->dma_ioctl)