Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/gpio/
Dgpio-pcie-idio-24.c102 struct idio_24_gpio *const idio24gpio = gpiochip_get_data(chip); in idio_24_gpio_get_direction() local
115 return !(ioread8(&idio24gpio->reg->ctl) & out_mode_mask); in idio_24_gpio_get_direction()
121 struct idio_24_gpio *const idio24gpio = gpiochip_get_data(chip); in idio_24_gpio_direction_input() local
128 raw_spin_lock_irqsave(&idio24gpio->lock, flags); in idio_24_gpio_direction_input()
131 ctl_state = ioread8(&idio24gpio->reg->ctl) & ~out_mode_mask; in idio_24_gpio_direction_input()
132 iowrite8(ctl_state, &idio24gpio->reg->ctl); in idio_24_gpio_direction_input()
134 raw_spin_unlock_irqrestore(&idio24gpio->lock, flags); in idio_24_gpio_direction_input()
143 struct idio_24_gpio *const idio24gpio = gpiochip_get_data(chip); in idio_24_gpio_direction_output() local
150 raw_spin_lock_irqsave(&idio24gpio->lock, flags); in idio_24_gpio_direction_output()
153 ctl_state = ioread8(&idio24gpio->reg->ctl) | out_mode_mask; in idio_24_gpio_direction_output()
[all …]