Lines Matching refs:port_idx
316 int port_idx; /* chip port index */ member
431 (sc->ports[i]->port_idx == slot)) { in tegra_pcib_read_config()
480 (sc->ports[i]->port_idx == slot)) { in tegra_pcib_write_config()
941 port->port_idx = OFW_PCI_PHYS_HI_DEVICE(tmp[0]) - 1; in tegra_pcib_parse_port()
942 if (port->port_idx >= TEGRA_PCIB_MAX_PORTS) { in tegra_pcib_parse_port()
944 port->port_idx); in tegra_pcib_parse_port()
972 port->afi_pex_ctrl = tegra_pcib_pex_ctrl(sc, port->port_idx); in tegra_pcib_parse_port()
973 sc->lanes_cfg |= port->num_lanes << (4 * port->port_idx); in tegra_pcib_parse_port()
980 port->port_idx); in tegra_pcib_parse_port()
1126 reg = tegra_pcib_read_config(sc->dev, 0, port->port_idx, 0, in tegra_pcib_wait_for_link()
1130 tegra_pcib_write_config(sc->dev, 0, port->port_idx, 0, in tegra_pcib_wait_for_link()
1134 reg = tegra_pcib_read_config(sc->dev, 0, port->port_idx, 0, in tegra_pcib_wait_for_link()
1144 reg = tegra_pcib_read_config(sc->dev, 0, port->port_idx, 0, in tegra_pcib_wait_for_link()
1185 reg = tegra_pcib_read_config(sc->dev, 0, port->port_idx, 0, in tegra_pcib_port_enable()
1188 tegra_pcib_write_config(sc->dev, 0, port->port_idx, 0, in tegra_pcib_port_enable()
1195 port->port_idx, port->num_lanes, in tegra_pcib_port_enable()
1222 port->port_idx, port->num_lanes, in tegra_pcib_port_disable()
1286 ~AFI_PCIE_CONFIG_PCIE_DISABLE(sc->ports[i]->port_idx); in tegra_pcib_enable()
1301 sc->ports[i]->port_idx); in tegra_pcib_enable()