Home
last modified time | relevance | path

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

12345678910>>...13

/linux/drivers/clk/mmp/
A Dclk-frac.c38 do_div(rate, factor->ftbl[i].num * factor->masks->factor); in clk_factor_round_rate()
74 do_div(rate, num * factor->masks->factor); in clk_factor_recalc_rate()
93 do_div(rate, factor->ftbl[i].num * factor->masks->factor); in clk_factor_set_rate()
101 if (factor->lock) in clk_factor_set_rate()
114 if (factor->lock) in clk_factor_set_rate()
128 if (factor->lock) in clk_factor_init()
140 if (den == factor->ftbl[i].den && num == factor->ftbl[i].num) in clk_factor_init()
158 if (factor->lock) in clk_factor_init()
186 factor = kzalloc(sizeof(*factor), GFP_KERNEL); in mmp_clk_register_factor()
187 if (!factor) in mmp_clk_register_factor()
[all …]
/linux/drivers/iio/afe/
A Diio-rescale.c183 u32 factor; in rescale_current_sense_amplifier_props() local
201 factor = gcd(sense, 1000000); in rescale_current_sense_amplifier_props()
202 rescale->numerator = 1000000 / factor; in rescale_current_sense_amplifier_props()
203 rescale->denominator = sense / factor; in rescale_current_sense_amplifier_props()
206 rescale->numerator /= factor; in rescale_current_sense_amplifier_props()
211 rescale->denominator /= factor; in rescale_current_sense_amplifier_props()
220 u32 factor; in rescale_current_sense_shunt_props() local
230 factor = gcd(shunt, 1000000); in rescale_current_sense_shunt_props()
241 u32 factor; in rescale_voltage_divider_props() local
258 rescale->numerator /= factor; in rescale_voltage_divider_props()
[all …]
/linux/drivers/media/platform/allegro-dvt/
A Dnal-hevc.h387 return factor * 10; in nal_hevc_level()
389 return factor * 20; in nal_hevc_level()
391 return factor * 21; in nal_hevc_level()
393 return factor * 30; in nal_hevc_level()
395 return factor * 31; in nal_hevc_level()
397 return factor * 40; in nal_hevc_level()
399 return factor * 41; in nal_hevc_level()
401 return factor * 50; in nal_hevc_level()
403 return factor * 51; in nal_hevc_level()
405 return factor * 52; in nal_hevc_level()
[all …]
/linux/drivers/s390/block/
A Ddasd_proc.c189 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()
239 dasd_statistics_array(m, prof->dasd_io_time2, factor); in dasd_stats_proc_show()
[all …]
/linux/arch/arm/boot/dts/
A 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 …]
A 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 …]
A 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 …]
A 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 …]
A 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 …]
A 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";
A Ddra7xx-clocks.dtsi106 compatible = "fixed-factor-clock";
285 compatible = "fixed-factor-clock";
311 compatible = "fixed-factor-clock";
319 compatible = "fixed-factor-clock";
357 compatible = "fixed-factor-clock";
395 compatible = "fixed-factor-clock";
444 compatible = "fixed-factor-clock";
504 compatible = "fixed-factor-clock";
512 compatible = "fixed-factor-clock";
520 compatible = "fixed-factor-clock";
[all …]
/linux/drivers/clk/actions/
A Dowl-factor.c136 struct owl_factor *factor = hw_to_owl_factor(hw); in owl_factor_round_rate() local
137 struct owl_factor_hw *factor_hw = &factor->factor_hw; in owl_factor_round_rate()
139 return owl_factor_helper_round_rate(&factor->common, factor_hw, in owl_factor_round_rate()
176 struct owl_factor *factor = hw_to_owl_factor(hw); in owl_factor_recalc_rate() local
177 struct owl_factor_hw *factor_hw = &factor->factor_hw; in owl_factor_recalc_rate()
178 struct owl_clk_common *common = &factor->common; in owl_factor_recalc_rate()
208 struct owl_factor *factor = hw_to_owl_factor(hw); in owl_factor_set_rate() local
209 struct owl_factor_hw *factor_hw = &factor->factor_hw; in owl_factor_set_rate()
210 struct owl_clk_common *common = &factor->common; in owl_factor_set_rate()
/linux/fs/btrfs/
A 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()
/linux/drivers/net/wireless/ath/
A Ddfs_pri_detector.c47 u32 factor; in pde_get_multiple() local
59 factor = val / fraction; in pde_get_multiple()
65 factor++; in pde_get_multiple()
67 factor = 0; in pde_get_multiple()
69 return factor; in pde_get_multiple()
258 u32 factor; in pseq_handler_create_sequences() local
263 factor = pde_get_multiple(ps.last_ts - p2->ts, ps.pri, in pseq_handler_create_sequences()
265 if (factor > 0) { in pseq_handler_create_sequences()
310 u32 factor; in pseq_handler_add_to_existing_seqs() local
320 factor = pde_get_multiple(delta_ts, ps->pri, in pseq_handler_add_to_existing_seqs()
[all …]
/linux/drivers/media/test-drivers/vivid/
A Dvivid-vid-out.c358 unsigned factor = 1; in vivid_try_fmt_vid_out() local
379 factor = 2; 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()
525 r.height *= factor; in vivid_s_fmt_vid_out()
530 r.height /= factor; in vivid_s_fmt_vid_out()
533 r.height *= factor; in vivid_s_fmt_vid_out()
547 r.height /= factor; in vivid_s_fmt_vid_out()
726 s->r.top *= factor; in vivid_vid_out_s_selection()
749 s->r.top /= factor; in vivid_vid_out_s_selection()
[all …]
A Dvivid-vid-cap.c560 unsigned factor = 1; in vivid_try_fmt_vid_cap() local
590 factor = 2; in vivid_try_fmt_vid_cap()
674 unsigned factor = 1; in vivid_s_fmt_vid_cap() local
693 factor = 2; in vivid_s_fmt_vid_cap()
738 r.height *= factor; in vivid_s_fmt_vid_cap()
742 r.height /= factor; in vivid_s_fmt_vid_cap()
747 r.height *= factor; in vivid_s_fmt_vid_cap()
771 r.height *= factor; in vivid_s_fmt_vid_cap()
932 s->r.top /= factor; in vivid_vid_cap_s_selection()
979 s->r.top *= factor; in vivid_vid_cap_s_selection()
[all …]
/linux/tools/testing/selftests/syscall_user_dispatch/
A Dsud_benchmark.c65 int factor; variable
88 factor += CALIBRATE_TO_SECS; in calibrate_set()
91 printf("test iterations = %d\n", CALIBRATION_STEP * factor); in calibrate_set()
99 for (i = 0; i < factor; ++i) in perf_syscall()
100 partial += one_sysinfo_step()/(CALIBRATION_STEP*factor); in perf_syscall()
/linux/arch/arm64/boot/dts/broadcom/stingray/
A 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";
/linux/Documentation/devicetree/bindings/clock/
A Dfixed-factor-clock.yaml4 $id: http://devicetree.org/schemas/clock/fixed-factor-clock.yaml#
7 title: Binding for simple fixed factor rate clock sources
17 - fixed-factor-clock
49 compatible = "fixed-factor-clock";
/linux/drivers/clk/qcom/
A Dcommon.c135 struct clk_fixed_factor *factor; in _qcom_cc_register_board_clk() local
164 factor = devm_kzalloc(dev, sizeof(*factor), GFP_KERNEL); in _qcom_cc_register_board_clk()
165 if (!factor) in _qcom_cc_register_board_clk()
168 factor->mult = factor->div = 1; in _qcom_cc_register_board_clk()
169 factor->hw.init = &init_data; in _qcom_cc_register_board_clk()
177 ret = devm_clk_hw_register(dev, &factor->hw); in _qcom_cc_register_board_clk()
/linux/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
A 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()
/linux/drivers/clocksource/
A 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()
/linux/net/ipv4/
A 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()
/linux/Documentation/devicetree/bindings/clock/ti/
A 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";
/linux/drivers/media/platform/ti-vpe/
A 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()

Completed in 55 milliseconds

12345678910>>...13