Lines Matching refs:mode

125 	int mode = COMPHY_GET_MODE(comphy_mode);  in mvebu_a3700_comphy_set_phy_selector()  local
128 switch (mode) { in mvebu_a3700_comphy_set_phy_selector()
173 ERROR("COMPHY[%d] mode[%d] is invalid\n", comphy_index, mode); in mvebu_a3700_comphy_set_phy_selector()
217 uint16_t mask, int mode) in comphy_set_indirect() argument
227 if (mode == COMPHY_UNUSED) in comphy_set_indirect()
230 if (mode == COMPHY_SATA_MODE) in comphy_set_indirect()
241 uint16_t data, uint16_t mask, int mode) in comphy_usb3_set_direct() argument
246 static void comphy_sgmii_phy_init(uint32_t comphy_index, uint32_t mode, in comphy_sgmii_phy_init() argument
262 if ((mode != COMPHY_SGMII_MODE) && in comphy_sgmii_phy_init()
282 int mode = COMPHY_GET_MODE(comphy_mode); in mvebu_a3700_comphy_sata_power_on() local
293 mode); in mvebu_a3700_comphy_sata_power_on()
303 RXD_INVERT_BIT, mode); in mvebu_a3700_comphy_sata_power_on()
308 SEL_DATA_WIDTH_MASK, mode); in mvebu_a3700_comphy_sata_power_on()
318 REF_FREF_SEL_MASK | PHY_MODE_MASK, mode); in mvebu_a3700_comphy_sata_power_on()
323 USE_MAX_PLL_RATE_BIT, mode); in mvebu_a3700_comphy_sata_power_on()
327 PHYCTRL_FRM_PIN_BIT, mode); in mvebu_a3700_comphy_sata_power_on()
361 int mode = COMPHY_GET_MODE(comphy_mode); in mvebu_a3700_comphy_sgmii_power_on() local
400 if (mode == COMPHY_SGMII_MODE) { in mvebu_a3700_comphy_sgmii_power_on()
404 } else if (mode == COMPHY_HS_SGMII_MODE) { in mvebu_a3700_comphy_sgmii_power_on()
482 mode == COMPHY_HS_SGMII_MODE ? "2G5" : "1G"); in mvebu_a3700_comphy_sgmii_power_on()
484 comphy_sgmii_phy_init(comphy_index, mode, sd_ip_addr); in mvebu_a3700_comphy_sgmii_power_on()
592 uint16_t mask, int mode); in mvebu_a3700_comphy_usb3_power_on()
593 int mode = COMPHY_GET_MODE(comphy_mode); in mvebu_a3700_comphy_usb3_power_on() local
622 mask, mode); in mvebu_a3700_comphy_usb3_power_on()
634 usb3_reg_set(reg_base, COMPHY_REG_LANE_CFG1_ADDR, data, mask, mode); in mvebu_a3700_comphy_usb3_power_on()
640 SPREAD_SPECTRUM_CLK_EN, SPREAD_SPECTRUM_CLK_EN, mode); in mvebu_a3700_comphy_usb3_power_on()
647 MODE_MARGIN_OVERRIDE, REG_16_BIT_MASK, mode); in mvebu_a3700_comphy_usb3_power_on()
655 BUNDLE_SAMPLE_CTRL | PLL_READY_DLY), mode); in mvebu_a3700_comphy_usb3_power_on()
661 G2_TX_SSC_AMP_VALUE_20, G2_TX_SSC_AMP_MASK, mode); in mvebu_a3700_comphy_usb3_power_on()
670 G3_VREG_RXTX_MAS_ISET_60U, mask, mode); in mvebu_a3700_comphy_usb3_power_on()
691 usb3_reg_set(reg_base, COMPHY_POWER_PLL_CTRL, data, mask, mode); in mvebu_a3700_comphy_usb3_power_on()
696 usb3_reg_set(reg_base, COMPHY_REG_PWR_MGM_TIM1_ADDR, data, mask, mode); in mvebu_a3700_comphy_usb3_power_on()
703 mode); in mvebu_a3700_comphy_usb3_power_on()
710 mode); in mvebu_a3700_comphy_usb3_power_on()
716 REG_16_BIT_MASK, mode); in mvebu_a3700_comphy_usb3_power_on()
723 REG_16_BIT_MASK, mode); in mvebu_a3700_comphy_usb3_power_on()
736 usb3_reg_set(reg_base, COMPHY_SYNC_PATTERN_REG, data, mask, mode); in mvebu_a3700_comphy_usb3_power_on()
742 PHY_GEN_MAX_MASK, mode); in mvebu_a3700_comphy_usb3_power_on()
749 mode); in mvebu_a3700_comphy_usb3_power_on()
756 REG_16_BIT_MASK, mode); in mvebu_a3700_comphy_usb3_power_on()
875 int mode = COMPHY_GET_MODE(comphy_mode); in mvebu_3700_comphy_power_on() local
880 switch (mode) { in mvebu_3700_comphy_power_on()
925 int mode = COMPHY_GET_MODE(comphy_mode); in mvebu_a3700_comphy_sata_power_off() local
933 PHY_ISOLATE_MODE, mode); in mvebu_a3700_comphy_sata_power_off()
938 PU_PLL_BIT | PU_RX_BIT | PU_TX_BIT, mode); in mvebu_a3700_comphy_sata_power_off()
947 int mode = COMPHY_GET_MODE(comphy_mode); in mvebu_3700_comphy_power_off() local
952 if (!mode) { in mvebu_3700_comphy_power_off()
958 mode = mvebu_a3700_comphy_get_mode(comphy_index); in mvebu_3700_comphy_power_off()
961 switch (mode) { in mvebu_3700_comphy_power_off()
976 comphy_index, mode); in mvebu_3700_comphy_power_off()
1012 int mode = COMPHY_GET_MODE(comphy_mode); in mvebu_3700_comphy_is_pll_locked() local
1017 switch (mode) { in mvebu_3700_comphy_is_pll_locked()
1024 comphy_index, mode); in mvebu_3700_comphy_is_pll_locked()