Lines Matching refs:base
24 static unsigned int base[MAX_NUM_WS16C48];
26 module_param_hw_array(base, uint, ioport, &num_ws16c48, 0);
27 MODULE_PARM_DESC(base, "WinSystems WS16C48 base addresses");
41 * @base: base port address of the GPIO device
50 unsigned base;
76 outb(ws16c48gpio->out_state[port], ws16c48gpio->base + port);
98 outb(ws16c48gpio->out_state[port], ws16c48gpio->base + port);
121 port_state = inb(ws16c48gpio->base + port);
141 port_addr = ws16c48gpio->base + offset / 8;
169 outb(ws16c48gpio->out_state[port], ws16c48gpio->base + port);
187 port_addr = ws16c48gpio->base + index;
222 outb(0x80, ws16c48gpio->base + 7);
223 outb(port_state & ~mask, ws16c48gpio->base + 8 + port);
224 outb(port_state | mask, ws16c48gpio->base + 8 + port);
225 outb(0xC0, ws16c48gpio->base + 7);
247 outb(0x80, ws16c48gpio->base + 7);
248 outb(ws16c48gpio->irq_mask >> (8*port), ws16c48gpio->base + 8 + port);
249 outb(0xC0, ws16c48gpio->base + 7);
271 outb(0x80, ws16c48gpio->base + 7);
272 outb(ws16c48gpio->irq_mask >> (8*port), ws16c48gpio->base + 8 + port);
273 outb(0xC0, ws16c48gpio->base + 7);
307 outb(0x40, ws16c48gpio->base + 7);
308 outb(ws16c48gpio->flow_mask >> (8*port), ws16c48gpio->base + 8 + port);
309 outb(0xC0, ws16c48gpio->base + 7);
333 int_pending = inb(ws16c48gpio->base + 6) & 0x7;
340 int_id = inb(ws16c48gpio->base + 8 + port);
346 int_pending = inb(ws16c48gpio->base + 6) & 0x7;
373 outb(0x80, ws16c48gpio->base + 7);
374 outb(0, ws16c48gpio->base + 8);
375 outb(0, ws16c48gpio->base + 9);
376 outb(0, ws16c48gpio->base + 10);
377 outb(0xC0, ws16c48gpio->base + 7);
393 if (!devm_request_region(dev, base[id], WS16C48_EXTENT, name)) {
395 base[id], base[id] + WS16C48_EXTENT);
402 ws16c48gpio->chip.base = -1;
412 ws16c48gpio->base = base[id];