Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/kernel/
Dtest_kprobes.c14 #define div_factor 3 macro
23 return (value / div_factor); in kprobe_target()
32 preh_val = (rand1 / div_factor); in kp_pre_handler()
43 if (preh_val != (rand1 / div_factor)) { in kp_post_handler()
47 posth_val = preh_val + div_factor; in kp_post_handler()
84 return (value / div_factor) + 1; in kprobe_target2()
89 preh_val = (rand1 / div_factor) + 1; in kp_pre_handler2()
96 if (preh_val != (rand1 / div_factor) + 1) { in kp_post_handler2()
100 posth_val = preh_val + div_factor; in kp_post_handler2()
165 krph_val = (rand1 / div_factor); in entry_handler()
[all …]
/kernel/linux/linux-5.10/drivers/ide/
Dide-proc.c235 int rc, mul_factor, div_factor; in ide_settings_proc_show() local
256 div_factor = setting->divf ? setting->divf(drive) : 1; in ide_settings_proc_show()
260 seq_printf(m, "%-16d", rc * mul_factor / div_factor); in ide_settings_proc_show()
263 …%-16d%-16d", (setting->min * mul_factor + div_factor - 1) / div_factor, setting->max * mul_factor … in ide_settings_proc_show()
287 int for_real = 0, mul_factor, div_factor; in ide_settings_proc_write() local
370 div_factor = setting->divf ? setting->divf(drive) : 1; in ide_settings_proc_write()
371 ide_write_setting(drive, setting, val * div_factor / mul_factor); in ide_settings_proc_write()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/i2c/busses/
Di2c-meson.c66 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,
/kernel/linux/linux-5.10/fs/btrfs/
Dmisc.h35 static inline u64 div_factor(u64 num, int factor) in div_factor() function
Dblock-rsv.c236 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()
Dspace-info.c829 min_bytes = div_factor(global_rsv->size, 1); in steal_from_global_rsv()
Dblock-group.c3072 if (bytes_used + SZ_2M < div_factor(sinfo->total_bytes, 8)) in should_alloc_chunk()
Dvolumes.c4901 ctl->max_chunk_size = min(div_factor(fs_devices->total_rw_bytes, 1), in init_alloc_chunk_ctl_policy_regular()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dce/
Ddce_clock_source.h241 unsigned short div_factor; member
Ddce_clock_source.c1107 REG_WRITE(MODULO[inst], dp_dto_ref_khz * e->div_factor); in dcn3_program_pix_clk()
/kernel/linux/linux-5.10/sound/soc/codecs/
Dwcd9335.c2858 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()
Dwcd934x.c3989 u32 div_factor; in wcd934x_get_dmic_clk_val() local
4005 div_factor = mclk_rate / dmic_clk_rate; in wcd934x_get_dmic_clk_val()
4006 switch (div_factor) { in wcd934x_get_dmic_clk_val()
4028 __func__, div_factor, mclk_rate, dmic_clk_rate); in wcd934x_get_dmic_clk_val()