Lines Matching refs:l4
53 struct l4 { struct
58 static struct l4 l4_ports[8]; argument
78 struct l4 *l4 = gameport->port_data; in l4_cooked_read() local
83 outb(L4_SELECT_DIGITAL + (l4->port >> 2), L4_PORT); in l4_cooked_read()
86 outb(l4->port & 3, L4_PORT); in l4_cooked_read()
111 struct l4 *l4 = gameport->port_data; in l4_open() local
113 if (l4->port != 0 && mode != GAMEPORT_MODE_COOKED) in l4_open()
200 struct l4 *l4 = gameport->port_data; in l4_calibrate() local
202 if (l4_getcal(l4->port, cal)) in l4_calibrate()
213 if (l4_setcal(l4->port, cal)) in l4_calibrate()
221 struct l4 *l4; in l4_create_ports() local
228 l4 = &l4_ports[idx]; in l4_create_ports()
230 if (!(l4->gameport = port = gameport_allocate_port())) { in l4_create_ports()
233 gameport_free_port(l4->gameport); in l4_create_ports()
234 l4->gameport = NULL; in l4_create_ports()
238 l4->port = idx; in l4_create_ports()
240 port->port_data = l4; in l4_create_ports()
259 struct l4 *l4; in l4_add_card() local
294 l4 = &l4_ports[card_no * 4 + i]; in l4_add_card()
297 l4_setcal(l4->port, cal); in l4_add_card()
298 gameport_register_port(l4->gameport); in l4_add_card()