/linux-master/drivers/iio/frequency/ |
H A D | adf4371.c | 306 cp_bleed = clamp(cp_bleed, 1U, 255U);
|
/linux-master/drivers/s390/net/ |
H A D | qeth_core_sys.c | 265 cnt = clamp(cnt, QETH_IN_BUF_COUNT_MIN, QETH_IN_BUF_COUNT_MAX);
|
/linux-master/drivers/spi/ |
H A D | spi-ep93xx.c | 123 rate = clamp(rate, host->min_speed_hz, host->max_speed_hz);
|
H A D | spi-ingenic.c | 108 cdiv = clamp(cdiv, 1u, 0x100u) - 1;
|
H A D | spi-coldfire-qspi.c | 134 return clamp((MCFQSPI_BUSCLK + speed_hz - 1) / speed_hz, 2u, 255u);
|
/linux-master/drivers/mmc/host/ |
H A D | litex_mmc.c | 441 div = clamp(div, 2U, 256U);
|
/linux-master/drivers/rtc/ |
H A D | rtc-armada38x.c | 422 * need to clamp the input. This equates to -484270 .. 488558. 426 offset = clamp(offset, -484270L, 488558L);
|
/linux-master/drivers/media/dvb-frontends/ |
H A D | ts2020.c | 275 f3db = clamp(f3db, 7000U, 40000U);
|
/linux-master/drivers/leds/rgb/ |
H A D | leds-ktd202x.c | 301 num_steps = clamp(num_steps, 0, KTD202X_FLASH_PERIOD_MAX_STEPS);
|
/linux-master/drivers/media/i2c/ |
H A D | mt9m114.c | 1229 format->width = crop->width / clamp(hscale, 1U, 2U); 1230 format->height = crop->height / clamp(vscale, 1U, 2U); 1804 format->width = clamp(ALIGN(fmt->format.width, 8), 1807 format->height = clamp(ALIGN(fmt->format.height, 8),
|
/linux-master/drivers/media/platform/mediatek/jpeg/ |
H A D | mtk_jpeg_core.c | 272 pix_mp->height = clamp(pix_mp->height, MTK_JPEG_MIN_HEIGHT, 274 pix_mp->width = clamp(pix_mp->width, MTK_JPEG_MIN_WIDTH, 286 pix_mp->height = clamp(round_up(pix_mp->height, fmt->v_align), 288 pix_mp->width = clamp(round_up(pix_mp->width, fmt->h_align),
|
/linux-master/drivers/clk/imx/ |
H A D | clk-pll14xx.c | 191 mdiv = clamp(mdiv, 64, 1023);
|
/linux-master/drivers/tty/ |
H A D | n_hdlc.c | 803 maxframe = clamp(maxframe, 4096, MAX_HDLC_FRAME_SIZE);
|
/linux-master/drivers/iio/proximity/ |
H A D | sx9360.c | 733 raw = clamp(ilog2(pos), 3, 11) - (pos >= 32 ? 4 : 3);
|
/linux-master/net/ipv4/ |
H A D | tcp_timer.c | 647 icsk->icsk_rto = clamp(__tcp_set_rto(tp),
|
/linux-master/drivers/thermal/ |
H A D | gov_power_allocator.c | 292 power_range = clamp(power_range, (s64)0, (s64)max_allocatable_power);
|
/linux-master/drivers/gpu/drm/i915/gt/ |
H A D | intel_engine_cs.c | 533 u64 clamp = intel_clamp_##field(engine, engine->props.field); \ 534 if (clamp != engine->props.field) { \ 537 #field, clamp); \ 538 engine->props.field = clamp; \
|
/linux-master/drivers/media/platform/chips-media/wave5/ |
H A D | wave5-vpu-dec.c | 593 width = clamp(f->fmt.pix_mp.width, vpu_fmt->min_width, vpu_fmt->max_width); 594 height = clamp(f->fmt.pix_mp.height, vpu_fmt->min_height, vpu_fmt->max_height); 731 int width = clamp(f->fmt.pix_mp.width, vpu_fmt->min_width, vpu_fmt->max_width); 732 int height = clamp(f->fmt.pix_mp.height, vpu_fmt->min_height, vpu_fmt->max_height);
|
H A D | wave5-vpu-enc.c | 405 int width = clamp(f->fmt.pix_mp.width, vpu_fmt->min_width, vpu_fmt->max_width); 406 int height = clamp(f->fmt.pix_mp.height, vpu_fmt->min_height, vpu_fmt->max_height); 513 int width = clamp(f->fmt.pix_mp.width, vpu_fmt->min_width, vpu_fmt->max_width); 514 int height = clamp(f->fmt.pix_mp.height, vpu_fmt->min_height, vpu_fmt->max_height);
|
/linux-master/drivers/media/pci/intel/ipu6/ |
H A D | ipu6-fw-isys.c | 238 num_in_message_queues = clamp(num_streams, 1U, max_streams);
|
H A D | ipu6-isys-csi2.c | 421 sel->r.height = clamp(sel->r.height & ~1, IPU6_ISYS_MIN_HEIGHT,
|
/linux-master/drivers/gpu/drm/bridge/ |
H A D | ti-sn65dsi83.c | 306 return DIV_ROUND_UP(clamp((unsigned int)mode->clock *
|
/linux-master/fs/notify/inotify/ |
H A D | inotify_user.c | 843 watches_max = clamp(watches_max, 8192UL, 1048576UL);
|
/linux-master/drivers/i2c/busses/ |
H A D | i2c-ocores.c | 420 prescale = clamp(prescale, 0, 0xffff);
|
/linux-master/include/trace/events/ |
H A D | btrfs.h | 2186 __field( int, clamp ) 2205 __entry->clamp = sinfo->clamp; 2218 "reclaim_size=%llu clamp=%d global_reserved=%llu " 2226 __entry->reclaim_size, __entry->clamp,
|