/linux-master/samples/bpf/ |
H A D | tcp_clamp_kern.c | 7 * Sample BPF program to set send and receive buffers to 150KB, sndcwnd clamp 30 int clamp = 100; local 71 &clamp, sizeof(clamp)); 77 &clamp, sizeof(clamp));
|
/linux-master/drivers/macintosh/ |
H A D | windfarm_cpufreq_clamp.c | 66 struct wf_control *clamp; local 97 clamp = kmalloc(sizeof(struct wf_control), GFP_KERNEL); 98 if (clamp == NULL) { 103 clamp->ops = &clamp_ops; 104 clamp->name = "cpufreq-clamp"; 105 ret = wf_register_control(clamp); 109 clamp_control = clamp; 113 kfree(clamp); 132 MODULE_DESCRIPTION("CPU frequency clamp fo [all...] |
/linux-master/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), \
|
/linux-master/drivers/thermal/ |
H A D | gov_step_wise.c | 48 next_target = clamp((cur_state + 1), instance->lower, instance->upper); 58 next_target = clamp((cur_state + 1), instance->lower, instance->upper); 64 next_target = clamp((cur_state - 1), instance->lower, instance->upper);
|
H A D | loongson2_thermal.c | 45 low = clamp(-40, low, high); 46 high = clamp(125, low, high);
|
H A D | sprd_thermal.c | 181 clamp(rawdata, (u32)SPRD_THM_RAW_DATA_LOW, (u32)SPRD_THM_RAW_DATA_HIGH); 195 clamp(temp, (int)SPRD_THM_TEMP_LOW, (int)SPRD_THM_TEMP_HIGH); 204 return clamp(val, val, (u32)(SPRD_THM_RAW_DATA_HIGH - 1));
|
/linux-master/drivers/net/can/spi/mcp251xfd/ |
H A D | mcp251xfd-ram.c | 18 return clamp(val, obj->min, max); 111 num_rx_coalesce = clamp(ec->rx_max_coalesced_frames_irq, 134 num_tx_coalesce = clamp(ec->tx_max_coalesced_frames_irq,
|
/linux-master/drivers/staging/media/atomisp/pci/ |
H A D | sh_css_param_shading.c | 135 src_y0 = clamp(src_y0, 0, (int)table_height - 1); 136 src_y1 = clamp(src_y1, 0, (int)table_height - 1); 137 ty = min(clamp(ty, 0, (int)sensor_height - 1), 168 src_x0 = clamp(src_x0, 0, (int)table_width - 1); 169 src_x1 = clamp(src_x1, 0, (int)table_width - 1); 170 tx = min(clamp(tx, 0, (int)sensor_width - 1),
|
/linux-master/drivers/media/platform/verisilicon/ |
H A D | rockchip_av1_filmgrain.c | 195 static inline s32 clamp(s32 value, s32 low, s32 high) function 281 clamp((*luma_grain_block)[i][j] + 389 clamp((*cb_grain_block)[i][j] + 395 clamp((*cr_grain_block)[i][j] +
|
/linux-master/drivers/clk/starfive/ |
H A D | clk-starfive-jh71x0.c | 81 unsigned long rate = clamp(req->rate, req->min_rate, req->max_rate); 110 unsigned long div = clamp(DIV_ROUND_CLOSEST(parent_rate, rate), 132 unsigned long rate = clamp(req->rate, req->min_rate, req->max_rate); 133 unsigned long div100 = clamp(DIV_ROUND_CLOSEST(parent100, rate), 137 /* clamp the result as in jh71x0_clk_determine_rate() above */ 152 unsigned long div100 = clamp(DIV_ROUND_CLOSEST(100 * parent_rate, rate),
|
/linux-master/mm/ |
H A D | memtest.c | 80 this_start = clamp(this_start, start, end); 81 this_end = clamp(this_end, start, end);
|
/linux-master/drivers/staging/media/atomisp/include/media/ |
H A D | lm3554.h | 94 clamp(val, LM3554_MIN_PERCENT, LM3554_MAX_PERCENT)
|
/linux-master/drivers/media/platform/ti/omap3isp/ |
H A 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 in struct:isp_ccdc_device
|
/linux-master/drivers/hid/ |
H A D | hid-elecom.c | 50 nbuttons = clamp(nbuttons, 0, MOUSE_BUTTONS_MAX);
|
/linux-master/drivers/media/platform/renesas/vsp1/ |
H A D | vsp1_uds.c | 180 fmt->width = clamp(fmt->width, UDS_MIN_SIZE, UDS_MAX_SIZE); 181 fmt->height = clamp(fmt->height, UDS_MIN_SIZE, UDS_MAX_SIZE); 191 fmt->width = clamp(fmt->width, minimum, maximum); 193 fmt->height = clamp(fmt->height, minimum, maximum); 349 * To support overlapping partition windows we clamp at units of 256 and
|
/linux-master/drivers/clk/ |
H A D | clk-plldig.c | 132 div = clamp(div, 1UL, MAX_RFDPHI1); 143 req->rate = clamp(req->rate, PHI1_MIN_FREQ, PHI1_MAX_FREQ); 157 rate = clamp(rate, PHI1_MIN_FREQ, PHI1_MAX_FREQ);
|
/linux-master/drivers/power/supply/ |
H A D | bq256xx_charger.c | 525 ichg = clamp(ichg, BQ256XX_ICHG_MIN_uA, ichg_max); 538 ichg = clamp(ichg, BQ25618_ICHG_MIN_uA, ichg_max); 638 vbatreg = clamp(vbatreg, BQ25618_VBATREG_MIN_uV, vbatreg_max); 660 vbatreg = clamp(vbatreg, BQ25611D_VBATREG_MIN_uV, vbatreg_max); 681 vbatreg = clamp(vbatreg, BQ2560X_VBATREG_MIN_uV, vbatreg_max); 696 vbatreg = clamp(vbatreg, BQ25601D_VBATREG_MIN_uV, vbatreg_max); 734 iprechg = clamp(iprechg, BQ256XX_IPRECHG_MIN_uA, 766 iprechg = clamp(iprechg, BQ25618_IPRECHG_MIN_uA, 797 iterm = clamp(iterm, BQ256XX_ITERM_MIN_uA, BQ256XX_ITERM_MAX_uA); 827 iterm = clamp(iter [all...] |
/linux-master/drivers/clk/renesas/ |
H A D | rcar-gen3-cpg.c | 79 mult = clamp(mult, min_mult, max_mult); 93 mult = clamp(mult, 1U, 128U); 214 mult = clamp(mult, min_mult, max_mult); 229 mult = clamp(mult, 1U, 32U);
|
H A D | rcar-gen4-cpg.c | 94 mult = clamp(mult, min_mult, max_mult); 108 mult = clamp(mult, 1U, 256U); 235 mult = clamp(mult, min_mult, max_mult); 250 mult = clamp(mult, 1U, 32U);
|
/linux-master/drivers/crypto/intel/qat/qat_common/ |
H A D | adf_clock.c | 127 *frequency = clamp(freq, min, max);
|
/linux-master/tools/include/linux/ |
H A D | kernel.h | 59 #define clamp(val, lo, hi) min((typeof(val))max(val, lo), hi) macro
|
/linux-master/drivers/acpi/pmic/ |
H A D | intel_pmic_xpower.c | 307 * To avoid these errors clamp the raw value to be inside the LPAT. 310 raw = clamp(raw, first.raw, last.raw); 312 raw = clamp(raw, last.raw, first.raw);
|
/linux-master/sound/usb/line6/ |
H A D | playback.c | 38 pv = clamp(val, -0x8000, 0x7fff); 53 val = clamp(val, -0x800000, 0x7fffff); 125 pov = clamp(val, -0x8000, 0x7fff);
|
/linux-master/drivers/thermal/intel/ |
H A D | intel_powerclamp.c | 97 duration = clamp(new_duration, 6ul, 25ul) * 1000; 295 window_size = clamp(new_window_size, 2ul, 10ul); 675 new_target_ratio = clamp(new_target_ratio, 0UL,
|
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ |
H A D | nv30.c | 85 x |= (0x80 | clamp(m, 0, 0x1f)) << (8 * j);
|