Home
last modified time | relevance | path

Searched refs:div_factor (Results 1 – 11 of 11) sorted by relevance

/linux-6.6.21/drivers/clk/qcom/
Dclk-spmi-pmic-div.c38 static inline unsigned int div_factor_to_div(unsigned int div_factor) in div_factor_to_div() argument
40 if (!div_factor) in div_factor_to_div()
41 div_factor = 1; in div_factor_to_div()
43 return 1 << (div_factor - 1); in div_factor_to_div()
62 unsigned int div_factor) in __spmi_pmic_clkdiv_set_enable_state() argument
66 unsigned int div = div_factor_to_div(div_factor); in __spmi_pmic_clkdiv_set_enable_state()
83 unsigned int div_factor; in spmi_pmic_clkdiv_set_enable_state() local
85 regmap_read(clkdiv->regmap, clkdiv->base + REG_DIV_CTL1, &div_factor); in spmi_pmic_clkdiv_set_enable_state()
86 div_factor &= DIV_CTL1_DIV_FACTOR_MASK; in spmi_pmic_clkdiv_set_enable_state()
88 return __spmi_pmic_clkdiv_set_enable_state(clkdiv, enable, div_factor); in spmi_pmic_clkdiv_set_enable_state()
[all …]
/linux-6.6.21/lib/
Dtest_fprobe.c11 #define div_factor 3 macro
28 return (value / div_factor); in fprobe_selftest_target()
33 return (value / div_factor) + 1; in fprobe_selftest_target2()
49 entry_val = (rand1 / div_factor); in fp_entry_handler()
69 KUNIT_EXPECT_EQ(current_test, ret, (rand1 / div_factor) + 1); in fp_exit_handler()
71 KUNIT_EXPECT_EQ(current_test, ret, (rand1 / div_factor)); in fp_exit_handler()
72 KUNIT_EXPECT_EQ(current_test, entry_val, (rand1 / div_factor)); in fp_exit_handler()
73 exit_val = entry_val + div_factor; in fp_exit_handler()
140 KUNIT_EXPECT_EQ(test, entry_val + div_factor, exit_val); in test_fprobe()
146 KUNIT_EXPECT_EQ(test, entry_val + div_factor, exit_val); in test_fprobe()
[all …]
Dtest_kprobes.c13 #define div_factor 3 macro
28 return (value / div_factor); in kprobe_target()
33 return (value / div_factor); in kprobe_recursed_target()
52 posth_val = preh_val + div_factor; in kp_post_handler()
73 return (value / div_factor) + 1; in kprobe_target2()
105 preh_val = (rand1 / div_factor) + 1; in kp_pre_handler2()
112 KUNIT_EXPECT_EQ(current_test, preh_val, (rand1 / div_factor) + 1); in kp_post_handler2()
113 posth_val = preh_val + div_factor; in kp_post_handler2()
178 krph_val = (rand1 / div_factor); in entry_handler()
187 KUNIT_EXPECT_EQ(current_test, ret, rand1 / div_factor); in return_handler()
[all …]
/linux-6.6.21/drivers/media/dvb-frontends/
Dix2505v.c124 u32 div_factor, N , A, x; in ix2505v_set_params() local
147 div_factor = (frequency * ref) / 40; /* local osc = 4Mhz */ in ix2505v_set_params()
148 x = div_factor / psc; in ix2505v_set_params()
/linux-6.6.21/drivers/media/platform/qcom/venus/
Dhfi_plat_bufs_v6.c1122 u32 div_factor = 1; in calculate_dec_input_frame_size() local
1134 div_factor = 4; in calculate_dec_input_frame_size()
1139 div_factor = 1; in calculate_dec_input_frame_size()
1141 div_factor = 2; in calculate_dec_input_frame_size()
1144 frame_size = base_res_mbs * MB_SIZE_IN_PIXEL * 3 / 2 / div_factor; in calculate_dec_input_frame_size()
/linux-6.6.21/drivers/platform/x86/intel/speed_select_if/
Disst_tpmi_core.c431 #define _write_cp_info(name_str, name, offset, start, width, div_factor)\ argument
439 val |= (name / div_factor) << start;\
638 #define _write_pp_info(name_str, name, offset, start, width, div_factor)\ argument
646 val |= (name / div_factor) << start;\
/linux-6.6.21/sound/soc/codecs/
Dlpass-va-macro.c1401 u32 div_factor; in va_macro_validate_dmic_sample_rate() local
1407 div_factor = mclk_rate / dmic_sample_rate; in va_macro_validate_dmic_sample_rate()
1409 switch (div_factor) { in va_macro_validate_dmic_sample_rate()
Dwcd9335.c2850 u32 div_factor; in wcd9335_get_dmic_clk_val() local
2870 div_factor = mclk_rate / dmic_clk_rate; in wcd9335_get_dmic_clk_val()
2871 switch (div_factor) { in wcd9335_get_dmic_clk_val()
2893 __func__, div_factor, mclk_rate, dmic_clk_rate); in wcd9335_get_dmic_clk_val()
Dwcd934x.c4766 u32 div_factor; in wcd934x_get_dmic_clk_val() local
4782 div_factor = mclk_rate / dmic_clk_rate; in wcd934x_get_dmic_clk_val()
4783 switch (div_factor) { in wcd934x_get_dmic_clk_val()
4805 __func__, div_factor, mclk_rate, dmic_clk_rate); in wcd934x_get_dmic_clk_val()
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dce/
Ddce_clock_source.h316 unsigned short div_factor; member
Ddce_clock_source.c979 REG_WRITE(MODULO[inst], dp_dto_ref_khz * e->div_factor); in dcn31_program_pix_clk()
1230 REG_WRITE(MODULO[inst], dp_dto_ref_khz * e->div_factor); in dcn3_program_pix_clk()