/linux-master/drivers/media/i2c/ |
H A D | imx274.c | 1567 reg_val = clamp(reg_val, (u8)0, (u8)3);
|
/linux-master/fs/ |
H A D | inode.c | 2468 t.tv_sec = clamp(t.tv_sec, sb->s_time_min, sb->s_time_max);
|
/linux-master/drivers/usb/serial/ |
H A D | cp210x.c | 1066 baud = clamp(tty->termios.c_ospeed, priv->min_speed, priv->max_speed);
|
/linux-master/drivers/video/fbdev/ |
H A D | s3fb.c | 912 value = clamp((htotal + hsstart + 1) / 2 + 2, hsstart + 4, htotal + 1);
|
/linux-master/drivers/gpu/drm/etnaviv/ |
H A D | etnaviv_gpu.c | 502 gpu->fe_waitcycles = clamp(gpu->base_rate_core >> (15 - gpu->freq_scale),
|
/linux-master/drivers/spi/ |
H A D | spi-stm32.c | 578 packet = clamp(xfer_len, 1U, spi->fifo_size / 2);
|
/linux-master/kernel/rcu/ |
H A D | tasks.h | 673 rtsimc = clamp(rcu_task_stall_info_mult, 1, 10);
|
/linux-master/net/ipv4/ |
H A D | ip_tunnel.c | 1253 mtu = clamp(dev->mtu, (unsigned int)ETH_MIN_MTU, max);
|
/linux-master/security/apparmor/ |
H A D | lsm.c | 1785 aa_g_rawdata_compression_level = clamp(aa_g_rawdata_compression_level,
|
/linux-master/sound/soc/codecs/ |
H A D | pcm6240.c | 1186 nr_profile = clamp(nr_profile, 0, max);
|
/linux-master/mm/ |
H A D | page-writeback.c | 945 return clamp(pos_ratio, 0LL, 2LL << RATELIMIT_CALC_SHIFT);
|
/linux-master/drivers/usb/typec/ucsi/ |
H A D | ucsi.c | 47 buf_size = clamp(buf_size, 0, 16);
|
/linux-master/drivers/media/pci/bt8xx/ |
H A D | bttv-driver.c | 1728 /* 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 D | clk.c | 1594 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 D | intel_color.c | 589 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 D | fair.c | 699 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 D | core.c | 1355 * 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 D | ipu-image-convert.c | 1954 x = clamp(x, (min + ~mask) & mask, max & mask);
|
/linux-master/drivers/media/platform/aspeed/ |
H A D | aspeed-video.c | 1212 u8 jpeg_hq_quality = clamp((int)video->jpeg_hq_quality - 1, 0,
|
/linux-master/drivers/hid/ |
H A D | hid-input.c | 1561 * When it's not, clamp the value to match Microsoft's input 1577 value = clamp(value,
|
/linux-master/drivers/accel/habanalabs/common/ |
H A D | device.c | 1192 curr_power = clamp(curr_power, dc_power, max_power);
|
/linux-master/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_debugfs.c | 1546 bytes = clamp(bytes, (u16)1024, (u16)I40E_MAX_AQ_BUF_SIZE);
|
/linux-master/fs/gfs2/ |
H A D | rgrp.c | 1586 extlen = clamp(extlen, (u32)RGRP_RSRV_MINBLKS, free_blocks);
|
/linux-master/drivers/staging/media/ipu3/ |
H A D | ipu3-css.c | 983 clamp(max(fls(css_pipe->rect[IPU3_CSS_RECT_BDS].width /
|
/linux-master/drivers/media/usb/uvc/ |
H A D | uvc_driver.c | 455 clamp(frame->dwDefaultFrameInterval,
|