| /linux/lib/tests/ |
| H A D | test_fprobe.c | 11 #define div_factor 3 macro 27 return (value / div_factor); in fprobe_selftest_target() 32 return (value / div_factor) + 1; in fprobe_selftest_target2() 43 entry_val = (rand1 / div_factor); in fp_entry_handler() 63 KUNIT_EXPECT_EQ(current_test, ret, (rand1 / div_factor) + 1); in fp_exit_handler() 65 KUNIT_EXPECT_EQ(current_test, ret, (rand1 / div_factor)); in fp_exit_handler() 66 KUNIT_EXPECT_EQ(current_test, entry_val, (rand1 / div_factor)); in fp_exit_handler() 67 exit_val = entry_val + div_factor; in fp_exit_handler() 118 KUNIT_EXPECT_EQ(test, entry_val + div_factor, exit_val); in test_fprobe() 124 KUNIT_EXPECT_EQ(test, entry_val + div_factor, exit_val); in test_fprobe() [all …]
|
| H A D | test_kprobes.c | 13 #define div_factor 3 macro 34 return (value / div_factor); in kprobe_target() 39 return (value / div_factor); in kprobe_recursed_target() 58 posth_val = preh_val + div_factor; in kp_post_handler() 79 return (value / div_factor) + 1; in kprobe_target2() 111 preh_val = (rand1 / div_factor) + 1; in kp_pre_handler2() 118 KUNIT_EXPECT_EQ(current_test, preh_val, (rand1 / div_factor) + 1); in kp_post_handler2() 119 posth_val = preh_val + div_factor; in kp_post_handler2() 180 krph_val = (rand1 / div_factor); in entry_handler() 189 KUNIT_EXPECT_EQ(current_test, ret, rand1 / div_factor); in return_handler() [all …]
|
| /linux/drivers/gpu/drm/bridge/ |
| H A D | ssd2825.c | 417 u32 div_factor = 1, mul_factor, fr = 0; in construct_pll_config() local 419 while (reference_freq_khz / (div_factor + 1) >= SSD2825_REF_MIN_CLK) in construct_pll_config() 420 div_factor++; in construct_pll_config() 421 if (div_factor > 31) in construct_pll_config() 422 div_factor = 31; in construct_pll_config() 424 mul_factor = DIV_ROUND_UP(desired_pll_freq_kbps * div_factor, in construct_pll_config() 427 priv->pll_freq_kbps = reference_freq_khz * mul_factor / div_factor; in construct_pll_config() 437 return (fr << 14) | (div_factor << 8) | mul_factor; in construct_pll_config()
|
| /linux/drivers/media/dvb-frontends/ |
| H A D | ix2505v.c | 124 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/drivers/media/platform/qcom/venus/ |
| H A D | hfi_plat_bufs_v6.c | 1122 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/drivers/platform/x86/intel/speed_select_if/ |
| H A D | isst_tpmi_core.c | 587 #define _write_cp_info(name_str, name, offset, start, width, div_factor)\ argument 595 val |= (name / div_factor) << start;\ 840 #define _write_pp_info(name_str, name, offset, start, width, div_factor)\ argument 848 val |= (name / div_factor) << start;\
|
| /linux/sound/soc/codecs/ |
| H A D | lpass-va-macro.c | 1443 u32 div_factor; in va_macro_validate_dmic_sample_rate() local 1449 div_factor = mclk_rate / dmic_sample_rate; in va_macro_validate_dmic_sample_rate() 1451 switch (div_factor) { in va_macro_validate_dmic_sample_rate()
|
| H A D | wcd934x.c | 4697 u32 div_factor; in wcd934x_get_dmic_sample_rate() 4713 div_factor = mclk_rate / dmic_clk_rate; in wcd934x_get_dmic_clk_val() 4714 switch (div_factor) { in wcd934x_get_dmic_clk_val() 4735 "%s: Invalid div_factor %u, clk_rate(%u), dmic_rate(%u)\n", in wcd934x_get_dmic_clk_val() 4736 __func__, div_factor, mclk_rate, dmic_clk_rate); in wcd934x_get_dmic_clk_val() 4709 u32 div_factor; wcd934x_get_dmic_clk_val() local
|
| /linux/drivers/dpll/zl3073x/ |
| H A D | dpll.c | 517 s64 conn_period, div_factor; in zl3073x_dpll_input_pin_phase_offset_get() local 520 div_factor = div64_s64(ref_phase, conn_period); in zl3073x_dpll_input_pin_phase_offset_get() 521 ref_phase -= conn_period * div_factor; in zl3073x_dpll_input_pin_phase_offset_get()
|