Lines Matching refs:port

169 	struct dwapb_gpio_port *port;
173 port = &gpio->ports[i];
174 if (port->idx == offs / DWAPB_MAX_GPIOS)
175 return port;
183 struct dwapb_gpio_port *port = dwapb_offs_to_port(gpio, offs);
188 if (!port)
190 gc = &port->gc;
396 struct dwapb_gpio_port *port = gpiochip_get_data(gc);
397 struct dwapb_gpio *gpio = port->gpio;
444 struct dwapb_gpio_port *port,
448 struct gpio_chip *gc = &port->gc;
457 dev_warn(gpio->dev, "no IRQ for port%d\n", pp->idx);
465 port->pirq = pirq;
504 struct dwapb_gpio_port *port;
508 port = &gpio->ports[offs];
509 port->gpio = gpio;
510 port->idx = pp->idx;
513 port->ctx = devm_kzalloc(gpio->dev, sizeof(*port->ctx), GFP_KERNEL);
514 if (!port->ctx)
522 /* This registers 32 GPIO lines per port */
523 err = bgpio_init(&port->gc, gpio->dev, 4, dat, set, NULL, dirout,
526 dev_err(gpio->dev, "failed to init gpio chip for port%d\n",
527 port->idx);
531 port->gc.fwnode = pp->fwnode;
532 port->gc.ngpio = pp->ngpio;
533 port->gc.base = pp->gpio_base;
535 /* Only port A support debounce */
537 port->gc.set_config = dwapb_gpio_set_config;
539 /* Only port A can provide interrupts in all configurations of the IP */
541 dwapb_configure_irqs(gpio, port, pp);
543 err = devm_gpiochip_add_data(gpio->dev, &port->gc, port);
545 dev_err(gpio->dev, "failed to register gpiochip for port%d\n",
546 port->idx);
598 "missing/invalid port index for port%d\n", i);
606 "failed to get number of gpios for port%d\n",
618 * Only port A can provide interrupts in all configurations of
769 /* Only port A can provide interrupts */
816 /* Only port A can provide interrupts */