Lines Matching refs:joystick
29 static struct joystick_status joystick[2]; variable
38 joystick[j].dir = buf[1] & 0xF; in atari_joystick_interrupt()
39 joystick[j].fire = (buf[1] & 0x80) >> 7; in atari_joystick_interrupt()
40 joystick[j].ready = 1; in atari_joystick_interrupt()
41 wake_up_interruptible(&joystick[j].wait); in atari_joystick_interrupt()
65 joystick[minor].active = 0; in release_joystick()
66 joystick[minor].ready = 0; in release_joystick()
68 if ((joystick[0].active == 0) && (joystick[1].active == 0)) in release_joystick()
80 if (joystick[minor].active) in open_joystick()
82 joystick[minor].active = 1; in open_joystick()
83 joystick[minor].ready = 0; in open_joystick()
102 if (!joystick[minor].ready) in read_joystick()
104 joystick[minor].ready = 0; in read_joystick()
105 if (put_user(joystick[minor].fire, buffer++) || in read_joystick()
106 put_user(joystick[minor].dir, buffer++)) in read_joystick()
118 poll_wait(file, &joystick[minor].wait, wait); in joystick_poll()
119 if (joystick[minor].ready) in joystick_poll()
134 joystick[0].active = joystick[1].active = 0; in atari_joystick_init()
135 joystick[0].ready = joystick[1].ready = 0; in atari_joystick_init()
136 init_waitqueue_head(&joystick[0].wait); in atari_joystick_init()
137 init_waitqueue_head(&joystick[1].wait); in atari_joystick_init()