Lines Matching full:l4
37 struct l4 { struct
42 static struct l4 l4_ports[8]; argument
45 * l4_wait_ready() waits for the L4 to become ready.
62 struct l4 *l4 = gameport->port_data; in l4_cooked_read() local
67 outb(L4_SELECT_DIGITAL + (l4->port >> 2), L4_PORT); in l4_cooked_read()
70 outb(l4->port & 3, L4_PORT); in l4_cooked_read()
95 struct l4 *l4 = gameport->port_data; in l4_open() local
97 if (l4->port != 0 && mode != GAMEPORT_MODE_COOKED) in l4_open()
104 * l4_getcal() reads the L4 with calibration values.
140 * l4_setcal() programs the L4 with calibration values.
176 * l4_calibrate() calibrates the L4 for the attached device, so
177 * that the device's resistance fits into the L4's 8-bit range.
184 struct l4 *l4 = gameport->port_data; in l4_calibrate() local
186 if (l4_getcal(l4->port, cal)) in l4_calibrate()
197 if (l4_setcal(l4->port, cal)) in l4_calibrate()
205 struct l4 *l4; in l4_create_ports() local
212 l4 = &l4_ports[idx]; in l4_create_ports()
214 if (!(l4->gameport = port = gameport_allocate_port())) { in l4_create_ports()
217 gameport_free_port(l4->gameport); in l4_create_ports()
218 l4->gameport = NULL; in l4_create_ports()
222 l4->port = idx; in l4_create_ports()
224 port->port_data = l4; in l4_create_ports()
243 struct l4 *l4; in l4_add_card() local
278 l4 = &l4_ports[card_no * 4 + i]; in l4_add_card()
281 l4_setcal(l4->port, cal); in l4_add_card()
282 gameport_register_port(l4->gameport); in l4_add_card()