Lines Matching refs:offset
71 unsigned int offset) in tz1090_pdc_gpio_direction_input() argument
79 value |= BIT(offset); in tz1090_pdc_gpio_direction_input()
87 unsigned int offset, in tz1090_pdc_gpio_direction_output() argument
96 if (offset < 6) { in tz1090_pdc_gpio_direction_output()
99 value |= BIT(offset); in tz1090_pdc_gpio_direction_output()
101 value &= ~BIT(offset); in tz1090_pdc_gpio_direction_output()
106 value &= ~BIT(offset); in tz1090_pdc_gpio_direction_output()
113 static int tz1090_pdc_gpio_get(struct gpio_chip *chip, unsigned int offset) in tz1090_pdc_gpio_get() argument
116 return pdc_read(priv, REG_SOC_GPIO_STATUS) & BIT(offset); in tz1090_pdc_gpio_get()
119 static void tz1090_pdc_gpio_set(struct gpio_chip *chip, unsigned int offset, in tz1090_pdc_gpio_set() argument
127 if (offset >= 6) in tz1090_pdc_gpio_set()
133 value |= BIT(offset); in tz1090_pdc_gpio_set()
135 value &= ~BIT(offset); in tz1090_pdc_gpio_set()
140 static int tz1090_pdc_gpio_to_irq(struct gpio_chip *chip, unsigned int offset) in tz1090_pdc_gpio_to_irq() argument
143 unsigned int syswake = offset - GPIO_PDC_IRQ_FIRST; in tz1090_pdc_gpio_to_irq()