Searched refs:clamp (Results 151 - 175 of 321) sorted by relevance

1234567891011>>

/linux-master/drivers/iio/frequency/
H A Dadf4371.c306 cp_bleed = clamp(cp_bleed, 1U, 255U);
/linux-master/drivers/s390/net/
H A Dqeth_core_sys.c265 cnt = clamp(cnt, QETH_IN_BUF_COUNT_MIN, QETH_IN_BUF_COUNT_MAX);
/linux-master/drivers/spi/
H A Dspi-ep93xx.c123 rate = clamp(rate, host->min_speed_hz, host->max_speed_hz);
H A Dspi-ingenic.c108 cdiv = clamp(cdiv, 1u, 0x100u) - 1;
H A Dspi-coldfire-qspi.c134 return clamp((MCFQSPI_BUSCLK + speed_hz - 1) / speed_hz, 2u, 255u);
/linux-master/drivers/mmc/host/
H A Dlitex_mmc.c441 div = clamp(div, 2U, 256U);
/linux-master/drivers/rtc/
H A Drtc-armada38x.c422 * need to clamp the input. This equates to -484270 .. 488558.
426 offset = clamp(offset, -484270L, 488558L);
/linux-master/drivers/media/dvb-frontends/
H A Dts2020.c275 f3db = clamp(f3db, 7000U, 40000U);
/linux-master/drivers/leds/rgb/
H A Dleds-ktd202x.c301 num_steps = clamp(num_steps, 0, KTD202X_FLASH_PERIOD_MAX_STEPS);
/linux-master/drivers/media/i2c/
H A Dmt9m114.c1229 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 Dmtk_jpeg_core.c272 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 Dclk-pll14xx.c191 mdiv = clamp(mdiv, 64, 1023);
/linux-master/drivers/tty/
H A Dn_hdlc.c803 maxframe = clamp(maxframe, 4096, MAX_HDLC_FRAME_SIZE);
/linux-master/drivers/iio/proximity/
H A Dsx9360.c733 raw = clamp(ilog2(pos), 3, 11) - (pos >= 32 ? 4 : 3);
/linux-master/net/ipv4/
H A Dtcp_timer.c647 icsk->icsk_rto = clamp(__tcp_set_rto(tp),
/linux-master/drivers/thermal/
H A Dgov_power_allocator.c292 power_range = clamp(power_range, (s64)0, (s64)max_allocatable_power);
/linux-master/drivers/gpu/drm/i915/gt/
H A Dintel_engine_cs.c533 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 Dwave5-vpu-dec.c593 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 Dwave5-vpu-enc.c405 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 Dipu6-fw-isys.c238 num_in_message_queues = clamp(num_streams, 1U, max_streams);
H A Dipu6-isys-csi2.c421 sel->r.height = clamp(sel->r.height & ~1, IPU6_ISYS_MIN_HEIGHT,
/linux-master/drivers/gpu/drm/bridge/
H A Dti-sn65dsi83.c306 return DIV_ROUND_UP(clamp((unsigned int)mode->clock *
/linux-master/fs/notify/inotify/
H A Dinotify_user.c843 watches_max = clamp(watches_max, 8192UL, 1048576UL);
/linux-master/drivers/i2c/busses/
H A Di2c-ocores.c420 prescale = clamp(prescale, 0, 0xffff);
/linux-master/include/trace/events/
H A Dbtrfs.h2186 __field( int, clamp )
2205 __entry->clamp = sinfo->clamp;
2218 "reclaim_size=%llu clamp=%d global_reserved=%llu "
2226 __entry->reclaim_size, __entry->clamp,

Completed in 484 milliseconds

1234567891011>>