/linux-master/fs/nfsd/ |
H A D | nfs3proc.c | 566 buf->buflen = clamp(count, (u32)(XDR_UNIT * 2), sendbuf);
|
/linux-master/drivers/iio/proximity/ |
H A D | sx9324.c | 988 raw = clamp(ilog2(pos), 3, 11) - (pos >= 32 ? 4 : 3);
|
H A D | sx9310.c | 866 pos = clamp(ilog2(pos), 3, 11) - (pos >= 32 ? 4 : 3);
|
/linux-master/block/ |
H A D | blk-iocost.c | 983 vcomp = clamp(vcomp, vcomp_min, vcomp_max); 990 ioc->vtime_err = clamp(ioc->vtime_err, -vperiod, vperiod); 1010 * If vrate is out of bounds, apply clamp gradually as the 1030 vrate = clamp(DIV64_U64_ROUND_UP(vrate * adj_pct, 100), 2430 ioc->busy_level = clamp(ioc->busy_level, -1000, 1000);
|
/linux-master/sound/pci/emu10k1/ |
H A D | emuproc.c | 370 buf, &spaces[nspaces - clamp(65 - len, 0, nspaces)],
|
/linux-master/kernel/rcu/ |
H A D | tree_stall.h | 43 till_stall_check = clamp(msecs_to_jiffies(cpu_stall_timeout), 2UL, 300UL * HZ);
|
/linux-master/drivers/spi/ |
H A D | spi-dw-core.c | 680 cfg.freq = clamp(mem->spi->max_speed_hz, 0U, dws->max_mem_freq);
|
/linux-master/drivers/media/i2c/ |
H A D | ov4689.c | 628 *result = clamp(range->offset + (logical_gain) / range->divider,
|
H A D | tvp5150.c | 1122 rect->left = clamp(rect->left, 0, TVP5150_MAX_CROP_LEFT); 1123 rect->top = clamp(rect->top, 0, TVP5150_MAX_CROP_TOP);
|
/linux-master/drivers/media/dvb-frontends/ |
H A D | si2168.c | 184 utmp = clamp(8 - cmd.args[1], 0, 8);
|
H A D | tda10071.c | 519 uitmp = clamp(uitmp, 181U, 236U); /* -75dBm - -20dBm */
|
/linux-master/fs/bcachefs/ |
H A D | fs-io-pagecache.c | 700 ret = clamp(folio_pos(folio) + offset,
|
H A D | sysfs.c | 816 clamp(atomic_read(&ca->congested), 0, CONGESTED_MAX)
|
/linux-master/drivers/staging/rtl8712/ |
H A D | rtl8712_recv.c | 661 s8 ret_val = clamp(-value, 0, 33) * 3;
|
/linux-master/include/linux/ |
H A D | usb.h | 1747 interval = clamp(interval, 1, 16);
|
/linux-master/drivers/net/wireless/ath/ath5k/ |
H A D | phy.c | 1814 i_coff = clamp(i_coff, -32, 31); /* signed 6 bit */ 1820 q_coff = clamp(q_coff, -16, 15); /* signed 5 bit */
|
/linux-master/drivers/media/platform/st/stm32/ |
H A D | stm32-dcmi.c | 979 pix->width = clamp(pix->width, MIN_WIDTH, MAX_WIDTH); 980 pix->height = clamp(pix->height, MIN_HEIGHT, MAX_HEIGHT);
|
/linux-master/net/netfilter/ |
H A D | nf_conntrack_core.c | 86 /* clamp timeouts to this value (TCP unacked) */ 1527 expires = clamp(nf_ct_expires(tmp), GC_SCAN_INTERVAL_MIN, GC_SCAN_INTERVAL_CLAMP); 1579 next_run = clamp(next_run, GC_SCAN_INTERVAL_MIN, GC_SCAN_INTERVAL_MAX);
|
/linux-master/drivers/gpu/drm/display/ |
H A D | drm_dp_helper.c | 1896 dp_aux_i2c_transfer_size = clamp(dp_aux_i2c_transfer_size, 1, DP_AUX_MAX_PAYLOAD_BYTES); 3862 f = clamp(DIV_ROUND_CLOSEST(fxp, 1 << pn), 1, 255);
|
/linux-master/drivers/media/usb/uvc/ |
H A D | uvc_ctrl.c | 1927 xctrl->value = clamp(xctrl->value, min, max); 1945 xctrl->value = clamp(xctrl->value, 0, 1);
|
/linux-master/drivers/clk/qcom/ |
H A D | clk-alpha-pll.c | 788 return clamp(rate, min_freq, max_freq); 2422 return clamp(rate, min_freq, max_freq);
|
/linux-master/lib/ |
H A D | vsprintf.c | 2713 spec->field_width = clamp(width, -FIELD_WIDTH_MAX, FIELD_WIDTH_MAX); 2722 spec->precision = clamp(prec, 0, PRECISION_MAX);
|
/linux-master/drivers/media/platform/ti/omap3isp/ |
H A D | ispvideo.c | 166 bpl = clamp(bpl, min_bpl, video->bpl_max);
|
/linux-master/drivers/staging/media/omap4iss/ |
H A D | iss_video.c | 143 bpl = clamp(bpl, min_bpl, video->bpl_max);
|
/linux-master/drivers/gpu/drm/renesas/rcar-du/ |
H A D | rcar_du_crtc.c | 191 div = clamp(DIV_ROUND_CLOSEST(rate, target), 1UL, 64UL) - 1;
|