Lines Matching refs:i
84 int data1, data2, i; in tgfx_timer() local
86 for (i = 0; i < 7; i++) in tgfx_timer()
87 if (tgfx->sticks & (1 << i)) { in tgfx_timer()
89 dev = tgfx->dev + i; in tgfx_timer()
91 parport_write_data(tgfx->pd->port, ~(1 << i)); in tgfx_timer()
137 int i, j; in tgfx_probe() local
168 for (i = 0; i < 7; i++) in tgfx_probe()
169 if (config[i+1] > 0 && config[i+1] < 6) { in tgfx_probe()
171 tgfx->sticks |= (1 << i); in tgfx_probe()
173 tgfx->dev[i].private = tgfx; in tgfx_probe()
174 tgfx->dev[i].open = tgfx_open; in tgfx_probe()
175 tgfx->dev[i].close = tgfx_close; in tgfx_probe()
177 tgfx->dev[i].name = tgfx_name; in tgfx_probe()
178 tgfx->dev[i].idbus = BUS_PARPORT; in tgfx_probe()
179 tgfx->dev[i].idvendor = 0x0003; in tgfx_probe()
180 tgfx->dev[i].idproduct = config[i+1]; in tgfx_probe()
181 tgfx->dev[i].idversion = 0x0100; in tgfx_probe()
183 tgfx->dev[i].evbit[0] = BIT(EV_KEY) | BIT(EV_ABS); in tgfx_probe()
184 tgfx->dev[i].absbit[0] = BIT(ABS_X) | BIT(ABS_Y); in tgfx_probe()
186 for (j = 0; j < config[i+1]; j++) in tgfx_probe()
187 set_bit(tgfx_buttons[j], tgfx->dev[i].keybit); in tgfx_probe()
189 tgfx->dev[i].absmin[ABS_X] = -1; tgfx->dev[i].absmax[ABS_X] = 1; in tgfx_probe()
190 tgfx->dev[i].absmin[ABS_Y] = -1; tgfx->dev[i].absmax[ABS_Y] = 1; in tgfx_probe()
192 input_register_device(tgfx->dev + i); in tgfx_probe()
194 tgfx->dev[i].number, config[i+1], tgfx->pd->port->name); in tgfx_probe()
209 int i, ints[9]; in tgfx_setup() local
211 for (i = 0; i <= ints[0] && i < 8; i++) tgfx[i] = ints[i + 1]; in tgfx_setup()
216 int i, ints[9]; in tgfx_setup_2() local
218 for (i = 0; i <= ints[0] && i < 8; i++) tgfx_2[i] = ints[i + 1]; in tgfx_setup_2()
223 int i, ints[9]; in tgfx_setup_3() local
225 for (i = 0; i <= ints[0] && i < 8; i++) tgfx_3[i] = ints[i + 1]; in tgfx_setup_3()
247 int i, j; in tgfx_exit() local
249 for (i = 0; i < 3; i++) in tgfx_exit()
250 if (tgfx_base[i]) { in tgfx_exit()
252 if (tgfx_base[i]->sticks & (1 << j)) in tgfx_exit()
253 input_unregister_device(tgfx_base[i]->dev + j); in tgfx_exit()
254 parport_unregister_device(tgfx_base[i]->pd); in tgfx_exit()