Lines Matching defs:id
88 unsigned char id;
182 for (i = 0; i < 4 && i < gf2k_axes[gf2k->id]; i++)
185 for (i = 0; i < 2 && i < gf2k_axes[gf2k->id] - 4; i++)
190 for (i = 0; i < gf2k_hats[gf2k->id]; i++)
195 for (i = 0; i < gf2k_joys[gf2k->id]; i++)
198 for (i = 0; i < gf2k_pads[gf2k->id]; i++)
215 if (gf2k_read_packet(gf2k->gameport, gf2k_length[gf2k->id], data) < gf2k_length[gf2k->id])
237 * gf2k_connect() probes for Genius id joysticks.
276 if (!(gf2k->id = GB(7,2,0) | GB(3,3,2) | GB(0,3,5))) {
282 if ((gf2k->id != (GB(19,2,0) | GB(15,3,2) | GB(12,3,5))) ||
283 (gf2k->id != (GB(31,2,0) | GB(27,3,2) | GB(24,3,5)))) {
288 gf2k->id = 6;
291 if (gf2k->id > GF2K_ID_MAX || !gf2k_axes[gf2k->id]) {
292 printk(KERN_WARNING "gf2k.c: Not yet supported joystick on %s. [id: %d type:%s]\n",
293 gameport->phys, gf2k->id, gf2k->id > GF2K_ID_MAX ? "Unknown" : gf2k_names[gf2k->id]);
303 gf2k->length = gf2k_lens[gf2k->id];
305 input_dev->name = gf2k_names[gf2k->id];
307 input_dev->id.bustype = BUS_GAMEPORT;
308 input_dev->id.vendor = GAMEPORT_ID_VENDOR_GENIUS;
309 input_dev->id.product = gf2k->id;
310 input_dev->id.version = 0x0100;
320 for (i = 0; i < gf2k_axes[gf2k->id]; i++)
323 for (i = 0; i < gf2k_hats[gf2k->id]; i++) {
329 for (i = 0; i < gf2k_joys[gf2k->id]; i++)
332 for (i = 0; i < gf2k_pads[gf2k->id]; i++)
338 for (i = 0; i < gf2k_axes[gf2k->id]; i++) {