Lines Matching refs:num_lanes
122 int num_lanes; member
954 int num_lanes = ks_pcie->num_lanes; in ks_pcie_disable_phy() local
956 while (num_lanes--) { in ks_pcie_disable_phy()
957 phy_power_off(ks_pcie->phy[num_lanes]); in ks_pcie_disable_phy()
958 phy_exit(ks_pcie->phy[num_lanes]); in ks_pcie_disable_phy()
966 int num_lanes = ks_pcie->num_lanes; in ks_pcie_enable_phy() local
968 for (i = 0; i < num_lanes; i++) { in ks_pcie_enable_phy()
1119 u32 num_lanes; in ks_pcie_probe() local
1176 ret = of_property_read_u32(np, "num-lanes", &num_lanes); in ks_pcie_probe()
1178 num_lanes = 1; in ks_pcie_probe()
1180 phy = devm_kzalloc(dev, sizeof(*phy) * num_lanes, GFP_KERNEL); in ks_pcie_probe()
1184 link = devm_kzalloc(dev, sizeof(*link) * num_lanes, GFP_KERNEL); in ks_pcie_probe()
1188 for (i = 0; i < num_lanes; i++) { in ks_pcie_probe()
1209 ks_pcie->num_lanes = num_lanes; in ks_pcie_probe()
1222 for (i = 0; i < num_lanes; i++) in ks_pcie_probe()
1228 for (i = 0; i < num_lanes; i++) in ks_pcie_probe()
1318 int num_lanes = ks_pcie->num_lanes; in ks_pcie_remove() local
1324 while (num_lanes--) in ks_pcie_remove()
1325 device_link_del(link[num_lanes]); in ks_pcie_remove()