Lines Matching refs:lane

20 #define SD_ADDR(base, lane)			(base + 0x1000 * lane)  argument
21 #define HPIPE_ADDR(base, lane) (SD_ADDR(base, lane) + 0x800) argument
22 #define COMPHY_ADDR(base, lane) (base + 0x28 * lane) argument
87 static int comphy_pcie_power_up(u32 lane, u32 pcie_width, bool clk_src, in comphy_pcie_power_up() argument
92 void __iomem *hpipe_addr = HPIPE_ADDR(hpipe_base, lane); in comphy_pcie_power_up()
93 void __iomem *comphy_addr = COMPHY_ADDR(comphy_base, lane); in comphy_pcie_power_up()
113 if (lane == 0) { in comphy_pcie_power_up()
130 if (pcie_clk && clk_src && (lane == 5)) { in comphy_pcie_power_up()
192 if (lane == 0) { in comphy_pcie_power_up()
195 } else if (lane == (pcie_width - 1)) { in comphy_pcie_power_up()
458 if ((pcie_width == 1) || (lane == (pcie_width - 1))) { in comphy_pcie_power_up()
478 start_lane = lane; in comphy_pcie_power_up()
479 end_lane = lane + 1; in comphy_pcie_power_up()
522 static int comphy_usb3_power_up(u32 lane, void __iomem *hpipe_base, in comphy_usb3_power_up() argument
526 void __iomem *hpipe_addr = HPIPE_ADDR(hpipe_base, lane); in comphy_usb3_power_up()
527 void __iomem *comphy_addr = COMPHY_ADDR(comphy_base, lane); in comphy_usb3_power_up()
644 static int comphy_sata_power_up(u32 lane, void __iomem *hpipe_base, in comphy_sata_power_up() argument
648 void __iomem *hpipe_addr = HPIPE_ADDR(hpipe_base, lane); in comphy_sata_power_up()
649 void __iomem *sd_ip_addr = SD_ADDR(hpipe_base, lane); in comphy_sata_power_up()
650 void __iomem *comphy_addr = COMPHY_ADDR(comphy_base, lane); in comphy_sata_power_up()
989 static int comphy_sgmii_power_up(u32 lane, u32 sgmii_speed, in comphy_sgmii_power_up() argument
994 void __iomem *hpipe_addr = HPIPE_ADDR(hpipe_base, lane); in comphy_sgmii_power_up()
995 void __iomem *sd_ip_addr = SD_ADDR(hpipe_base, lane); in comphy_sgmii_power_up()
996 void __iomem *comphy_addr = COMPHY_ADDR(comphy_base, lane); in comphy_sgmii_power_up()
1136 static int comphy_sfi_power_up(u32 lane, void __iomem *hpipe_base, in comphy_sfi_power_up() argument
1140 void __iomem *hpipe_addr = HPIPE_ADDR(hpipe_base, lane); in comphy_sfi_power_up()
1141 void __iomem *sd_ip_addr = SD_ADDR(hpipe_base, lane); in comphy_sfi_power_up()
1142 void __iomem *comphy_addr = COMPHY_ADDR(comphy_base, lane); in comphy_sfi_power_up()
1437 static int comphy_rxauii_power_up(u32 lane, void __iomem *hpipe_base, in comphy_rxauii_power_up() argument
1441 void __iomem *hpipe_addr = HPIPE_ADDR(hpipe_base, lane); in comphy_rxauii_power_up()
1442 void __iomem *sd_ip_addr = SD_ADDR(hpipe_base, lane); in comphy_rxauii_power_up()
1443 void __iomem *comphy_addr = COMPHY_ADDR(comphy_base, lane); in comphy_rxauii_power_up()
1455 if (lane == 2) { in comphy_rxauii_power_up()
1460 if (lane == 4) { in comphy_rxauii_power_up()
1921 u32 lane, comphy_max_count; in comphy_mux_cp110_init() local
1933 for (lane = 0; lane < comphy_max_count; lane++) { in comphy_mux_cp110_init()
1934 comphy_map_pipe_data[lane].type = serdes_map[lane].type; in comphy_mux_cp110_init()
1935 comphy_map_pipe_data[lane].speed = serdes_map[lane].speed; in comphy_mux_cp110_init()
1936 comphy_map_phy_data[lane].type = serdes_map[lane].type; in comphy_mux_cp110_init()
1937 comphy_map_phy_data[lane].speed = serdes_map[lane].speed; in comphy_mux_cp110_init()
1947 for (lane = 0; lane < comphy_max_count; lane++) { in comphy_mux_cp110_init()
1948 if ((comphy_map_pipe_data[lane].type == PHY_TYPE_UNCONNECTED) && in comphy_mux_cp110_init()
1949 (comphy_map_phy_data[lane].type == PHY_TYPE_UNCONNECTED)) in comphy_mux_cp110_init()
1950 serdes_map[lane].type = PHY_TYPE_UNCONNECTED; in comphy_mux_cp110_init()
1959 u32 comphy_max_count, lane, ret = 0; in comphy_cp110_init() local
1972 for (lane = 0, ptr_comphy_map = serdes_map; lane < 4; in comphy_cp110_init()
1973 lane++, ptr_comphy_map++) { in comphy_cp110_init()
1979 for (lane = 0, ptr_comphy_map = serdes_map; lane < comphy_max_count; in comphy_cp110_init()
1980 lane++, ptr_comphy_map++) { in comphy_cp110_init()
1981 debug("Initialize serdes number %d\n", lane); in comphy_cp110_init()
1983 if (lane == 4) { in comphy_cp110_init()
2000 lane, pcie_width, ptr_comphy_map->clk_src, in comphy_cp110_init()
2009 lane, hpipe_base_addr, comphy_base_addr, in comphy_cp110_init()
2015 ret = comphy_usb3_power_up(lane, hpipe_base_addr, in comphy_cp110_init()
2024 lane); in comphy_cp110_init()
2028 lane, ptr_comphy_map->speed, hpipe_base_addr, in comphy_cp110_init()
2032 ret = comphy_sfi_power_up(lane, hpipe_base_addr, in comphy_cp110_init()
2038 ret = comphy_rxauii_power_up(lane, hpipe_base_addr, in comphy_cp110_init()
2043 lane); in comphy_cp110_init()
2053 lane); in comphy_cp110_init()