Lines Matching refs:base
27 static void ppa_reset_pulse(unsigned int base);
31 int base; /* Actual port address */
55 dev->base = dev->dev->port->base;
197 unsigned short ppb = dev->base;
255 static int ppa_byte_out(unsigned short base, const char *buffer, int len)
260 w_dtr(base, *buffer++);
261 w_ctr(base, 0xe);
262 w_ctr(base, 0xc);
267 static int ppa_byte_in(unsigned short base, char *buffer, int len)
272 *buffer++ = r_dtr(base);
273 w_ctr(base, 0x27);
274 w_ctr(base, 0x25);
279 static int ppa_nibble_in(unsigned short base, char *buffer, int len)
284 w_ctr(base, 0x4);
285 h = r_str(base) & 0xf0;
286 w_ctr(base, 0x6);
287 *buffer++ = h | ((r_str(base) & 0xf0) >> 4);
295 unsigned short ppb = dev->base;
340 unsigned short ppb = dev->base;
404 unsigned short ppb = dev->base;
423 unsigned short ppb = dev->base;
437 unsigned short ppb = dev->base;
481 unsigned short ppb = dev->base;
513 w_ctr(dev->base, 0x0c);
537 unsigned short ppb = dev->base;
690 unsigned short ppb = dev->base;
873 static void ppa_reset_pulse(unsigned int base)
875 w_dtr(base, 0x40);
876 w_ctr(base, 0x8);
878 w_ctr(base, 0xc);
890 ppa_reset_pulse(dev->base);
903 int loop, old_mode, status, k, ppb = dev->base;
1024 dev->base = -1;
1053 ppb = dev->base = dev->dev->port->base;
1093 host->io_port = pb->base;