Lines Matching refs:offset

217 static void comphy_set_indirect(uintptr_t addr, uint32_t offset, uint16_t data,  in comphy_set_indirect()  argument
229 mmio_write_32(addr + COMPHY_LANE2_INDIR_ADDR_OFFSET, offset); in comphy_set_indirect()
232 offset + USB3PHY_LANE2_REG_BASE_OFFSET); in comphy_set_indirect()
291 uint32_t offset, data = 0, ref_clk; in mvebu_a3700_comphy_sata_power_on() local
304 offset = COMPHY_ISOLATION_CTRL_REG + SATAPHY_LANE2_REG_BASE_OFFSET; in mvebu_a3700_comphy_sata_power_on()
305 comphy_sata_set_indirect(comphy_indir_regs, offset, 0, PHY_ISOLATE_MODE); in mvebu_a3700_comphy_sata_power_on()
313 offset = COMPHY_SYNC_PATTERN_REG + SATAPHY_LANE2_REG_BASE_OFFSET; in mvebu_a3700_comphy_sata_power_on()
314 comphy_sata_set_indirect(comphy_indir_regs, offset, data, TXD_INVERT_BIT | in mvebu_a3700_comphy_sata_power_on()
318 offset = COMPHY_LOOPBACK_REG0 + SATAPHY_LANE2_REG_BASE_OFFSET; in mvebu_a3700_comphy_sata_power_on()
319 comphy_sata_set_indirect(comphy_indir_regs, offset, DATA_WIDTH_40BIT, in mvebu_a3700_comphy_sata_power_on()
323 offset = COMPHY_POWER_PLL_CTRL + SATAPHY_LANE2_REG_BASE_OFFSET; in mvebu_a3700_comphy_sata_power_on()
329 comphy_sata_set_indirect(comphy_indir_regs, offset, ref_clk | PHY_MODE_SATA, in mvebu_a3700_comphy_sata_power_on()
333 offset = COMPHY_KVCO_CAL_CTRL + SATAPHY_LANE2_REG_BASE_OFFSET; in mvebu_a3700_comphy_sata_power_on()
334 comphy_sata_set_indirect(comphy_indir_regs, offset, USE_MAX_PLL_RATE_BIT, in mvebu_a3700_comphy_sata_power_on()
375 uintptr_t offset; in mvebu_a3700_comphy_sgmii_power_on() local
407 offset = MVEBU_COMPHY_REG_BASE + COMPHY_PHY_CFG1_OFFSET(comphy_index); in mvebu_a3700_comphy_sgmii_power_on()
408 reg_set(offset, data, mask); in mvebu_a3700_comphy_sgmii_power_on()
413 reg_set(offset, data, mask); in mvebu_a3700_comphy_sgmii_power_on()
434 reg_set(offset, data, mask); in mvebu_a3700_comphy_sgmii_power_on()
594 uintptr_t offset; in mvebu_a3700_comphy_sgmii_power_off() local
601 offset = MVEBU_COMPHY_REG_BASE + COMPHY_PHY_CFG1_OFFSET(comphy_index); in mvebu_a3700_comphy_sgmii_power_off()
602 reg_set(offset, data, mask); in mvebu_a3700_comphy_sgmii_power_off()
959 uint32_t offset; in mvebu_a3700_comphy_sata_power_off() local
964 offset = COMPHY_ISOLATION_CTRL_REG + SATAPHY_LANE2_REG_BASE_OFFSET; in mvebu_a3700_comphy_sata_power_off()
965 comphy_sata_set_indirect(comphy_indir_regs, offset, PHY_ISOLATE_MODE, in mvebu_a3700_comphy_sata_power_off()
969 offset = COMPHY_POWER_PLL_CTRL + SATAPHY_LANE2_REG_BASE_OFFSET; in mvebu_a3700_comphy_sata_power_off()
970 comphy_sata_set_indirect(comphy_indir_regs, offset, 0, in mvebu_a3700_comphy_sata_power_off()