/linux-6.6.21/drivers/clk/mmp/ |
D | clk-frac.c | 27 struct mmp_clk_factor *factor = to_clk_factor(hw); in clk_factor_round_rate() local 31 for (i = 0; i < factor->ftbl_cnt; i++) { in clk_factor_round_rate() 34 rate *= factor->ftbl[i].den; in clk_factor_round_rate() 35 do_div(rate, factor->ftbl[i].num * factor->masks->factor); in clk_factor_round_rate() 40 if ((i == 0) || (i == factor->ftbl_cnt)) { in clk_factor_round_rate() 53 struct mmp_clk_factor *factor = to_clk_factor(hw); in clk_factor_recalc_rate() local 54 struct mmp_clk_factor_masks *masks = factor->masks; in clk_factor_recalc_rate() 58 val = readl_relaxed(factor->base); in clk_factor_recalc_rate() 71 do_div(rate, num * factor->masks->factor); in clk_factor_recalc_rate() 80 struct mmp_clk_factor *factor = to_clk_factor(hw); in clk_factor_set_rate() local [all …]
|
/linux-6.6.21/drivers/media/platform/allegro-dvt/ |
D | nal-hevc.h | 383 int factor = 30 / 10; in nal_hevc_level() local 387 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() [all …]
|
/linux-6.6.21/drivers/s390/block/ |
D | dasd_proc.c | 184 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 …]
|
/linux-6.6.21/drivers/iio/afe/ |
D | iio-rescale.c | 328 u32 factor; in rescale_current_sense_amplifier_props() local 346 factor = gcd(sense, 1000000); in rescale_current_sense_amplifier_props() 347 rescale->numerator = 1000000 / factor; in rescale_current_sense_amplifier_props() 348 rescale->denominator = sense / factor; in rescale_current_sense_amplifier_props() 350 factor = gcd(rescale->numerator, gain_mult); in rescale_current_sense_amplifier_props() 351 rescale->numerator /= factor; in rescale_current_sense_amplifier_props() 352 rescale->denominator *= gain_mult / factor; in rescale_current_sense_amplifier_props() 354 factor = gcd(rescale->denominator, gain_div); in rescale_current_sense_amplifier_props() 355 rescale->numerator *= gain_div / factor; in rescale_current_sense_amplifier_props() 356 rescale->denominator /= factor; in rescale_current_sense_amplifier_props() [all …]
|
/linux-6.6.21/drivers/gpu/drm/ci/xfails/ |
D | virtio_gpu-none-fails.txt | 14 kms_plane_scaling@downscale-with-modifier-factor-0-25,Fail 15 kms_plane_scaling@downscale-with-rotation-factor-0-25,Fail 17 kms_plane_scaling@planes-upscale-20x20-downscale-factor-0-25,Fail 18 kms_plane_scaling@planes-upscale-20x20-downscale-factor-0-5,Fail 19 kms_plane_scaling@planes-upscale-20x20-downscale-factor-0-75,Fail 21 kms_plane_scaling@upscale-with-modifier-factor-0-25,Fail 23 kms_plane_scaling@upscale-with-pixel-format-factor-0-25,Fail
|
D | msm-sdm845-fails.txt | 57 kms_plane_scaling@downscale-with-pixel-format-factor-0-25,Timeout 58 kms_plane_scaling@downscale-with-pixel-format-factor-0-5,Timeout 59 kms_plane_scaling@downscale-with-pixel-format-factor-0-75,Timeout 60 kms_plane_scaling@plane-downscale-with-pixel-format-factor-0-25,Timeout 61 kms_plane_scaling@plane-downscale-with-pixel-format-factor-0-5,Timeout 62 kms_plane_scaling@plane-downscale-with-pixel-format-factor-0-75,Timeout 65 kms_plane_scaling@planes-downscale-factor-0-25,Fail
|
/linux-6.6.21/drivers/clk/actions/ |
D | owl-factor.c | 136 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-6.6.21/arch/arm/boot/dts/ti/omap/ |
D | omap36xx-omap3430es2plus-clocks.dtsi | 47 compatible = "fixed-factor-clock"; 78 compatible = "fixed-factor-clock"; 101 compatible = "fixed-factor-clock"; 109 compatible = "fixed-factor-clock"; 117 compatible = "fixed-factor-clock"; 125 compatible = "fixed-factor-clock"; 133 compatible = "fixed-factor-clock"; 141 compatible = "fixed-factor-clock"; 149 compatible = "fixed-factor-clock"; 157 compatible = "fixed-factor-clock"; [all …]
|
D | am33xx-clocks.dtsi | 19 compatible = "fixed-factor-clock"; 28 compatible = "fixed-factor-clock"; 37 compatible = "fixed-factor-clock"; 46 compatible = "fixed-factor-clock"; 55 compatible = "fixed-factor-clock"; 64 compatible = "fixed-factor-clock"; 73 compatible = "fixed-factor-clock"; 82 compatible = "fixed-factor-clock"; 91 compatible = "fixed-factor-clock"; 100 compatible = "fixed-factor-clock"; [all …]
|
D | am43xx-clocks.dtsi | 37 compatible = "fixed-factor-clock"; 46 compatible = "fixed-factor-clock"; 55 compatible = "fixed-factor-clock"; 64 compatible = "fixed-factor-clock"; 73 compatible = "fixed-factor-clock"; 82 compatible = "fixed-factor-clock"; 91 compatible = "fixed-factor-clock"; 100 compatible = "fixed-factor-clock"; 109 compatible = "fixed-factor-clock"; 118 compatible = "fixed-factor-clock"; [all …]
|
D | omap36xx-am35xx-omap3430es2plus-clocks.dtsi | 10 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";
|
/linux-6.6.21/drivers/media/test-drivers/vivid/ |
D | vivid-vid-out.c | 358 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 …]
|
/linux-6.6.21/drivers/net/wireless/ath/ |
D | dfs_pri_detector.c | 47 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-6.6.21/tools/testing/selftests/syscall_user_dispatch/ |
D | sud_benchmark.c | 65 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-6.6.21/Documentation/devicetree/bindings/clock/ |
D | fixed-factor-clock.yaml | 4 $id: http://devicetree.org/schemas/clock/fixed-factor-clock.yaml# 7 title: Simple fixed factor rate clock sources 16 - fixed-factor-clock 48 compatible = "fixed-factor-clock";
|
/linux-6.6.21/drivers/gpu/drm/sprd/ |
D | megacores_pll.c | 34 const unsigned long long factor = 100; in dphy_calc_pll_param() local 66 tmp = pll->fvco * factor * mhz; in dphy_calc_pll_param() 68 tmp = tmp - pll->nint * factor * mhz; in dphy_calc_pll_param() 218 const u32 factor = 2; in dphy_timing_config() local 238 val[CLK] = DIV_ROUND_UP(range[L] * (factor << 1), t_byteck) - 2; in dphy_timing_config() 256 val[CLK] = DIV_ROUND_UP(range[L] * factor + (tmp & 0xffff) in dphy_timing_config() 259 val[DATA] = DIV_ROUND_UP(range[L] * factor in dphy_timing_config() 267 val[CLK] = DIV_ROUND_UP(range[L] * factor - constant, t_half_byteck); in dphy_timing_config() 275 val[CLK] = DIV_ROUND_UP(range[L] * factor, t_byteck) - 2; in dphy_timing_config() 282 val[CLK] = DIV_ROUND_UP(range[L] * factor, t_byteck) - 2; in dphy_timing_config()
|
/linux-6.6.21/arch/arm64/boot/dts/broadcom/stingray/ |
D | stingray-clock.dtsi | 43 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-6.6.21/drivers/clk/qcom/ |
D | common.c | 135 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-6.6.21/arch/arm/boot/dts/ti/keystone/ |
D | keystone-clocks.dtsi | 25 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 …]
|
/linux-6.6.21/Documentation/devicetree/bindings/clock/ti/ |
D | fixed-factor-clock.txt | 1 Binding for TI fixed factor rate clock sources. 12 - compatible : shall be "ti,fixed-factor-clock". 28 compatible = "ti,fixed-factor-clock"; 37 compatible = "ti,fixed-factor-clock";
|
/linux-6.6.21/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
D | ppevvmath.h | 248 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-6.6.21/Documentation/devicetree/bindings/mfd/ |
D | allwinner,sun8i-a23-prcm.yaml | 30 - fixed-factor-clock 44 const: fixed-factor-clock 47 $ref: /schemas/clock/fixed-factor-clock.yaml# 125 compatible = "fixed-factor-clock"; 134 compatible = "fixed-factor-clock";
|
/linux-6.6.21/net/ipv4/ |
D | tcp_htcp.c | 176 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-6.6.21/drivers/media/platform/ti/vpe/ |
D | sc.c | 158 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()
|
/linux-6.6.21/drivers/clocksource/ |
D | timer-cadence-ttc.c | 239 unsigned long factor, rate_low, rate_high; in ttc_rate_change_clocksource_cb() local 242 factor = DIV_ROUND_CLOSEST(ndata->new_rate, in ttc_rate_change_clocksource_cb() 247 factor = DIV_ROUND_CLOSEST(ndata->old_rate, in ttc_rate_change_clocksource_cb() 253 if (!is_power_of_2(factor)) in ttc_rate_change_clocksource_cb() 256 if (abs(rate_high - (factor * rate_low)) > MAX_F_ERR) in ttc_rate_change_clocksource_cb() 259 factor = __ilog2_u32(factor); in ttc_rate_change_clocksource_cb() 273 psv -= factor; in ttc_rate_change_clocksource_cb() 275 psv += factor; in ttc_rate_change_clocksource_cb()
|