Lines Matching refs:port_state
126 unsigned port_state; in ws16c48_gpio_get() local
136 port_state = ioread8(ws16c48gpio->reg->port + port); in ws16c48_gpio_get()
140 return !!(port_state & mask); in ws16c48_gpio_get()
151 unsigned long port_state; in ws16c48_gpio_get_multiple() local
159 port_state = ioread8(port_addr) & gpio_mask; in ws16c48_gpio_get_multiple()
161 bitmap_set_value8(bits, port_state, offset); in ws16c48_gpio_get_multiple()
229 unsigned port_state; in ws16c48_irq_ack() local
237 port_state = ws16c48gpio->irq_mask >> (8*port); in ws16c48_irq_ack()
243 iowrite8(port_state & ~mask, ws16c48gpio->reg->pol_enab_int_id + port); in ws16c48_irq_ack()
244 iowrite8(port_state | mask, ws16c48gpio->reg->pol_enab_int_id + port); in ws16c48_irq_ack()
260 unsigned long port_state; in ws16c48_irq_mask() local
270 port_state = ws16c48gpio->irq_mask >> (8 * port); in ws16c48_irq_mask()
276 iowrite8(port_state, ws16c48gpio->reg->pol_enab_int_id + port); in ws16c48_irq_mask()
292 unsigned long port_state; in ws16c48_irq_unmask() local
302 port_state = ws16c48gpio->irq_mask >> (8 * port); in ws16c48_irq_unmask()
308 iowrite8(port_state, ws16c48gpio->reg->pol_enab_int_id + port); in ws16c48_irq_unmask()
324 unsigned long port_state; in ws16c48_irq_set_type() local
346 port_state = ws16c48gpio->flow_mask >> (8 * port); in ws16c48_irq_set_type()
352 iowrite8(port_state, ws16c48gpio->reg->pol_enab_int_id + port); in ws16c48_irq_set_type()