Home
last modified time | relevance | path

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

12345678910>>...12

/linux-6.3-rc2/drivers/macintosh/
A 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.3-rc2/samples/bpf/
A 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.3-rc2/Documentation/translations/zh_CN/scheduler/
A Dschedutil.rst113 可以在每个CFS或RT任务上设置有效的u_min和u_max clamp值(译注:clamp可以理解
115 运行的任务保持这些clamp的最大聚合值。
132 clamp( u_cfs + u_rt, u_min, u_max ); 如果使能UCLAMP_TASK
/linux-6.3-rc2/drivers/staging/media/atomisp/pci/
A 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.3-rc2/drivers/thermal/
A Dgov_step_wise.c56 next_target = clamp((cur_state + 1), instance->lower, instance->upper); in get_target_state()
67 next_target = clamp((cur_state + 1), instance->lower, instance->upper); in get_target_state()
76 next_target = clamp((cur_state - 1), instance->lower, instance->upper); in get_target_state()
A Dsprd_thermal.c181 clamp(rawdata, (u32)SPRD_THM_RAW_DATA_LOW, (u32)SPRD_THM_RAW_DATA_HIGH); in sprd_thm_rawdata_to_temp()
195 clamp(temp, (int)SPRD_THM_TEMP_LOW, (int)SPRD_THM_TEMP_HIGH); in sprd_thm_temp_to_rawdata()
204 return clamp(val, val, (u32)(SPRD_THM_RAW_DATA_HIGH - 1)); in sprd_thm_temp_to_rawdata()
/linux-6.3-rc2/drivers/net/can/spi/mcp251xfd/
A Dmcp251xfd-ram.c18 return clamp(val, obj->min, max); in can_ram_clamp()
111 num_rx_coalesce = clamp(ec->rx_max_coalesced_frames_irq, in can_ram_get_layout()
134 num_tx_coalesce = clamp(ec->tx_max_coalesced_frames_irq, in can_ram_get_layout()
/linux-6.3-rc2/mm/
A Dmemtest.c73 this_start = clamp(this_start, start, end); in do_one_pass()
74 this_end = clamp(this_end, start, end); in do_one_pass()
/linux-6.3-rc2/drivers/clk/
A Dclk-plldig.c134 div = clamp(div, 1UL, MAX_RFDPHI1); in plldig_calc_target_div()
145 req->rate = clamp(req->rate, PHI1_MIN_FREQ, PHI1_MAX_FREQ); in plldig_determine_rate()
159 rate = clamp(rate, PHI1_MIN_FREQ, PHI1_MAX_FREQ); in plldig_set_rate()
/linux-6.3-rc2/drivers/media/platform/renesas/vsp1/
A Dvsp1_uds.c182 fmt->width = clamp(fmt->width, UDS_MIN_SIZE, UDS_MAX_SIZE); in uds_try_format()
183 fmt->height = clamp(fmt->height, UDS_MIN_SIZE, UDS_MAX_SIZE); in uds_try_format()
193 fmt->width = clamp(fmt->width, minimum, maximum); in uds_try_format()
195 fmt->height = clamp(fmt->height, minimum, maximum); in uds_try_format()
/linux-6.3-rc2/Documentation/scheduler/
A 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
130 Since the goal of util clamp is to allow requesting a minimum and maximum
304 The effective util clamp value of any task is restricted as follows:
505 .. _sched-util-clamp-min-rt-default:
[all …]
A Dindex.rst18 sched-util-clamp
/linux-6.3-rc2/drivers/power/supply/
A Dbq256xx_charger.c492 ichg = clamp(ichg, BQ256XX_ICHG_MIN_uA, ichg_max); in bq256xx_set_ichg_curr()
505 ichg = clamp(ichg, BQ25618_ICHG_MIN_uA, ichg_max); in bq25618_619_set_ichg_curr()
605 vbatreg = clamp(vbatreg, BQ25618_VBATREG_MIN_uV, vbatreg_max); in bq25618_619_set_chrg_volt()
627 vbatreg = clamp(vbatreg, BQ25611D_VBATREG_MIN_uV, vbatreg_max); in bq25611d_set_chrg_volt()
648 vbatreg = clamp(vbatreg, BQ2560X_VBATREG_MIN_uV, vbatreg_max); in bq2560x_set_chrg_volt()
663 vbatreg = clamp(vbatreg, BQ25601D_VBATREG_MIN_uV, vbatreg_max); in bq25601d_set_chrg_volt()
695 iprechg = clamp(iprechg, BQ256XX_IPRECHG_MIN_uA, in bq256xx_set_prechrg_curr()
727 iprechg = clamp(iprechg, BQ25618_IPRECHG_MIN_uA, in bq25618_619_set_prechrg_curr()
758 iterm = clamp(iterm, BQ256XX_ITERM_MIN_uA, BQ256XX_ITERM_MAX_uA); in bq256xx_set_term_curr()
788 iterm = clamp(iterm, BQ25618_ITERM_MIN_uA, BQ25618_ITERM_MAX_uA); in bq25618_619_set_term_curr()
[all …]
/linux-6.3-rc2/drivers/clk/renesas/
A Drcar-gen4-cpg.c94 mult = clamp(mult, min_mult, max_mult); in cpg_pll_clk_determine_rate()
108 mult = clamp(mult, 1U, 256U); in cpg_pll_clk_set_rate()
234 mult = clamp(mult, min_mult, max_mult); in cpg_z_clk_determine_rate()
249 mult = clamp(mult, 1U, 32U); in cpg_z_clk_set_rate()
A 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()
/linux-6.3-rc2/drivers/media/platform/ti/omap3isp/
A 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()
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()
2722 ccdc->clamp.oblen = 0; in omap3isp_ccdc_init()
[all …]
A Dispccdc.h142 struct omap3isp_ccdc_bclamp clamp; member
/linux-6.3-rc2/drivers/acpi/pmic/
A Dintel_pmic_xpower.c310 raw = clamp(raw, first.raw, last.raw); in intel_xpower_lpat_raw_to_temp()
312 raw = clamp(raw, last.raw, first.raw); in intel_xpower_lpat_raw_to_temp()
/linux-6.3-rc2/drivers/clk/starfive/
A Dclk-starfive-jh7100.c338 unsigned long rate = clamp(req->rate, req->min_rate, req->max_rate); in jh7100_clk_determine_rate()
367 unsigned long div = clamp(DIV_ROUND_CLOSEST(parent_rate, rate), in jh7100_clk_set_rate()
389 unsigned long rate = clamp(req->rate, req->min_rate, req->max_rate); in jh7100_clk_frac_determine_rate()
390 unsigned long div100 = clamp(DIV_ROUND_CLOSEST(parent100, rate), in jh7100_clk_frac_determine_rate()
409 unsigned long div100 = clamp(DIV_ROUND_CLOSEST(100 * parent_rate, rate), in jh7100_clk_frac_set_rate()
/linux-6.3-rc2/sound/usb/line6/
A Dplayback.c38 pv = clamp(val, -0x8000, 0x7fff); in change_volume()
53 val = clamp(val, -0x800000, 0x7fffff); in change_volume()
125 pov = clamp(val, -0x8000, 0x7fff); in add_monitor_signal()
/linux-6.3-rc2/drivers/hid/
A Dhid-elecom.c50 nbuttons = clamp(nbuttons, 0, MOUSE_BUTTONS_MAX); in mouse_button_fixup()
/linux-6.3-rc2/drivers/media/common/v4l2-tpg/
A Dv4l2-tpg-core.c543 v = clamp(v, 0, 0xff0); in rec709_to_linear()
549 v = clamp(v, 0, 0xff0); in linear_to_rec709()
735 *r = clamp(*r >> 12, 0, 0xff0); in ycbcr2rgb()
736 *g = clamp(*g >> 12, 0, 0xff0); in ycbcr2rgb()
737 *b = clamp(*b >> 12, 0, 0xff0); in ycbcr2rgb()
989 y = clamp(y, 16, 235); in precalculate_color()
990 cb = clamp(cb, 16, 240); in precalculate_color()
991 cr = clamp(cr, 16, 240); in precalculate_color()
993 y = clamp(y, 1, 254); in precalculate_color()
994 cb = clamp(cb, 1, 254); in precalculate_color()
[all …]
/linux-6.3-rc2/sound/soc/codecs/
A Dcs4234.c451 .min = mclk / clamp(mclk / 30000, 256, 512), in cs4234_dai_rule_rate()
452 .max = mclk / clamp(mclk / 50000, 256, 512), in cs4234_dai_rule_rate()
455 .min = mclk / clamp(mclk / 60000, 128, 256), in cs4234_dai_rule_rate()
456 .max = mclk / clamp(mclk / 100000, 128, 256), in cs4234_dai_rule_rate()
/linux-6.3-rc2/drivers/thermal/intel/
A Dintel_powerclamp.c98 duration = clamp(new_duration, 6ul, 25ul) * 1000; in duration_set()
290 window_size = clamp(new_window_size, 2ul, 10ul); in window_size_set()
698 new_target_ratio = clamp(new_target_ratio, 0UL, in powerclamp_set_cur_state()
/linux-6.3-rc2/drivers/staging/media/atomisp/include/media/
A Dlm3554.h94 clamp(val, LM3554_MIN_PERCENT, LM3554_MAX_PERCENT)

Completed in 50 milliseconds

12345678910>>...12