Lines Matching refs:l4
37 struct l4 {
42 static struct l4 l4_ports[8];
62 struct l4 *l4 = gameport->port_data;
67 outb(L4_SELECT_DIGITAL + (l4->port >> 2), L4_PORT);
70 outb(l4->port & 3, L4_PORT);
95 struct l4 *l4 = gameport->port_data;
97 if (l4->port != 0 && mode != GAMEPORT_MODE_COOKED)
184 struct l4 *l4 = gameport->port_data;
186 if (l4_getcal(l4->port, cal))
197 if (l4_setcal(l4->port, cal))
205 struct l4 *l4;
212 l4 = &l4_ports[idx];
214 if (!(l4->gameport = port = gameport_allocate_port())) {
217 gameport_free_port(l4->gameport);
218 l4->gameport = NULL;
222 l4->port = idx;
224 port->port_data = l4;
243 struct l4 *l4;
278 l4 = &l4_ports[card_no * 4 + i];
281 l4_setcal(l4->port, cal);
282 gameport_register_port(l4->gameport);