Searched refs:clamp (Results 276 - 300 of 321) sorted by relevance

<<111213

/linux-master/drivers/media/i2c/
H A Dimx274.c1567 reg_val = clamp(reg_val, (u8)0, (u8)3);
/linux-master/fs/
H A Dinode.c2468 t.tv_sec = clamp(t.tv_sec, sb->s_time_min, sb->s_time_max);
/linux-master/drivers/usb/serial/
H A Dcp210x.c1066 baud = clamp(tty->termios.c_ospeed, priv->min_speed, priv->max_speed);
/linux-master/drivers/video/fbdev/
H A Ds3fb.c912 value = clamp((htotal + hsstart + 1) / 2 + 2, hsstart + 4, htotal + 1);
/linux-master/drivers/gpu/drm/etnaviv/
H A Detnaviv_gpu.c502 gpu->fe_waitcycles = clamp(gpu->base_rate_core >> (15 - gpu->freq_scale),
/linux-master/drivers/spi/
H A Dspi-stm32.c578 packet = clamp(xfer_len, 1U, spi->fifo_size / 2);
/linux-master/kernel/rcu/
H A Dtasks.h673 rtsimc = clamp(rcu_task_stall_info_mult, 1, 10);
/linux-master/net/ipv4/
H A Dip_tunnel.c1253 mtu = clamp(dev->mtu, (unsigned int)ETH_MIN_MTU, max);
/linux-master/security/apparmor/
H A Dlsm.c1785 aa_g_rawdata_compression_level = clamp(aa_g_rawdata_compression_level,
/linux-master/sound/soc/codecs/
H A Dpcm6240.c1186 nr_profile = clamp(nr_profile, 0, max);
/linux-master/mm/
H A Dpage-writeback.c945 return clamp(pos_ratio, 0LL, 2LL << RATELIMIT_CALC_SHIFT);
/linux-master/drivers/usb/typec/ucsi/
H A Ducsi.c47 buf_size = clamp(buf_size, 0, 16);
/linux-master/drivers/media/pci/bt8xx/
H A Dbttv-driver.c1728 /* s_frequency may clamp the frequency, so get the actual
1909 *width = clamp(*width, min_width, max_width);
1910 *height = clamp(*height, min_height, max_height);
/linux-master/drivers/clk/
H A Dclk.c1594 req->rate = clamp(req->rate, req->min_rate, req->max_rate);
2723 rate = clamp(rate, min, max);
/linux-master/drivers/gpu/drm/i915/display/
H A Dintel_color.c589 c = clamp(c, -(s64)BIT(int_bits + frac_bits - 1),
832 mantissa = clamp(b - a, 0, 0x7f);
911 /* PIPEGCMAX is 11.6, clamp to 10.6 */
1452 /* Program the max register to clamp values > 1.0. */
1463 /* Program the max register to clamp values > 1.0. */
1540 /* PRE_CSC_GAMC_DATA is 3.16, clamp to 0.16 */
1551 /* PRE_CSC_GAMC_DATA is 3.24, clamp to 0.16 */
/linux-master/kernel/sched/
H A Dfair.c699 return clamp(vlag, -limit, limit);
2674 p->numa_scan_period = clamp(p->numa_scan_period + diff,
3608 * Signed add and clamp on underflow.
3628 * Unsigned subtract and clamp on underflow.
3645 * Remove and clamp on negative, from a local variable.
8073 * the clamp() part. I.e.: apply max aggregation
9620 interval = clamp(interval, 1UL, max_load_balance_interval);
11600 interval = clamp(interval, 1UL, max_load_balance_interval);
13056 shares = clamp(shares, scale_load(MIN_SHARES), scale_load(MAX_SHARES));
H A Dcore.c1355 * Serializes updates of utilization clamp values
1357 * The (slow-path) user-space triggers utilization clamp value updates which
1444 * idle (which drops the max-clamp) by retaining the last known
1445 * max-clamp.
1458 /* Reset max-clamp retention only on idle exit */
1482 /* No tasks -- default clamp values */
1533 value = clamp(value, tg_min, tg_max);
1541 * The effective clamp bucket index of a task depends on, by increasing
1543 * - the task specific clamp value, when explicitly requested from userspace
1544 * - the task group effective clamp valu
[all...]
/linux-master/drivers/gpu/ipu-v3/
H A Dipu-image-convert.c1954 x = clamp(x, (min + ~mask) & mask, max & mask);
/linux-master/drivers/media/platform/aspeed/
H A Daspeed-video.c1212 u8 jpeg_hq_quality = clamp((int)video->jpeg_hq_quality - 1, 0,
/linux-master/drivers/hid/
H A Dhid-input.c1561 * When it's not, clamp the value to match Microsoft's input
1577 value = clamp(value,
/linux-master/drivers/accel/habanalabs/common/
H A Ddevice.c1192 curr_power = clamp(curr_power, dc_power, max_power);
/linux-master/drivers/net/ethernet/intel/i40e/
H A Di40e_debugfs.c1546 bytes = clamp(bytes, (u16)1024, (u16)I40E_MAX_AQ_BUF_SIZE);
/linux-master/fs/gfs2/
H A Drgrp.c1586 extlen = clamp(extlen, (u32)RGRP_RSRV_MINBLKS, free_blocks);
/linux-master/drivers/staging/media/ipu3/
H A Dipu3-css.c983 clamp(max(fls(css_pipe->rect[IPU3_CSS_RECT_BDS].width /
/linux-master/drivers/media/usb/uvc/
H A Duvc_driver.c455 clamp(frame->dwDefaultFrameInterval,

Completed in 421 milliseconds

<<111213