Lines Matching refs:g
74 struct davinci_gpio_regs __iomem *g; in irq2regs() local
76 g = (__force struct davinci_gpio_regs __iomem *)irq_data_get_irq_chip_data(d); in irq2regs()
78 return g; in irq2regs()
90 struct davinci_gpio_regs __iomem *g; in __davinci_direction() local
96 g = d->regs[bank]; in __davinci_direction()
98 temp = readl_relaxed(&g->dir); in __davinci_direction()
101 writel_relaxed(mask, value ? &g->set_data : &g->clr_data); in __davinci_direction()
105 writel_relaxed(temp, &g->dir); in __davinci_direction()
132 struct davinci_gpio_regs __iomem *g; in davinci_gpio_get() local
135 g = d->regs[bank]; in davinci_gpio_get()
137 return !!(__gpio_mask(offset) & readl_relaxed(&g->in_data)); in davinci_gpio_get()
147 struct davinci_gpio_regs __iomem *g; in davinci_gpio_set() local
150 g = d->regs[bank]; in davinci_gpio_set()
153 value ? &g->set_data : &g->clr_data); in davinci_gpio_set()
293 struct davinci_gpio_regs __iomem *g = irq2regs(d); in gpio_irq_disable() local
296 writel_relaxed(mask, &g->clr_falling); in gpio_irq_disable()
297 writel_relaxed(mask, &g->clr_rising); in gpio_irq_disable()
302 struct davinci_gpio_regs __iomem *g = irq2regs(d); in gpio_irq_enable() local
311 writel_relaxed(mask, &g->set_falling); in gpio_irq_enable()
313 writel_relaxed(mask, &g->set_rising); in gpio_irq_enable()
334 struct davinci_gpio_regs __iomem *g; in gpio_irq_handler() local
342 g = irqdata->regs; in gpio_irq_handler()
357 status = readl_relaxed(&g->intstat) & mask; in gpio_irq_handler()
360 writel_relaxed(status, &g->intstat); in gpio_irq_handler()
406 struct davinci_gpio_regs __iomem *g; in gpio_irq_type_unbanked() local
410 g = (struct davinci_gpio_regs __iomem *)d->regs[0]; in gpio_irq_type_unbanked()
424 ? &g->set_falling : &g->clr_falling); in gpio_irq_type_unbanked()
426 ? &g->set_rising : &g->clr_rising); in gpio_irq_type_unbanked()
437 struct davinci_gpio_regs __iomem *g = chips->regs[hw / 32]; in davinci_gpio_irq_map() local
442 irq_set_chip_data(irq, (__force void *)g); in davinci_gpio_irq_map()
491 struct davinci_gpio_regs __iomem *g; in davinci_gpio_irq_setup() local
564 g = chips->regs[0]; in davinci_gpio_irq_setup()
565 writel_relaxed(~0, &g->set_falling); in davinci_gpio_irq_setup()
566 writel_relaxed(~0, &g->set_rising); in davinci_gpio_irq_setup()
588 g = chips->regs[bank / 2]; in davinci_gpio_irq_setup()
589 writel_relaxed(~0, &g->clr_falling); in davinci_gpio_irq_setup()
590 writel_relaxed(~0, &g->clr_rising); in davinci_gpio_irq_setup()
606 irqdata->regs = g; in davinci_gpio_irq_setup()