Symbol: tgfx
drivers/input/joystick/turbografx.c
100
mod_timer(&tgfx->timer, jiffies + TGFX_REFRESH_TIME);
drivers/input/joystick/turbografx.c
105
struct tgfx *tgfx = input_get_drvdata(dev);
drivers/input/joystick/turbografx.c
107
scoped_guard(mutex_intr, &tgfx->sem) {
drivers/input/joystick/turbografx.c
108
if (!tgfx->used++) {
drivers/input/joystick/turbografx.c
109
parport_claim(tgfx->pd);
drivers/input/joystick/turbografx.c
110
parport_write_control(tgfx->pd->port, 0x04);
drivers/input/joystick/turbografx.c
111
mod_timer(&tgfx->timer, jiffies + TGFX_REFRESH_TIME);
drivers/input/joystick/turbografx.c
122
struct tgfx *tgfx = input_get_drvdata(dev);
drivers/input/joystick/turbografx.c
124
guard(mutex)(&tgfx->sem);
drivers/input/joystick/turbografx.c
126
if (!--tgfx->used) {
drivers/input/joystick/turbografx.c
127
timer_delete_sync(&tgfx->timer);
drivers/input/joystick/turbografx.c
128
parport_write_control(tgfx->pd->port, 0x00);
drivers/input/joystick/turbografx.c
129
parport_release(tgfx->pd);
drivers/input/joystick/turbografx.c
141
struct tgfx *tgfx;
drivers/input/joystick/turbografx.c
173
tgfx = kzalloc_obj(*tgfx);
drivers/input/joystick/turbografx.c
174
if (!tgfx) {
drivers/input/joystick/turbografx.c
179
mutex_init(&tgfx->sem);
drivers/input/joystick/turbografx.c
180
tgfx->pd = pd;
drivers/input/joystick/turbografx.c
181
tgfx->parportno = pp->number;
drivers/input/joystick/turbografx.c
182
timer_setup(&tgfx->timer, tgfx_timer, 0);
drivers/input/joystick/turbografx.c
193
tgfx->dev[i] = input_dev = input_allocate_device();
drivers/input/joystick/turbografx.c
199
tgfx->sticks |= (1 << i);
drivers/input/joystick/turbografx.c
200
snprintf(tgfx->name[i], sizeof(tgfx->name[i]),
drivers/input/joystick/turbografx.c
202
snprintf(tgfx->phys[i], sizeof(tgfx->phys[i]),
drivers/input/joystick/turbografx.c
203
"%s/input%d", tgfx->pd->port->name, i);
drivers/input/joystick/turbografx.c
205
input_dev->name = tgfx->name[i];
drivers/input/joystick/turbografx.c
206
input_dev->phys = tgfx->phys[i];
drivers/input/joystick/turbografx.c
212
input_set_drvdata(input_dev, tgfx);
drivers/input/joystick/turbografx.c
224
if (input_register_device(tgfx->dev[i]))
drivers/input/joystick/turbografx.c
228
if (!tgfx->sticks) {
drivers/input/joystick/turbografx.c
233
tgfx_base[port_idx] = tgfx;
drivers/input/joystick/turbografx.c
237
input_free_device(tgfx->dev[i]);
drivers/input/joystick/turbografx.c
240
if (tgfx->dev[i])
drivers/input/joystick/turbografx.c
241
input_unregister_device(tgfx->dev[i]);
drivers/input/joystick/turbografx.c
243
kfree(tgfx);
drivers/input/joystick/turbografx.c
251
struct tgfx *tgfx;
drivers/input/joystick/turbografx.c
261
tgfx = tgfx_base[i];
drivers/input/joystick/turbografx.c
265
if (tgfx->dev[i])
drivers/input/joystick/turbografx.c
266
input_unregister_device(tgfx->dev[i]);
drivers/input/joystick/turbografx.c
267
parport_unregister_device(tgfx->pd);
drivers/input/joystick/turbografx.c
268
kfree(tgfx);
drivers/input/joystick/turbografx.c
75
struct tgfx *tgfx = timer_container_of(tgfx, t, timer);
drivers/input/joystick/turbografx.c
80
if (tgfx->sticks & (1 << i)) {
drivers/input/joystick/turbografx.c
82
dev = tgfx->dev[i];
drivers/input/joystick/turbografx.c
84
parport_write_data(tgfx->pd->port, ~(1 << i));
drivers/input/joystick/turbografx.c
85
data1 = parport_read_status(tgfx->pd->port) ^ 0x7f;
drivers/input/joystick/turbografx.c
86
data2 = parport_read_control(tgfx->pd->port) ^ 0x04; /* CAVEAT parport */