/linux-master/drivers/media/platform/renesas/vsp1/ |
H A D | vsp1_histo.c | 271 sel->r.left = clamp_t(unsigned int, sel->r.left, 0, format->width - 1); 272 sel->r.top = clamp_t(unsigned int, sel->r.top, 0, format->height - 1); 273 sel->r.width = clamp_t(unsigned int, sel->r.width, HISTO_MIN_SIZE, 275 sel->r.height = clamp_t(unsigned int, sel->r.height, HISTO_MIN_SIZE,
|
H A D | vsp1_brx.c | 247 sel->r.left = clamp_t(unsigned int, sel->r.left, 0, format->width - 1); 248 sel->r.top = clamp_t(unsigned int, sel->r.top, 0, format->height - 1);
|
/linux-master/drivers/iio/temperature/ |
H A D | tmp117.c | 101 off = clamp_t(int, val, S16_MIN, S16_MAX);
|
/linux-master/drivers/video/backlight/ |
H A D | lv5207lp.c | 109 props.brightness = clamp_t(unsigned int, pdata->def_value, 0,
|
/linux-master/drivers/staging/media/starfive/camss/ |
H A D | stf-isp.c | 96 fmt->width = clamp_t(u32, fmt->width, STFCAMSS_FRAME_MIN_WIDTH, 98 fmt->height = clamp_t(u32, fmt->height, STFCAMSS_FRAME_MIN_HEIGHT,
|
/linux-master/drivers/media/platform/ti/omap3isp/ |
H A D | ispccp2.c | 263 vpclk_div = clamp_t(unsigned int, vpclk_div, 1, 65536); 268 vpclk_div = clamp_t(unsigned int, vpclk_div, 1, 4); 655 fmt->width = clamp_t(u32, fmt->width, 658 fmt->height = clamp_t(u32, fmt->height, 662 fmt->width = clamp_t(u32, fmt->width, 665 fmt->height = clamp_t(u32, fmt->height,
|
/linux-master/drivers/media/platform/qcom/camss/ |
H A D | camss-video.c | 713 bytesperline[i] = clamp_t(u32, p->bytesperline, 715 sizeimage[i] = clamp_t(u32, p->sizeimage, 734 pix_mp->width = clamp_t(u32, width, 1, CAMSS_FRAME_MAX_WIDTH); 735 pix_mp->height = clamp_t(u32, height, 1, CAMSS_FRAME_MAX_HEIGHT_RDI); 757 p->bytesperline = clamp_t(u32, p->bytesperline, 759 p->sizeimage = clamp_t(u32, p->sizeimage,
|
H A D | camss-csid.c | 312 fmt->width = clamp_t(u32, fmt->width, 1, 8191); 313 fmt->height = clamp_t(u32, fmt->height, 1, 8191); 341 fmt->width = clamp_t(u32, fmt->width, 1, 8191); 342 fmt->height = clamp_t(u32, fmt->height, 1, 8191);
|
/linux-master/drivers/media/usb/stk1160/ |
H A D | stk1160-v4l.c | 385 width = clamp_t(unsigned int, f->fmt.pix.width, 387 height = clamp_t(unsigned int, f->fmt.pix.height, 667 *nbuffers = clamp_t(unsigned int, *nbuffers,
|
/linux-master/drivers/media/i2c/ |
H A D | ov5693.c | 830 width = clamp_t(unsigned int, ALIGN(format->format.width, 2), 832 height = clamp_t(unsigned int, ALIGN(format->format.height, 2), 839 hratio = clamp_t(unsigned int, 841 vratio = clamp_t(unsigned int, 941 rect.width = clamp_t(unsigned int, ALIGN(sel->r.width, 2), 943 rect.height = clamp_t(unsigned int, ALIGN(sel->r.height, 2),
|
H A D | imx296.c | 701 width = clamp_t(unsigned int, fmt->format.width, 703 height = clamp_t(unsigned int, fmt->format.height, 773 rect.width = clamp_t(unsigned int, ALIGN(sel->r.width, 4), 775 rect.height = clamp_t(unsigned int, ALIGN(sel->r.height, 4),
|
H A D | mt9m001.c | 273 rect.width = clamp_t(u32, rect.width, MT9M001_MIN_WIDTH, 275 rect.left = clamp_t(u32, rect.left, MT9M001_COLUMN_SKIP, 278 rect.height = clamp_t(u32, rect.height, MT9M001_MIN_HEIGHT, 280 rect.top = clamp_t(u32, rect.top, MT9M001_ROW_SKIP,
|
/linux-master/drivers/cpufreq/ |
H A D | amd-pstate.c | 527 min_perf = clamp_t(unsigned long, min_perf, cpudata->min_limit_perf, 529 max_perf = clamp_t(unsigned long, max_perf, cpudata->min_limit_perf, 531 des_perf = clamp_t(unsigned long, des_perf, min_perf, max_perf); 682 des_perf = clamp_t(unsigned long, des_perf, min_perf, max_perf); 1508 max_perf = clamp_t(unsigned long, max_perf, cpudata->min_limit_perf, 1510 min_perf = clamp_t(unsigned long, min_perf, cpudata->min_limit_perf,
|
/linux-master/drivers/powercap/ |
H A D | arm_scmi_powercap.c | 111 *norm = clamp_t(u32, val, spz->info->min_power_cap, 162 *norm = clamp_t(u32, time_us, spz->info->min_pai, spz->info->max_pai);
|
/linux-master/drivers/media/platform/st/stm32/stm32-dcmipp/ |
H A D | dcmipp-parallel.c | 215 fmt->width = clamp_t(u32, fmt->width, DCMIPP_FRAME_MIN_WIDTH, 217 fmt->height = clamp_t(u32, fmt->height, DCMIPP_FRAME_MIN_HEIGHT,
|
/linux-master/drivers/media/test-drivers/vimc/ |
H A D | vimc-sensor.c | 136 fmt->width = clamp_t(u32, fmt->width, VIMC_FRAME_MIN_WIDTH, 138 fmt->height = clamp_t(u32, fmt->height, VIMC_FRAME_MIN_HEIGHT,
|
H A D | vimc-scaler.c | 204 fmt->width = clamp_t(u32, format->format.width, VIMC_FRAME_MIN_WIDTH, 206 fmt->height = clamp_t(u32, format->format.height, VIMC_FRAME_MIN_HEIGHT,
|
H A D | vimc-capture.c | 91 format->width = clamp_t(u32, format->width, VIMC_FRAME_MIN_WIDTH, 93 format->height = clamp_t(u32, format->height, VIMC_FRAME_MIN_HEIGHT,
|
/linux-master/drivers/media/platform/rockchip/rkisp1/ |
H A D | rkisp1-csi.c | 327 sink_fmt->width = clamp_t(u32, fmt->format.width, 330 sink_fmt->height = clamp_t(u32, fmt->format.height,
|
/linux-master/drivers/media/platform/nxp/imx8-isi/ |
H A D | imx8-isi-crossbar.c | 273 fmt->format.width = clamp_t(unsigned int, fmt->format.width, 275 fmt->format.height = clamp_t(unsigned int, fmt->format.height,
|
/linux-master/drivers/phy/intel/ |
H A D | phy-intel-lgm-emmc.c | 79 freqsel = clamp_t(int, quot, FRQSEL_25M, FRQSEL_150M);
|
/linux-master/kernel/ |
H A D | tsacct.c | 43 stats->ac_btime = clamp_t(time64_t, btime, 0, U32_MAX);
|
/linux-master/fs/jffs2/ |
H A D | os-linux.h | 34 #define JFFS2_CLAMP_TIME(t) ((uint32_t)clamp_t(time64_t, (t), 0, U32_MAX))
|
/linux-master/drivers/iio/magnetometer/ |
H A D | ak8975.c | 744 *val = clamp_t(s16, buff, -def->range, def->range); 842 data->scan.channels[0] = clamp_t(s16, le16_to_cpu(fval[0]), -def->range, def->range); 843 data->scan.channels[1] = clamp_t(s16, le16_to_cpu(fval[1]), -def->range, def->range); 844 data->scan.channels[2] = clamp_t(s16, le16_to_cpu(fval[2]), -def->range, def->range);
|
/linux-master/drivers/watchdog/ |
H A D | sbsa_gwdt.c | 152 timeout = clamp_t(unsigned int, timeout, 1, wdd->max_hw_heartbeat_ms / 1000);
|