Lines Matching defs:shift
75 u8 shift = offset % 32;
77 *bit = shift;
84 u8 shift;
86 gplr = gpio_reg_and_bit(chip, offset, GPLR, &shift);
88 return !!(readl(gplr) & BIT(shift));
96 u8 shift;
98 reg = gpio_reg_and_bit(chip, offset, value ? GPSR : GPCR, &shift);
102 writel(BIT(shift), reg);
113 u8 shift;
115 gpdr = gpio_reg_and_bit(chip, offset, GPDR, &shift);
120 value &= ~BIT(shift);
134 u8 shift;
136 gpdr = gpio_reg_and_bit(chip, offset, GPDR, &shift);
142 value |= BIT(shift);
153 u8 shift;
155 gpdr = gpio_reg_and_bit(chip, offset, GPDR, &shift);
157 if (readl(gpdr) & BIT(shift))
170 u8 shift;
172 gfbr = gpio_reg_and_bit(chip, offset, GFBR, &shift);
178 value &= ~BIT(shift);
180 value |= BIT(shift);
212 u8 shift;
214 gisr = gpio_reg_and_bit(&priv->chip, gpio, GISR, &shift);
217 writel(BIT(shift), gisr);
226 u8 shift;
228 gimr = gpio_reg_and_bit(&priv->chip, gpio, GIMR, &shift);
234 value |= BIT(shift);
236 value &= ~BIT(shift);
269 u8 shift = gpio % 32;
277 value |= BIT(shift);
279 value &= ~BIT(shift);
284 value |= BIT(shift);
286 value &= ~BIT(shift);
295 value |= BIT(shift);
297 value &= ~BIT(shift);
302 value |= BIT(shift);
308 value &= ~BIT(shift);
326 u8 shift = gpio % 32;
333 writel(BIT(shift), gwsr);
337 value |= BIT(shift);
339 value &= ~BIT(shift);