Lines Matching defs:port
36 unsigned char port;
64 outb(L4_SELECT_DIGITAL + (l4->port >> 2), L4_PORT);
67 outb(l4->port & 3, L4_PORT);
94 if (l4->port != 0 && mode != GAMEPORT_MODE_COOKED)
104 static int l4_getcal(int port, int *cal)
109 outb(L4_SELECT_DIGITAL + (port >> 2), L4_PORT);
117 if (inb(L4_PORT) != L4_SELECT_DIGITAL + (port >> 2))
122 outb(port & 3, L4_PORT);
140 static int l4_setcal(int port, int *cal)
145 outb(L4_SELECT_DIGITAL + (port >> 2), L4_PORT);
153 if (inb(L4_PORT) != L4_SELECT_DIGITAL + (port >> 2))
158 outb(port & 3, L4_PORT);
183 if (l4_getcal(l4->port, cal))
194 if (l4_setcal(l4->port, cal))
203 struct gameport *port;
211 if (!(l4->gameport = port = gameport_allocate_port())) {
219 l4->port = idx;
221 port->port_data = l4;
222 port->open = l4_open;
223 port->cooked_read = l4_cooked_read;
224 port->calibrate = l4_calibrate;
226 gameport_set_name(port, "PDPI Lightning 4");
227 gameport_set_phys(port, "isa%04x/gameport%d", L4_PORT, idx);
230 port->io = L4_PORT;
278 l4_setcal(l4->port, cal);
313 l4_setcal(l4_ports[i].port, cal);