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