Lines Matching defs:offset
1144 static int sc16is7xx_gpio_get(struct gpio_chip *chip, unsigned offset)
1152 return !!(val & BIT(offset));
1155 static void sc16is7xx_gpio_set(struct gpio_chip *chip, unsigned offset, int val)
1160 sc16is7xx_port_update(port, SC16IS7XX_IOSTATE_REG, BIT(offset),
1161 val ? BIT(offset) : 0);
1165 unsigned offset)
1170 sc16is7xx_port_update(port, SC16IS7XX_IODIR_REG, BIT(offset), 0);
1176 unsigned offset, int val)
1183 state |= BIT(offset);
1185 state &= ~BIT(offset);
1195 sc16is7xx_port_update(port, SC16IS7XX_IODIR_REG, BIT(offset),
1196 BIT(offset));