/openbmc/linux/drivers/macintosh/ |
H A D | windfarm_cpufreq_clamp.c | 66 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()
|
/openbmc/linux/samples/bpf/ |
H A D | tcp_clamp_kern.c | 30 int clamp = 100; in bpf_clamp() local 71 &clamp, sizeof(clamp)); in bpf_clamp() 77 &clamp, sizeof(clamp)); in bpf_clamp()
|
/openbmc/u-boot/arch/arm/cpu/armv7/sunxi/ |
H A D | psci.c | 78 static void __secure clamp_release(u32 __maybe_unused *clamp) in clamp_release() argument 86 writel(tmp, clamp); in clamp_release() 93 static void __secure clamp_set(u32 __maybe_unused *clamp) in clamp_set() argument 98 writel(0xff, clamp); in clamp_set() 102 static void __secure sunxi_power_switch(u32 *clamp, u32 *pwroff, bool on, in sunxi_power_switch() argument 107 clamp_release(clamp); in sunxi_power_switch() 116 clamp_set(clamp); in sunxi_power_switch()
|
/openbmc/phosphor-pid-control/pid/ec/ |
H A D | pid.cpp | 31 static double clamp(double x, double min, double max) in clamp() function 99 integralTerm = clamp(integralTerm, pidinfoptr->integralLimit.min, in pid() 121 output = clamp(output, pidinfoptr->outLim.min, pidinfoptr->outLim.max); in pid() 174 integralTerm = clamp(integralTerm, pidinfoptr->integralLimit.min, in pid()
|
/openbmc/linux/Documentation/translations/zh_CN/scheduler/ |
H A D | schedutil.rst | 113 可以在每个CFS或RT任务上设置有效的u_min和u_max clamp值(译注:clamp可以理解 115 运行的任务保持这些clamp的最大聚合值。 132 clamp( u_cfs + u_rt, u_min, u_max ); 如果使能UCLAMP_TASK
|
/openbmc/phosphor-mboxd/vpnor/ |
H A D | pnor_partition.hpp | 51 len = clamp(len); in read() 59 if (len != clamp(len)) in write() 76 size_t clamp(size_t len);
|
/openbmc/linux/drivers/staging/media/atomisp/pci/ |
H A D | sh_css_param_shading.c | 135 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()
|
/openbmc/linux/drivers/thermal/ |
H A D | gov_step_wise.c | 48 next_target = clamp((cur_state + 1), instance->lower, instance->upper); in get_target_state() 58 next_target = clamp((cur_state + 1), instance->lower, instance->upper); in get_target_state() 64 next_target = clamp((cur_state - 1), instance->lower, instance->upper); in get_target_state()
|
H A D | loongson2_thermal.c | 44 low = clamp(-40, low, high); in loongson2_thermal_set() 45 high = clamp(125, low, high); in loongson2_thermal_set()
|
/openbmc/openbmc/poky/meta/recipes-devtools/dpkg/dpkg/ |
H A D | 0007-dpkg-deb-build.c-Remove-usage-of-clamp-mtime-in-tar.patch | 4 Subject: [PATCH] dpkg-deb/build.c: Remove usage of --clamp-mtime in tar 9 Recently dpkg added --clamp-mtime to tar to create reproducible 37 - "--mtime", mtime, "--clamp-mtime", NULL);
|
/openbmc/linux/drivers/media/platform/verisilicon/ |
H A D | rockchip_av1_filmgrain.c | 195 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()
|
/openbmc/linux/drivers/clk/starfive/ |
H A D | clk-starfive-jh71x0.c | 81 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()
|
/openbmc/linux/drivers/media/pci/solo6x10/ |
H A D | solo6x10-offsets.h | 60 clamp(__solo->sdram_size - SOLO_MP4E_EXT_ADDR(__solo) - \ 68 clamp(__solo->sdram_size - SOLO_JPEG_EXT_ADDR(__solo), \
|
/openbmc/qemu/libdecnumber/ |
H A D | decContext.c | 100 context->clamp=0; /* no clamping */ in decContextDefault() 114 context->clamp=1; /* clamp exponents */ in decContextDefault() 125 context->clamp=1; /* clamp exponents */ in decContextDefault() 136 context->clamp=1; /* clamp exponents */ in decContextDefault()
|
/openbmc/linux/drivers/net/can/spi/mcp251xfd/ |
H A D | mcp251xfd-ram.c | 18 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()
|
/openbmc/linux/mm/ |
H A D | memtest.c | 80 this_start = clamp(this_start, start, end); in do_one_pass() 81 this_end = clamp(this_end, start, end); in do_one_pass()
|
/openbmc/hiomapd/vpnor/ |
H A D | partition.cpp | 106 size_t Request::clamp(size_t len) in clamp() function in openpower::virtual_pnor::Request 133 len = clamp(len); in read() 188 if (len != clamp(len)) in write()
|
/openbmc/linux/drivers/clk/ |
H A D | clk-plldig.c | 132 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()
|
/openbmc/linux/drivers/media/platform/renesas/vsp1/ |
H A D | vsp1_uds.c | 182 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()
|
/openbmc/linux/Documentation/scheduler/ |
H A D | sched-util-clamp.rst | 10 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 …]
|
H A D | index.rst | 18 sched-util-clamp
|
/openbmc/linux/drivers/power/supply/ |
H A D | bq256xx_charger.c | 525 ichg = clamp(ichg, BQ256XX_ICHG_MIN_uA, ichg_max); in bq256xx_set_ichg_curr() 538 ichg = clamp(ichg, BQ25618_ICHG_MIN_uA, ichg_max); in bq25618_619_set_ichg_curr() 638 vbatreg = clamp(vbatreg, BQ25618_VBATREG_MIN_uV, vbatreg_max); in bq25618_619_set_chrg_volt() 660 vbatreg = clamp(vbatreg, BQ25611D_VBATREG_MIN_uV, vbatreg_max); in bq25611d_set_chrg_volt() 681 vbatreg = clamp(vbatreg, BQ2560X_VBATREG_MIN_uV, vbatreg_max); in bq2560x_set_chrg_volt() 696 vbatreg = clamp(vbatreg, BQ25601D_VBATREG_MIN_uV, vbatreg_max); in bq25601d_set_chrg_volt() 734 iprechg = clamp(iprechg, BQ256XX_IPRECHG_MIN_uA, in bq256xx_set_prechrg_curr() 766 iprechg = clamp(iprechg, BQ25618_IPRECHG_MIN_uA, in bq25618_619_set_prechrg_curr() 797 iterm = clamp(iterm, BQ256XX_ITERM_MIN_uA, BQ256XX_ITERM_MAX_uA); in bq256xx_set_term_curr() 827 iterm = clamp(iterm, BQ25618_ITERM_MIN_uA, BQ25618_ITERM_MAX_uA); in bq25618_619_set_term_curr() [all …]
|
/openbmc/linux/drivers/clk/renesas/ |
H A D | rcar-gen4-cpg.c | 94 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()
|
H A D | rcar-gen3-cpg.c | 79 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()
|
/openbmc/linux/kernel/time/ |
H A D | ntp.c | 307 offset = clamp(offset, -USEC_PER_SEC, USEC_PER_SEC); in ntp_update_offset() 315 offset = clamp(offset, -MAXPHASE, MAXPHASE); in ntp_update_offset() 730 time_maxerror = clamp(txc->maxerror, 0, NTP_PHASE_LIMIT); in process_adjtimex_modes() 733 time_esterror = clamp(txc->esterror, 0, NTP_PHASE_LIMIT); in process_adjtimex_modes() 736 time_constant = clamp(txc->constant, 0, MAXTC); in process_adjtimex_modes() 739 time_constant = clamp(time_constant, 0, MAXTC); in process_adjtimex_modes()
|