Home
last modified time | relevance | path

Searched refs:scale_factor (Results 1 – 15 of 15) sorted by relevance

/linux-6.12.1/drivers/gpu/drm/nouveau/nvkm/engine/gr/
Dgv100.c109 const u32 scale_factor = 512UL; /* Use fx23.9 */ in gv100_gr_scg_estimate_perf() local
114 u32 min_scg_gpc_pix_perf = scale_factor; /* Init perf as maximum */ in gv100_gr_scg_estimate_perf()
160 scg_gpc_pix_perf = scale_factor * num_tpc_gpc[gpc] / gr->tpc_nr[gpc]; in gv100_gr_scg_estimate_perf()
191 scg_world_perf = (scale_factor * scg_num_pes) / gr->ppc_total; in gv100_gr_scg_estimate_perf()
193 average_tpcs = scale_factor * average_tpcs / gr->gpc_nr; in gv100_gr_scg_estimate_perf()
195 diff = average_tpcs - scale_factor * num_tpc_gpc[gpc]; in gv100_gr_scg_estimate_perf()
206 tpc_balance = scale_factor - norm_tpc_deviation; in gv100_gr_scg_estimate_perf()
208 if ((tpc_balance > scale_factor) || in gv100_gr_scg_estimate_perf()
209 (scg_world_perf > scale_factor) || in gv100_gr_scg_estimate_perf()
210 (min_scg_gpc_pix_perf > scale_factor) || in gv100_gr_scg_estimate_perf()
[all …]
/linux-6.12.1/drivers/net/wireless/ath/ath9k/
Dar9003_paprd.c426 int max_index, scale_factor; in create_pa_curve() local
440 scale_factor = 5; in create_pa_curve()
471 accum_tx <<= scale_factor; in create_pa_curve()
472 accum_rx <<= scale_factor; in create_pa_curve()
475 scale_factor; in create_pa_curve()
479 scale_factor) + in create_pa_curve()
480 (1 << scale_factor) * i + 16; in create_pa_curve()
486 ((accum_ang * (1 << scale_factor)) + accum_cnt) / in create_pa_curve()
508 scale_factor = 8; in create_pa_curve()
515 (((Y[6] - Y[3]) * 1 << scale_factor) + in create_pa_curve()
[all …]
/linux-6.12.1/drivers/iio/accel/
Dadxl313_core.c102 .scale_factor = 28425072,
110 .scale_factor = 9576806,
118 .scale_factor = 478858719,
270 *val2 = data->chip_info->scale_factor; in adxl313_read_raw()
Dadxl372.c471 unsigned int reg_val, scale_factor; in adxl372_set_activity_time_ms() local
479 scale_factor = 3300; in adxl372_set_activity_time_ms()
481 scale_factor = 6600; in adxl372_set_activity_time_ms()
483 reg_val = DIV_ROUND_CLOSEST(act_time_ms * 1000, scale_factor); in adxl372_set_activity_time_ms()
501 unsigned int reg_val_h, reg_val_l, res, scale_factor; in adxl372_set_inactivity_time_ms() local
509 scale_factor = 13; in adxl372_set_inactivity_time_ms()
511 scale_factor = 26; in adxl372_set_inactivity_time_ms()
513 res = DIV_ROUND_CLOSEST(inact_time_ms, scale_factor); in adxl372_set_inactivity_time_ms()
Dadxl313.h73 int scale_factor; member
/linux-6.12.1/drivers/gpu/drm/xe/
Dxe_hwmon.c466 long *value, u32 scale_factor) in xe_hwmon_power_curr_crit_read() argument
478 scale_factor, POWER_SETUP_I1_SHIFT); in xe_hwmon_power_curr_crit_read()
485 long value, u32 scale_factor) in xe_hwmon_power_curr_crit_write() argument
492 uval = DIV_ROUND_CLOSEST_ULL(value << POWER_SETUP_I1_SHIFT, scale_factor); in xe_hwmon_power_curr_crit_write()
/linux-6.12.1/drivers/media/platform/samsung/s5p-jpeg/
Djpeg-core.h224 unsigned int scale_factor; member
Djpeg-core.c984 ctx->scale_factor = EXYNOS3250_DEC_SCALE_FACTOR_8_8; in s5p_jpeg_open()
1667 ct->scale_factor > 2) { in s5p_jpeg_s_fmt()
1712 int w_ratio, h_ratio, scale_factor, cur_ratio, i; in exynos3250_jpeg_try_downscale() local
1717 scale_factor = max(w_ratio, h_ratio); in exynos3250_jpeg_try_downscale()
1718 scale_factor = clamp_val(scale_factor, 1, 8); in exynos3250_jpeg_try_downscale()
1723 if (scale_factor <= cur_ratio) { in exynos3250_jpeg_try_downscale()
1724 ctx->scale_factor = cur_ratio; in exynos3250_jpeg_try_downscale()
1729 r->width = round_down(ctx->out_q.w / ctx->scale_factor, 2); in exynos3250_jpeg_try_downscale()
1730 r->height = round_down(ctx->out_q.h / ctx->scale_factor, 2); in exynos3250_jpeg_try_downscale()
2395 ctx->scale_factor); in exynos3250_jpeg_device_run()
/linux-6.12.1/drivers/gpu/drm/i915/
Di915_hwmon.c99 u32 field_msk, int nshift, u32 scale_factor) in hwm_field_read_and_scale() argument
110 return mul_u64_u32_shr(reg_value, scale_factor, nshift); in hwm_field_read_and_scale()
/linux-6.12.1/drivers/gpu/drm/msm/disp/dpu1/
Ddpu_plane.c126 u64 scale_factor; in _dpu_plane_calc_bw() local
137 scale_factor = src_height > dst_height ? in _dpu_plane_calc_bw()
143 plane_bw = plane_bit_rate * scale_factor; in _dpu_plane_calc_bw()
/linux-6.12.1/include/uapi/linux/
Dsoundcard.h293 unsigned int scale_factor; /* from 0 to 2048 or 0 to 2 */ member
/linux-6.12.1/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/
Dphy_lcn.c4318 u8 scale_factor = 1; in wlc_lcnphy_load_rfpower() local
4353 (1 << (scale_factor + shift - 3))) >> (scale_factor + in wlc_lcnphy_load_rfpower()
/linux-6.12.1/drivers/staging/media/atomisp/pci/
Dsh_css.c5961 scale_factor = 0; in ia_css_pipe_create_cas_scaler_desc() local
5994 scale_factor = 1; in ia_css_pipe_create_cas_scaler_desc()
5997 scale_factor *= max_scale_factor_per_stage; in ia_css_pipe_create_cas_scaler_desc()
5998 } while (scale_factor < hor_scale_factor[i]); in ia_css_pipe_create_cas_scaler_desc()
/linux-6.12.1/fs/nfsd/
Dnfs4state.c1948 unsigned int scale_factor; in nfsd4_get_drc_mem() local
1970 scale_factor = max_t(unsigned int, 8, nn->nfsd_serv->sv_nrthreads); in nfsd4_get_drc_mem()
1973 total_avail/scale_factor); in nfsd4_get_drc_mem()
/linux-6.12.1/arch/powerpc/xmon/
Dppc-opc.c1883 int scale_factor = (insn & 0x300) >> 5; in extract_sci8() local
1884 long value = (insn & 0xff) << scale_factor; in extract_sci8()
1887 value |= ~((long) 0xff << scale_factor); in extract_sci8()