Home
last modified time | relevance | path

Searched full:clamp (Results 1 – 25 of 627) sorted by relevance

12345678910>>...26

/openbmc/linux/drivers/macintosh/
H 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()
132 MODULE_DESCRIPTION("CPU frequency clamp for PowerMacs thermal control");
/openbmc/linux/samples/bpf/
H A Dtcp_clamp_kern.c7 * Sample BPF program to set send and receive buffers to 150KB, sndcwnd clamp
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 Dpsci.c78 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
106 /* Release power clamp */ in sunxi_power_switch()
107 clamp_release(clamp); in sunxi_power_switch()
115 /* Activate power clamp */ in sunxi_power_switch()
116 clamp_set(clamp); in sunxi_power_switch()
/openbmc/phosphor-pid-control/pid/ec/
H A Dpid.cpp28 * clamp
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()
172 // Clamp again because having limited the output may result in a in pid()
174 integralTerm = clamp(integralTerm, pidinfoptr->integralLimit.min, in pid()
H A Dpid.hpp37 limits_t integralLimit; // clamp of integral
38 limits_t outLim; // clamp of output
60 ec::limits_t integralLimit; // clamp of integral
61 ec::limits_t outLim; // clamp of output
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-multimedia/audiofile/files/
H A D0005-clamp-index-values-to-fix-index-overflow-in-IMA.cpp.patch4 Subject: [PATCH] clamp index values to fix index overflow in IMA.cpp
28 + m_adpcmState[c].index = clamp(encoded[2], 0, 88);
35 state.previousValue = clamp(predictor, MIN_INT16, MAX_INT16);
37 + state.index = clamp(encoded[1] & 0x7f, 0, 88);
/openbmc/linux/Documentation/scheduler/
H 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
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 …]
/openbmc/linux/drivers/hid/
H A Dhid-lgff.c65 #define CLAMP(x) if (x < 0) x = 0; if (x > 0xff) x = 0xff in hid_lgff_play() macro
71 CLAMP(x); in hid_lgff_play()
72 CLAMP(y); in hid_lgff_play()
86 CLAMP(left); in hid_lgff_play()
87 CLAMP(right); in hid_lgff_play()
/openbmc/linux/arch/arm/mach-qcom/
H A Dplatsmp.c33 #define CLAMP BIT(0) macro
103 reg_val = CORE_RST | COREPOR_RST | CLAMP | CORE_MEM_CLAMP; in cortex_a7_release_secondary()
117 reg_val = (reg_val | BIT(17)) & ~CLAMP; in cortex_a7_release_secondary()
176 val = PLL_CLAMP | L2DT_SLP | CLAMP; in kpssv1_release_secondary()
188 val &= ~CLAMP; in kpssv1_release_secondary()
279 reg_val = COREPOR_RST | CLAMP; in kpssv2_release_secondary()
284 reg_val &= ~CLAMP; in kpssv2_release_secondary()
/openbmc/linux/drivers/clk/starfive/
H A 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()
137 /* clamp the result as in jh71x0_clk_determine_rate() above */ 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/platform/ti/omap3isp/
H A Dispccdc.h109 * @obclamp: Optical-black clamp enabled (1) or disabled (0)
112 * @clamp: Optical-black or digital clamp configuration
142 struct omap3isp_ccdc_bclamp clamp; member
/openbmc/openbmc/poky/meta/recipes-devtools/dpkg/dpkg/
H A D0007-dpkg-deb-build.c-Remove-usage-of-clamp-mtime-in-tar.patch4 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/include/linux/
H A Dminmax.h11 * min()/max()/clamp() macros must accomplish three things:
69 "clamp() low limit " #lo " greater than high limit " #hi); \
70 static_assert(__types_ok(val, lo), "clamp() 'lo' signedness error"); \
71 static_assert(__types_ok(val, hi), "clamp() 'hi' signedness error"); \
138 * clamp - return a value clamped to a given range with strict typechecking
146 #define clamp(val, lo, hi) __careful_clamp(val, lo, hi) macro
152 * Or not use min/max/clamp at all, of course.
/openbmc/phosphor-mboxd/vpnor/
H A Dpnor_partition.hpp51 len = clamp(len); in read()
59 if (len != clamp(len)) in write()
75 /** @brief Clamp the access length to the maximum supported by the ToC */
76 size_t clamp(size_t len);
/openbmc/linux/drivers/staging/media/omap4iss/
H A Diss_ipipeif.h42 * @obclamp: Optical-black clamp enabled (1) or disabled (0)
45 * @clamp: Optical-black or digital clamp configuration
/openbmc/linux/drivers/staging/media/atomisp/pci/
H 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()
/openbmc/linux/drivers/media/usb/pwc/
H A Dpwc-dec23.c278 #define CLAMP(x) (pwc_crop_table[MAX_OUTER_CROP_VALUE+(x)]) macro
280 #define CLAMP(x) ((x)>255?255:((x)<0?0:x)) macro
333 /* Build the static table to clamp value [0-255] */ in pwc_dec23_init()
383 *d++ = CLAMP((*c) >> scalebits); in copy_image_block_Y()
387 *d++ = CLAMP((*c) >> scalebits); in copy_image_block_Y()
391 *d++ = CLAMP((*c) >> scalebits); in copy_image_block_Y()
395 *d++ = CLAMP((*c) >> scalebits); in copy_image_block_Y()
436 *d++ = CLAMP((*c1) >> scalebits); in copy_image_block_CrCb()
437 *d++ = CLAMP((*c2) >> scalebits); in copy_image_block_CrCb()
442 *d++ = CLAMP((*c1) >> scalebits); in copy_image_block_CrCb()
[all …]
/openbmc/linux/drivers/net/can/spi/mcp251xfd/
H A 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()
/openbmc/linux/drivers/thermal/
H A Dgov_step_wise.c48 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()
/openbmc/linux/drivers/media/pci/solo6x10/
H A Dsolo6x10-offsets.h60 clamp(__solo->sdram_size - SOLO_MP4E_EXT_ADDR(__solo) - \
68 clamp(__solo->sdram_size - SOLO_JPEG_EXT_ADDR(__solo), \
/openbmc/linux/drivers/platform/x86/
H A Dintel_ips.c24 * we scale back the clamp. Aside from trigger events (when we're critically
29 * are updated by the ME firmware. The ME should also take the clamp values
355 * ips_cpu_raise - raise CPU power clamp
358 * Raise the CPU power clamp by %IPS_CPU_STEP, in accordance with TDP for
377 /* Clamp to SKU TDP limit */ in ips_cpu_raise()
393 * ips_cpu_lower - lower CPU power clamp
396 * Lower CPU power clamp b %IPS_CPU_STEP if possible.
412 /* Clamp to SKU TDP limit */ in ips_cpu_lower()
522 * ips_gpu_raise - raise GPU power clamp
540 * ips_gpu_lower - lower GPU power clamp
[all …]
/openbmc/linux/fs/btrfs/
H A Dspace-info.h115 int clamp; /* Used to scale our threshold for preemptive member
116 flushing. The value is >> clamp, so turns
117 out to be a 2^clamp divisor. */
/openbmc/linux/drivers/iio/chemical/
H A Dsgp40.c173 ticks16 = (u16)clamp(ticks, 0u, 65535u); /* clamp between 0 .. 100 %rH */ in sgp40_measure_resistance_raw()
178 ticks16 = (u16)clamp(ticks, 0u, 65535u); /* clamp between -45 .. +130 °C */ in sgp40_measure_resistance_raw()
/openbmc/hiomapd/vpnor/
H A Dpartition.hpp56 /** @brief Clamp the access length to the maximum supported by the ToC */
57 size_t clamp(size_t len);
/openbmc/linux/drivers/media/platform/renesas/vsp1/
H 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()
353 * To support overlapping partition windows we clamp at units of 256 and in uds_max_width()

12345678910>>...26