Lines Matching +full:8 +full:bit

36  * @io_state:	bit I/O state (whether bit is set to input or output)
56 const unsigned port = offset / 8; in ws16c48_gpio_get_direction()
57 const unsigned mask = BIT(offset % 8); in ws16c48_gpio_get_direction()
68 const unsigned port = offset / 8; in ws16c48_gpio_direction_input()
69 const unsigned mask = BIT(offset % 8); in ws16c48_gpio_direction_input()
87 const unsigned port = offset / 8; in ws16c48_gpio_direction_output()
88 const unsigned mask = BIT(offset % 8); in ws16c48_gpio_direction_output()
108 const unsigned port = offset / 8; in ws16c48_gpio_get()
109 const unsigned mask = BIT(offset % 8); in ws16c48_gpio_get()
141 port_addr = ws16c48gpio->base + offset / 8; in ws16c48_gpio_get_multiple()
153 const unsigned port = offset / 8; in ws16c48_gpio_set()
154 const unsigned mask = BIT(offset % 8); in ws16c48_gpio_set()
186 index = offset / 8; in ws16c48_gpio_set_multiple()
209 const unsigned port = offset / 8; in ws16c48_irq_ack()
210 const unsigned mask = BIT(offset % 8); in ws16c48_irq_ack()
220 port_state = ws16c48gpio->irq_mask >> (8*port); in ws16c48_irq_ack()
223 outb(port_state & ~mask, ws16c48gpio->base + 8 + port); in ws16c48_irq_ack()
224 outb(port_state | mask, ws16c48gpio->base + 8 + port); in ws16c48_irq_ack()
235 const unsigned long mask = BIT(offset); in ws16c48_irq_mask()
236 const unsigned port = offset / 8; in ws16c48_irq_mask()
248 outb(ws16c48gpio->irq_mask >> (8*port), ws16c48gpio->base + 8 + port); in ws16c48_irq_mask()
259 const unsigned long mask = BIT(offset); in ws16c48_irq_unmask()
260 const unsigned port = offset / 8; in ws16c48_irq_unmask()
272 outb(ws16c48gpio->irq_mask >> (8*port), ws16c48gpio->base + 8 + port); in ws16c48_irq_unmask()
283 const unsigned long mask = BIT(offset); in ws16c48_irq_set_type()
284 const unsigned port = offset / 8; in ws16c48_irq_set_type()
308 outb(ws16c48gpio->flow_mask >> (8*port), ws16c48gpio->base + 8 + port); in ws16c48_irq_set_type()
340 int_id = inb(ws16c48gpio->base + 8 + port); in ws16c48_irq_handler()
341 for_each_set_bit(gpio, &int_id, 8) in ws16c48_irq_handler()
343 gpio + 8*port); in ws16c48_irq_handler()
354 "Port 0 Bit 0", "Port 0 Bit 1", "Port 0 Bit 2", "Port 0 Bit 3",
355 "Port 0 Bit 4", "Port 0 Bit 5", "Port 0 Bit 6", "Port 0 Bit 7",
356 "Port 1 Bit 0", "Port 1 Bit 1", "Port 1 Bit 2", "Port 1 Bit 3",
357 "Port 1 Bit 4", "Port 1 Bit 5", "Port 1 Bit 6", "Port 1 Bit 7",
358 "Port 2 Bit 0", "Port 2 Bit 1", "Port 2 Bit 2", "Port 2 Bit 3",
359 "Port 2 Bit 4", "Port 2 Bit 5", "Port 2 Bit 6", "Port 2 Bit 7",
360 "Port 3 Bit 0", "Port 3 Bit 1", "Port 3 Bit 2", "Port 3 Bit 3",
361 "Port 3 Bit 4", "Port 3 Bit 5", "Port 3 Bit 6", "Port 3 Bit 7",
362 "Port 4 Bit 0", "Port 4 Bit 1", "Port 4 Bit 2", "Port 4 Bit 3",
363 "Port 4 Bit 4", "Port 4 Bit 5", "Port 4 Bit 6", "Port 4 Bit 7",
364 "Port 5 Bit 0", "Port 5 Bit 1", "Port 5 Bit 2", "Port 5 Bit 3",
365 "Port 5 Bit 4", "Port 5 Bit 5", "Port 5 Bit 6", "Port 5 Bit 7"
374 outb(0, ws16c48gpio->base + 8); in ws16c48_irq_init_hw()