Home
last modified time | relevance | path

Searched refs:ws16c48gpio (Results 1 – 1 of 1) sorted by relevance

/Linux-v5.4/drivers/gpio/
Dgpio-ws16c48.c55 struct ws16c48_gpio *const ws16c48gpio = gpiochip_get_data(chip); in ws16c48_gpio_get_direction() local
59 return !!(ws16c48gpio->io_state[port] & mask); in ws16c48_gpio_get_direction()
64 struct ws16c48_gpio *const ws16c48gpio = gpiochip_get_data(chip); in ws16c48_gpio_direction_input() local
69 raw_spin_lock_irqsave(&ws16c48gpio->lock, flags); in ws16c48_gpio_direction_input()
71 ws16c48gpio->io_state[port] |= mask; in ws16c48_gpio_direction_input()
72 ws16c48gpio->out_state[port] &= ~mask; in ws16c48_gpio_direction_input()
73 outb(ws16c48gpio->out_state[port], ws16c48gpio->base + port); in ws16c48_gpio_direction_input()
75 raw_spin_unlock_irqrestore(&ws16c48gpio->lock, flags); in ws16c48_gpio_direction_input()
83 struct ws16c48_gpio *const ws16c48gpio = gpiochip_get_data(chip); in ws16c48_gpio_direction_output() local
88 raw_spin_lock_irqsave(&ws16c48gpio->lock, flags); in ws16c48_gpio_direction_output()
[all …]