Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/iio/addac/
Dstx104.c246 struct stx104_gpio *const stx104gpio = gpiochip_get_data(chip); in stx104_gpio_get() local
251 return !!(ioread8(stx104gpio->base) & BIT(offset)); in stx104_gpio_get()
257 struct stx104_gpio *const stx104gpio = gpiochip_get_data(chip); in stx104_gpio_get_multiple() local
259 *bits = ioread8(stx104gpio->base); in stx104_gpio_get_multiple()
267 struct stx104_gpio *const stx104gpio = gpiochip_get_data(chip); in stx104_gpio_set() local
274 spin_lock_irqsave(&stx104gpio->lock, flags); in stx104_gpio_set()
277 stx104gpio->out_state |= mask; in stx104_gpio_set()
279 stx104gpio->out_state &= ~mask; in stx104_gpio_set()
281 iowrite8(stx104gpio->out_state, stx104gpio->base); in stx104_gpio_set()
283 spin_unlock_irqrestore(&stx104gpio->lock, flags); in stx104_gpio_set()
[all …]