Lines Matching refs:port
56 /* 8 bits per port, no version has more than 7 ports */
89 * its context. It calculates the port offset from the given pin
90 * offset, muliplies by the port stride and adds the register offset
424 struct u300_gpio_port *port = &gpio->ports[d->hwirq >> 3];
438 port->toggle_edge_mode |= U300_PIN_BIT(offset);
445 port->toggle_edge_mode &= ~U300_PIN_BIT(offset);
451 port->toggle_edge_mode &= ~U300_PIN_BIT(offset);
461 struct u300_gpio_port *port = &gpio->ports[d->hwirq >> 3];
466 dev_dbg(gpio->dev, "enable IRQ for hwirq %lu on port %s, offset %d\n",
467 d->hwirq, port->name, offset);
501 struct u300_gpio_port *port = &gpio->ports[irq - chip->base];
502 int pinoffset = port->number << 3; /* get the right stride */
510 val &= 0xFFU; /* 8 bits per port */
529 if (port->toggle_edge_mode & U300_PIN_BIT(offset))
686 struct u300_gpio_port *port = &gpio->ports[portno];
688 snprintf(port->name, 8, "gpio%d", portno);
689 port->number = portno;
690 port->gpio = gpio;
692 port->irq = platform_get_irq(pdev, portno);
693 girq->parents[portno] = port->irq;
695 /* Turns off irq force (test register) for this port */