Lines Matching refs:epg
82 static void ep93xx_gpio_update_int_params(struct ep93xx_gpio *epg,
85 writeb_relaxed(0, epg->base + eic->irq_offset + EP93XX_INT_EN_OFFSET);
88 epg->base + eic->irq_offset + EP93XX_INT_TYPE2_OFFSET);
91 epg->base + eic->irq_offset + EP93XX_INT_TYPE1_OFFSET);
94 epg->base + eic->irq_offset + EP93XX_INT_EN_OFFSET);
100 struct ep93xx_gpio *epg = gpiochip_get_data(gc);
110 epg->base + eic->irq_offset + EP93XX_INT_DEBOUNCE_OFFSET);
116 struct ep93xx_gpio *epg = gpiochip_get_data(gc);
129 stat = readb(epg->base + EP93XX_GPIO_A_INT_STATUS);
131 generic_handle_domain_irq(epg->gc[0].gc.irq.domain,
134 stat = readb(epg->base + EP93XX_GPIO_B_INT_STATUS);
136 generic_handle_domain_irq(epg->gc[1].gc.irq.domain,
163 struct ep93xx_gpio *epg = gpiochip_get_data(gc);
168 ep93xx_gpio_update_int_params(epg, eic);
171 writeb(port_mask, epg->base + eic->irq_offset + EP93XX_INT_EOI_OFFSET);
178 struct ep93xx_gpio *epg = gpiochip_get_data(gc);
185 ep93xx_gpio_update_int_params(epg, eic);
187 writeb(port_mask, epg->base + eic->irq_offset + EP93XX_INT_EOI_OFFSET);
195 struct ep93xx_gpio *epg = gpiochip_get_data(gc);
198 ep93xx_gpio_update_int_params(epg, eic);
206 struct ep93xx_gpio *epg = gpiochip_get_data(gc);
210 ep93xx_gpio_update_int_params(epg, eic);
222 struct ep93xx_gpio *epg = gpiochip_get_data(gc);
267 ep93xx_gpio_update_int_params(epg, eic);
347 struct ep93xx_gpio *epg,
350 void __iomem *data = epg->base + bank->data;
351 void __iomem *dir = epg->base + bank->dir;
412 irq_set_chip_data(gpio_irq, &epg->gc[5]);
423 return devm_gpiochip_add_data(dev, gc, epg);
428 struct ep93xx_gpio *epg;
431 epg = devm_kzalloc(&pdev->dev, sizeof(*epg), GFP_KERNEL);
432 if (!epg)
435 epg->base = devm_platform_ioremap_resource(pdev, 0);
436 if (IS_ERR(epg->base))
437 return PTR_ERR(epg->base);
440 struct ep93xx_gpio_chip *gc = &epg->gc[i];
443 if (ep93xx_gpio_add_bank(gc, pdev, epg, bank))