Searched refs:clamp (Results 226 - 250 of 321) sorted by relevance

1234567891011>>

/linux-master/fs/nfsd/
H A Dnfs3proc.c566 buf->buflen = clamp(count, (u32)(XDR_UNIT * 2), sendbuf);
/linux-master/drivers/iio/proximity/
H A Dsx9324.c988 raw = clamp(ilog2(pos), 3, 11) - (pos >= 32 ? 4 : 3);
H A Dsx9310.c866 pos = clamp(ilog2(pos), 3, 11) - (pos >= 32 ? 4 : 3);
/linux-master/block/
H A Dblk-iocost.c983 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 Demuproc.c370 buf, &spaces[nspaces - clamp(65 - len, 0, nspaces)],
/linux-master/kernel/rcu/
H A Dtree_stall.h43 till_stall_check = clamp(msecs_to_jiffies(cpu_stall_timeout), 2UL, 300UL * HZ);
/linux-master/drivers/spi/
H A Dspi-dw-core.c680 cfg.freq = clamp(mem->spi->max_speed_hz, 0U, dws->max_mem_freq);
/linux-master/drivers/media/i2c/
H A Dov4689.c628 *result = clamp(range->offset + (logical_gain) / range->divider,
H A Dtvp5150.c1122 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 Dsi2168.c184 utmp = clamp(8 - cmd.args[1], 0, 8);
H A Dtda10071.c519 uitmp = clamp(uitmp, 181U, 236U); /* -75dBm - -20dBm */
/linux-master/fs/bcachefs/
H A Dfs-io-pagecache.c700 ret = clamp(folio_pos(folio) + offset,
H A Dsysfs.c816 clamp(atomic_read(&ca->congested), 0, CONGESTED_MAX)
/linux-master/drivers/staging/rtl8712/
H A Drtl8712_recv.c661 s8 ret_val = clamp(-value, 0, 33) * 3;
/linux-master/include/linux/
H A Dusb.h1747 interval = clamp(interval, 1, 16);
/linux-master/drivers/net/wireless/ath/ath5k/
H A Dphy.c1814 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 Dstm32-dcmi.c979 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 Dnf_conntrack_core.c86 /* 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 Ddrm_dp_helper.c1896 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 Duvc_ctrl.c1927 xctrl->value = clamp(xctrl->value, min, max);
1945 xctrl->value = clamp(xctrl->value, 0, 1);
/linux-master/drivers/clk/qcom/
H A Dclk-alpha-pll.c788 return clamp(rate, min_freq, max_freq);
2422 return clamp(rate, min_freq, max_freq);
/linux-master/lib/
H A Dvsprintf.c2713 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 Dispvideo.c166 bpl = clamp(bpl, min_bpl, video->bpl_max);
/linux-master/drivers/staging/media/omap4iss/
H A Diss_video.c143 bpl = clamp(bpl, min_bpl, video->bpl_max);
/linux-master/drivers/gpu/drm/renesas/rcar-du/
H A Drcar_du_crtc.c191 div = clamp(DIV_ROUND_CLOSEST(rate, target), 1UL, 64UL) - 1;

Completed in 326 milliseconds

1234567891011>>