Lines Matching refs:mask

218 				uint16_t mask, bool is_sata)  in comphy_set_indirect()  argument
235 reg_set(addr + COMPHY_LANE2_INDIR_DATA_OFFSET, data, mask); in comphy_set_indirect()
240 uint16_t data, uint16_t mask) in comphy_sata_set_indirect() argument
242 comphy_set_indirect(addr, reg_offset, data, mask, true); in comphy_sata_set_indirect()
247 uint16_t data, uint16_t mask) in comphy_usb3_set_indirect() argument
249 comphy_set_indirect(addr, reg_offset, data, mask, false); in comphy_usb3_set_indirect()
254 uint16_t data, uint16_t mask) in comphy_usb3_set_direct() argument
256 reg_set16((reg_offset * PHY_SHFT(USB3) + addr), data, mask); in comphy_usb3_set_direct()
374 uint32_t mask, data; in mvebu_a3700_comphy_sgmii_power_on() local
405 mask = data | PIN_RESET_CORE_BIT | PIN_PU_PLL_BIT | PIN_PU_RX_BIT | in mvebu_a3700_comphy_sgmii_power_on()
408 reg_set(offset, data, mask); in mvebu_a3700_comphy_sgmii_power_on()
412 mask = PIN_RESET_COMPHY_BIT; in mvebu_a3700_comphy_sgmii_power_on()
413 reg_set(offset, data, mask); in mvebu_a3700_comphy_sgmii_power_on()
433 mask = GEN_RX_SEL_MASK | GEN_TX_SEL_MASK; in mvebu_a3700_comphy_sgmii_power_on()
434 reg_set(offset, data, mask); in mvebu_a3700_comphy_sgmii_power_on()
444 mask = PHY_MODE_MASK; in mvebu_a3700_comphy_sgmii_power_on()
445 reg_set16(SGMIIPHY_ADDR(COMPHY_POWER_PLL_CTRL, sd_ip_addr), data, mask); in mvebu_a3700_comphy_sgmii_power_on()
452 mask = PHY_REF_CLK_SEL; in mvebu_a3700_comphy_sgmii_power_on()
453 reg_set16(SGMIIPHY_ADDR(COMPHY_MISC_CTRL0, sd_ip_addr), data, mask); in mvebu_a3700_comphy_sgmii_power_on()
464 mask = REF_FREF_SEL_MASK; in mvebu_a3700_comphy_sgmii_power_on()
465 reg_set16(SGMIIPHY_ADDR(COMPHY_POWER_PLL_CTRL, sd_ip_addr), data, mask); in mvebu_a3700_comphy_sgmii_power_on()
479 mask = SEL_DATA_WIDTH_MASK; in mvebu_a3700_comphy_sgmii_power_on()
481 data, mask); in mvebu_a3700_comphy_sgmii_power_on()
526 mask = TXD_INVERT_BIT | RXD_INVERT_BIT; in mvebu_a3700_comphy_sgmii_power_on()
527 reg_set16(SGMIIPHY_ADDR(COMPHY_SYNC_PATTERN, sd_ip_addr), data, mask); in mvebu_a3700_comphy_sgmii_power_on()
596 uint32_t mask, data; in mvebu_a3700_comphy_sgmii_power_off() local
601 mask = data; in mvebu_a3700_comphy_sgmii_power_off()
603 reg_set(offset, data, mask); in mvebu_a3700_comphy_sgmii_power_off()
616 uint32_t mask, data, cfg, ref_clk; in mvebu_a3700_comphy_usb3_power_on() local
618 uint16_t mask); in mvebu_a3700_comphy_usb3_power_on()
647 mask = PRD_TXDEEMPH0_MASK | PRD_TXMARGIN_MASK | PRD_TXSWING_MASK | in mvebu_a3700_comphy_usb3_power_on()
649 usb3_reg_set(reg_base, COMPHY_LANE_CFG0, PRD_TXDEEMPH0_MASK, mask); in mvebu_a3700_comphy_usb3_power_on()
658 mask = PRD_TXDEEMPH1_MASK | TX_DET_RX_MODE | GEN2_TX_DATA_DLY_MASK | in mvebu_a3700_comphy_usb3_power_on()
661 usb3_reg_set(reg_base, COMPHY_LANE_CFG1, data, mask); in mvebu_a3700_comphy_usb3_power_on()
695 mask = GS2_TX_SSC_AMP_MASK | GS2_VREG_RXTX_MAS_ISET_MASK | in mvebu_a3700_comphy_usb3_power_on()
698 GS2_VREG_RXTX_MAS_ISET_60U, mask); in mvebu_a3700_comphy_usb3_power_on()
714 mask = PU_IVREF_BIT | PU_PLL_BIT | PU_RX_BIT | PU_TX_BIT | in mvebu_a3700_comphy_usb3_power_on()
719 usb3_reg_set(reg_base, COMPHY_POWER_PLL_CTRL, data, mask); in mvebu_a3700_comphy_usb3_power_on()
721 mask = CFG_PM_OSCCLK_WAIT_MASK | CFG_PM_RXDEN_WAIT_MASK | in mvebu_a3700_comphy_usb3_power_on()
724 usb3_reg_set(reg_base, COMPHY_PWR_MGM_TIM1, data, mask); in mvebu_a3700_comphy_usb3_power_on()
761 mask = TXD_INVERT_BIT | RXD_INVERT_BIT; in mvebu_a3700_comphy_usb3_power_on()
762 usb3_reg_set(reg_base, COMPHY_SYNC_PATTERN, data, mask); in mvebu_a3700_comphy_usb3_power_on()
813 uint32_t mask, data; in mvebu_a3700_comphy_pcie_power_on() local
883 mask = TXD_INVERT_BIT | RXD_INVERT_BIT; in mvebu_a3700_comphy_pcie_power_on()
884 reg_set16(SYNC_PATTERN_ADDR(PCIE) + COMPHY_SD_ADDR, data, mask); in mvebu_a3700_comphy_pcie_power_on()
888 mask = data | SOFT_RESET | MODE_REFDIV_MASK; in mvebu_a3700_comphy_pcie_power_on()
889 reg_set16(RST_CLK_CTRL_ADDR(PCIE) + COMPHY_SD_ADDR, data, mask); in mvebu_a3700_comphy_pcie_power_on()