Lines Matching defs:val
60 static void errata_outl(struct cs5535_gpio_chip *chip, u32 val,
75 if (val & 0xffff)
76 val |= (inl(addr) & 0xffff); /* ignore the high bits */
78 val |= (inl(addr) ^ (val >> 16));
80 outl(val, addr);
131 long val;
136 val = inl(chip->base + reg);
139 val = inl(chip->base + 0x80 + reg);
144 return (val & (1 << offset)) ? 1 : 0;
170 uint32_t val;
182 val = inl(chip->base + offset);
185 val &= ~(0xF << shift);
188 val |= ((pair & 7) << shift);
192 val |= (1 << (shift + 3));
194 outl(val, chip->base + offset);
235 static void chip_gpio_set(struct gpio_chip *chip, unsigned offset, int val)
237 if (val)
256 static int chip_direction_output(struct gpio_chip *c, unsigned offset, int val)
265 if (val)