clamp_t 405 arch/powerpc/platforms/85xx/p1022_ds.c pxclk = clamp_t(u32, pxclk, 2, 255); clamp_t 75 arch/powerpc/platforms/85xx/p1022_rdk.c pxclk = clamp_t(u32, pxclk, 2, 255); clamp_t 110 arch/powerpc/platforms/85xx/t1042rdb_diu.c pxclk = clamp_t(u32, pxclk, 2, 255); clamp_t 257 arch/powerpc/platforms/86xx/mpc8610_hpcd.c pxclk = clamp_t(u32, pxclk, 2, 31); clamp_t 624 arch/s390/kernel/perf_cpum_sf.c return clamp_t(unsigned long, rate, clamp_t 117 arch/x86/kernel/check.c start = clamp_t(phys_addr_t, round_up(start, PAGE_SIZE), clamp_t 119 arch/x86/kernel/check.c end = clamp_t(phys_addr_t, round_down(end, PAGE_SIZE), clamp_t 441 arch/x86/mm/init_32.c unsigned long pfn = clamp_t(unsigned long, PFN_UP(start), clamp_t 443 arch/x86/mm/init_32.c unsigned long e_pfn = clamp_t(unsigned long, PFN_DOWN(end), clamp_t 710 block/blk-iocost.c period_us = clamp_t(u32, period_us, MIN_PERIOD, MAX_PERIOD); clamp_t 1486 block/blk-iocost.c new_inuse = clamp_t(u32, new_inuse, 1, iocg->active); clamp_t 2288 block/blk-iocost.c qos[tok] = clamp_t(s64, v * 100, clamp_t 355 block/blk-throttle.c clamp_t(int, order_base_2(sectors) - 3, 0, LATENCY_BUCKET_SIZE - 1) clamp_t 335 drivers/acpi/pmic/intel_pmic_bxtwc.c cursel = clamp_t(s8, (count - 7), 0, 7); clamp_t 1581 drivers/block/null_blk_main.c dev->blocksize = clamp_t(unsigned int, dev->blocksize, 512, 4096); clamp_t 133 drivers/clk/clk-axi-clkgen.c dout = clamp_t(unsigned long, dout, 1, 128); clamp_t 102 drivers/clk/renesas/clk-div6.c return clamp_t(unsigned int, div, 1, 64); clamp_t 121 drivers/clk/zynqmp/pll.c fbdiv = clamp_t(u32, fbdiv, PLL_FBDIV_MIN, PLL_FBDIV_MAX); clamp_t 186 drivers/clk/zynqmp/pll.c m = clamp_t(u32, m, (PLL_FBDIV_MIN), (PLL_FBDIV_MAX)); clamp_t 201 drivers/clk/zynqmp/pll.c fbdiv = clamp_t(u32, fbdiv, PLL_FBDIV_MIN, PLL_FBDIV_MAX); clamp_t 1067 drivers/cpufreq/intel_pstate.c global.no_turbo = clamp_t(int, input, 0, 1); clamp_t 1147 drivers/cpufreq/intel_pstate.c global.max_perf_pct = clamp_t(int, input, global.min_perf_pct, 100); clamp_t 1180 drivers/cpufreq/intel_pstate.c global.min_perf_pct = clamp_t(int, input, clamp_t 1347 drivers/cpufreq/intel_pstate.c vid_fp = clamp_t(int32_t, vid_fp, cpudata->vid.min, cpudata->vid.max); clamp_t 1797 drivers/cpufreq/intel_pstate.c return clamp_t(int, pstate, min_pstate, max_pstate); clamp_t 2065 drivers/cpufreq/intel_pstate.c min_policy_perf = clamp_t(int32_t, min_policy_perf, clamp_t 2082 drivers/cpufreq/intel_pstate.c global_min = clamp_t(int32_t, global_min, 0, global_max); clamp_t 97 drivers/gpu/drm/drm_rect.c src->x1 = clamp_t(int64_t, src->x2 - new_src_w, INT_MIN, INT_MAX); clamp_t 105 drivers/gpu/drm/drm_rect.c src->y1 = clamp_t(int64_t, src->y2 - new_src_h, INT_MIN, INT_MAX); clamp_t 113 drivers/gpu/drm/drm_rect.c src->x2 = clamp_t(int64_t, src->x1 + new_src_w, INT_MIN, INT_MAX); clamp_t 121 drivers/gpu/drm/drm_rect.c src->y2 = clamp_t(int64_t, src->y1 + new_src_h, INT_MIN, INT_MAX); clamp_t 1514 drivers/gpu/drm/i915/display/intel_dp.c ret = clamp_t(int, rxbuf[1], 0, msg->size); clamp_t 1558 drivers/gpu/drm/i915/display/intel_panel.c min = clamp_t(int, dev_priv->vbt.backlight.min_brightness, 0, 64); clamp_t 1250 drivers/gpu/drm/i915/i915_irq.c new_delay = clamp_t(int, new_delay, min, max); clamp_t 384 drivers/gpu/drm/i915/i915_sysfs.c val = clamp_t(int, rps->cur_freq, clamp_t 436 drivers/gpu/drm/i915/i915_sysfs.c val = clamp_t(int, rps->cur_freq, clamp_t 7092 drivers/gpu/drm/i915/intel_pm.c clamp_t(u8, clamp_t 107 drivers/gpu/drm/msm/msm_submitqueue.c clamp_t(uint32_t, 2, 0, priv->gpu->nr_rings - 1) : 0; clamp_t 239 drivers/gpu/drm/vboxvideo/vbox_main.c vbox->num_crtcs = clamp_t(u32, vbox->num_crtcs, 1, VBOX_MAX_SCREENS); clamp_t 309 drivers/hwmon/lochnagar-hwmon.c val = clamp_t(long, val, 1, (LN2_MAX_NSAMPLE * LN2_SAMPLE_US) / 1000); clamp_t 1201 drivers/i2c/busses/i2c-img-scb.c prescale = clamp_t(unsigned int, prescale, 1, 8); clamp_t 1793 drivers/ide/ide-tape.c tape->best_dsc_rw_freq = clamp_t(unsigned long, t, IDETAPE_DSC_RW_MIN, clamp_t 282 drivers/iio/adc/qcom-spmi-vadc.c *data = clamp_t(u16, *data, VADC_MIN_ADC_CODE, VADC_MAX_ADC_CODE); clamp_t 705 drivers/iio/magnetometer/ak8975.c *val = clamp_t(s16, buff, -def->range, def->range); clamp_t 831 drivers/iio/magnetometer/ak8975.c buff[0] = clamp_t(s16, le16_to_cpu(fval[0]), -def->range, def->range); clamp_t 832 drivers/iio/magnetometer/ak8975.c buff[1] = clamp_t(s16, le16_to_cpu(fval[1]), -def->range, def->range); clamp_t 833 drivers/iio/magnetometer/ak8975.c buff[2] = clamp_t(s16, le16_to_cpu(fval[2]), -def->range, def->range); clamp_t 139 drivers/leds/leds-sc27xx-bltc.c v = clamp_t(u32, v, SC27XX_DELTA_T_MIN, SC27XX_DELTA_T_MAX); clamp_t 2468 drivers/md/bcache/btree.c return clamp_t(int64_t, bkey_cmp(&l->key, &r->key), -1, 1); clamp_t 1967 drivers/md/bcache/super.c ca->sb.keys = clamp_t(int, ca->sb.nbuckets >> 7, clamp_t 341 drivers/md/bcache/util.h var = clamp_t(typeof(var), _v, min, max); \ clamp_t 111 drivers/md/bcache/writeback.c new_rate = clamp_t(int32_t, (proportional_scaled + integral_scaled), clamp_t 1375 drivers/md/md.c sb->ctime = clamp_t(time64_t, mddev->ctime, 0, U32_MAX); clamp_t 1381 drivers/md/md.c sb->utime = clamp_t(time64_t, mddev->utime, 0, U32_MAX); clamp_t 6390 drivers/md/md.c info.ctime = clamp_t(time64_t, mddev->ctime, 0, U32_MAX); clamp_t 6400 drivers/md/md.c info.utime = clamp_t(time64_t, mddev->utime, 0, U32_MAX); clamp_t 1084 drivers/media/dvb-frontends/rtl2832_sdr.c dev->f_adc = clamp_t(unsigned int, f->frequency, clamp_t 1094 drivers/media/dvb-frontends/rtl2832_sdr.c dev->f_tuner = clamp_t(unsigned int, f->frequency, clamp_t 1267 drivers/media/dvb-frontends/rtl2832_sdr.c val = clamp_t(s32, val, dev->bandwidth->minimum, clamp_t 358 drivers/media/dvb-frontends/ts2020.c gain1 = clamp_t(long, gain1, 0, 15); clamp_t 359 drivers/media/dvb-frontends/ts2020.c gain2 = clamp_t(long, gain2, 0, 13); clamp_t 360 drivers/media/dvb-frontends/ts2020.c v_agc = clamp_t(long, v_agc, 400, 1100); clamp_t 375 drivers/media/dvb-frontends/ts2020.c gain1 = clamp_t(long, gain1, 0, 15); clamp_t 376 drivers/media/dvb-frontends/ts2020.c gain2 = clamp_t(long, gain2, 2, 16); clamp_t 377 drivers/media/dvb-frontends/ts2020.c gain3 = clamp_t(long, gain3, 0, 6); clamp_t 378 drivers/media/dvb-frontends/ts2020.c v_agc = clamp_t(long, v_agc, 600, 1600); clamp_t 639 drivers/media/i2c/m5mols/m5mols_core.c fd->entry[0].length = clamp_t(u32, fd->entry[0].length, clamp_t 278 drivers/media/i2c/mt9m001.c rect.width = clamp_t(u32, rect.width, MT9M001_MIN_WIDTH, clamp_t 280 drivers/media/i2c/mt9m001.c rect.left = clamp_t(u32, rect.left, MT9M001_COLUMN_SKIP, clamp_t 283 drivers/media/i2c/mt9m001.c rect.height = clamp_t(u32, rect.height, MT9M001_MIN_HEIGHT, clamp_t 285 drivers/media/i2c/mt9m001.c rect.top = clamp_t(u32, rect.top, MT9M001_ROW_SKIP, clamp_t 210 drivers/media/i2c/mt9m032.c vblank = clamp_t(unsigned int, vblank, min_vblank, MT9M032_VBLANK_MAX); clamp_t 455 drivers/media/i2c/mt9m032.c rect.width = clamp_t(unsigned int, ALIGN(sel->r.width, 2), clamp_t 457 drivers/media/i2c/mt9m032.c rect.height = clamp_t(unsigned int, ALIGN(sel->r.height, 2), clamp_t 559 drivers/media/i2c/mt9p031.c width = clamp_t(unsigned int, ALIGN(format->format.width, 2), clamp_t 563 drivers/media/i2c/mt9p031.c height = clamp_t(unsigned int, ALIGN(format->format.height, 2), clamp_t 613 drivers/media/i2c/mt9p031.c rect.width = clamp_t(unsigned int, ALIGN(sel->r.width, 2), clamp_t 616 drivers/media/i2c/mt9p031.c rect.height = clamp_t(unsigned int, ALIGN(sel->r.height, 2), clamp_t 390 drivers/media/i2c/mt9t001.c width = clamp_t(unsigned int, ALIGN(format->format.width, 2), clamp_t 394 drivers/media/i2c/mt9t001.c height = clamp_t(unsigned int, ALIGN(format->format.height, 2), clamp_t 446 drivers/media/i2c/mt9t001.c rect.width = clamp_t(unsigned int, ALIGN(sel->r.width, 2), clamp_t 449 drivers/media/i2c/mt9t001.c rect.height = clamp_t(unsigned int, ALIGN(sel->r.height, 2), clamp_t 572 drivers/media/i2c/mt9v032.c rect.width = clamp_t(unsigned int, ALIGN(sel->r.width, 2), clamp_t 575 drivers/media/i2c/mt9v032.c rect.height = clamp_t(unsigned int, ALIGN(sel->r.height, 2), clamp_t 1153 drivers/media/i2c/s5k5baf.c state->req_fiv = clamp_t(u32, clamp_t 1148 drivers/media/i2c/s5k6aa.c crop->width = clamp_t(unsigned int, crop->width, mf->width, clamp_t 1150 drivers/media/i2c/s5k6aa.c crop->height = clamp_t(unsigned int, crop->height, mf->height, clamp_t 1152 drivers/media/i2c/s5k6aa.c crop->left = clamp_t(unsigned int, crop->left, 0, clamp_t 1154 drivers/media/i2c/s5k6aa.c crop->top = clamp_t(unsigned int, crop->top, 0, clamp_t 1217 drivers/media/i2c/s5k6aa.c sel->r.left = clamp_t(unsigned int, sel->r.left, 0, max_x); clamp_t 1218 drivers/media/i2c/s5k6aa.c sel->r.top = clamp_t(unsigned int, sel->r.top, 0, max_y); clamp_t 1151 drivers/media/i2c/smiapp/smiapp-core.c clamp_t(u32, strobe_setup->strobe_width_high_us, 1, tmp); clamp_t 2827 drivers/media/pci/bt8xx/bttv-driver.c c.rect.left = clamp_t(s32, sel->r.left, b_left, b_right - 48); clamp_t 2830 drivers/media/pci/bt8xx/bttv-driver.c c.rect.width = clamp_t(s32, sel->r.width, clamp_t 2833 drivers/media/pci/bt8xx/bttv-driver.c c.rect.top = clamp_t(s32, sel->r.top, b_top, b_bottom - 32); clamp_t 2837 drivers/media/pci/bt8xx/bttv-driver.c c.rect.height = clamp_t(s32, sel->r.height, clamp_t 859 drivers/media/pci/ivtv/ivtv-ioctl.c sel->r.left = clamp_t(unsigned, sel->r.left, 0, r.width - sel->r.width); clamp_t 860 drivers/media/pci/ivtv/ivtv-ioctl.c sel->r.top = clamp_t(unsigned, sel->r.top, 0, r.height - sel->r.height); clamp_t 2149 drivers/media/platform/am437x/am437x-vpfe.c r.left = clamp_t(unsigned int, r.left, 0, cr.width - r.width); clamp_t 2150 drivers/media/platform/am437x/am437x-vpfe.c r.top = clamp_t(unsigned int, r.top, 0, cr.height - r.height); clamp_t 711 drivers/media/platform/exynos4-is/fimc-capture.c r->left = clamp_t(u32, r->left, 0, sink->f_width - r->width); clamp_t 712 drivers/media/platform/exynos4-is/fimc-capture.c r->top = clamp_t(u32, r->top, 0, sink->f_height - r->height); clamp_t 52 drivers/media/platform/exynos4-is/fimc-isp-video.c *num_buffers = clamp_t(u32, *num_buffers, FIMC_ISP_REQ_BUFS_MIN, clamp_t 610 drivers/media/platform/exynos4-is/fimc-lite.c r->left = clamp_t(u32, r->left, 0, frame->f_width - r->width); clamp_t 612 drivers/media/platform/exynos4-is/fimc-lite.c r->top = clamp_t(u32, r->top, 0, frame->f_height - r->height); clamp_t 630 drivers/media/platform/exynos4-is/fimc-lite.c r->left = clamp_t(u32, r->left, 0, frame->f_width - r->width); clamp_t 632 drivers/media/platform/exynos4-is/fimc-lite.c r->top = clamp_t(u32, r->top, 0, fimc->out_frame.f_height - r->height); clamp_t 1983 drivers/media/platform/omap3isp/ispccdc.c fmt->width = clamp_t(u32, width, 32, 4096); clamp_t 1984 drivers/media/platform/omap3isp/ispccdc.c fmt->height = clamp_t(u32, height, 32, 4096); clamp_t 2052 drivers/media/platform/omap3isp/ispccdc.c fmt->width = clamp_t(u32, width, 32, fmt->width); clamp_t 2053 drivers/media/platform/omap3isp/ispccdc.c fmt->height = clamp_t(u32, height, 32, fmt->height - 1); clamp_t 2085 drivers/media/platform/omap3isp/ispccdc.c crop->left = clamp_t(u32, crop->left, 0, sink->width - CCDC_MIN_WIDTH); clamp_t 2086 drivers/media/platform/omap3isp/ispccdc.c crop->top = clamp_t(u32, crop->top, 0, sink->height - CCDC_MIN_HEIGHT); clamp_t 2094 drivers/media/platform/omap3isp/ispccdc.c crop->width = clamp_t(u32, crop->width, CCDC_MIN_WIDTH, max_width) clamp_t 2096 drivers/media/platform/omap3isp/ispccdc.c crop->height = clamp_t(u32, crop->height, CCDC_MIN_HEIGHT, clamp_t 263 drivers/media/platform/omap3isp/ispccp2.c vpclk_div = clamp_t(unsigned int, vpclk_div, 1, 65536); clamp_t 268 drivers/media/platform/omap3isp/ispccp2.c vpclk_div = clamp_t(unsigned int, vpclk_div, 1, 4); clamp_t 651 drivers/media/platform/omap3isp/ispccp2.c fmt->width = clamp_t(u32, fmt->width, clamp_t 654 drivers/media/platform/omap3isp/ispccp2.c fmt->height = clamp_t(u32, fmt->height, clamp_t 658 drivers/media/platform/omap3isp/ispccp2.c fmt->width = clamp_t(u32, fmt->width, clamp_t 661 drivers/media/platform/omap3isp/ispccp2.c fmt->height = clamp_t(u32, fmt->height, clamp_t 572 drivers/media/platform/omap3isp/ispcsi2.c clamp_t(unsigned int, pipe->l3_ick / pipe->external_rate - 1, clamp_t 861 drivers/media/platform/omap3isp/ispcsi2.c fmt->width = clamp_t(u32, fmt->width, 1, 8191); clamp_t 862 drivers/media/platform/omap3isp/ispcsi2.c fmt->height = clamp_t(u32, fmt->height, 1, 8191); clamp_t 1752 drivers/media/platform/omap3isp/isppreview.c fmt->width = clamp_t(u32, fmt->width, PREV_MIN_IN_WIDTH, clamp_t 1754 drivers/media/platform/omap3isp/isppreview.c fmt->height = clamp_t(u32, fmt->height, clamp_t 1849 drivers/media/platform/omap3isp/isppreview.c crop->left = clamp_t(u32, crop->left, left, right - PREV_MIN_OUT_WIDTH); clamp_t 1850 drivers/media/platform/omap3isp/isppreview.c crop->top = clamp_t(u32, crop->top, top, bottom - PREV_MIN_OUT_HEIGHT); clamp_t 1851 drivers/media/platform/omap3isp/isppreview.c crop->width = clamp_t(u32, crop->width, PREV_MIN_OUT_WIDTH, clamp_t 1853 drivers/media/platform/omap3isp/isppreview.c crop->height = clamp_t(u32, crop->height, PREV_MIN_OUT_HEIGHT, clamp_t 810 drivers/media/platform/omap3isp/ispresizer.c ratio->vert = clamp_t(unsigned int, ratio->vert, clamp_t 881 drivers/media/platform/omap3isp/ispresizer.c ratio->horz = clamp_t(unsigned int, ratio->horz, clamp_t 1200 drivers/media/platform/omap3isp/ispresizer.c crop->width = clamp_t(u32, crop->width, min_width, max_width); clamp_t 1201 drivers/media/platform/omap3isp/ispresizer.c crop->height = clamp_t(u32, crop->height, min_height, max_height); clamp_t 1204 drivers/media/platform/omap3isp/ispresizer.c crop->left = clamp_t(u32, crop->left, 0, sink->width - MIN_IN_WIDTH); clamp_t 1205 drivers/media/platform/omap3isp/ispresizer.c crop->width = clamp_t(u32, crop->width, MIN_IN_WIDTH, clamp_t 1207 drivers/media/platform/omap3isp/ispresizer.c crop->top = clamp_t(u32, crop->top, 0, sink->height - MIN_IN_HEIGHT); clamp_t 1208 drivers/media/platform/omap3isp/ispresizer.c crop->height = clamp_t(u32, crop->height, MIN_IN_HEIGHT, clamp_t 1388 drivers/media/platform/omap3isp/ispresizer.c fmt->width = clamp_t(u32, fmt->width, MIN_IN_WIDTH, clamp_t 1390 drivers/media/platform/omap3isp/ispresizer.c fmt->height = clamp_t(u32, fmt->height, MIN_IN_HEIGHT, clamp_t 801 drivers/media/platform/qcom/camss/camss-csid.c fmt->width = clamp_t(u32, fmt->width, 1, 8191); clamp_t 802 drivers/media/platform/qcom/camss/camss-csid.c fmt->height = clamp_t(u32, fmt->height, 1, 8191); clamp_t 830 drivers/media/platform/qcom/camss/camss-csid.c fmt->width = clamp_t(u32, fmt->width, 1, 8191); clamp_t 831 drivers/media/platform/qcom/camss/camss-csid.c fmt->height = clamp_t(u32, fmt->height, 1, 8191); clamp_t 357 drivers/media/platform/qcom/camss/camss-csiphy.c fmt->width = clamp_t(u32, fmt->width, 1, 8191); clamp_t 358 drivers/media/platform/qcom/camss/camss-csiphy.c fmt->height = clamp_t(u32, fmt->height, 1, 8191); clamp_t 883 drivers/media/platform/qcom/camss/camss-ispif.c fmt->width = clamp_t(u32, fmt->width, 1, 8191); clamp_t 884 drivers/media/platform/qcom/camss/camss-ispif.c fmt->height = clamp_t(u32, fmt->height, 1, 8191); clamp_t 1550 drivers/media/platform/qcom/camss/camss-vfe.c fmt->width = clamp_t(u32, fmt->width, 1, 8191); clamp_t 1551 drivers/media/platform/qcom/camss/camss-vfe.c fmt->height = clamp_t(u32, fmt->height, 1, 8191); clamp_t 592 drivers/media/platform/qcom/camss/camss-video.c bytesperline[i] = clamp_t(u32, p->bytesperline, clamp_t 594 drivers/media/platform/qcom/camss/camss-video.c sizeimage[i] = clamp_t(u32, p->sizeimage, clamp_t 613 drivers/media/platform/qcom/camss/camss-video.c pix_mp->width = clamp_t(u32, width, 1, 8191); clamp_t 614 drivers/media/platform/qcom/camss/camss-video.c pix_mp->height = clamp_t(u32, height, 1, 8191); clamp_t 636 drivers/media/platform/qcom/camss/camss-video.c p->bytesperline = clamp_t(u32, p->bytesperline, clamp_t 638 drivers/media/platform/qcom/camss/camss-video.c p->sizeimage = clamp_t(u32, p->sizeimage, clamp_t 182 drivers/media/platform/qcom/venus/vdec.c pfmt[0].sizeimage = clamp_t(u32, pfmt[0].sizeimage, 0, SZ_8M); clamp_t 376 drivers/media/platform/rcar-vin/rcar-v4l2.c r.top = clamp_t(s32, r.top, 0, vin->source.height - r.height); clamp_t 377 drivers/media/platform/rcar-vin/rcar-v4l2.c r.left = clamp_t(s32, r.left, 0, vin->source.width - r.width); clamp_t 1434 drivers/media/platform/rcar_fdp1.c bpl = clamp_t(unsigned int, pix->plane_fmt[i].bytesperline, clamp_t 819 drivers/media/platform/rcar_jpu.c bpl = clamp_t(unsigned int, bpl, w, JPU_WIDTH_MAX); clamp_t 1030 drivers/media/platform/stm32/stm32-dcmi.c c.top = clamp_t(s32, c.top, 0, pix->height - c.height); clamp_t 1031 drivers/media/platform/stm32/stm32-dcmi.c c.left = clamp_t(s32, c.left, 0, pix->width - c.width); clamp_t 1297 drivers/media/platform/stm32/stm32-dcmi.c r.top = clamp_t(s32, r.top, 0, pix.height - r.height); clamp_t 1298 drivers/media/platform/stm32/stm32-dcmi.c r.left = clamp_t(s32, r.left, 0, pix.width - r.width); clamp_t 1671 drivers/media/platform/ti-vpe/vpe.c plane_fmt->bytesperline = clamp_t(u32, plane_fmt->bytesperline, clamp_t 96 drivers/media/platform/vimc/vimc-capture.c format->width = clamp_t(u32, format->width, VIMC_FRAME_MIN_WIDTH, clamp_t 98 drivers/media/platform/vimc/vimc-capture.c format->height = clamp_t(u32, format->height, VIMC_FRAME_MIN_HEIGHT, clamp_t 233 drivers/media/platform/vimc/vimc-debayer.c fmt->width = clamp_t(u32, fmt->width, VIMC_FRAME_MIN_WIDTH, clamp_t 235 drivers/media/platform/vimc/vimc-debayer.c fmt->height = clamp_t(u32, fmt->height, VIMC_FRAME_MIN_HEIGHT, clamp_t 141 drivers/media/platform/vimc/vimc-scaler.c fmt->width = clamp_t(u32, fmt->width, VIMC_FRAME_MIN_WIDTH, clamp_t 143 drivers/media/platform/vimc/vimc-scaler.c fmt->height = clamp_t(u32, fmt->height, VIMC_FRAME_MIN_HEIGHT, clamp_t 134 drivers/media/platform/vimc/vimc-sensor.c fmt->width = clamp_t(u32, fmt->width, VIMC_FRAME_MIN_WIDTH, clamp_t 136 drivers/media/platform/vimc/vimc-sensor.c fmt->height = clamp_t(u32, fmt->height, VIMC_FRAME_MIN_HEIGHT, clamp_t 1551 drivers/media/platform/vivid/vivid-core.c n_devs = clamp_t(unsigned, n_devs, 1, VIVID_MAX_DEVS); clamp_t 165 drivers/media/platform/vivid/vivid-radio-common.c freq = clamp_t(u32, vf->frequency, vivid_radio_bands[band].rangelow, clamp_t 388 drivers/media/platform/vivid/vivid-sdr-cap.c freq = clamp_t(unsigned, freq, clamp_t 402 drivers/media/platform/vivid/vivid-sdr-cap.c dev->sdr_fm_freq = clamp_t(unsigned, freq, clamp_t 1103 drivers/media/platform/vivid/vivid-vid-cap.c win->w.left = clamp_t(int, win->w.left, clamp_t 1105 drivers/media/platform/vivid/vivid-vid-cap.c win->w.top = clamp_t(int, win->w.top, clamp_t 1124 drivers/media/platform/vivid/vivid-vid-cap.c r->top = clamp_t(s32, r->top, 0, dev->fb_cap.fmt.height - 1); clamp_t 1125 drivers/media/platform/vivid/vivid-vid-cap.c r->height = clamp_t(s32, r->height, 1, dev->fb_cap.fmt.height - r->top); clamp_t 1126 drivers/media/platform/vivid/vivid-vid-cap.c r->left = clamp_t(u32, r->left, 0, dev->fb_cap.fmt.width - 1); clamp_t 1127 drivers/media/platform/vivid/vivid-vid-cap.c r->width = clamp_t(u32, r->width, 1, dev->fb_cap.fmt.width - r->left); clamp_t 1258 drivers/media/platform/vivid/vivid-vid-cap.c dev->overlay_cap_left = clamp_t(int, dev->overlay_cap_left, clamp_t 1260 drivers/media/platform/vivid/vivid-vid-cap.c dev->overlay_cap_top = clamp_t(int, dev->overlay_cap_top, clamp_t 1476 drivers/media/platform/vivid/vivid-vid-cap.c dev->tv_freq = clamp_t(unsigned, vf->frequency, MIN_TV_FREQ, MAX_TV_FREQ); clamp_t 878 drivers/media/platform/vivid/vivid-vid-out.c win->w.left = clamp_t(int, win->w.left, clamp_t 880 drivers/media/platform/vivid/vivid-vid-out.c win->w.top = clamp_t(int, win->w.top, clamp_t 900 drivers/media/platform/vivid/vivid-vid-out.c r->top = clamp_t(s32, r->top, 0, dev->display_height - 1); clamp_t 901 drivers/media/platform/vivid/vivid-vid-out.c r->height = clamp_t(s32, r->height, 1, dev->display_height - r->top); clamp_t 902 drivers/media/platform/vivid/vivid-vid-out.c r->left = clamp_t(u32, r->left, 0, dev->display_width - 1); clamp_t 903 drivers/media/platform/vivid/vivid-vid-out.c r->width = clamp_t(u32, r->width, 1, dev->display_width - r->left); clamp_t 247 drivers/media/platform/vsp1/vsp1_brx.c sel->r.left = clamp_t(unsigned int, sel->r.left, 0, format->width - 1); clamp_t 248 drivers/media/platform/vsp1/vsp1_brx.c sel->r.top = clamp_t(unsigned int, sel->r.top, 0, format->height - 1); clamp_t 395 drivers/media/platform/vsp1/vsp1_entity.c format->width = clamp_t(unsigned int, fmt->format.width, clamp_t 397 drivers/media/platform/vsp1/vsp1_entity.c format->height = clamp_t(unsigned int, fmt->format.height, clamp_t 269 drivers/media/platform/vsp1/vsp1_histo.c sel->r.left = clamp_t(unsigned int, sel->r.left, 0, format->width - 1); clamp_t 270 drivers/media/platform/vsp1/vsp1_histo.c sel->r.top = clamp_t(unsigned int, sel->r.top, 0, format->height - 1); clamp_t 271 drivers/media/platform/vsp1/vsp1_histo.c sel->r.width = clamp_t(unsigned int, sel->r.width, HISTO_MIN_SIZE, clamp_t 273 drivers/media/platform/vsp1/vsp1_histo.c sel->r.height = clamp_t(unsigned int, sel->r.height, HISTO_MIN_SIZE, clamp_t 93 drivers/media/platform/vsp1/vsp1_hsit.c format->width = clamp_t(unsigned int, fmt->format.width, clamp_t 95 drivers/media/platform/vsp1/vsp1_hsit.c format->height = clamp_t(unsigned int, fmt->format.height, clamp_t 95 drivers/media/platform/vsp1/vsp1_rwpf.c format->width = clamp_t(unsigned int, fmt->format.width, clamp_t 97 drivers/media/platform/vsp1/vsp1_rwpf.c format->height = clamp_t(unsigned int, fmt->format.height, clamp_t 154 drivers/media/platform/vsp1/vsp1_uif.c sel->r.left = clamp_t(unsigned int, sel->r.left, 0, format->width - 1); clamp_t 155 drivers/media/platform/vsp1/vsp1_uif.c sel->r.top = clamp_t(unsigned int, sel->r.top, 0, format->height - 1); clamp_t 156 drivers/media/platform/vsp1/vsp1_uif.c sel->r.width = clamp_t(unsigned int, sel->r.width, UIF_MIN_SIZE, clamp_t 158 drivers/media/platform/vsp1/vsp1_uif.c sel->r.height = clamp_t(unsigned int, sel->r.height, UIF_MIN_SIZE, clamp_t 151 drivers/media/platform/vsp1/vsp1_video.c bpl = clamp_t(unsigned int, pix->plane_fmt[i].bytesperline, clamp_t 150 drivers/media/platform/xilinx/xilinx-vip.c format->width = clamp_t(unsigned int, fmt->format.width, clamp_t 152 drivers/media/platform/xilinx/xilinx-vip.c format->height = clamp_t(unsigned int, fmt->format.height, clamp_t 209 drivers/media/radio/dsbr100.c return dsbr100_setfreq(radio, clamp_t(unsigned, f->frequency, clamp_t 252 drivers/media/radio/radio-ma901.c return ma901radio_set_freq(radio, clamp_t(unsigned, f->frequency, clamp_t 291 drivers/media/radio/radio-miropcm20.c dev->freq = clamp_t(u32, f->frequency, 87 * 16000U, 108 * 16000U); clamp_t 198 drivers/media/radio/radio-mr800.c freq = clamp_t(unsigned, freq, FREQ_MIN * FREQ_MUL, FREQ_MAX * FREQ_MUL); clamp_t 256 drivers/media/radio/radio-raremono.c freq = clamp_t(u32, f->frequency, bands[band].rangelow, bands[band].rangehigh); clamp_t 1381 drivers/media/radio/si4713/si4713.c frequency = clamp_t(u16, frequency, FREQ_RANGE_LOW, FREQ_RANGE_HIGH); clamp_t 350 drivers/media/radio/tea575x.c tea->freq = clamp_t(u32, f->frequency, bands[tea->band].rangelow, clamp_t 338 drivers/media/tuners/e4000.c dev->f_frequency = clamp_t(unsigned int, f->frequency, clamp_t 216 drivers/media/tuners/fc0011.c xin = clamp_t(u32, frac, 512, 65024); clamp_t 431 drivers/media/tuners/fc2580.c dev->f_frequency = clamp_t(unsigned int, f->frequency, clamp_t 341 drivers/media/tuners/msi001.c dev->f_tuner = clamp_t(unsigned int, f->frequency, clamp_t 758 drivers/media/usb/airspy/airspy.c s->f_adc = clamp_t(unsigned int, f->frequency, clamp_t 764 drivers/media/usb/airspy/airspy.c s->f_rf = clamp_t(unsigned int, f->frequency, clamp_t 330 drivers/media/usb/dvb-usb/cxusb-analog.c unsigned int tocheck = clamp_t(size_t, maxlinesamples / 4, 3, clamp_t 608 drivers/media/usb/msi2500/msi2500.c *nbuffers = clamp_t(unsigned int, *nbuffers, 8, 32); clamp_t 1046 drivers/media/usb/msi2500/msi2500.c dev->f_adc = clamp_t(unsigned int, f->frequency, clamp_t 381 drivers/media/usb/stk1160/stk1160-v4l.c width = clamp_t(unsigned int, f->fmt.pix.width, clamp_t 383 drivers/media/usb/stk1160/stk1160-v4l.c height = clamp_t(unsigned int, f->fmt.pix.height, clamp_t 663 drivers/media/usb/stk1160/stk1160-v4l.c *nbuffers = clamp_t(unsigned int, *nbuffers, clamp_t 1612 drivers/media/usb/uvc/uvc_ctrl.c xctrl->value = clamp_t(u32, xctrl->value, min, max); clamp_t 1653 drivers/media/v4l2-core/v4l2-ctrls.c val = clamp_t(typeof(val), val, \ clamp_t 1778 drivers/media/v4l2-core/v4l2-ctrls.c val = clamp_t(s64, val, ctrl->minimum, ctrl->maximum); clamp_t 6151 drivers/net/ethernet/broadcom/bnxt/bnxt.c val = clamp_t(u16, hw_coal->coal_bufs, 1, max); clamp_t 6157 drivers/net/ethernet/broadcom/bnxt/bnxt.c val = clamp_t(u16, hw_coal->coal_bufs_irq, 1, clamp_t 6162 drivers/net/ethernet/broadcom/bnxt/bnxt.c tmr = clamp_t(u16, tmr, 1, coal_cap->int_lat_tmr_max_max); clamp_t 6168 drivers/net/ethernet/broadcom/bnxt/bnxt.c val = clamp_t(u16, val, 1, coal_cap->int_lat_tmr_min_max); clamp_t 6174 drivers/net/ethernet/broadcom/bnxt/bnxt.c val = clamp_t(u16, tmr / 4, 1, coal_cap->cmpl_aggr_dma_tmr_max); clamp_t 6180 drivers/net/ethernet/broadcom/bnxt/bnxt.c val = clamp_t(u16, tmr, 1, clamp_t 6216 drivers/net/ethernet/broadcom/bnxt/bnxt.c tmr = clamp_t(u16, tmr, 1, coal_cap->int_lat_tmr_min_max); clamp_t 6853 drivers/net/ethernet/broadcom/bnxt/bnxt.c entries = clamp_t(u32, entries, ctx->tqm_min_entries_per_ring, clamp_t 113 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c stats_ticks = clamp_t(u32, stats_ticks, clamp_t 2759 drivers/net/ethernet/cadence/macb_main.c new_rx_size = clamp_t(u32, ring->rx_pending, clamp_t 2763 drivers/net/ethernet/cadence/macb_main.c new_tx_size = clamp_t(u32, ring->tx_pending, clamp_t 1270 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c rx_count = clamp_t(u32, ering->rx_pending, CN23XX_MIN_OQ_DESCRIPTORS, clamp_t 1272 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c tx_count = clamp_t(u32, ering->tx_pending, CN23XX_MIN_IQ_DESCRIPTORS, clamp_t 494 drivers/net/ethernet/cavium/thunder/nicvf_ethtool.c tx_count = clamp_t(u32, ring->tx_pending, clamp_t 496 drivers/net/ethernet/cavium/thunder/nicvf_ethtool.c rx_count = clamp_t(u32, ring->rx_pending, clamp_t 675 drivers/net/ethernet/intel/e1000e/ethtool.c new_rx_count = clamp_t(u32, ring->rx_pending, E1000_MIN_RXD, clamp_t 679 drivers/net/ethernet/intel/e1000e/ethtool.c new_tx_count = clamp_t(u32, ring->tx_pending, E1000_MIN_TXD, clamp_t 531 drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c new_tx_count = clamp_t(u32, ring->tx_pending, clamp_t 535 drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c new_rx_count = clamp_t(u32, ring->rx_pending, clamp_t 605 drivers/net/ethernet/intel/iavf/iavf_ethtool.c new_tx_count = clamp_t(u32, ring->tx_pending, clamp_t 610 drivers/net/ethernet/intel/iavf/iavf_ethtool.c new_rx_count = clamp_t(u32, ring->rx_pending, clamp_t 1043 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c new_tx_count = clamp_t(u32, ring->tx_pending, clamp_t 1047 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c new_rx_count = clamp_t(u32, ring->rx_pending, clamp_t 1661 drivers/net/ethernet/marvell/mv643xx_eth.c mp->tx_ring_size = clamp_t(unsigned int, er->tx_pending, clamp_t 2947 drivers/net/ethernet/marvell/mv643xx_eth.c mp->tx_ring_size = clamp_t(unsigned int, tx_ring_size, clamp_t 4049 drivers/net/ethernet/marvell/mvneta.c pp->tx_ring_size = clamp_t(u16, ring->tx_pending, clamp_t 171 drivers/net/ethernet/mellanox/mlx5/core/en.h return clamp_t(u8, MLX5_CAP_GEN(mdev, num_lag_ports), 1, MLX5_MAX_PORTS); clamp_t 1754 drivers/net/hyperv/netvsc_drv.c new_tx = clamp_t(u32, ring->tx_pending, clamp_t 1756 drivers/net/hyperv/netvsc_drv.c new_rx = clamp_t(u32, ring->rx_pending, clamp_t 620 drivers/net/ieee802154/adf7242.c pwr = clamp_t(u8, db, 3, 15); clamp_t 823 drivers/net/ieee802154/adf7242.c s8 level = clamp_t(s8, mbm / 100, S8_MIN, S8_MAX); clamp_t 165 drivers/net/usb/cdc_ncm.c val = clamp_t(u32, new_rx, min, max); clamp_t 184 drivers/net/usb/cdc_ncm.c val = clamp_t(u32, new_tx, min, max); clamp_t 443 drivers/net/usb/cdc_ncm.c ctx->min_tx_pkt = clamp_t(u16, ctx->tx_max - 3 * usb_maxpacket(dev->udev, dev->out, 1), clamp_t 570 drivers/net/usb/cdc_ncm.c ctx->max_datagram_size = clamp_t(u32, new_size, clamp_t 1159 drivers/net/virtio_net.c len = hdr_len + clamp_t(unsigned int, ewma_pkt_len_read(avg_pkt_len), clamp_t 23 drivers/net/wireless/intersil/orinoco/scan.c (clamp_t(s32, (x), MIN_SIGNAL_LEVEL, MAX_SIGNAL_LEVEL) \ clamp_t 700 drivers/net/wireless/intersil/p54/main.c priv->coverage_class = clamp_t(u8, coverage_class, 0, 31); clamp_t 942 drivers/net/wireless/ralink/rt2x00/rt2400pci.h clamp_t(char, (__txpower), MIN_TXPOWER, MAX_TXPOWER) clamp_t 1222 drivers/net/wireless/ralink/rt2x00/rt2500pci.h clamp_t(char, __txpower, MIN_TXPOWER, MAX_TXPOWER) clamp_t 842 drivers/net/wireless/ralink/rt2x00/rt2500usb.h clamp_t(char, __txpower, MIN_TXPOWER, MAX_TXPOWER) clamp_t 3976 drivers/net/wireless/ralink/rt2x00/rt2800lib.c return clamp_t(char, txpower, MIN_G_TXPOWER, MAX_G_TXPOWER); clamp_t 3980 drivers/net/wireless/ralink/rt2x00/rt2800lib.c return clamp_t(char, txpower, MIN_A_TXPOWER_3593, clamp_t 3983 drivers/net/wireless/ralink/rt2x00/rt2800lib.c return clamp_t(char, txpower, MIN_A_TXPOWER, MAX_A_TXPOWER); clamp_t 1487 drivers/net/wireless/ralink/rt2x00/rt61pci.h clamp_t(char, __txpower, MIN_TXPOWER, MAX_TXPOWER) clamp_t 1066 drivers/net/wireless/ralink/rt2x00/rt73usb.h clamp_t(char, __txpower, MIN_TXPOWER, MAX_TXPOWER) clamp_t 286 drivers/net/wireless/realtek/rtl818x/rtl8180/dev.c signal = -clamp_t(u8, agc, 25, 90) - 9; clamp_t 288 drivers/net/wireless/realtek/rtl818x/rtl8180/dev.c signal = -clamp_t(u8, agc, 30, 95); clamp_t 329 drivers/net/wireless/realtek/rtw88/phy.c *lower = clamp_t(u8, min_rssi, dig_min, dig_mid); clamp_t 330 drivers/net/wireless/realtek/rtw88/phy.c *upper = clamp_t(u8, *lower + DIG_RSSI_GAIN_OFFSET, dig_min, dig_max); clamp_t 429 drivers/net/wireless/realtek/rtw88/phy.c cur_igi = clamp_t(u8, cur_igi, lower_bound, upper_bound); clamp_t 1269 drivers/net/wireless/realtek/rtw88/phy.c pwr_limit = clamp_t(s8, pwr_limit, clamp_t 2827 drivers/nvme/host/core.c ctrl->shutdown_timeout = clamp_t(unsigned int, transition_time, clamp_t 143 drivers/platform/x86/dell-wmi-led.c on_eighths = clamp_t(unsigned long, on_eighths, 1, 255); clamp_t 147 drivers/platform/x86/dell-wmi-led.c off_eighths = clamp_t(unsigned long, off_eighths, 1, 255); clamp_t 689 drivers/spi/spi-sprd.c word_delay = clamp_t(u16, t->word_delay, SPRD_SPI_MIN_DELAY_CYCLE, clamp_t 2426 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.width = clamp_t(__u32, f->fmt.pix.width, clamp_t 2428 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.height = clamp_t(__u32, f->fmt.pix.height, clamp_t 2473 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.width = clamp_t(__u32, f->fmt.pix.width, clamp_t 2475 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.height = clamp_t(__u32, f->fmt.pix.height, clamp_t 364 drivers/staging/media/imx/imx-media-csc-scaler.c s->r.width = clamp_t(unsigned int, s->r.width, 8, clamp_t 366 drivers/staging/media/imx/imx-media-csc-scaler.c s->r.height = clamp_t(unsigned int, s->r.height, 1, clamp_t 368 drivers/staging/media/imx/imx-media-csc-scaler.c s->r.left = clamp_t(unsigned int, s->r.left, 0, clamp_t 370 drivers/staging/media/imx/imx-media-csc-scaler.c s->r.top = clamp_t(unsigned int, s->r.top, 0, clamp_t 148 drivers/staging/media/ipu3/ipu3-css.c f->width = ALIGN(clamp_t(u32, f->width, clamp_t 150 drivers/staging/media/ipu3/ipu3-css.c f->height = ALIGN(clamp_t(u32, f->height, clamp_t 862 drivers/staging/media/omap4iss/iss_csi2.c fmt->width = clamp_t(u32, fmt->width, 1, 8191); clamp_t 863 drivers/staging/media/omap4iss/iss_csi2.c fmt->height = clamp_t(u32, fmt->height, 1, 8191); clamp_t 219 drivers/staging/media/omap4iss/iss_ipipe.c fmt->width = clamp_t(u32, width, 1, 8192); clamp_t 220 drivers/staging/media/omap4iss/iss_ipipe.c fmt->height = clamp_t(u32, height, 1, 8192); clamp_t 229 drivers/staging/media/omap4iss/iss_ipipe.c fmt->width = clamp_t(u32, width, 32, fmt->width); clamp_t 230 drivers/staging/media/omap4iss/iss_ipipe.c fmt->height = clamp_t(u32, height, 32, fmt->height); clamp_t 401 drivers/staging/media/omap4iss/iss_ipipeif.c fmt->width = clamp_t(u32, width, 1, 8192); clamp_t 402 drivers/staging/media/omap4iss/iss_ipipeif.c fmt->height = clamp_t(u32, height, 1, 8192); clamp_t 415 drivers/staging/media/omap4iss/iss_ipipeif.c fmt->width = clamp_t(u32, width, 32, (fmt->width + 15) & ~15); clamp_t 417 drivers/staging/media/omap4iss/iss_ipipeif.c fmt->height = clamp_t(u32, height, 32, fmt->height); clamp_t 425 drivers/staging/media/omap4iss/iss_ipipeif.c fmt->width = clamp_t(u32, width, 32, fmt->width); clamp_t 426 drivers/staging/media/omap4iss/iss_ipipeif.c fmt->height = clamp_t(u32, height, 32, fmt->height); clamp_t 458 drivers/staging/media/omap4iss/iss_resizer.c fmt->width = clamp_t(u32, width, 1, 8192); clamp_t 459 drivers/staging/media/omap4iss/iss_resizer.c fmt->height = clamp_t(u32, height, 1, 8192); clamp_t 477 drivers/staging/media/omap4iss/iss_resizer.c fmt->width = clamp_t(u32, width, 32, (fmt->width + 15) & ~15); clamp_t 479 drivers/staging/media/omap4iss/iss_resizer.c fmt->height = clamp_t(u32, height, 32, fmt->height); clamp_t 1513 drivers/staging/rtl8192e/rtl8192e/rtl_dm.c gain_range = clamp_t(long, gain_range, clamp_t 2113 drivers/usb/dwc3/gadget.c clamp_t(u8, dwc->hird_threshold, 2, 15); clamp_t 157 drivers/video/backlight/bd6107.c props.brightness = clamp_t(unsigned int, pdata->def_value, 0, clamp_t 115 drivers/video/backlight/lv5207lp.c props.brightness = clamp_t(unsigned int, pdata->def_value, 0, clamp_t 95 drivers/watchdog/stm32_iwdg.c tout = clamp_t(unsigned int, wdd->timeout, clamp_t 97 drivers/watchdog/stmp3xxx_rtc_wdt.c stmp3xxx_wdd.timeout = clamp_t(unsigned, heartbeat, 1, STMP3XXX_MAX_TIMEOUT); clamp_t 859 fs/ext4/ext4.h (raw_inode)->xtime = cpu_to_le32(clamp_t(int32_t, (inode)->xtime.tv_sec, S32_MIN, S32_MAX)); \ clamp_t 34 fs/jffs2/os-linux.h #define JFFS2_CLAMP_TIME(t) ((uint32_t)clamp_t(time64_t, (t), 0, U32_MAX)) clamp_t 1602 fs/nfsd/nfs4state.c avail = clamp_t(unsigned long, avail, slotsize, clamp_t 2144 fs/ocfs2/dlmglue.c u64 sec = clamp_t(time64_t, spec->tv_sec, 0, 0x3ffffffffull); clamp_t 967 include/linux/kernel.h #define clamp_val(val, lo, hi) clamp_t(typeof(val), val, lo, hi) clamp_t 775 kernel/fork.c max_threads = clamp_t(u64, threads, MIN_THREADS, MAX_THREADS); clamp_t 3025 kernel/sched/fair.c return clamp_t(long, shares, MIN_SHARES, tg_shares); clamp_t 3069 kernel/sched/fair.c return clamp_t(long, runnable, MIN_SHARES, shares); clamp_t 1232 kernel/sys.c copy = clamp_t(size_t, len, 1, sizeof(buf)); clamp_t 8 lib/notifier-error-inject.c *(int *)data = clamp_t(int, val, -MAX_ERRNO, 0); clamp_t 363 lib/sbitmap.c wake_batch = clamp_t(unsigned int, depth / SBQ_WAIT_QUEUES, 1, clamp_t 2054 mm/vmalloc.c align = 1ul << clamp_t(int, get_count_order_long(size), clamp_t 1195 net/can/gw.c max_hops = clamp_t(unsigned int, max_hops, CGW_MIN_HOPS, CGW_MAX_HOPS); clamp_t 867 net/core/flow_dissector.c flow_keys->nhoff = clamp_t(u16, flow_keys->nhoff, nhoff, hlen); clamp_t 868 net/core/flow_dissector.c flow_keys->thoff = clamp_t(u16, flow_keys->thoff, clamp_t 75 net/dccp/ccids/ccid3.c const __u32 w_init = clamp_t(__u32, 4380U, 2 * hc->tx_s, 4 * hc->tx_s); clamp_t 245 net/ipv4/tcp_output.c *rcv_wscale = clamp_t(int, ilog2(space) - 15, clamp_t 4039 net/netfilter/ipvs/ip_vs_ctl.c ipvs->sysctl_sync_retries = clamp_t(int, DEFAULT_SYNC_RETRIES, 0, 3); clamp_t 1285 net/netfilter/ipvs/ip_vs_sync.c val = clamp_t(int, val, (SOCK_MIN_SNDBUF + 1) / 2, clamp_t 1290 net/netfilter/ipvs/ip_vs_sync.c val = clamp_t(int, val, (SOCK_MIN_RCVBUF + 1) / 2, clamp_t 1810 net/netfilter/ipvs/ip_vs_sync.c c->sync_maxlen = clamp_t(unsigned int, clamp_t 1133 net/sched/sch_htb.c cl->xstats.tokens = clamp_t(s64, PSCHED_NS2TICKS(cl->tokens), clamp_t 1135 net/sched/sch_htb.c cl->xstats.ctokens = clamp_t(s64, PSCHED_NS2TICKS(cl->ctokens), clamp_t 1065 sound/soc/codecs/sta32x.c pdata->drop_compensation_ns = clamp_t(u16, tmp, 0, 300) / 20; clamp_t 1138 sound/soc/codecs/sta350.c pdata->drop_compensation_ns = clamp_t(u16, tmp, 0, 300) / 20;