Lines Matching refs:num_lanes
123 int num_lanes; member
1010 int num_lanes = ks_pcie->num_lanes; in ks_pcie_disable_phy() local
1012 while (num_lanes--) { in ks_pcie_disable_phy()
1013 phy_power_off(ks_pcie->phy[num_lanes]); in ks_pcie_disable_phy()
1014 phy_exit(ks_pcie->phy[num_lanes]); in ks_pcie_disable_phy()
1022 int num_lanes = ks_pcie->num_lanes; in ks_pcie_enable_phy() local
1024 for (i = 0; i < num_lanes; i++) { in ks_pcie_enable_phy()
1162 u32 num_lanes; in ks_pcie_probe() local
1219 ret = of_property_read_u32(np, "num-lanes", &num_lanes); in ks_pcie_probe()
1221 num_lanes = 1; in ks_pcie_probe()
1223 phy = devm_kzalloc(dev, sizeof(*phy) * num_lanes, GFP_KERNEL); in ks_pcie_probe()
1227 link = devm_kzalloc(dev, sizeof(*link) * num_lanes, GFP_KERNEL); in ks_pcie_probe()
1231 for (i = 0; i < num_lanes; i++) { in ks_pcie_probe()
1252 ks_pcie->num_lanes = num_lanes; in ks_pcie_probe()
1345 int num_lanes = ks_pcie->num_lanes; in ks_pcie_remove() local
1351 while (num_lanes--) in ks_pcie_remove()
1352 device_link_del(link[num_lanes]); in ks_pcie_remove()