Searched refs:div_factor (Results 1 – 15 of 15) sorted by relevance
/linux/drivers/clk/qcom/ |
A D | clk-spmi-pmic-div.c | 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 83 unsigned int div_factor; in spmi_pmic_clkdiv_set_enable_state() local 86 div_factor &= DIV_CTL1_DIV_FACTOR_MASK; in spmi_pmic_clkdiv_set_enable_state() 117 unsigned int div, div_factor; in clk_spmi_pmic_div_round_rate() local 120 div_factor = div_to_div_factor(div); in clk_spmi_pmic_div_round_rate() 121 div = div_factor_to_div(div_factor); in clk_spmi_pmic_div_round_rate() 130 unsigned int div_factor; in clk_spmi_pmic_div_recalc_rate() local [all …]
|
/linux/lib/ |
A 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() 103 posth_val = preh_val + div_factor; in kp_post_handler2() 145 krph_val = (rand1 / div_factor); in entry_handler() 154 KUNIT_EXPECT_EQ(current_test, ret, rand1 / div_factor); in return_handler() [all …]
|
/linux/drivers/i2c/busses/ |
A D | i2c-meson.c | 66 unsigned char div_factor; member 144 div = DIV_ROUND_UP(div, i2c->data->div_factor); in meson_i2c_set_clk_div() 494 .div_factor = 4, 498 .div_factor = 4, 502 .div_factor = 3,
|
/linux/drivers/media/dvb-frontends/ |
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/fs/btrfs/ |
A D | misc.h | 35 static inline u64 div_factor(u64 num, int factor) in div_factor() function
|
A D | block-rsv.c | 236 num_bytes = div_factor(block_rsv->size, min_factor); in btrfs_block_rsv_check() 336 min_bytes = div_factor(global_rsv->size, min_factor); in btrfs_cond_migrate_bytes()
|
A D | space-info.c | 851 min_bytes = div_factor(global_rsv->size, 1); in steal_from_global_rsv()
|
A D | block-group.c | 3397 if (bytes_used + SZ_2M < div_factor(sinfo->total_bytes, 8)) in should_alloc_chunk()
|
A D | volumes.c | 5090 ctl->max_chunk_size = min(div_factor(fs_devices->total_rw_bytes, 1), in init_alloc_chunk_ctl_policy_regular() 5121 limit = max(round_down(div_factor(fs_devices->total_rw_bytes, 1), in init_alloc_chunk_ctl_policy_zoned()
|
/linux/drivers/media/platform/qcom/venus/ |
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/sound/soc/codecs/ |
A D | lpass-va-macro.c | 1352 u32 div_factor; in va_macro_validate_dmic_sample_rate() local 1358 div_factor = mclk_rate / dmic_sample_rate; in va_macro_validate_dmic_sample_rate() 1360 switch (div_factor) { in va_macro_validate_dmic_sample_rate()
|
A D | wcd9335.c | 2858 u32 div_factor; in wcd9335_get_dmic_clk_val() local 2878 div_factor = mclk_rate / dmic_clk_rate; in wcd9335_get_dmic_clk_val() 2879 switch (div_factor) { in wcd9335_get_dmic_clk_val() 2901 __func__, div_factor, mclk_rate, dmic_clk_rate); in wcd9335_get_dmic_clk_val()
|
A D | wcd934x.c | 4781 u32 div_factor; in wcd934x_get_dmic_clk_val() local 4797 div_factor = mclk_rate / dmic_clk_rate; in wcd934x_get_dmic_clk_val() 4798 switch (div_factor) { in wcd934x_get_dmic_clk_val() 4820 __func__, div_factor, mclk_rate, dmic_clk_rate); in wcd934x_get_dmic_clk_val()
|
/linux/drivers/gpu/drm/amd/display/dc/dce/ |
A D | dce_clock_source.h | 303 unsigned short div_factor; member
|
A D | dce_clock_source.c | 1146 REG_WRITE(MODULO[inst], dp_dto_ref_khz * e->div_factor); in dcn3_program_pix_clk()
|
Completed in 65 milliseconds