Lines Matching refs:l4
49 struct l4 { struct
54 static struct l4 l4_ports[8]; argument
74 struct l4 *l4 = gameport->port_data; in l4_cooked_read() local
79 outb(L4_SELECT_DIGITAL + (l4->port >> 2), L4_PORT); in l4_cooked_read()
82 outb(l4->port & 3, L4_PORT); in l4_cooked_read()
107 struct l4 *l4 = gameport->port_data; in l4_open() local
109 if (l4->port != 0 && mode != GAMEPORT_MODE_COOKED) in l4_open()
196 struct l4 *l4 = gameport->port_data; in l4_calibrate() local
198 if (l4_getcal(l4->port, cal)) in l4_calibrate()
209 if (l4_setcal(l4->port, cal)) in l4_calibrate()
217 struct l4 *l4; in l4_create_ports() local
224 l4 = &l4_ports[idx]; in l4_create_ports()
226 if (!(l4->gameport = port = gameport_allocate_port())) { in l4_create_ports()
229 gameport_free_port(l4->gameport); in l4_create_ports()
230 l4->gameport = NULL; in l4_create_ports()
234 l4->port = idx; in l4_create_ports()
236 port->port_data = l4; in l4_create_ports()
255 struct l4 *l4; in l4_add_card() local
290 l4 = &l4_ports[card_no * 4 + i]; in l4_add_card()
293 l4_setcal(l4->port, cal); in l4_add_card()
294 gameport_register_port(l4->gameport); in l4_add_card()