Searched refs:stx104gpio (Results 1 – 1 of 1) sorted by relevance
246 struct stx104_gpio *const stx104gpio = gpiochip_get_data(chip); in stx104_gpio_get() local251 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() local259 *bits = ioread8(stx104gpio->base); in stx104_gpio_get_multiple()267 struct stx104_gpio *const stx104gpio = gpiochip_get_data(chip); in stx104_gpio_set() local274 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 …]