Home
last modified time | relevance | path

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

/Linux-v6.1/drivers/gpio/
Dgpio-pcie-idio-24.c144 struct idio_24_gpio *const idio24gpio = gpiochip_get_data(chip); in idio_24_gpio_get_direction() local
157 if (ioread8(&idio24gpio->reg->ctl) & out_mode_mask) in idio_24_gpio_get_direction()
166 struct idio_24_gpio *const idio24gpio = gpiochip_get_data(chip); in idio_24_gpio_direction_input() local
173 raw_spin_lock_irqsave(&idio24gpio->lock, flags); in idio_24_gpio_direction_input()
176 ctl_state = ioread8(&idio24gpio->reg->ctl) & ~out_mode_mask; in idio_24_gpio_direction_input()
177 iowrite8(ctl_state, &idio24gpio->reg->ctl); in idio_24_gpio_direction_input()
179 raw_spin_unlock_irqrestore(&idio24gpio->lock, flags); in idio_24_gpio_direction_input()
188 struct idio_24_gpio *const idio24gpio = gpiochip_get_data(chip); in idio_24_gpio_direction_output() local
195 raw_spin_lock_irqsave(&idio24gpio->lock, flags); in idio_24_gpio_direction_output()
198 ctl_state = ioread8(&idio24gpio->reg->ctl) | out_mode_mask; in idio_24_gpio_direction_output()
[all …]