Lines Matching refs:l4
34 struct l4 {
39 static struct l4 l4_ports[8];
59 struct l4 *l4 = gameport->port_data;
64 outb(L4_SELECT_DIGITAL + (l4->port >> 2), L4_PORT);
67 outb(l4->port & 3, L4_PORT);
92 struct l4 *l4 = gameport->port_data;
94 if (l4->port != 0 && mode != GAMEPORT_MODE_COOKED)
181 struct l4 *l4 = gameport->port_data;
183 if (l4_getcal(l4->port, cal))
194 if (l4_setcal(l4->port, cal))
202 struct l4 *l4;
209 l4 = &l4_ports[idx];
211 if (!(l4->gameport = port = gameport_allocate_port())) {
214 gameport_free_port(l4->gameport);
215 l4->gameport = NULL;
219 l4->port = idx;
221 port->port_data = l4;
240 struct l4 *l4;
275 l4 = &l4_ports[card_no * 4 + i];
278 l4_setcal(l4->port, cal);
279 gameport_register_port(l4->gameport);