Searched refs:clamp_t (Results 26 - 50 of 238) sorted by relevance

12345678910

/linux-master/drivers/media/platform/renesas/vsp1/
H A Dvsp1_histo.c271 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 Dvsp1_brx.c247 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 Dtmp117.c101 off = clamp_t(int, val, S16_MIN, S16_MAX);
/linux-master/drivers/video/backlight/
H A Dlv5207lp.c109 props.brightness = clamp_t(unsigned int, pdata->def_value, 0,
/linux-master/drivers/staging/media/starfive/camss/
H A Dstf-isp.c96 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 Dispccp2.c263 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 Dcamss-video.c713 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 Dcamss-csid.c312 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 Dstk1160-v4l.c385 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 Dov5693.c830 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 Dimx296.c701 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 Dmt9m001.c273 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 Damd-pstate.c527 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 Darm_scmi_powercap.c111 *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 Ddcmipp-parallel.c215 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 Dvimc-sensor.c136 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 Dvimc-scaler.c204 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 Dvimc-capture.c91 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 Drkisp1-csi.c327 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 Dimx8-isi-crossbar.c273 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 Dphy-intel-lgm-emmc.c79 freqsel = clamp_t(int, quot, FRQSEL_25M, FRQSEL_150M);
/linux-master/kernel/
H A Dtsacct.c43 stats->ac_btime = clamp_t(time64_t, btime, 0, U32_MAX);
/linux-master/fs/jffs2/
H A Dos-linux.h34 #define JFFS2_CLAMP_TIME(t) ((uint32_t)clamp_t(time64_t, (t), 0, U32_MAX))
/linux-master/drivers/iio/magnetometer/
H A Dak8975.c744 *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 Dsbsa_gwdt.c152 timeout = clamp_t(unsigned int, timeout, 1, wdd->max_hw_heartbeat_ms / 1000);

Completed in 636 milliseconds

12345678910