| /kernel/linux/linux-6.6/drivers/macintosh/ |
| 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() 132 MODULE_DESCRIPTION("CPU frequency clamp for PowerMacs thermal control");
|
| /kernel/linux/linux-5.10/drivers/macintosh/ |
| D | windfarm_cpufreq_clamp.c | 68 struct wf_control *clamp; in wf_cpufreq_clamp_init() local 99 clamp = kmalloc(sizeof(struct wf_control), GFP_KERNEL); in wf_cpufreq_clamp_init() 100 if (clamp == NULL) { in wf_cpufreq_clamp_init() 105 clamp->ops = &clamp_ops; in wf_cpufreq_clamp_init() 106 clamp->name = "cpufreq-clamp"; in wf_cpufreq_clamp_init() 107 ret = wf_register_control(clamp); in wf_cpufreq_clamp_init() 111 clamp_control = clamp; in wf_cpufreq_clamp_init() 115 kfree(clamp); in wf_cpufreq_clamp_init() 134 MODULE_DESCRIPTION("CPU frequency clamp for PowerMacs thermal control");
|
| /kernel/linux/linux-5.10/include/media/davinci/ |
| D | isif.h | 93 /* Horizontal clamp disabled. Only vertical clamp value is subtracted */ 96 * Horizontal clamp value is calculated and subtracted from image data 97 * along with vertical clamp value 101 * Horizontal clamp value calculated from previous image is subtracted 102 * from image data along with vertical clamp value. 105 /* horizontal clamp mode. One of the values above */ 117 /* Select most left or right window for clamp val calculation */ 140 * Black Clamp parameters 143 /* Reset value used is the clamp value calculated */ 150 * Reset value selector for vertical clamp calculation. Use one of [all …]
|
| /kernel/linux/linux-5.10/samples/bpf/ |
| D | tcp_clamp_kern.c | 7 * 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()
|
| /kernel/linux/linux-6.6/samples/bpf/ |
| D | tcp_clamp_kern.c | 7 * 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()
|
| /kernel/linux/linux-6.6/Documentation/scheduler/ |
| 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 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 …]
|
| /kernel/linux/linux-5.10/drivers/hid/ |
| D | hid-lgff.c | 65 #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()
|
| /kernel/linux/linux-6.6/drivers/hid/ |
| D | hid-lgff.c | 65 #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()
|
| /kernel/linux/linux-6.6/arch/arm/mach-qcom/ |
| D | platsmp.c | 33 #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()
|
| /kernel/linux/linux-6.6/drivers/clk/starfive/ |
| 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() 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()
|
| /kernel/linux/linux-6.6/drivers/media/platform/ti/omap3isp/ |
| D | ispccdc.h | 109 * @obclamp: Optical-black clamp enabled (1) or disabled (0) 112 * @clamp: Optical-black or digital clamp configuration 142 struct omap3isp_ccdc_bclamp clamp; member
|
| /kernel/linux/linux-5.10/drivers/media/platform/omap3isp/ |
| D | ispccdc.h | 109 * @obclamp: Optical-black clamp enabled (1) or disabled (0) 112 * @clamp: Optical-black or digital clamp configuration 142 struct omap3isp_ccdc_bclamp clamp; member
|
| /kernel/linux/linux-6.6/include/linux/ |
| D | minmax.h | 11 * 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.
|
| /kernel/linux/linux-6.6/drivers/staging/media/omap4iss/ |
| D | iss_ipipeif.h | 42 * @obclamp: Optical-black clamp enabled (1) or disabled (0) 45 * @clamp: Optical-black or digital clamp configuration
|
| /kernel/linux/linux-5.10/drivers/staging/media/omap4iss/ |
| D | iss_ipipeif.h | 42 * @obclamp: Optical-black clamp enabled (1) or disabled (0) 45 * @clamp: Optical-black or digital clamp configuration
|
| /kernel/linux/linux-5.10/arch/arm/mach-qcom/ |
| D | platsmp.c | 32 #define CLAMP BIT(0) macro 119 val = PLL_CLAMP | L2DT_SLP | CLAMP; in kpssv1_release_secondary() 131 val &= ~CLAMP; in kpssv1_release_secondary() 222 reg_val = COREPOR_RST | CLAMP; in kpssv2_release_secondary() 227 reg_val &= ~CLAMP; in kpssv2_release_secondary()
|
| /kernel/linux/linux-5.10/include/linux/ |
| D | minmax.h | 8 * min()/max()/clamp() macros must accomplish three things: 81 * clamp - return a value clamped to a given range with strict typechecking 89 #define clamp(val, lo, hi) min((typeof(val))max(val, lo), hi) macro 95 * Or not use min/max/clamp at all, of course.
|
| /kernel/linux/linux-6.6/drivers/staging/media/atomisp/pci/ |
| 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()
|
| /kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/ |
| D | sh_css_param_shading.c | 132 src_y0 = clamp(src_y0, 0, (int)table_height - 1); in crop_and_interpolate() 133 src_y1 = clamp(src_y1, 0, (int)table_height - 1); in crop_and_interpolate() 134 ty = min(clamp(ty, 0, (int)sensor_height - 1), in crop_and_interpolate() 165 src_x0 = clamp(src_x0, 0, (int)table_width - 1); in crop_and_interpolate() 166 src_x1 = clamp(src_x1, 0, (int)table_width - 1); in crop_and_interpolate() 167 tx = min(clamp(tx, 0, (int)sensor_width - 1), in crop_and_interpolate()
|
| /kernel/linux/linux-5.10/drivers/media/usb/pwc/ |
| D | pwc-dec23.c | 278 #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 …]
|
| /kernel/linux/linux-6.6/drivers/media/usb/pwc/ |
| D | pwc-dec23.c | 278 #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 …]
|
| /kernel/linux/linux-6.6/drivers/net/can/spi/mcp251xfd/ |
| D | mcp251xfd-ram.c | 18 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()
|
| /kernel/linux/linux-6.6/drivers/thermal/ |
| 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()
|
| /kernel/linux/linux-5.10/drivers/platform/x86/ |
| D | intel_ips.c | 24 * 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 …]
|
| /kernel/linux/linux-6.6/drivers/platform/x86/ |
| D | intel_ips.c | 24 * 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 …]
|