Lines Matching refs:i
24 int i; in rtlx_interrupt() local
34 for (i = 0; i < RTLX_CHANNELS; i++) { in rtlx_interrupt()
35 wake_up(&channel_wqs[i].lx_queue); in rtlx_interrupt()
36 wake_up(&channel_wqs[i].rt_queue); in rtlx_interrupt()
50 int i, err; in rtlx_module_init() local
71 for (i = 0; i < RTLX_CHANNELS; i++) { in rtlx_module_init()
72 init_waitqueue_head(&channel_wqs[i].rt_queue); in rtlx_module_init()
73 init_waitqueue_head(&channel_wqs[i].lx_queue); in rtlx_module_init()
74 atomic_set(&channel_wqs[i].in_open, 0); in rtlx_module_init()
75 mutex_init(&channel_wqs[i].mutex); in rtlx_module_init()
77 dev = device_create(mt_class, NULL, MKDEV(major, i), NULL, in rtlx_module_init()
78 "%s%d", RTLX_MODULE_NAME, i); in rtlx_module_init()
80 while (i--) in rtlx_module_init()
81 device_destroy(mt_class, MKDEV(major, i)); in rtlx_module_init()
104 for (i = 0; i < RTLX_CHANNELS; i++) in rtlx_module_init()
105 device_destroy(mt_class, MKDEV(major, i)); in rtlx_module_init()
114 int i; in rtlx_module_exit() local
116 for (i = 0; i < RTLX_CHANNELS; i++) in rtlx_module_exit()
117 device_destroy(mt_class, MKDEV(major, i)); in rtlx_module_exit()