Searched refs:num_lanes (Results 1 – 4 of 4) sorted by relevance
/freebsd/sys/dev/pci/ |
H A D | pci_dw.c | 371 switch (sc->num_lanes) { in pci_dw_setup_hw() 393 sc->num_lanes); in pci_dw_setup_hw() 401 switch (sc->num_lanes) { in pci_dw_setup_hw() 724 rv = OF_getencprop(sc->node, "num-lanes", &sc->num_lanes, in pci_dw_init() 725 sizeof(sc->num_lanes)); in pci_dw_init() 726 if (rv != sizeof(sc->num_lanes)) in pci_dw_init() 727 sc->num_lanes = 1; in pci_dw_init() 728 if (sc->num_lanes != 1 && sc->num_lanes != 2 && in pci_dw_init() 729 sc->num_lanes ! in pci_dw_init() [all...] |
H A D | pci_dw.h | 115 int num_lanes; member
|
/freebsd/sys/arm64/rockchip/ |
H A D | rk_pcie.c | 210 int num_lanes; member 879 val |= STRAP_CONF_LANES(~0) << 16 | STRAP_CONF_LANES(sc->num_lanes); in rk_pcie_enable_resources() 1169 rv = OF_getencprop(sc->node, "num-lanes", &sc->num_lanes, in rk_pcie_attach() 1170 sizeof(sc->num_lanes)); in rk_pcie_attach() 1171 if (rv != sizeof(sc->num_lanes)) in rk_pcie_attach() 1172 sc->num_lanes = 1; in rk_pcie_attach() 1173 if (sc->num_lanes != 1 && sc->num_lanes != 2 && sc->num_lanes != 4) { in rk_pcie_attach() 1175 "invalid number of lanes: %d\n",sc->num_lanes); in rk_pcie_attach() 1176 sc->num_lanes = 0; in rk_pcie_attach()
|
/freebsd/sys/arm/nvidia/ |
H A D | tegra_pcie.c | 318 int num_lanes; /* number of lanes */ member 960 rv = OF_getencprop(node, "nvidia,num-lanes", &port->num_lanes, in tegra_pcib_parse_port() 961 sizeof(port->num_lanes)); in tegra_pcib_parse_port() 962 if (rv != sizeof(port->num_lanes)) { in tegra_pcib_parse_port() 967 if (port->num_lanes > 4) { in tegra_pcib_parse_port() 969 port->num_lanes); in tegra_pcib_parse_port() 974 sc->lanes_cfg |= port->num_lanes << (4 * port->port_idx); in tegra_pcib_parse_port() 1196 port->port_idx, port->num_lanes, in tegra_pcib_port_enable() 1197 port->num_lanes > 1 ? "s": "", in tegra_pcib_port_enable() 1223 port->port_idx, port->num_lanes, in tegra_pcib_port_disable() [all …]
|