Lines Matching defs:port_idx
317 int port_idx; /* chip port index */
432 (sc->ports[i]->port_idx == slot)) {
481 (sc->ports[i]->port_idx == slot)) {
942 port->port_idx = OFW_PCI_PHYS_HI_DEVICE(tmp[0]) - 1;
943 if (port->port_idx >= TEGRA_PCIB_MAX_PORTS) {
945 port->port_idx);
973 port->afi_pex_ctrl = tegra_pcib_pex_ctrl(sc, port->port_idx);
974 sc->lanes_cfg |= port->num_lanes << (4 * port->port_idx);
981 port->port_idx);
1127 reg = tegra_pcib_read_config(sc->dev, 0, port->port_idx, 0,
1131 tegra_pcib_write_config(sc->dev, 0, port->port_idx, 0,
1135 reg = tegra_pcib_read_config(sc->dev, 0, port->port_idx, 0,
1145 reg = tegra_pcib_read_config(sc->dev, 0, port->port_idx, 0,
1186 reg = tegra_pcib_read_config(sc->dev, 0, port->port_idx, 0,
1189 tegra_pcib_write_config(sc->dev, 0, port->port_idx, 0,
1196 port->port_idx, port->num_lanes,
1223 port->port_idx, port->num_lanes,
1287 ~AFI_PCIE_CONFIG_PCIE_DISABLE(sc->ports[i]->port_idx);
1302 sc->ports[i]->port_idx);