Lines Matching full:degrees
48 u16 degrees; in rockchip_mmc_get_internal_phase() local
61 degrees = (raw_value & ROCKCHIP_MMC_DEGREE_MASK) * 90; in rockchip_mmc_get_internal_phase()
64 /* degrees/delaynum * 1000000 */ in rockchip_mmc_get_internal_phase()
70 degrees += DIV_ROUND_CLOSEST(delay_num * factor, 1000000); in rockchip_mmc_get_internal_phase()
73 return degrees % 360; in rockchip_mmc_get_internal_phase()
87 static int rockchip_mmc_set_internal_phase(struct dw_mci *host, bool sample, int degrees) in rockchip_mmc_set_internal_phase() argument
112 nineties = degrees / 90; in rockchip_mmc_set_internal_phase()
113 remainder = (degrees % 90); in rockchip_mmc_set_internal_phase()
130 * degrees off from what we think we're making. That's OK in rockchip_mmc_set_internal_phase()
156 sample ? "sample" : "drv", degrees, delay_num, in rockchip_mmc_set_internal_phase()
163 static int rockchip_mmc_set_phase(struct dw_mci *host, bool sample, int degrees) in rockchip_mmc_set_phase() argument
169 return rockchip_mmc_set_internal_phase(host, sample, degrees); in rockchip_mmc_set_phase()
171 return clk_set_phase(clock, degrees); in rockchip_mmc_set_phase()
337 * 20 degrees. in dw_mci_rk3288_execute_tuning()