amijoy_dev 35 drivers/input/joystick/amijoy.c static struct input_dev *amijoy_dev[2]; amijoy_dev 50 drivers/input/joystick/amijoy.c input_report_key(amijoy_dev[i], BTN_TRIGGER, button); amijoy_dev 52 drivers/input/joystick/amijoy.c input_report_abs(amijoy_dev[i], ABS_X, ((data >> 1) & 1) - ((data >> 9) & 1)); amijoy_dev 54 drivers/input/joystick/amijoy.c input_report_abs(amijoy_dev[i], ABS_Y, ((data >> 1) & 1) - ((data >> 9) & 1)); amijoy_dev 56 drivers/input/joystick/amijoy.c input_sync(amijoy_dev[i]); amijoy_dev 101 drivers/input/joystick/amijoy.c amijoy_dev[i] = input_allocate_device(); amijoy_dev 102 drivers/input/joystick/amijoy.c if (!amijoy_dev[i]) { amijoy_dev 108 drivers/input/joystick/amijoy.c input_free_device(amijoy_dev[i]); amijoy_dev 113 drivers/input/joystick/amijoy.c amijoy_dev[i]->name = "Amiga joystick"; amijoy_dev 114 drivers/input/joystick/amijoy.c amijoy_dev[i]->phys = amijoy_phys[i]; amijoy_dev 115 drivers/input/joystick/amijoy.c amijoy_dev[i]->id.bustype = BUS_AMIGA; amijoy_dev 116 drivers/input/joystick/amijoy.c amijoy_dev[i]->id.vendor = 0x0001; amijoy_dev 117 drivers/input/joystick/amijoy.c amijoy_dev[i]->id.product = 0x0003; amijoy_dev 118 drivers/input/joystick/amijoy.c amijoy_dev[i]->id.version = 0x0100; amijoy_dev 120 drivers/input/joystick/amijoy.c amijoy_dev[i]->open = amijoy_open; amijoy_dev 121 drivers/input/joystick/amijoy.c amijoy_dev[i]->close = amijoy_close; amijoy_dev 123 drivers/input/joystick/amijoy.c amijoy_dev[i]->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS); amijoy_dev 124 drivers/input/joystick/amijoy.c amijoy_dev[i]->absbit[0] = BIT_MASK(ABS_X) | BIT_MASK(ABS_Y); amijoy_dev 125 drivers/input/joystick/amijoy.c amijoy_dev[i]->keybit[BIT_WORD(BTN_LEFT)] = BIT_MASK(BTN_LEFT) | amijoy_dev 128 drivers/input/joystick/amijoy.c input_set_abs_params(amijoy_dev[i], ABS_X + j, amijoy_dev 132 drivers/input/joystick/amijoy.c err = input_register_device(amijoy_dev[i]); amijoy_dev 134 drivers/input/joystick/amijoy.c input_free_device(amijoy_dev[i]); amijoy_dev 142 drivers/input/joystick/amijoy.c input_unregister_device(amijoy_dev[i]); amijoy_dev 154 drivers/input/joystick/amijoy.c input_unregister_device(amijoy_dev[i]);