Lines Matching full:l4
34 struct l4 { struct
39 static struct l4 l4_ports[8]; argument
42 * l4_wait_ready() waits for the L4 to become ready.
59 struct l4 *l4 = gameport->port_data; in l4_cooked_read() local
64 outb(L4_SELECT_DIGITAL + (l4->port >> 2), L4_PORT); in l4_cooked_read()
67 outb(l4->port & 3, L4_PORT); in l4_cooked_read()
92 struct l4 *l4 = gameport->port_data; in l4_open() local
94 if (l4->port != 0 && mode != GAMEPORT_MODE_COOKED) in l4_open()
101 * l4_getcal() reads the L4 with calibration values.
137 * l4_setcal() programs the L4 with calibration values.
173 * l4_calibrate() calibrates the L4 for the attached device, so
174 * that the device's resistance fits into the L4's 8-bit range.
181 struct l4 *l4 = gameport->port_data; in l4_calibrate() local
183 if (l4_getcal(l4->port, cal)) in l4_calibrate()
194 if (l4_setcal(l4->port, cal)) in l4_calibrate()
202 struct l4 *l4; in l4_create_ports() local
209 l4 = &l4_ports[idx]; in l4_create_ports()
211 if (!(l4->gameport = port = gameport_allocate_port())) { in l4_create_ports()
214 gameport_free_port(l4->gameport); in l4_create_ports()
215 l4->gameport = NULL; in l4_create_ports()
219 l4->port = idx; in l4_create_ports()
221 port->port_data = l4; in l4_create_ports()
240 struct l4 *l4; in l4_add_card() local
275 l4 = &l4_ports[card_no * 4 + i]; in l4_add_card()
278 l4_setcal(l4->port, cal); in l4_add_card()
279 gameport_register_port(l4->gameport); in l4_add_card()