Lines Matching full:shift

77 	u8 shift = offset % 32;  in gpio_reg_and_bit()  local
79 *bit = shift; in gpio_reg_and_bit()
86 u8 shift; in tng_gpio_get() local
88 gplr = gpio_reg_and_bit(chip, offset, GPLR, &shift); in tng_gpio_get()
90 return !!(readl(gplr) & BIT(shift)); in tng_gpio_get()
97 u8 shift; in tng_gpio_set() local
99 reg = gpio_reg_and_bit(chip, offset, value ? GPSR : GPCR, &shift); in tng_gpio_set()
103 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()
131 u8 shift; in tng_gpio_direction_output() local
133 gpdr = gpio_reg_and_bit(chip, offset, GPDR, &shift); in tng_gpio_direction_output()
139 value |= BIT(shift); in tng_gpio_direction_output()
148 u8 shift; in tng_gpio_get_direction() local
150 gpdr = gpio_reg_and_bit(chip, offset, GPDR, &shift); in tng_gpio_get_direction()
152 if (readl(gpdr) & BIT(shift)) in tng_gpio_get_direction()
164 u8 shift; in tng_gpio_set_debounce() local
166 gfbr = gpio_reg_and_bit(chip, offset, GFBR, &shift); in tng_gpio_set_debounce()
172 value &= ~BIT(shift); in tng_gpio_set_debounce()
174 value |= BIT(shift); in tng_gpio_set_debounce()
204 u8 shift; in tng_irq_ack() local
206 gisr = gpio_reg_and_bit(&priv->chip, gpio, GISR, &shift); in tng_irq_ack()
210 writel(BIT(shift), gisr); in tng_irq_ack()
217 u8 shift; in tng_irq_unmask_mask() local
219 gimr = gpio_reg_and_bit(&priv->chip, gpio, GIMR, &shift); in tng_irq_unmask_mask()
225 value |= BIT(shift); in tng_irq_unmask_mask()
227 value &= ~BIT(shift); in tng_irq_unmask_mask()
260 u8 shift = gpio % 32; in tng_irq_set_type() local
267 value |= BIT(shift); in tng_irq_set_type()
269 value &= ~BIT(shift); in tng_irq_set_type()
274 value |= BIT(shift); in tng_irq_set_type()
276 value &= ~BIT(shift); in tng_irq_set_type()
285 value |= BIT(shift); in tng_irq_set_type()
287 value &= ~BIT(shift); in tng_irq_set_type()
292 value |= BIT(shift); in tng_irq_set_type()
298 value &= ~BIT(shift); in tng_irq_set_type()
314 u8 shift = gpio % 32; in tng_irq_set_wake() local
322 writel(BIT(shift), gwsr); in tng_irq_set_wake()
326 value |= BIT(shift); in tng_irq_set_wake()
328 value &= ~BIT(shift); in tng_irq_set_wake()