Lines Matching refs:gc

53 	struct gpio_chip		gc;  member
59 struct ep93xx_gpio_chip gc[EP93XX_GPIO_CHIP_NUM]; member
62 #define to_ep93xx_gpio_chip(x) container_of(x, struct ep93xx_gpio_chip, gc)
64 static struct ep93xx_gpio_irq_chip *to_ep93xx_gpio_irq_chip(struct gpio_chip *gc) in to_ep93xx_gpio_irq_chip() argument
66 struct ep93xx_gpio_chip *egc = to_ep93xx_gpio_chip(gc); in to_ep93xx_gpio_irq_chip()
97 static void ep93xx_gpio_int_debounce(struct gpio_chip *gc, in ep93xx_gpio_int_debounce() argument
100 struct ep93xx_gpio *epg = gpiochip_get_data(gc); in ep93xx_gpio_int_debounce()
101 struct ep93xx_gpio_irq_chip *eic = to_ep93xx_gpio_irq_chip(gc); in ep93xx_gpio_int_debounce()
115 struct gpio_chip *gc = irq_desc_get_handler_data(desc); in ep93xx_gpio_ab_irq_handler() local
116 struct ep93xx_gpio *epg = gpiochip_get_data(gc); in ep93xx_gpio_ab_irq_handler()
131 generic_handle_domain_irq(epg->gc[0].gc.irq.domain, in ep93xx_gpio_ab_irq_handler()
136 generic_handle_domain_irq(epg->gc[1].gc.irq.domain, in ep93xx_gpio_ab_irq_handler()
161 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in ep93xx_gpio_irq_ack() local
162 struct ep93xx_gpio_irq_chip *eic = to_ep93xx_gpio_irq_chip(gc); in ep93xx_gpio_irq_ack()
163 struct ep93xx_gpio *epg = gpiochip_get_data(gc); in ep93xx_gpio_irq_ack()
176 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in ep93xx_gpio_irq_mask_ack() local
177 struct ep93xx_gpio_irq_chip *eic = to_ep93xx_gpio_irq_chip(gc); in ep93xx_gpio_irq_mask_ack()
178 struct ep93xx_gpio *epg = gpiochip_get_data(gc); in ep93xx_gpio_irq_mask_ack()
192 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in ep93xx_gpio_irq_mask() local
193 struct ep93xx_gpio_irq_chip *eic = to_ep93xx_gpio_irq_chip(gc); in ep93xx_gpio_irq_mask()
194 struct ep93xx_gpio *epg = gpiochip_get_data(gc); in ep93xx_gpio_irq_mask()
202 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in ep93xx_gpio_irq_unmask() local
203 struct ep93xx_gpio_irq_chip *eic = to_ep93xx_gpio_irq_chip(gc); in ep93xx_gpio_irq_unmask()
204 struct ep93xx_gpio *epg = gpiochip_get_data(gc); in ep93xx_gpio_irq_unmask()
217 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in ep93xx_gpio_irq_type() local
218 struct ep93xx_gpio_irq_chip *eic = to_ep93xx_gpio_irq_chip(gc); in ep93xx_gpio_irq_type()
219 struct ep93xx_gpio *epg = gpiochip_get_data(gc); in ep93xx_gpio_irq_type()
224 gc->direction_input(gc, offset); in ep93xx_gpio_irq_type()
250 if (gc->get(gc, offset)) in ep93xx_gpio_irq_type()
309 static int ep93xx_gpio_set_config(struct gpio_chip *gc, unsigned offset, in ep93xx_gpio_set_config() argument
318 ep93xx_gpio_int_debounce(gc, offset, debounce ? true : false); in ep93xx_gpio_set_config()
339 struct gpio_chip *gc = &egc->gc; in ep93xx_gpio_add_bank() local
344 err = bgpio_init(gc, dev, 1, data, NULL, NULL, dir, NULL, 0); in ep93xx_gpio_add_bank()
348 gc->label = bank->label; in ep93xx_gpio_add_bank()
349 gc->base = bank->base; in ep93xx_gpio_add_bank()
351 girq = &gc->irq; in ep93xx_gpio_add_bank()
355 gc->set_config = ep93xx_gpio_set_config; in ep93xx_gpio_add_bank()
406 irq_set_chip_data(gpio_irq, &epg->gc[5]); in ep93xx_gpio_add_bank()
417 return devm_gpiochip_add_data(dev, gc, epg); in ep93xx_gpio_add_bank()
434 struct ep93xx_gpio_chip *gc = &epg->gc[i]; in ep93xx_gpio_probe() local
437 if (ep93xx_gpio_add_bank(gc, pdev, epg, bank)) in ep93xx_gpio_probe()