Lines Matching defs:val
59 unsigned int val, offs;
65 (offs / SYSCON_REG_BITS) * SYSCON_REG_SIZE, &val);
69 return !!(val & BIT(offs % SYSCON_REG_BITS));
72 static void syscon_gpio_set(struct gpio_chip *chip, unsigned offset, int val)
82 val ? BIT(offs % SYSCON_REG_BITS) : 0);
103 static int syscon_gpio_dir_out(struct gpio_chip *chip, unsigned offset, int val)
119 chip->set(chip, offset, val);
132 int val)
142 data = (val ? BIT(bit) : 0) | BIT(bit + 16);
160 static void keystone_gpio_set(struct gpio_chip *chip, unsigned offset, int val)
168 if (!val)