Lines Matching refs:bit
57 u32 bit = BIT(nr % GSTA_GPIO_PER_BLOCK); in gsta_gpio_set() local
60 writel(bit, ®s->dats); in gsta_gpio_set()
62 writel(bit, ®s->datc); in gsta_gpio_set()
69 u32 bit = BIT(nr % GSTA_GPIO_PER_BLOCK); in gsta_gpio_get() local
71 return !!(readl(®s->dat) & bit); in gsta_gpio_get()
79 u32 bit = BIT(nr % GSTA_GPIO_PER_BLOCK); in gsta_gpio_direction_output() local
81 writel(bit, ®s->dirs); in gsta_gpio_direction_output()
84 writel(bit, ®s->dats); in gsta_gpio_direction_output()
86 writel(bit, ®s->datc); in gsta_gpio_direction_output()
94 u32 bit = BIT(nr % GSTA_GPIO_PER_BLOCK); in gsta_gpio_direction_input() local
96 writel(bit, ®s->dirc); in gsta_gpio_direction_input()
148 u32 bit = BIT(nr % GSTA_GPIO_PER_BLOCK); in gsta_set_config() local
161 val |= bit; in gsta_set_config()
163 val &= ~bit; in gsta_set_config()
164 writel(val | bit, ®s->afsela); in gsta_set_config()
173 writel(bit, ®s->dirs); in gsta_set_config()
174 writel(bit, ®s->datc); in gsta_set_config()
177 writel(bit, ®s->dirs); in gsta_set_config()
178 writel(bit, ®s->dats); in gsta_set_config()
181 writel(bit, ®s->dirc); in gsta_set_config()
182 val = readl(®s->pdis) | bit; in gsta_set_config()
186 writel(bit, ®s->dirc); in gsta_set_config()
187 val = readl(®s->pdis) & ~bit; in gsta_set_config()
189 writel(bit, ®s->dats); in gsta_set_config()
192 writel(bit, ®s->dirc); in gsta_set_config()
193 val = readl(®s->pdis) & ~bit; in gsta_set_config()
195 writel(bit, ®s->datc); in gsta_set_config()
216 u32 bit = BIT(nr % GSTA_GPIO_PER_BLOCK); in gsta_irq_disable() local
222 val = readl(®s->rimsc) & ~bit; in gsta_irq_disable()
226 val = readl(®s->fimsc) & ~bit; in gsta_irq_disable()
239 u32 bit = BIT(nr % GSTA_GPIO_PER_BLOCK); in gsta_irq_enable() local
249 writel(val | bit, ®s->rimsc); in gsta_irq_enable()
251 writel(val & ~bit, ®s->rimsc); in gsta_irq_enable()
254 writel(val | bit, ®s->fimsc); in gsta_irq_enable()
256 writel(val & ~bit, ®s->fimsc); in gsta_irq_enable()