Home
last modified time | relevance | path

Searched refs:clamp (Results 1 – 25 of 353) sorted by relevance

12345678910>>...15

/linux-6.12.1/drivers/macintosh/
Dwindfarm_cpufreq_clamp.c66 struct wf_control *clamp; in wf_cpufreq_clamp_init() local
97 clamp = kmalloc(sizeof(struct wf_control), GFP_KERNEL); in wf_cpufreq_clamp_init()
98 if (clamp == NULL) { in wf_cpufreq_clamp_init()
103 clamp->ops = &clamp_ops; in wf_cpufreq_clamp_init()
104 clamp->name = "cpufreq-clamp"; in wf_cpufreq_clamp_init()
105 ret = wf_register_control(clamp); in wf_cpufreq_clamp_init()
109 clamp_control = clamp; in wf_cpufreq_clamp_init()
113 kfree(clamp); in wf_cpufreq_clamp_init()
/linux-6.12.1/samples/bpf/
Dtcp_clamp_kern.c30 int clamp = 100; in bpf_clamp() local
71 &clamp, sizeof(clamp)); in bpf_clamp()
77 &clamp, sizeof(clamp)); in bpf_clamp()
/linux-6.12.1/drivers/staging/media/atomisp/pci/isp/kernels/xnr/xnr_3.0/
Dia_css_xnr3.host.c111 return clamp(isp_coring, 0, isp_scale - 1); in compute_coring()
171 to->alpha.ydiff = clamp(alpha_ydiff, min_diff, max_diff); in ia_css_xnr3_encode()
172 to->alpha.udiff = clamp(alpha_udiff, min_diff, max_diff); in ia_css_xnr3_encode()
173 to->alpha.vdiff = clamp(alpha_vdiff, min_diff, max_diff); in ia_css_xnr3_encode()
178 to->coring.udiff = clamp(coring_udiff, min_diff, max_diff); in ia_css_xnr3_encode()
179 to->coring.vdiff = clamp(coring_vdiff, min_diff, max_diff); in ia_css_xnr3_encode()
/linux-6.12.1/Documentation/translations/zh_CN/scheduler/
Dschedutil.rst112 可以在每个CFS或RT任务上设置有效的u_min和u_max clamp值(译注:clamp可以理解
114 运行的任务保持这些clamp的最大聚合值。
131 clamp( u_cfs + u_rt, u_min, u_max ); 如果使能UCLAMP_TASK
/linux-6.12.1/drivers/staging/media/atomisp/pci/
Dsh_css_param_shading.c135 src_y0 = clamp(src_y0, 0, (int)table_height - 1); in crop_and_interpolate()
136 src_y1 = clamp(src_y1, 0, (int)table_height - 1); in crop_and_interpolate()
137 ty = min(clamp(ty, 0, (int)sensor_height - 1), in crop_and_interpolate()
168 src_x0 = clamp(src_x0, 0, (int)table_width - 1); in crop_and_interpolate()
169 src_x1 = clamp(src_x1, 0, (int)table_width - 1); in crop_and_interpolate()
170 tx = min(clamp(tx, 0, (int)sensor_width - 1), in crop_and_interpolate()
/linux-6.12.1/drivers/media/platform/verisilicon/
Drockchip_av1_filmgrain.c195 static inline s32 clamp(s32 value, s32 low, s32 high) in clamp() function
281 clamp((*luma_grain_block)[i][j] + in rockchip_av1_generate_luma_grain_block()
389 clamp((*cb_grain_block)[i][j] + in rockchip_av1_generate_chroma_grain_block()
395 clamp((*cr_grain_block)[i][j] + in rockchip_av1_generate_chroma_grain_block()
/linux-6.12.1/drivers/clk/starfive/
Dclk-starfive-jh71x0.c81 unsigned long rate = clamp(req->rate, req->min_rate, req->max_rate); in jh71x0_clk_determine_rate()
110 unsigned long div = clamp(DIV_ROUND_CLOSEST(parent_rate, rate), in jh71x0_clk_set_rate()
132 unsigned long rate = clamp(req->rate, req->min_rate, req->max_rate); in jh71x0_clk_frac_determine_rate()
133 unsigned long div100 = clamp(DIV_ROUND_CLOSEST(parent100, rate), in jh71x0_clk_frac_determine_rate()
152 unsigned long div100 = clamp(DIV_ROUND_CLOSEST(100 * parent_rate, rate), in jh71x0_clk_frac_set_rate()
/linux-6.12.1/drivers/staging/media/atomisp/pci/isp/kernels/eed1_8/
Dia_css_eed1_8.host.c175 to->e_dew_enh_x[0][base + j] = clamp(from->dew_enhance_seg_x[j], in ia_css_eed1_8_vmem_encode()
177 to->e_dew_enh_y[0][base + j] = clamp(from->dew_enhance_seg_y[j], in ia_css_eed1_8_vmem_encode()
182 to->e_dew_enh_a[0][base + j] = clamp(from->dew_enhance_seg_slope[j], in ia_css_eed1_8_vmem_encode()
188 to->e_dew_enh_f[0][base + j] = clamp(from->dew_enhance_seg_exp[j], in ia_css_eed1_8_vmem_encode()
275 to->e_dew_enh_asr = 13 - clamp(min_exp, 0, 13); in ia_css_eed1_8_encode()
/linux-6.12.1/drivers/media/pci/solo6x10/
Dsolo6x10-offsets.h60 clamp(__solo->sdram_size - SOLO_MP4E_EXT_ADDR(__solo) - \
68 clamp(__solo->sdram_size - SOLO_JPEG_EXT_ADDR(__solo), \
/linux-6.12.1/drivers/net/can/spi/mcp251xfd/
Dmcp251xfd-ram.c18 return clamp(val, obj->min, max); in can_ram_clamp()
120 num_rx_coalesce = clamp(ec->rx_max_coalesced_frames_irq, in can_ram_get_layout()
143 num_tx_coalesce = clamp(ec->tx_max_coalesced_frames_irq, in can_ram_get_layout()
/linux-6.12.1/drivers/media/platform/renesas/vsp1/
Dvsp1_uds.c180 fmt->width = clamp(fmt->width, UDS_MIN_SIZE, UDS_MAX_SIZE); in uds_try_format()
181 fmt->height = clamp(fmt->height, UDS_MIN_SIZE, UDS_MAX_SIZE); in uds_try_format()
190 fmt->width = clamp(fmt->width, minimum, maximum); in uds_try_format()
192 fmt->height = clamp(fmt->height, minimum, maximum); in uds_try_format()
/linux-6.12.1/drivers/thermal/
Dgov_step_wise.c46 return clamp(cur_state + 1, instance->lower, instance->upper); in get_target_state()
53 return clamp(cur_state + 1, instance->lower, instance->upper); in get_target_state()
Dloongson2_thermal.c66 loongson2_set_ctrl_regs(data, clamp(-40, low, high), true, enable); in loongson2_thermal_set()
69 loongson2_set_ctrl_regs(data, clamp(125, low, high), false, enable); in loongson2_thermal_set()
/linux-6.12.1/drivers/clk/
Dclk-plldig.c132 div = clamp(div, 1UL, MAX_RFDPHI1); in plldig_calc_target_div()
143 req->rate = clamp(req->rate, PHI1_MIN_FREQ, PHI1_MAX_FREQ); in plldig_determine_rate()
157 rate = clamp(rate, PHI1_MIN_FREQ, PHI1_MAX_FREQ); in plldig_set_rate()
/linux-6.12.1/Documentation/scheduler/
Dsched-util-clamp.rst10 Utilization clamping, also known as util clamp or uclamp, is a scheduler
18 used, util clamp will influence the CPU frequency selection as well.
21 util clamp acts on that to achieve its goal by clamping the signal to a certain
25 The right way to view util clamp is as a mechanism to make request or hint on
42 As an example, a game can use util clamp to form a feedback loop with its
57 foreground, top-app, etc. Util clamp can be used to constrain how much
115 :ref:`3.4.1 <sched-util-clamp-min-rt-default>` on how to change RT tasks
121 Util clamp is a property of every task in the system. It sets the boundaries of
130 Since the goal of util clamp is to allow requesting a minimum and maximum
142 To be able to aggregate the util clamp value of all the tasks attached to the
[all …]
/linux-6.12.1/mm/
Dmemtest.c80 this_start = clamp(this_start, start, end); in do_one_pass()
81 this_end = clamp(this_end, start, end); in do_one_pass()
/linux-6.12.1/drivers/power/supply/
Dbq256xx_charger.c517 ichg = clamp(ichg, BQ256XX_ICHG_MIN_uA, ichg_max); in bq256xx_set_ichg_curr()
530 ichg = clamp(ichg, BQ25618_ICHG_MIN_uA, ichg_max); in bq25618_619_set_ichg_curr()
630 vbatreg = clamp(vbatreg, BQ25618_VBATREG_MIN_uV, vbatreg_max); in bq25618_619_set_chrg_volt()
652 vbatreg = clamp(vbatreg, BQ25611D_VBATREG_MIN_uV, vbatreg_max); in bq25611d_set_chrg_volt()
673 vbatreg = clamp(vbatreg, BQ2560X_VBATREG_MIN_uV, vbatreg_max); in bq2560x_set_chrg_volt()
688 vbatreg = clamp(vbatreg, BQ25601D_VBATREG_MIN_uV, vbatreg_max); in bq25601d_set_chrg_volt()
726 iprechg = clamp(iprechg, BQ256XX_IPRECHG_MIN_uA, in bq256xx_set_prechrg_curr()
758 iprechg = clamp(iprechg, BQ25618_IPRECHG_MIN_uA, in bq25618_619_set_prechrg_curr()
789 iterm = clamp(iterm, BQ256XX_ITERM_MIN_uA, BQ256XX_ITERM_MAX_uA); in bq256xx_set_term_curr()
819 iterm = clamp(iterm, BQ25618_ITERM_MIN_uA, BQ25618_ITERM_MAX_uA); in bq25618_619_set_term_curr()
[all …]
/linux-6.12.1/drivers/clk/mxs/
Dclk-ref.c69 frac = clamp(tmp, 18, 35); in clk_ref_round_rate()
89 frac = clamp(tmp, 18, 35); in clk_ref_set_rate()
/linux-6.12.1/kernel/time/
Dntp.c307 offset = clamp(offset, -USEC_PER_SEC, USEC_PER_SEC); in ntp_update_offset()
315 offset = clamp(offset, -MAXPHASE, MAXPHASE); in ntp_update_offset()
738 time_maxerror = clamp(txc->maxerror, 0, NTP_PHASE_LIMIT); in process_adjtimex_modes()
741 time_esterror = clamp(txc->esterror, 0, NTP_PHASE_LIMIT); in process_adjtimex_modes()
744 time_constant = clamp(txc->constant, 0, MAXTC); in process_adjtimex_modes()
747 time_constant = clamp(time_constant, 0, MAXTC); in process_adjtimex_modes()
/linux-6.12.1/kernel/
Dprofile.c64 prof_shift = clamp(par, 0, BITS_PER_LONG - 1); in profile_setup()
74 prof_shift = clamp(par, 0, BITS_PER_LONG - 1); in profile_setup()
/linux-6.12.1/drivers/media/platform/ti/omap3isp/
Dispccdc.c536 u32 clamp; in ccdc_configure_clamp() local
539 clamp = ccdc->clamp.obgain << ISPCCDC_CLAMP_OBGAIN_SHIFT; in ccdc_configure_clamp()
540 clamp |= ccdc->clamp.oblen << ISPCCDC_CLAMP_OBSLEN_SHIFT; in ccdc_configure_clamp()
541 clamp |= ccdc->clamp.oblines << ISPCCDC_CLAMP_OBSLN_SHIFT; in ccdc_configure_clamp()
542 clamp |= ccdc->clamp.obstpixel << ISPCCDC_CLAMP_OBST_SHIFT; in ccdc_configure_clamp()
543 isp_reg_writel(isp, clamp, OMAP3_ISP_IOMEM_CCDC, ISPCCDC_CLAMP); in ccdc_configure_clamp()
545 isp_reg_writel(isp, ccdc->clamp.dcsubval, in ccdc_configure_clamp()
684 if (copy_from_user(&ccdc->clamp, ccdc_struct->bclamp, in ccdc_config()
685 sizeof(ccdc->clamp))) { in ccdc_config()
858 div = clamp(div, 2U, max_div); in ccdc_config_vp()
[all …]
/linux-6.12.1/drivers/clk/renesas/
Drcar-gen3-cpg.c79 mult = clamp(mult, min_mult, max_mult); in cpg_pll_clk_determine_rate()
93 mult = clamp(mult, 1U, 128U); in cpg_pll_clk_set_rate()
214 mult = clamp(mult, min_mult, max_mult); in cpg_z_clk_determine_rate()
229 mult = clamp(mult, 1U, 32U); in cpg_z_clk_set_rate()
Drcar-gen4-cpg.c126 ni = clamp(ni, min_mult, max_mult); in cpg_pll_8_25_clk_determine_rate()
155 ni = clamp(ni, 1U, 256U); in cpg_pll_8_25_clk_set_rate()
317 mult = clamp(mult, min_mult, max_mult); in cpg_z_clk_determine_rate()
332 mult = clamp(mult, 1U, 32U); in cpg_z_clk_set_rate()
/linux-6.12.1/drivers/net/ethernet/intel/libeth/
Drx.c45 truesize = clamp(roundup_pow_of_two(truesize), roundup_pow_of_two(min), in libeth_rx_hw_len_truesize()
135 fq->buf_len = clamp(mtu, LIBETH_RX_BUF_STRIDE, max); in libeth_rx_page_pool_params_zc()
/linux-6.12.1/drivers/media/platform/nxp/imx8-isi/
Dimx8-isi-pipe.c481 mf->width = clamp(mf->width, MXC_ISI_MIN_WIDTH, max_width); in mxc_isi_pipe_set_fmt()
482 mf->height = clamp(mf->height, MXC_ISI_MIN_HEIGHT, in mxc_isi_pipe_set_fmt()
623 sel->r.width = clamp(sel->r.width, MXC_ISI_MIN_WIDTH, in mxc_isi_pipe_set_selection()
625 sel->r.height = clamp(sel->r.height, MXC_ISI_MIN_HEIGHT, in mxc_isi_pipe_set_selection()
650 sel->r.width = clamp(sel->r.width, MXC_ISI_MIN_WIDTH, in mxc_isi_pipe_set_selection()
652 sel->r.height = clamp(sel->r.height, MXC_ISI_MIN_HEIGHT, in mxc_isi_pipe_set_selection()

12345678910>>...15