• Home
  • Raw
  • Download

Lines Matching refs:bit

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