Searched refs:idio24gpio (Results 1 – 1 of 1) sorted by relevance
144 struct idio_24_gpio *const idio24gpio = gpiochip_get_data(chip); in idio_24_gpio_get_direction() local157 if (ioread8(&idio24gpio->reg->ctl) & out_mode_mask) in idio_24_gpio_get_direction()166 struct idio_24_gpio *const idio24gpio = gpiochip_get_data(chip); in idio_24_gpio_direction_input() local173 raw_spin_lock_irqsave(&idio24gpio->lock, flags); in idio_24_gpio_direction_input()176 ctl_state = ioread8(&idio24gpio->reg->ctl) & ~out_mode_mask; in idio_24_gpio_direction_input()177 iowrite8(ctl_state, &idio24gpio->reg->ctl); in idio_24_gpio_direction_input()179 raw_spin_unlock_irqrestore(&idio24gpio->lock, flags); in idio_24_gpio_direction_input()188 struct idio_24_gpio *const idio24gpio = gpiochip_get_data(chip); in idio_24_gpio_direction_output() local195 raw_spin_lock_irqsave(&idio24gpio->lock, flags); in idio_24_gpio_direction_output()198 ctl_state = ioread8(&idio24gpio->reg->ctl) | out_mode_mask; in idio_24_gpio_direction_output()[all …]