Searched refs:stx104gpio (Results 1 – 1 of 1) sorted by relevance
220 struct stx104_gpio *const stx104gpio = gpiochip_get_data(chip); in stx104_gpio_get() local225 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() local233 *bits = inb(stx104gpio->base); in stx104_gpio_get_multiple()241 struct stx104_gpio *const stx104gpio = gpiochip_get_data(chip); in stx104_gpio_set() local248 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 …]