Searched refs:ws16c48gpio (Results 1 – 1 of 1) sorted by relevance
55 struct ws16c48_gpio *const ws16c48gpio = gpiochip_get_data(chip); in ws16c48_gpio_get_direction() local59 if (ws16c48gpio->io_state[port] & mask) in ws16c48_gpio_get_direction()67 struct ws16c48_gpio *const ws16c48gpio = gpiochip_get_data(chip); in ws16c48_gpio_direction_input() local72 raw_spin_lock_irqsave(&ws16c48gpio->lock, flags); in ws16c48_gpio_direction_input()74 ws16c48gpio->io_state[port] |= mask; in ws16c48_gpio_direction_input()75 ws16c48gpio->out_state[port] &= ~mask; in ws16c48_gpio_direction_input()76 outb(ws16c48gpio->out_state[port], ws16c48gpio->base + port); in ws16c48_gpio_direction_input()78 raw_spin_unlock_irqrestore(&ws16c48gpio->lock, flags); in ws16c48_gpio_direction_input()86 struct ws16c48_gpio *const ws16c48gpio = gpiochip_get_data(chip); in ws16c48_gpio_direction_output() local91 raw_spin_lock_irqsave(&ws16c48gpio->lock, flags); in ws16c48_gpio_direction_output()[all …]