Lines Matching refs:phy_ctrl
282 *phy_ctrl) in dmc_get_read_offset_value()
284 return readl(&phy_ctrl->phy_con4); in dmc_get_read_offset_value()
292 static void ddr_phy_set_do_resync(struct exynos5420_phy_control *phy_ctrl) in ddr_phy_set_do_resync() argument
294 setbits_le32(&phy_ctrl->phy_con10, PHY_CON10_CTRL_OFFSETR3); in ddr_phy_set_do_resync()
295 clrbits_le32(&phy_ctrl->phy_con10, PHY_CON10_CTRL_OFFSETR3); in ddr_phy_set_do_resync()
306 static void dmc_set_read_offset_value(struct exynos5420_phy_control *phy_ctrl, in dmc_set_read_offset_value() argument
309 writel(offset, &phy_ctrl->phy_con4); in dmc_set_read_offset_value()
310 ddr_phy_set_do_resync(phy_ctrl); in dmc_set_read_offset_value()
352 void test_shifts(struct exynos5420_phy_control *phy_ctrl, int ch, in test_shifts() argument
361 dmc_set_read_offset_value(phy_ctrl, DEFAULT_DQS_X4); in test_shifts()
370 offsetr = dmc_get_read_offset_value(phy_ctrl); in test_shifts()
373 dmc_set_read_offset_value(phy_ctrl, offsetr); in test_shifts()
403 static void software_find_read_offset(struct exynos5420_phy_control *phy_ctrl, in software_find_read_offset() argument
425 test_shifts(phy_ctrl, ch, left_limit, right_limit, left); in software_find_read_offset()
426 test_shifts(phy_ctrl, ch, right_limit, left_limit, right); in software_find_read_offset()
438 dmc_set_read_offset_value(phy_ctrl, offsetr_cent); in software_find_read_offset()