Home
last modified time | relevance | path

Searched refs:degrees (Results 1 – 8 of 8) sorted by relevance

/drivers/clk/rockchip/
Dclk-mmc-phase.c58 u16 degrees; in rockchip_mmc_get_phase() local
67 degrees = (raw_value & ROCKCHIP_MMC_DEGREE_MASK) * 90; in rockchip_mmc_get_phase()
76 degrees += DIV_ROUND_CLOSEST(delay_num * factor, 10000); in rockchip_mmc_get_phase()
79 return degrees % 360; in rockchip_mmc_get_phase()
82 static int rockchip_mmc_set_phase(struct clk_hw *hw, int degrees) in rockchip_mmc_set_phase() argument
108 nineties = degrees / 90; in rockchip_mmc_set_phase()
109 remainder = (degrees % 90); in rockchip_mmc_set_phase()
148 clk_hw_get_name(hw), degrees, delay_num, in rockchip_mmc_set_phase()
Dclk-inverter.c44 static int rockchip_inv_set_phase(struct clk_hw *hw, int degrees) in rockchip_inv_set_phase() argument
49 if (degrees % 180 == 0) { in rockchip_inv_set_phase()
50 val = !!degrees; in rockchip_inv_set_phase()
53 __func__, degrees, clk_hw_get_name(hw)); in rockchip_inv_set_phase()
/drivers/gpu/drm/nouveau/dispnv04/
Doverlay.c75 sin_mul(int degrees, int factor) in sin_mul() argument
77 if (degrees > 180) { in sin_mul()
78 degrees -= 180; in sin_mul()
81 return factor * 4 * degrees * (180 - degrees) / in sin_mul()
82 (40500 - degrees * (180 - degrees)); in sin_mul()
87 cos_mul(int degrees, int factor) in cos_mul() argument
89 return sin_mul((degrees + 90) % 360, factor); in cos_mul()
/drivers/hwmon/
Demc2103.c64 s8 degrees; member
101 u8 degrees, fractional; in read_temp_from_i2c() local
103 if (read_u8_from_i2c(client, i2c_reg, &degrees) < 0) in read_temp_from_i2c()
109 temp->degrees = degrees; in read_temp_from_i2c()
192 int millidegrees = data->temp[nr].degrees * 1000 in show_temp()
220 bool fault = (data->temp[nr].degrees == -128); in show_temp_fault()
/drivers/clk/sunxi/
Dclk-mod0.c231 static int mmc_set_phase(struct clk_hw *hw, int degrees) in mmc_set_phase() argument
260 if (degrees != 180) { in mmc_set_phase()
280 delay = DIV_ROUND_CLOSEST(degrees, step); in mmc_set_phase()
/drivers/gpu/ipu-v3/
Dipu-common.c186 int ipu_degrees_to_rot_mode(enum ipu_rotate_mode *mode, int degrees, in ipu_degrees_to_rot_mode() argument
191 switch (degrees) { in ipu_degrees_to_rot_mode()
218 int ipu_rot_mode_to_degrees(int *degrees, enum ipu_rotate_mode mode, in ipu_rot_mode_to_degrees() argument
231 *degrees = 0; in ipu_rot_mode_to_degrees()
234 *degrees = 90; in ipu_rot_mode_to_degrees()
237 *degrees = 180; in ipu_rot_mode_to_degrees()
240 *degrees = 270; in ipu_rot_mode_to_degrees()
/drivers/clk/
Dclk.c1873 int clk_set_phase(struct clk *clk, int degrees) in clk_set_phase() argument
1881 degrees %= 360; in clk_set_phase()
1882 if (degrees < 0) in clk_set_phase()
1883 degrees += 360; in clk_set_phase()
1887 trace_clk_set_phase(clk->core, degrees); in clk_set_phase()
1890 ret = clk->core->ops->set_phase(clk->core->hw, degrees); in clk_set_phase()
1892 trace_clk_set_phase_complete(clk->core, degrees); in clk_set_phase()
1895 clk->core->phase = degrees; in clk_set_phase()
/drivers/video/fbdev/
DKconfig2195 and 8, 15 or 16 bpp color; 90 degrees clockwise display rotation for