a3d 97 drivers/input/joystick/a3d.c static void a3d_read(struct a3d *a3d, unsigned char *data) a3d 99 drivers/input/joystick/a3d.c struct input_dev *dev = a3d->dev; a3d 101 drivers/input/joystick/a3d.c switch (a3d->mode) { a3d 116 drivers/input/joystick/a3d.c a3d->axes[0] = ((signed char)((data[11] << 6) | (data[12] << 3) | (data[13]))) + 128; a3d 117 drivers/input/joystick/a3d.c a3d->axes[1] = ((signed char)((data[14] << 6) | (data[15] << 3) | (data[16]))) + 128; a3d 118 drivers/input/joystick/a3d.c a3d->axes[2] = ((signed char)((data[17] << 6) | (data[18] << 3) | (data[19]))) + 128; a3d 119 drivers/input/joystick/a3d.c a3d->axes[3] = ((signed char)((data[20] << 6) | (data[21] << 3) | (data[22]))) + 128; a3d 121 drivers/input/joystick/a3d.c a3d->buttons = ((data[3] << 3) | data[4]) & 0xf; a3d 164 drivers/input/joystick/a3d.c struct a3d *a3d = gameport_get_drvdata(gameport); a3d 167 drivers/input/joystick/a3d.c a3d->reads++; a3d 168 drivers/input/joystick/a3d.c if (a3d_read_packet(a3d->gameport, a3d->length, data) != a3d->length || a3d 169 drivers/input/joystick/a3d.c data[0] != a3d->mode || a3d_csum(data, a3d->length)) a3d 170 drivers/input/joystick/a3d.c a3d->bads++; a3d 172 drivers/input/joystick/a3d.c a3d_read(a3d, data); a3d 183 drivers/input/joystick/a3d.c struct a3d *a3d = gameport->port_data; a3d 187 drivers/input/joystick/a3d.c axes[i] = (a3d->axes[i] < 254) ? a3d->axes[i] : -1; a3d 188 drivers/input/joystick/a3d.c *buttons = a3d->buttons; a3d 199 drivers/input/joystick/a3d.c struct a3d *a3d = gameport->port_data; a3d 204 drivers/input/joystick/a3d.c gameport_start_polling(a3d->gameport); a3d 214 drivers/input/joystick/a3d.c struct a3d *a3d = gameport->port_data; a3d 216 drivers/input/joystick/a3d.c gameport_stop_polling(a3d->gameport); a3d 225 drivers/input/joystick/a3d.c struct a3d *a3d = input_get_drvdata(dev); a3d 227 drivers/input/joystick/a3d.c gameport_start_polling(a3d->gameport); a3d 237 drivers/input/joystick/a3d.c struct a3d *a3d = input_get_drvdata(dev); a3d 239 drivers/input/joystick/a3d.c gameport_stop_polling(a3d->gameport); a3d 248 drivers/input/joystick/a3d.c struct a3d *a3d; a3d 255 drivers/input/joystick/a3d.c a3d = kzalloc(sizeof(struct a3d), GFP_KERNEL); a3d 257 drivers/input/joystick/a3d.c if (!a3d || !input_dev) { a3d 262 drivers/input/joystick/a3d.c a3d->dev = input_dev; a3d 263 drivers/input/joystick/a3d.c a3d->gameport = gameport; a3d 265 drivers/input/joystick/a3d.c gameport_set_drvdata(gameport, a3d); a3d 278 drivers/input/joystick/a3d.c a3d->mode = data[0]; a3d 280 drivers/input/joystick/a3d.c if (!a3d->mode || a3d->mode > 5) { a3d 282 drivers/input/joystick/a3d.c "(%s, id=%d), contact <vojtech@ucw.cz>\n", gameport->phys, a3d->mode); a3d 290 drivers/input/joystick/a3d.c snprintf(a3d->phys, sizeof(a3d->phys), "%s/input0", gameport->phys); a3d 292 drivers/input/joystick/a3d.c input_dev->name = a3d_names[a3d->mode]; a3d 293 drivers/input/joystick/a3d.c input_dev->phys = a3d->phys; a3d 296 drivers/input/joystick/a3d.c input_dev->id.product = a3d->mode; a3d 302 drivers/input/joystick/a3d.c input_set_drvdata(input_dev, a3d); a3d 304 drivers/input/joystick/a3d.c if (a3d->mode == A3D_MODE_PXL) { a3d 308 drivers/input/joystick/a3d.c a3d->length = 33; a3d 324 drivers/input/joystick/a3d.c a3d_read(a3d, data); a3d 336 drivers/input/joystick/a3d.c a3d->length = 29; a3d 343 drivers/input/joystick/a3d.c a3d_read(a3d, data); a3d 345 drivers/input/joystick/a3d.c if (!(a3d->adc = adc = gameport_allocate_port())) a3d 348 drivers/input/joystick/a3d.c adc->port_data = a3d; a3d 354 drivers/input/joystick/a3d.c gameport_set_name(adc, a3d_names[a3d->mode]); a3d 362 drivers/input/joystick/a3d.c err = input_register_device(a3d->dev); a3d 368 drivers/input/joystick/a3d.c fail3: if (a3d->adc) a3d 369 drivers/input/joystick/a3d.c gameport_unregister_port(a3d->adc); a3d 373 drivers/input/joystick/a3d.c kfree(a3d); a3d 379 drivers/input/joystick/a3d.c struct a3d *a3d = gameport_get_drvdata(gameport); a3d 381 drivers/input/joystick/a3d.c input_unregister_device(a3d->dev); a3d 382 drivers/input/joystick/a3d.c if (a3d->adc) a3d 383 drivers/input/joystick/a3d.c gameport_unregister_port(a3d->adc); a3d 386 drivers/input/joystick/a3d.c kfree(a3d); a3d 161 sound/pci/au88x0/au88x0.h a3dsrc_t a3d[NR_A3D]; a3d 544 sound/pci/au88x0/au88x0_a3d.c a3dsrc_t *a3dsrc = &(v->a3d[source + (slice * 4)]); a3d 593 sound/pci/au88x0/au88x0_a3d.c a3dsrc_ZeroStateA3D(&v->a3d[0], v); a3d 853 sound/pci/au88x0/au88x0_a3d.c snd_ctl_new1(&vortex_a3d_kcontrol, &vortex->a3d[i])) == NULL) a3d 864 sound/pci/au88x0/au88x0_a3d.c snd_ctl_new1(&vortex_a3d_kcontrol, &vortex->a3d[i])) == NULL) a3d 875 sound/pci/au88x0/au88x0_a3d.c snd_ctl_new1(&vortex_a3d_kcontrol, &vortex->a3d[i])) == NULL) a3d 886 sound/pci/au88x0/au88x0_a3d.c snd_ctl_new1(&vortex_a3d_kcontrol, &vortex->a3d[i])) == NULL) a3d 2138 sound/pci/au88x0/au88x0_core.c int a3d = 0; a3d 2165 sound/pci/au88x0/au88x0_core.c if ((a3d = a3d 2176 sound/pci/au88x0/au88x0_core.c vortex_Vort3D_InitializeSource(&vortex->a3d[a3d], en, a3d 2218 sound/pci/au88x0/au88x0_core.c vortex_route(vortex, en, 0x11, ADB_SRCOUT(src[i]), ADB_A3DIN(a3d));