Lines Matching refs:num_lanes
125 int num_lanes; member
1024 int num_lanes = ks_pcie->num_lanes; in ks_pcie_disable_phy() local
1026 while (num_lanes--) { in ks_pcie_disable_phy()
1027 phy_power_off(ks_pcie->phy[num_lanes]); in ks_pcie_disable_phy()
1028 phy_exit(ks_pcie->phy[num_lanes]); in ks_pcie_disable_phy()
1036 int num_lanes = ks_pcie->num_lanes; in ks_pcie_enable_phy() local
1038 for (i = 0; i < num_lanes; i++) { in ks_pcie_enable_phy()
1204 u32 num_lanes; in ks_pcie_probe() local
1263 ret = of_property_read_u32(np, "num-lanes", &num_lanes); in ks_pcie_probe()
1265 num_lanes = 1; in ks_pcie_probe()
1267 phy = devm_kzalloc(dev, sizeof(*phy) * num_lanes, GFP_KERNEL); in ks_pcie_probe()
1271 link = devm_kzalloc(dev, sizeof(*link) * num_lanes, GFP_KERNEL); in ks_pcie_probe()
1275 for (i = 0; i < num_lanes; i++) { in ks_pcie_probe()
1296 ks_pcie->num_lanes = num_lanes; in ks_pcie_probe()
1414 int num_lanes = ks_pcie->num_lanes; in ks_pcie_remove() local
1420 while (num_lanes--) in ks_pcie_remove()
1421 device_link_del(link[num_lanes]); in ks_pcie_remove()