Searched refs:clamp_t (Results 1 - 25 of 238) sorted by last modified time

12345678910

/linux-master/sound/soc/codecs/
H A Dsta350.c1133 pdata->drop_compensation_ns = clamp_t(u16, tmp, 0, 300) / 20;
H A Dsta32x.c1067 pdata->drop_compensation_ns = clamp_t(u16, tmp, 0, 300) / 20;
/linux-master/kernel/
H A Dsys.c1305 copy = clamp_t(size_t, len, 1, sizeof(buf));
/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/staging/media/ipu3/
H A Dipu3-css.c144 f->width = ALIGN(clamp_t(u32, f->width,
146 f->height = ALIGN(clamp_t(u32, f->height,
/linux-master/drivers/staging/media/atomisp/pci/
H A Datomisp_csi2.c104 actual_ffmt->width = clamp_t(u32, ffmt->width,
107 actual_ffmt->height = clamp_t(u32, ffmt->height,
H A Datomisp_cmd.c3841 f->width = rounddown(clamp_t(u32, f->width, ATOM_ISP_MIN_WIDTH,
3843 f->height = rounddown(clamp_t(u32, f->height, ATOM_ISP_MIN_HEIGHT,
/linux-master/drivers/staging/media/atomisp/i2c/
H A Datomisp-mt9m114.c992 win_left = clamp_t(int, win_left, 0, 4);
993 win_top = clamp_t(int, win_top, 0, 4);
994 win_right = clamp_t(int, win_right, 0, 4);
995 win_bottom = clamp_t(int, win_bottom, 0, 4);
/linux-master/drivers/media/v4l2-core/
H A Dv4l2-ctrls-core.c394 val = clamp_t(typeof(val), val, \
1202 val = clamp_t(s64, val, ctrl->minimum, ctrl->maximum);
/linux-master/drivers/media/usb/uvc/
H A Duvc_ctrl.c1929 xctrl->value = clamp_t(u32, xctrl->value, min, max);
/linux-master/drivers/media/test-drivers/vivid/
H A Dvivid-core.c2016 n_devs = clamp_t(unsigned, n_devs, 1, VIVID_MAX_DEVS);
/linux-master/drivers/media/test-drivers/vimc/
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/ti/j721e-csi2rx/
H A Dj721e-csi2rx.c251 pix->width = clamp_t(unsigned int, pix->width,
254 pix->height = clamp_t(unsigned int, pix->height, 1, MAX_HEIGHT_LINES);
/linux-master/drivers/media/platform/renesas/rcar-vin/
H A Drcar-v4l2.c546 r.top = clamp_t(s32, r.top, 0, max_rect.height - r.height);
547 r.left = clamp_t(s32, r.left, 0, max_rect.width - r.width);
/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-vfe.c940 fmt->width = clamp_t(u32, fmt->width, 1, 8191);
941 fmt->height = clamp_t(u32, fmt->height, 1, 8191);
H A Dcamss-csiphy.c361 fmt->width = clamp_t(u32, fmt->width, 1, 8191);
362 fmt->height = clamp_t(u32, fmt->height, 1, 8191);
/linux-master/drivers/media/platform/broadcom/
H A Dbcm2835-unicam.c575 pix->bytesperline = clamp_t(unsigned int, pix->bytesperline, min_bpl,
1351 format->format.width = clamp_t(unsigned int,
1355 format->format.height = clamp_t(unsigned int,
1361 format->format.width = clamp_t(unsigned int,
1365 format->format.height = clamp_t(unsigned int,
/linux-master/drivers/gpu/drm/xe/
H A Dxe_hwmon.c183 *value = clamp_t(u64, *value, min, max);
/linux-master/drivers/gpu/drm/vc4/
H A Dvc4_hdmi.c2136 unsigned int max_bpc = clamp_t(unsigned int, conn_state->max_bpc, 8, 12);
/linux-master/drivers/gpu/drm/i915/
H A Di915_hwmon.c393 *val = clamp_t(u64, *val, min, max);
/linux-master/drivers/gpu/drm/i915/gt/
H A Dintel_rps.c1195 clamp_t(u32,
1877 new_freq = clamp_t(int, new_freq, min, max);
2476 val = clamp_t(int, rps->cur_freq,
2554 val = clamp_t(int, rps->cur_freq,
/linux-master/drivers/gpu/drm/i915/display/
H A Dintel_dp_aux.c495 ret = clamp_t(int, rxbuf[1], 0, msg->size);
H A Dintel_backlight.c1203 min = clamp_t(int, connector->panel.vbt.backlight.min_brightness, 0, 64);
/linux-master/net/sched/
H A Dsch_htb.c1333 cl->xstats.tokens = clamp_t(s64, PSCHED_NS2TICKS(cl->tokens),
1335 cl->xstats.ctokens = clamp_t(s64, PSCHED_NS2TICKS(cl->ctokens),

Completed in 516 milliseconds

12345678910