Home
last modified time | relevance | path

Searched refs:factor (Results 1 – 25 of 273) sorted by relevance

1234567891011

/kernel/linux/linux-5.10/drivers/clk/mmp/
Dclk-frac.c30 struct mmp_clk_factor *factor = to_clk_factor(hw); in clk_factor_round_rate() local
34 for (i = 0; i < factor->ftbl_cnt; i++) { in clk_factor_round_rate()
37 rate *= factor->ftbl[i].den; in clk_factor_round_rate()
38 do_div(rate, factor->ftbl[i].num * factor->masks->factor); in clk_factor_round_rate()
43 if ((i == 0) || (i == factor->ftbl_cnt)) { in clk_factor_round_rate()
56 struct mmp_clk_factor *factor = to_clk_factor(hw); in clk_factor_recalc_rate() local
57 struct mmp_clk_factor_masks *masks = factor->masks; in clk_factor_recalc_rate()
61 val = readl_relaxed(factor->base); in clk_factor_recalc_rate()
74 do_div(rate, num * factor->masks->factor); in clk_factor_recalc_rate()
83 struct mmp_clk_factor *factor = to_clk_factor(hw); in clk_factor_set_rate() local
[all …]
/kernel/linux/linux-5.10/drivers/iio/afe/
Diio-rescale.c154 u32 factor; in rescale_current_sense_amplifier_props() local
172 factor = gcd(sense, 1000000); in rescale_current_sense_amplifier_props()
173 rescale->numerator = 1000000 / factor; in rescale_current_sense_amplifier_props()
174 rescale->denominator = sense / factor; in rescale_current_sense_amplifier_props()
176 factor = gcd(rescale->numerator, gain_mult); in rescale_current_sense_amplifier_props()
177 rescale->numerator /= factor; in rescale_current_sense_amplifier_props()
178 rescale->denominator *= gain_mult / factor; in rescale_current_sense_amplifier_props()
180 factor = gcd(rescale->denominator, gain_div); in rescale_current_sense_amplifier_props()
181 rescale->numerator *= gain_div / factor; in rescale_current_sense_amplifier_props()
182 rescale->denominator /= factor; in rescale_current_sense_amplifier_props()
[all …]
/kernel/linux/linux-5.10/drivers/s390/block/
Ddasd_proc.c184 static void dasd_statistics_array(struct seq_file *m, unsigned int *array, int factor) in dasd_statistics_array() argument
189 seq_printf(m, "%7d ", array[i] / factor); in dasd_statistics_array()
201 int factor; in dasd_stats_proc_show() local
214 for (factor = 1; (prof->dasd_io_reqs / factor) > 9999999; in dasd_stats_proc_show()
215 factor *= 10); in dasd_stats_proc_show()
220 seq_printf(m, "Scale Factor is %d\n", factor); in dasd_stats_proc_show()
231 dasd_statistics_array(m, prof->dasd_io_secs, factor); in dasd_stats_proc_show()
233 dasd_statistics_array(m, prof->dasd_io_times, factor); in dasd_stats_proc_show()
235 dasd_statistics_array(m, prof->dasd_io_timps, factor); in dasd_stats_proc_show()
237 dasd_statistics_array(m, prof->dasd_io_time1, factor); in dasd_stats_proc_show()
[all …]
/kernel/linux/linux-5.10/arch/arm/boot/dts/
Domap36xx-omap3430es2plus-clocks.dtsi33 compatible = "fixed-factor-clock";
49 compatible = "fixed-factor-clock";
73 compatible = "fixed-factor-clock";
81 compatible = "fixed-factor-clock";
89 compatible = "fixed-factor-clock";
97 compatible = "fixed-factor-clock";
105 compatible = "fixed-factor-clock";
113 compatible = "fixed-factor-clock";
121 compatible = "fixed-factor-clock";
129 compatible = "fixed-factor-clock";
[all …]
Dam33xx-clocks.dtsi18 compatible = "fixed-factor-clock";
26 compatible = "fixed-factor-clock";
34 compatible = "fixed-factor-clock";
42 compatible = "fixed-factor-clock";
50 compatible = "fixed-factor-clock";
58 compatible = "fixed-factor-clock";
66 compatible = "fixed-factor-clock";
74 compatible = "fixed-factor-clock";
82 compatible = "fixed-factor-clock";
90 compatible = "fixed-factor-clock";
[all …]
Dam43xx-clocks.dtsi34 compatible = "fixed-factor-clock";
42 compatible = "fixed-factor-clock";
50 compatible = "fixed-factor-clock";
58 compatible = "fixed-factor-clock";
66 compatible = "fixed-factor-clock";
74 compatible = "fixed-factor-clock";
82 compatible = "fixed-factor-clock";
90 compatible = "fixed-factor-clock";
98 compatible = "fixed-factor-clock";
106 compatible = "fixed-factor-clock";
[all …]
Dkeystone-clocks.dtsi25 compatible = "fixed-factor-clock";
34 compatible = "fixed-factor-clock";
63 compatible = "fixed-factor-clock";
72 compatible = "fixed-factor-clock";
81 compatible = "fixed-factor-clock";
90 compatible = "fixed-factor-clock";
99 compatible = "fixed-factor-clock";
108 compatible = "fixed-factor-clock";
117 compatible = "fixed-factor-clock";
126 compatible = "fixed-factor-clock";
[all …]
Domap36xx-am35xx-omap3430es2plus-clocks.dtsi10 compatible = "fixed-factor-clock";
18 compatible = "fixed-factor-clock";
53 compatible = "fixed-factor-clock";
61 compatible = "fixed-factor-clock";
69 compatible = "fixed-factor-clock";
77 compatible = "fixed-factor-clock";
85 compatible = "fixed-factor-clock";
Domap3xxx-clocks.dtsi41 compatible = "fixed-factor-clock";
49 compatible = "fixed-factor-clock";
57 compatible = "fixed-factor-clock";
65 compatible = "fixed-factor-clock";
73 compatible = "fixed-factor-clock";
211 compatible = "fixed-factor-clock";
228 compatible = "fixed-factor-clock";
253 compatible = "fixed-factor-clock";
270 compatible = "fixed-factor-clock";
300 compatible = "fixed-factor-clock";
[all …]
Dmps2.dtsi82 compatible = "fixed-factor-clock";
90 compatible = "fixed-factor-clock";
98 compatible = "fixed-factor-clock";
106 compatible = "fixed-factor-clock";
114 compatible = "fixed-factor-clock";
122 compatible = "fixed-factor-clock";
130 compatible = "fixed-factor-clock";
/kernel/linux/linux-5.10/fs/btrfs/
Dmisc.h35 static inline u64 div_factor(u64 num, int factor) in div_factor() argument
37 if (factor == 10) in div_factor()
39 num *= factor; in div_factor()
43 static inline u64 div_factor_fine(u64 num, int factor) in div_factor_fine() argument
45 if (factor == 100) in div_factor_fine()
47 num *= factor; in div_factor_fine()
/kernel/linux/linux-5.10/drivers/clk/actions/
Dowl-factor.c137 struct owl_factor *factor = hw_to_owl_factor(hw); in owl_factor_round_rate() local
138 struct owl_factor_hw *factor_hw = &factor->factor_hw; in owl_factor_round_rate()
140 return owl_factor_helper_round_rate(&factor->common, factor_hw, in owl_factor_round_rate()
177 struct owl_factor *factor = hw_to_owl_factor(hw); in owl_factor_recalc_rate() local
178 struct owl_factor_hw *factor_hw = &factor->factor_hw; in owl_factor_recalc_rate()
179 struct owl_clk_common *common = &factor->common; in owl_factor_recalc_rate()
209 struct owl_factor *factor = hw_to_owl_factor(hw); in owl_factor_set_rate() local
210 struct owl_factor_hw *factor_hw = &factor->factor_hw; in owl_factor_set_rate()
211 struct owl_clk_common *common = &factor->common; in owl_factor_set_rate()
/kernel/linux/linux-5.10/drivers/net/wireless/ath/
Ddfs_pri_detector.c48 u32 factor; in pde_get_multiple() local
60 factor = val / fraction; in pde_get_multiple()
66 factor++; in pde_get_multiple()
68 factor = 0; in pde_get_multiple()
70 return factor; in pde_get_multiple()
259 u32 factor; in pseq_handler_create_sequences() local
264 factor = pde_get_multiple(ps.last_ts - p2->ts, ps.pri, in pseq_handler_create_sequences()
266 if (factor > 0) { in pseq_handler_create_sequences()
311 u32 factor; in pseq_handler_add_to_existing_seqs() local
321 factor = pde_get_multiple(delta_ts, ps->pri, in pseq_handler_add_to_existing_seqs()
[all …]
/kernel/linux/linux-5.10/drivers/media/test-drivers/vivid/
Dvivid-vid-out.c358 unsigned factor = 1; in vivid_try_fmt_vid_out() local
379 factor = 2; in vivid_try_fmt_vid_out()
382 mp->height = h / factor; in vivid_try_fmt_vid_out()
384 struct v4l2_rect r = { 0, 0, mp->width, mp->height * factor }; in vivid_try_fmt_vid_out()
398 mp->height = r.height / factor; in vivid_try_fmt_vid_out()
456 unsigned factor = 1; in vivid_s_fmt_vid_out() local
482 factor = 2; in vivid_s_fmt_vid_out()
496 factor * r.height / MAX_ZOOM in vivid_s_fmt_vid_out()
501 factor * r.height * MAX_ZOOM in vivid_s_fmt_vid_out()
511 factor * crop->height / MAX_ZOOM in vivid_s_fmt_vid_out()
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/iio/light/
Dus5182d.txt8 - upisemi,glass-coef: glass attenuation factor - compensation factor of
14 - upisemi,upper-dark-gain: 8-bit dark gain compensation factor(4 int and 4
17 - upisemi,lower-dark-gain: 8-bit dark gain compensation factor(4 int and 4
34 (0 * dark-gain), and a 1.35 compensation factor when ALS < thresh.
/kernel/linux/linux-5.10/arch/arm64/boot/dts/broadcom/stingray/
Dstingray-clock.dtsi43 compatible = "fixed-factor-clock";
129 compatible = "fixed-factor-clock";
137 compatible = "fixed-factor-clock";
146 compatible = "fixed-factor-clock";
154 compatible = "fixed-factor-clock";
162 compatible = "fixed-factor-clock";
170 compatible = "fixed-factor-clock";
178 compatible = "fixed-factor-clock";
/kernel/linux/linux-5.10/drivers/clk/qcom/
Dcommon.c137 struct clk_fixed_factor *factor; in _qcom_cc_register_board_clk() local
166 factor = devm_kzalloc(dev, sizeof(*factor), GFP_KERNEL); in _qcom_cc_register_board_clk()
167 if (!factor) in _qcom_cc_register_board_clk()
170 factor->mult = factor->div = 1; in _qcom_cc_register_board_clk()
171 factor->hw.init = &init_data; in _qcom_cc_register_board_clk()
179 ret = devm_clk_hw_register(dev, &factor->hw); in _qcom_cc_register_board_clk()
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/clock/ti/
Dfixed-factor-clock.txt1 Binding for TI fixed factor rate clock sources.
12 - compatible : shall be "ti,fixed-factor-clock".
27 compatible = "ti,fixed-factor-clock";
36 compatible = "ti,fixed-factor-clock";
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
Dppevvmath.h248 static fInt GetScaledFraction(int X, int factor) in GetScaledFraction() argument
263 if (factor < 0) { in GetScaledFraction()
264 factor = -1*factor; in GetScaledFraction()
268 if ((X > MAX) || factor > MAX) { in GetScaledFraction()
269 if ((X/factor) <= MAX) { in GetScaledFraction()
275 while (factor > MAX) { in GetScaledFraction()
276 factor = factor >> 1; in GetScaledFraction()
285 if (factor == 1) in GetScaledFraction()
288 fValue = fDivide(ConvertToFraction(X * uPow(-1, bNEGATED)), ConvertToFraction(factor)); in GetScaledFraction()
/kernel/linux/linux-5.10/net/ipv4/
Dtcp_htcp.c176 u32 factor = 1; in htcp_alpha_update() local
181 factor = 1 + (10 * diff + ((diff / 2) * (diff / 2) / HZ)) / HZ; in htcp_alpha_update()
189 factor = (factor << 3) / scale; in htcp_alpha_update()
190 if (!factor) in htcp_alpha_update()
191 factor = 1; in htcp_alpha_update()
194 ca->alpha = 2 * factor * ((1 << 7) - ca->beta); in htcp_alpha_update()
/kernel/linux/linux-5.10/drivers/media/platform/ti-vpe/
Dsc.c158 u16 factor = 0; in sc_config_scaler() local
222 factor = (u16) ((dst_h << 10) / src_h); in sc_config_scaler()
224 row_acc_init_rav = factor + ((1 + factor) >> 1); in sc_config_scaler()
238 src_h, dst_h, factor, row_acc_init_rav, in sc_config_scaler()
269 *sc_reg13 = factor; in sc_config_scaler()
/kernel/linux/linux-5.10/drivers/clocksource/
Dtimer-cadence-ttc.c238 unsigned long factor, rate_low, rate_high; in ttc_rate_change_clocksource_cb() local
241 factor = DIV_ROUND_CLOSEST(ndata->new_rate, in ttc_rate_change_clocksource_cb()
246 factor = DIV_ROUND_CLOSEST(ndata->old_rate, in ttc_rate_change_clocksource_cb()
252 if (!is_power_of_2(factor)) in ttc_rate_change_clocksource_cb()
255 if (abs(rate_high - (factor * rate_low)) > MAX_F_ERR) in ttc_rate_change_clocksource_cb()
258 factor = __ilog2_u32(factor); in ttc_rate_change_clocksource_cb()
272 psv -= factor; in ttc_rate_change_clocksource_cb()
274 psv += factor; in ttc_rate_change_clocksource_cb()
/kernel/linux/linux-5.10/drivers/clk/
Dclk-multiplier.c119 unsigned long factor = __bestmult(hw, rate, parent_rate, in clk_multiplier_round_rate() local
122 return *parent_rate * factor; in clk_multiplier_round_rate()
129 unsigned long factor = __get_mult(mult, rate, parent_rate); in clk_multiplier_set_rate() local
140 val |= factor << mult->shift; in clk_multiplier_set_rate()
/kernel/linux/linux-5.10/tools/perf/arch/s390/util/
Dauxtrace.c51 unsigned int factor = 1; in cpumsf_recording_options() local
66 factor = (opts->user_freq + DEFAULT_FREQ in cpumsf_recording_options()
68 pages = DEFAULT_AUX_PAGES * factor; in cpumsf_recording_options()
/kernel/linux/linux-5.10/drivers/thermal/
Damlogic_thermal.c117 s64 factor, Uptat, uefuse; in amlogic_thermal_code_to_millicelsius() local
123 factor = param->n * temp_code; in amlogic_thermal_code_to_millicelsius()
124 factor = div_s64(factor, 100); in amlogic_thermal_code_to_millicelsius()
129 Uptat = div_s64(Uptat, BIT(16) + factor); in amlogic_thermal_code_to_millicelsius()

1234567891011