Home
last modified time | relevance | path

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

/linux-5.19.10/drivers/iio/adc/
Dstx104.c220 struct stx104_gpio *const stx104gpio = gpiochip_get_data(chip); in stx104_gpio_get() local
225 return !!(inb(stx104gpio->base) & BIT(offset)); in stx104_gpio_get()
231 struct stx104_gpio *const stx104gpio = gpiochip_get_data(chip); in stx104_gpio_get_multiple() local
233 *bits = inb(stx104gpio->base); in stx104_gpio_get_multiple()
241 struct stx104_gpio *const stx104gpio = gpiochip_get_data(chip); in stx104_gpio_set() local
248 spin_lock_irqsave(&stx104gpio->lock, flags); in stx104_gpio_set()
251 stx104gpio->out_state |= mask; in stx104_gpio_set()
253 stx104gpio->out_state &= ~mask; in stx104_gpio_set()
255 outb(stx104gpio->out_state, stx104gpio->base); in stx104_gpio_set()
257 spin_unlock_irqrestore(&stx104gpio->lock, flags); in stx104_gpio_set()
[all …]