/linux-master/drivers/media/usb/hackrf/ |
H A D | hackrf.c | 1099 uitmp = clamp(f->frequency, bands_adc_dac[0].rangelow, 1109 uitmp = clamp(f->frequency, bands_rx_tx[0].rangelow,
|
/linux-master/drivers/media/platform/ti/omap/ |
H A D | omap_vout.c | 128 pix->height = clamp(pix->height, (u32)VID_MIN_HEIGHT, 130 pix->width = clamp(pix->width, (u32)VID_MIN_WIDTH, (u32)VID_MAX_WIDTH);
|
/linux-master/net/netfilter/ipvs/ |
H A D | ip_vs_sync.c | 1772 count = clamp(sysctl_sync_ports(ipvs), 1, IPVS_SYNC_PORTS_MAX); 1796 clamp(dev->mtu, 1500U, 65535U) : 1500U;
|
/linux-master/drivers/pmdomain/qcom/ |
H A D | cpr.c | 888 fuse->uV = clamp(uV, fuse->min_uV, fuse->max_uV); 1209 corner->uV = clamp(corner->uV, corner->min_uV, corner->max_uV);
|
/linux-master/drivers/media/pci/intel/ipu6/ |
H A D | ipu6-isys-video.c | 236 *width = clamp(*width, IPU6_ISYS_MIN_WIDTH, IPU6_ISYS_MAX_WIDTH); 237 *height = clamp(*height, IPU6_ISYS_MIN_HEIGHT, IPU6_ISYS_MAX_HEIGHT);
|
/linux-master/sound/usb/ |
H A D | mixer_scarlett2.c | 3788 val = clamp(ucontrol->value.integer.value[0], 4443 private->master_vol = clamp(vol + SCARLETT2_VOLUME_BIAS, 4461 private->headphone_vol = clamp(vol + SCARLETT2_VOLUME_BIAS, 5359 val = clamp(val, param->min, param->max); 7070 val = clamp(ucontrol->value.integer.value[0], 7286 val = clamp(ucontrol->value.integer.value[0], 7893 val = clamp(ucontrol->value.integer.value[0], 8905 private->vol[i] = clamp(
|
/linux-master/drivers/media/platform/mediatek/vcodec/encoder/ |
H A D | mtk_vcodec_enc.c | 311 pix_fmt_mp->height = clamp(pix_fmt_mp->height, MTK_VENC_MIN_H, max_height); 312 pix_fmt_mp->width = clamp(pix_fmt_mp->width, MTK_VENC_MIN_W, max_width);
|
/linux-master/drivers/media/v4l2-core/ |
H A D | v4l2-vp9.c | 1497 prob = clamp(((ct0 << 8) + (den >> 1)) / den, (u32)1, (u32)255);
|
/linux-master/drivers/net/wireless/intersil/p54/ |
H A D | txrx.c | 591 survey->noise = clamp(priv->noise, -128, 127);
|
/linux-master/drivers/iio/chemical/ |
H A D | bme680_core.c | 423 calc_hum = clamp(calc_hum, 0, 100000); /* clamp between 0-100 %rH */
|
/linux-master/drivers/input/ |
H A D | joydev.c | 85 return clamp(value, -32767, 32767);
|
/linux-master/block/ |
H A D | kyber-iosched.c | 269 depth = clamp(depth, 1U, kyber_depth[sched_domain]);
|
/linux-master/arch/powerpc/crypto/ |
H A D | poly1305-p10le_64.S | 16 # clamp r &= 0x0FFFFFFC0FFFFFFC 0x0FFFFFFC0FFFFFFF
|
/linux-master/drivers/gpu/drm/renesas/rcar-du/ |
H A D | rcar_lvds.c | 632 adjusted_mode->clock = clamp(adjusted_mode->clock, min_freq, 148500);
|
/linux-master/drivers/spi/ |
H A D | spi-img-spfi.c | 451 div = clamp(512 / (1 << get_count_order(div)), 1, 128);
|
H A D | spi-ti-qspi.c | 179 clk_div = clamp(clk_div, 0, QSPI_CLK_DIV_MAX);
|
/linux-master/drivers/media/pci/saa7164/ |
H A D | saa7164-encoder.c | 377 port->freq = clamp(f->frequency,
|
/linux-master/drivers/usb/serial/ |
H A D | xr_serial.c | 571 baud = clamp(baud, XR21V141X_MIN_SPEED, XR21V141X_MAX_SPEED);
|
/linux-master/drivers/rtc/ |
H A D | rtc-rv3028.c | 495 offset = clamp(offset, -244141L, 243187L) * 1000;
|
/linux-master/drivers/power/supply/ |
H A D | cpcap-battery.c | 730 val->intval = clamp(val->intval, 0, ddata->charge_full);
|
/linux-master/drivers/iio/adc/ |
H A D | palmas_gpadc.c | 468 return clamp(val, 0, 0xFFF);
|
/linux-master/drivers/gpu/drm/i915/display/ |
H A D | intel_vdsc.c | 94 vdsc_cfg->first_line_bpg_offset = clamp(first_line_bpg_offset, 0,
|
/linux-master/drivers/media/platform/ti/cal/ |
H A D | cal-video.c | 501 format->bytesperline = ALIGN(clamp(format->bytesperline,
|
/linux-master/drivers/memory/ |
H A D | renesas-rpc-if.c | 406 nbytes = clamp(nbytes, 1U, 4U);
|
/linux-master/fs/nfsd/ |
H A D | nfsproc.c | 561 buf->buflen = clamp(count, (u32)(XDR_UNIT * 2), (u32)PAGE_SIZE);
|