Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/iio/adc/
Dstx104.c228 struct stx104_gpio *const stx104gpio = gpiochip_get_data(chip); in stx104_gpio_get() local
233 return !!(inb(stx104gpio->base) & BIT(offset)); in stx104_gpio_get()
239 struct stx104_gpio *const stx104gpio = gpiochip_get_data(chip); in stx104_gpio_get_multiple() local
241 *bits = inb(stx104gpio->base); in stx104_gpio_get_multiple()
249 struct stx104_gpio *const stx104gpio = gpiochip_get_data(chip); in stx104_gpio_set() local
256 spin_lock_irqsave(&stx104gpio->lock, flags); in stx104_gpio_set()
259 stx104gpio->out_state |= mask; in stx104_gpio_set()
261 stx104gpio->out_state &= ~mask; in stx104_gpio_set()
263 outb(stx104gpio->out_state, stx104gpio->base); in stx104_gpio_set()
265 spin_unlock_irqrestore(&stx104gpio->lock, flags); in stx104_gpio_set()
[all …]