Lines Matching refs:VIDEO_NUM_DEVICES
34 #define VIDEO_NUM_DEVICES 256 macro
99 static struct video_device *video_devices[VIDEO_NUM_DEVICES];
101 static DECLARE_BITMAP(devnode_nums[VFL_TYPE_MAX], VIDEO_NUM_DEVICES);
506 static DECLARE_BITMAP(used, VIDEO_NUM_DEVICES); in get_index()
509 bitmap_zero(used, VIDEO_NUM_DEVICES); in get_index()
511 for (i = 0; i < VIDEO_NUM_DEVICES; i++) { in get_index()
518 return find_first_zero_bit(used, VIDEO_NUM_DEVICES); in get_index()
887 int minor_cnt = VIDEO_NUM_DEVICES; in __video_register_device()
989 for (i = 0; i < VIDEO_NUM_DEVICES; i++) in __video_register_device()
992 if (i == VIDEO_NUM_DEVICES) { in __video_register_device()
1179 ret = register_chrdev_region(dev, VIDEO_NUM_DEVICES, VIDEO_NAME); in videodev_init()
1188 unregister_chrdev_region(dev, VIDEO_NUM_DEVICES); in videodev_init()
1201 unregister_chrdev_region(dev, VIDEO_NUM_DEVICES); in videodev_exit()