tgfx 78 drivers/input/joystick/turbografx.c struct tgfx *tgfx = from_timer(tgfx, t, timer); tgfx 83 drivers/input/joystick/turbografx.c if (tgfx->sticks & (1 << i)) { tgfx 85 drivers/input/joystick/turbografx.c dev = tgfx->dev[i]; tgfx 87 drivers/input/joystick/turbografx.c parport_write_data(tgfx->pd->port, ~(1 << i)); tgfx 88 drivers/input/joystick/turbografx.c data1 = parport_read_status(tgfx->pd->port) ^ 0x7f; tgfx 89 drivers/input/joystick/turbografx.c data2 = parport_read_control(tgfx->pd->port) ^ 0x04; /* CAVEAT parport */ tgfx 103 drivers/input/joystick/turbografx.c mod_timer(&tgfx->timer, jiffies + TGFX_REFRESH_TIME); tgfx 108 drivers/input/joystick/turbografx.c struct tgfx *tgfx = input_get_drvdata(dev); tgfx 111 drivers/input/joystick/turbografx.c err = mutex_lock_interruptible(&tgfx->sem); tgfx 115 drivers/input/joystick/turbografx.c if (!tgfx->used++) { tgfx 116 drivers/input/joystick/turbografx.c parport_claim(tgfx->pd); tgfx 117 drivers/input/joystick/turbografx.c parport_write_control(tgfx->pd->port, 0x04); tgfx 118 drivers/input/joystick/turbografx.c mod_timer(&tgfx->timer, jiffies + TGFX_REFRESH_TIME); tgfx 121 drivers/input/joystick/turbografx.c mutex_unlock(&tgfx->sem); tgfx 127 drivers/input/joystick/turbografx.c struct tgfx *tgfx = input_get_drvdata(dev); tgfx 129 drivers/input/joystick/turbografx.c mutex_lock(&tgfx->sem); tgfx 130 drivers/input/joystick/turbografx.c if (!--tgfx->used) { tgfx 131 drivers/input/joystick/turbografx.c del_timer_sync(&tgfx->timer); tgfx 132 drivers/input/joystick/turbografx.c parport_write_control(tgfx->pd->port, 0x00); tgfx 133 drivers/input/joystick/turbografx.c parport_release(tgfx->pd); tgfx 135 drivers/input/joystick/turbografx.c mutex_unlock(&tgfx->sem); tgfx 146 drivers/input/joystick/turbografx.c struct tgfx *tgfx; tgfx 178 drivers/input/joystick/turbografx.c tgfx = kzalloc(sizeof(struct tgfx), GFP_KERNEL); tgfx 179 drivers/input/joystick/turbografx.c if (!tgfx) { tgfx 184 drivers/input/joystick/turbografx.c mutex_init(&tgfx->sem); tgfx 185 drivers/input/joystick/turbografx.c tgfx->pd = pd; tgfx 186 drivers/input/joystick/turbografx.c tgfx->parportno = pp->number; tgfx 187 drivers/input/joystick/turbografx.c timer_setup(&tgfx->timer, tgfx_timer, 0); tgfx 198 drivers/input/joystick/turbografx.c tgfx->dev[i] = input_dev = input_allocate_device(); tgfx 204 drivers/input/joystick/turbografx.c tgfx->sticks |= (1 << i); tgfx 205 drivers/input/joystick/turbografx.c snprintf(tgfx->name[i], sizeof(tgfx->name[i]), tgfx 207 drivers/input/joystick/turbografx.c snprintf(tgfx->phys[i], sizeof(tgfx->phys[i]), tgfx 208 drivers/input/joystick/turbografx.c "%s/input%d", tgfx->pd->port->name, i); tgfx 210 drivers/input/joystick/turbografx.c input_dev->name = tgfx->name[i]; tgfx 211 drivers/input/joystick/turbografx.c input_dev->phys = tgfx->phys[i]; tgfx 217 drivers/input/joystick/turbografx.c input_set_drvdata(input_dev, tgfx); tgfx 229 drivers/input/joystick/turbografx.c if (input_register_device(tgfx->dev[i])) tgfx 233 drivers/input/joystick/turbografx.c if (!tgfx->sticks) { tgfx 238 drivers/input/joystick/turbografx.c tgfx_base[port_idx] = tgfx; tgfx 242 drivers/input/joystick/turbografx.c input_free_device(tgfx->dev[i]); tgfx 245 drivers/input/joystick/turbografx.c if (tgfx->dev[i]) tgfx 246 drivers/input/joystick/turbografx.c input_unregister_device(tgfx->dev[i]); tgfx 248 drivers/input/joystick/turbografx.c kfree(tgfx); tgfx 256 drivers/input/joystick/turbografx.c struct tgfx *tgfx; tgfx 266 drivers/input/joystick/turbografx.c tgfx = tgfx_base[i]; tgfx 270 drivers/input/joystick/turbografx.c if (tgfx->dev[i]) tgfx 271 drivers/input/joystick/turbografx.c input_unregister_device(tgfx->dev[i]); tgfx 272 drivers/input/joystick/turbografx.c parport_unregister_device(tgfx->pd); tgfx 273 drivers/input/joystick/turbografx.c kfree(tgfx);