/linux-6.1.9/drivers/clk/qcom/ |
D | clk-spmi-pmic-div.c | 38 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.1.9/lib/ |
D | test_fprobe.c | 11 #define div_factor 3 macro 25 return (value / div_factor); in fprobe_selftest_target() 30 return (value / div_factor) + 1; in fprobe_selftest_target2() 39 entry_val = (rand1 / div_factor); in fp_entry_handler() 49 KUNIT_EXPECT_EQ(current_test, ret, (rand1 / div_factor) + 1); in fp_exit_handler() 51 KUNIT_EXPECT_EQ(current_test, ret, (rand1 / div_factor)); in fp_exit_handler() 52 KUNIT_EXPECT_EQ(current_test, entry_val, (rand1 / div_factor)); in fp_exit_handler() 53 exit_val = entry_val + div_factor; in fp_exit_handler() 98 KUNIT_EXPECT_EQ(test, entry_val + div_factor, exit_val); in test_fprobe() 104 KUNIT_EXPECT_EQ(test, entry_val + div_factor, exit_val); in test_fprobe() [all …]
|
D | test_kprobes.c | 13 #define div_factor 3 macro 27 return (value / div_factor); in kprobe_target() 33 preh_val = (rand1 / div_factor); in kp_pre_handler() 41 KUNIT_EXPECT_EQ(current_test, preh_val, (rand1 / div_factor)); in kp_post_handler() 42 posth_val = preh_val + div_factor; in kp_post_handler() 63 return (value / div_factor) + 1; in kprobe_target2() 95 preh_val = (rand1 / div_factor) + 1; in kp_pre_handler2() 102 KUNIT_EXPECT_EQ(current_test, preh_val, (rand1 / div_factor) + 1); in kp_post_handler2() 103 posth_val = preh_val + div_factor; in kp_post_handler2() 145 krph_val = (rand1 / div_factor); in entry_handler() [all …]
|
/linux-6.1.9/drivers/media/dvb-frontends/ |
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-6.1.9/fs/btrfs/ |
D | misc.h | 35 static inline u64 div_factor(u64 num, int factor) in div_factor() function
|
D | block-rsv.c | 237 num_bytes = div_factor(block_rsv->size, min_factor); in btrfs_block_rsv_check() 337 min_bytes = div_factor(global_rsv->size, min_factor); in btrfs_cond_migrate_bytes()
|
D | space-info.c | 978 min_bytes = div_factor(global_rsv->size, 1); in steal_from_global_rsv()
|
D | sysfs.c | 765 val = min(div_factor(fs_info->fs_devices->total_rw_bytes, 1), val); in btrfs_chunk_size_store()
|
D | block-group.c | 3458 if (bytes_used + SZ_2M < div_factor(sinfo->total_bytes, 8)) in should_alloc_chunk()
|
D | volumes.c | 5113 ctl->max_chunk_size = min(div_factor(fs_devices->total_rw_bytes, 1), in init_alloc_chunk_ctl_policy_regular() 5144 limit = max(round_down(div_factor(fs_devices->total_rw_bytes, 1), in init_alloc_chunk_ctl_policy_zoned()
|
/linux-6.1.9/drivers/media/platform/qcom/venus/ |
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-6.1.9/sound/soc/codecs/ |
D | lpass-va-macro.c | 1409 u32 div_factor; in va_macro_validate_dmic_sample_rate() local 1415 div_factor = mclk_rate / dmic_sample_rate; in va_macro_validate_dmic_sample_rate() 1417 switch (div_factor) { in va_macro_validate_dmic_sample_rate()
|
D | wcd9335.c | 2850 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()
|
D | wcd934x.c | 4758 u32 div_factor; in wcd934x_get_dmic_clk_val() local 4774 div_factor = mclk_rate / dmic_clk_rate; in wcd934x_get_dmic_clk_val() 4775 switch (div_factor) { in wcd934x_get_dmic_clk_val() 4797 __func__, div_factor, mclk_rate, dmic_clk_rate); in wcd934x_get_dmic_clk_val()
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/dce/ |
D | dce_clock_source.h | 322 unsigned short div_factor; member
|
D | dce_clock_source.c | 992 REG_WRITE(MODULO[inst], dp_dto_ref_khz * e->div_factor); in dcn31_program_pix_clk() 1271 REG_WRITE(MODULO[inst], dp_dto_ref_khz * e->div_factor); in dcn3_program_pix_clk()
|