• Home
  • Raw
  • Download

Lines Matching refs:comphy_base

88 					 uint64_t comphy_base)  in mvebu_cp110_get_ap_and_cp_nr()  argument
93 *ap_nr = (((comphy_base & ~0xffffff) - MVEBU_AP_IO_BASE(0)) / in mvebu_cp110_get_ap_and_cp_nr()
97 *cp_nr = (((comphy_base & ~0xffffff) - MVEBU_AP_IO_BASE(*ap_nr)) / in mvebu_cp110_get_ap_and_cp_nr()
101 comphy_base, (unsigned long)MVEBU_AP_IO_BASE(*ap_nr), in mvebu_cp110_get_ap_and_cp_nr()
106 static void mvebu_cp110_comphy_clr_pipe_selector(uint64_t comphy_base, in mvebu_cp110_comphy_clr_pipe_selector() argument
114 reg = mmio_read_32(comphy_base + COMMON_SELECTOR_PIPE_REG_OFFSET); in mvebu_cp110_comphy_clr_pipe_selector()
119 mmio_write_32(comphy_base + COMMON_SELECTOR_PIPE_REG_OFFSET, in mvebu_cp110_comphy_clr_pipe_selector()
125 static void mvebu_cp110_comphy_clr_phy_selector(uint64_t comphy_base, in mvebu_cp110_comphy_clr_phy_selector() argument
133 reg = mmio_read_32(comphy_base + COMMON_SELECTOR_PHY_REG_OFFSET); in mvebu_cp110_comphy_clr_phy_selector()
143 mmio_write_32(comphy_base + COMMON_SELECTOR_PHY_REG_OFFSET, in mvebu_cp110_comphy_clr_phy_selector()
149 static void mvebu_cp110_comphy_set_phy_selector(uint64_t comphy_base, in mvebu_cp110_comphy_set_phy_selector() argument
160 mvebu_cp110_comphy_clr_pipe_selector(comphy_base, comphy_index); in mvebu_cp110_comphy_set_phy_selector()
168 reg = mmio_read_32(comphy_base + COMMON_SELECTOR_PHY_REG_OFFSET); in mvebu_cp110_comphy_set_phy_selector()
239 mmio_write_32(comphy_base + COMMON_SELECTOR_PHY_REG_OFFSET, reg); in mvebu_cp110_comphy_set_phy_selector()
243 static void mvebu_cp110_comphy_set_pipe_selector(uint64_t comphy_base, in mvebu_cp110_comphy_set_pipe_selector() argument
255 mvebu_cp110_comphy_clr_phy_selector(comphy_base, comphy_index); in mvebu_cp110_comphy_set_pipe_selector()
257 reg = mmio_read_32(comphy_base + COMMON_SELECTOR_PIPE_REG_OFFSET); in mvebu_cp110_comphy_set_pipe_selector()
291 mmio_write_32(comphy_base + COMMON_SELECTOR_PIPE_REG_OFFSET, reg | in mvebu_cp110_comphy_set_pipe_selector()
295 int mvebu_cp110_comphy_is_pll_locked(uint64_t comphy_base, uint8_t comphy_index) in mvebu_cp110_comphy_is_pll_locked() argument
303 sd_ip_addr = SD_ADDR(COMPHY_PIPE_FROM_COMPHY_ADDR(comphy_base), in mvebu_cp110_comphy_is_pll_locked()
347 static int mvebu_cp110_comphy_sata_power_on(uint64_t comphy_base, in mvebu_cp110_comphy_sata_power_on() argument
357 mvebu_cp110_get_ap_and_cp_nr(&ap_nr, &cp_nr, comphy_base); in mvebu_cp110_comphy_sata_power_on()
365 mvebu_cp110_comphy_set_phy_selector(comphy_base, in mvebu_cp110_comphy_sata_power_on()
368 hpipe_addr = HPIPE_ADDR(COMPHY_PIPE_FROM_COMPHY_ADDR(comphy_base), in mvebu_cp110_comphy_sata_power_on()
370 sd_ip_addr = SD_ADDR(COMPHY_PIPE_FROM_COMPHY_ADDR(comphy_base), in mvebu_cp110_comphy_sata_power_on()
372 comphy_addr = COMPHY_ADDR(comphy_base, comphy_index); in mvebu_cp110_comphy_sata_power_on()
672 static int mvebu_cp110_comphy_sgmii_power_on(uint64_t comphy_base, in mvebu_cp110_comphy_sgmii_power_on() argument
681 hpipe_addr = HPIPE_ADDR(COMPHY_PIPE_FROM_COMPHY_ADDR(comphy_base), in mvebu_cp110_comphy_sgmii_power_on()
683 sd_ip_addr = SD_ADDR(COMPHY_PIPE_FROM_COMPHY_ADDR(comphy_base), in mvebu_cp110_comphy_sgmii_power_on()
685 comphy_addr = COMPHY_ADDR(comphy_base, comphy_index); in mvebu_cp110_comphy_sgmii_power_on()
688 mvebu_cp110_comphy_set_phy_selector(comphy_base, comphy_index, in mvebu_cp110_comphy_sgmii_power_on()
798 ret = mvebu_cp110_comphy_is_pll_locked(comphy_base, comphy_index); in mvebu_cp110_comphy_sgmii_power_on()
830 static int mvebu_cp110_comphy_xfi_power_on(uint64_t comphy_base, in mvebu_cp110_comphy_xfi_power_on() argument
841 mvebu_cp110_get_ap_and_cp_nr(&ap_nr, &cp_nr, comphy_base); in mvebu_cp110_comphy_xfi_power_on()
875 hpipe_addr = HPIPE_ADDR(COMPHY_PIPE_FROM_COMPHY_ADDR(comphy_base), in mvebu_cp110_comphy_xfi_power_on()
877 sd_ip_addr = SD_ADDR(COMPHY_PIPE_FROM_COMPHY_ADDR(comphy_base), in mvebu_cp110_comphy_xfi_power_on()
879 comphy_addr = COMPHY_ADDR(comphy_base, comphy_index); in mvebu_cp110_comphy_xfi_power_on()
882 mvebu_cp110_comphy_set_phy_selector(comphy_base, comphy_index, in mvebu_cp110_comphy_xfi_power_on()
1242 static int mvebu_cp110_comphy_pcie_power_on(uint64_t comphy_base, in mvebu_cp110_comphy_pcie_power_on() argument
1267 hpipe_addr = HPIPE_ADDR(COMPHY_PIPE_FROM_COMPHY_ADDR(comphy_base), in mvebu_cp110_comphy_pcie_power_on()
1269 comphy_addr = COMPHY_ADDR(comphy_base, comphy_index); in mvebu_cp110_comphy_pcie_power_on()
1276 reg = mmio_read_32(SYS_CTRL_FROM_COMPHY_ADDR(comphy_base) + in mvebu_cp110_comphy_pcie_power_on()
1290 mmio_write_32(SYS_CTRL_FROM_COMPHY_ADDR(comphy_base) + in mvebu_cp110_comphy_pcie_power_on()
1295 mvebu_cp110_comphy_set_pipe_selector(comphy_base, comphy_index, in mvebu_cp110_comphy_pcie_power_on()
1305 reg = mmio_read_32(DFX_FROM_COMPHY_ADDR(comphy_base) + in mvebu_cp110_comphy_pcie_power_on()
1323 reg_set(comphy_base + COMMON_PHY_SD_CTRL1, in mvebu_cp110_comphy_pcie_power_on()
1328 reg_set(comphy_base + COMMON_PHY_SD_CTRL1, data, mask); in mvebu_cp110_comphy_pcie_power_on()
1340 reg_set(DFX_FROM_COMPHY_ADDR(comphy_base) + in mvebu_cp110_comphy_pcie_power_on()
1664 reg_set(comphy_base + COMMON_PHY_SD_CTRL1, data, mask); in mvebu_cp110_comphy_pcie_power_on()
1674 COMPHY_PIPE_FROM_COMPHY_ADDR(comphy_base), 0) + in mvebu_cp110_comphy_pcie_power_on()
1708 reg_set(comphy_base + COMMON_PHY_SD_CTRL1, in mvebu_cp110_comphy_pcie_power_on()
1716 COMPHY_PIPE_FROM_COMPHY_ADDR(comphy_base), i) + in mvebu_cp110_comphy_pcie_power_on()
1733 static int mvebu_cp110_comphy_rxaui_power_on(uint64_t comphy_base, in mvebu_cp110_comphy_rxaui_power_on() argument
1742 hpipe_addr = HPIPE_ADDR(COMPHY_PIPE_FROM_COMPHY_ADDR(comphy_base), in mvebu_cp110_comphy_rxaui_power_on()
1744 comphy_addr = COMPHY_ADDR(comphy_base, comphy_index); in mvebu_cp110_comphy_rxaui_power_on()
1745 sd_ip_addr = SD_ADDR(COMPHY_PIPE_FROM_COMPHY_ADDR(comphy_base), in mvebu_cp110_comphy_rxaui_power_on()
1749 mvebu_cp110_comphy_set_phy_selector(comphy_base, comphy_index, in mvebu_cp110_comphy_rxaui_power_on()
1760 reg_set(comphy_base + COMMON_PHY_SD_CTRL1, in mvebu_cp110_comphy_rxaui_power_on()
1765 reg_set(comphy_base + COMMON_PHY_SD_CTRL1, in mvebu_cp110_comphy_rxaui_power_on()
1920 static int mvebu_cp110_comphy_usb3_power_on(uint64_t comphy_base, in mvebu_cp110_comphy_usb3_power_on() argument
1931 mvebu_cp110_comphy_set_pipe_selector(comphy_base, comphy_index, in mvebu_cp110_comphy_usb3_power_on()
1934 mvebu_cp110_get_ap_and_cp_nr(&ap_nr, &cp_nr, comphy_base); in mvebu_cp110_comphy_usb3_power_on()
1941 hpipe_addr = HPIPE_ADDR(COMPHY_PIPE_FROM_COMPHY_ADDR(comphy_base), in mvebu_cp110_comphy_usb3_power_on()
1943 comphy_addr = COMPHY_ADDR(comphy_base, comphy_index); in mvebu_cp110_comphy_usb3_power_on()
2070 static void rx_pre_train(uint64_t comphy_base, uint8_t comphy_index) in rx_pre_train() argument
2075 hpipe_addr = HPIPE_ADDR(COMPHY_PIPE_FROM_COMPHY_ADDR(comphy_base), in rx_pre_train()
2116 int mvebu_cp110_comphy_xfi_rx_training(uint64_t comphy_base, in mvebu_cp110_comphy_xfi_rx_training() argument
2125 mvebu_cp110_get_ap_and_cp_nr(&ap_nr, &cp_nr, comphy_base); in mvebu_cp110_comphy_xfi_rx_training()
2127 hpipe_addr = HPIPE_ADDR(COMPHY_PIPE_FROM_COMPHY_ADDR(comphy_base), in mvebu_cp110_comphy_xfi_rx_training()
2132 rx_pre_train(comphy_base, comphy_index); in mvebu_cp110_comphy_xfi_rx_training()
2282 static int mvebu_cp110_comphy_ap_power_on(uint64_t comphy_base, in mvebu_cp110_comphy_ap_power_on() argument
2289 COMPHY_ADDR(comphy_base, comphy_index); in mvebu_cp110_comphy_ap_power_on()
2292 mvebu_cp110_comphy_set_phy_selector(comphy_base, comphy_index, in mvebu_cp110_comphy_ap_power_on()
2305 mvebu_cp110_get_ap_and_cp_nr(&ap_nr, &cp_nr, comphy_base); in mvebu_cp110_comphy_ap_power_on()
2315 int mvebu_cp110_comphy_digital_reset(uint64_t comphy_base, in mvebu_cp110_comphy_digital_reset() argument
2323 sd_ip_addr = SD_ADDR(COMPHY_PIPE_FROM_COMPHY_ADDR(comphy_base), in mvebu_cp110_comphy_digital_reset()
2346 int mvebu_cp110_comphy_power_on(uint64_t comphy_base, uint8_t comphy_index, in mvebu_cp110_comphy_power_on() argument
2356 err = mvebu_cp110_comphy_sata_power_on(comphy_base, in mvebu_cp110_comphy_power_on()
2362 err = mvebu_cp110_comphy_sgmii_power_on(comphy_base, in mvebu_cp110_comphy_power_on()
2369 err = mvebu_cp110_comphy_xfi_power_on(comphy_base, in mvebu_cp110_comphy_power_on()
2374 err = mvebu_cp110_comphy_pcie_power_on(comphy_base, in mvebu_cp110_comphy_power_on()
2379 err = mvebu_cp110_comphy_rxaui_power_on(comphy_base, in mvebu_cp110_comphy_power_on()
2385 err = mvebu_cp110_comphy_usb3_power_on(comphy_base, in mvebu_cp110_comphy_power_on()
2390 err = mvebu_cp110_comphy_ap_power_on(comphy_base, comphy_index, in mvebu_cp110_comphy_power_on()
2404 int mvebu_cp110_comphy_power_off(uint64_t comphy_base, uint8_t comphy_index, in mvebu_cp110_comphy_power_off() argument
2435 data = mmio_read_32(comphy_base + in mvebu_cp110_comphy_power_off()
2443 mvebu_cp110_get_ap_and_cp_nr(&ap_nr, &cp_nr, comphy_base); in mvebu_cp110_comphy_power_off()
2451 sd_ip_addr = SD_ADDR(COMPHY_PIPE_FROM_COMPHY_ADDR(comphy_base), in mvebu_cp110_comphy_power_off()
2453 comphy_ip_addr = COMPHY_ADDR(comphy_base, comphy_index); in mvebu_cp110_comphy_power_off()
2471 data = mmio_read_32(SYS_CTRL_FROM_COMPHY_ADDR(comphy_base) + in mvebu_cp110_comphy_power_off()
2485 mmio_write_32(SYS_CTRL_FROM_COMPHY_ADDR(comphy_base) + in mvebu_cp110_comphy_power_off()
2497 mvebu_cp110_comphy_clr_phy_selector(comphy_base, comphy_index); in mvebu_cp110_comphy_power_off()
2498 mvebu_cp110_comphy_clr_pipe_selector(comphy_base, comphy_index); in mvebu_cp110_comphy_power_off()