• Home
  • Raw
  • Download

Lines Matching refs:mm_gc

40 	struct of_mm_gpio_chip *mm_gc;  in altera_gpio_irq_unmask()  local
45 mm_gc = &altera_gc->mmchip; in altera_gpio_irq_unmask()
48 intmask = readl(mm_gc->regs + ALTERA_GPIO_IRQ_MASK); in altera_gpio_irq_unmask()
51 writel(intmask, mm_gc->regs + ALTERA_GPIO_IRQ_MASK); in altera_gpio_irq_unmask()
58 struct of_mm_gpio_chip *mm_gc; in altera_gpio_irq_mask() local
63 mm_gc = &altera_gc->mmchip; in altera_gpio_irq_mask()
66 intmask = readl(mm_gc->regs + ALTERA_GPIO_IRQ_MASK); in altera_gpio_irq_mask()
69 writel(intmask, mm_gc->regs + ALTERA_GPIO_IRQ_MASK); in altera_gpio_irq_mask()
108 struct of_mm_gpio_chip *mm_gc; in altera_gpio_get() local
110 mm_gc = to_of_mm_gpio_chip(gc); in altera_gpio_get()
112 return !!(readl(mm_gc->regs + ALTERA_GPIO_DATA) & BIT(offset)); in altera_gpio_get()
117 struct of_mm_gpio_chip *mm_gc; in altera_gpio_set() local
122 mm_gc = to_of_mm_gpio_chip(gc); in altera_gpio_set()
126 data_reg = readl(mm_gc->regs + ALTERA_GPIO_DATA); in altera_gpio_set()
131 writel(data_reg, mm_gc->regs + ALTERA_GPIO_DATA); in altera_gpio_set()
137 struct of_mm_gpio_chip *mm_gc; in altera_gpio_direction_input() local
142 mm_gc = to_of_mm_gpio_chip(gc); in altera_gpio_direction_input()
147 gpio_ddr = readl(mm_gc->regs + ALTERA_GPIO_DIR); in altera_gpio_direction_input()
149 writel(gpio_ddr, mm_gc->regs + ALTERA_GPIO_DIR); in altera_gpio_direction_input()
158 struct of_mm_gpio_chip *mm_gc; in altera_gpio_direction_output() local
163 mm_gc = to_of_mm_gpio_chip(gc); in altera_gpio_direction_output()
168 data_reg = readl(mm_gc->regs + ALTERA_GPIO_DATA); in altera_gpio_direction_output()
173 writel(data_reg, mm_gc->regs + ALTERA_GPIO_DATA); in altera_gpio_direction_output()
176 gpio_ddr = readl(mm_gc->regs + ALTERA_GPIO_DIR); in altera_gpio_direction_output()
178 writel(gpio_ddr, mm_gc->regs + ALTERA_GPIO_DIR); in altera_gpio_direction_output()
188 struct of_mm_gpio_chip *mm_gc; in altera_gpio_irq_edge_handler() local
195 mm_gc = &altera_gc->mmchip; in altera_gpio_irq_edge_handler()
201 (readl(mm_gc->regs + ALTERA_GPIO_EDGE_CAP) & in altera_gpio_irq_edge_handler()
202 readl(mm_gc->regs + ALTERA_GPIO_IRQ_MASK)))) { in altera_gpio_irq_edge_handler()
203 writel(status, mm_gc->regs + ALTERA_GPIO_EDGE_CAP); in altera_gpio_irq_edge_handler()
204 for_each_set_bit(i, &status, mm_gc->gc.ngpio) { in altera_gpio_irq_edge_handler()
216 struct of_mm_gpio_chip *mm_gc; in altera_gpio_irq_leveL_high_handler() local
223 mm_gc = &altera_gc->mmchip; in altera_gpio_irq_leveL_high_handler()
228 status = readl(mm_gc->regs + ALTERA_GPIO_DATA); in altera_gpio_irq_leveL_high_handler()
229 status &= readl(mm_gc->regs + ALTERA_GPIO_IRQ_MASK); in altera_gpio_irq_leveL_high_handler()
231 for_each_set_bit(i, &status, mm_gc->gc.ngpio) { in altera_gpio_irq_leveL_high_handler()