Searched refs:clamp (Results 176 - 200 of 321) sorted by relevance

1234567891011>>

/linux-master/drivers/dma/dw/
H A Dcore.c791 clamp(dwc->dma_sconfig.src_maxburst, 0U, dwc->max_burst);
793 clamp(dwc->dma_sconfig.dst_maxburst, 0U, dwc->max_burst);
/linux-master/fs/smb/client/
H A Dnetmisc.c992 day = clamp(day, 1, 31);
993 month = clamp(month, 1, 12);
/linux-master/drivers/gpu/drm/panel/
H A Dpanel-sitronix-st7701.c248 (clamp((u32)mode->htotal, 512U, 1008U) - 512) / 16));
266 DIV_ROUND_CLOSEST(clamp(desc->vgh_mv,
/linux-master/drivers/media/platform/ti/omap3isp/
H A Dispresizer.c747 * We first clamp the output size according to the hardware capability to avoid
764 * We then compute and clamp the ratios (x1/4 ~ x4). Clamping the output size to
805 output->height = clamp(output->height, min_height, max_height);
874 output->width = clamp(output->width, min_width,
/linux-master/drivers/media/i2c/
H A Dmt9m111.c472 rect.left = clamp(rect.left, MT9M111_MIN_DARK_COLS,
475 rect.top = clamp(rect.top, MT9M111_MIN_DARK_ROWS,
H A Dov5693.c827 * Align to two to simplify the binning calculations below, and clamp
937 rect.left = clamp(ALIGN(sel->r.left, 2), OV5693_NATIVE_START_LEFT,
939 rect.top = clamp(ALIGN(sel->r.top, 2), OV5693_NATIVE_START_TOP,
/linux-master/drivers/media/platform/renesas/vsp1/
H A Dvsp1_video.c138 pix->width = clamp(width, info->hsub, VSP1_VIDEO_MAX_WIDTH);
139 pix->height = clamp(height, info->vsub, VSP1_VIDEO_MAX_HEIGHT);
142 * Compute and clamp the stride and image size. While not documented in
/linux-master/drivers/staging/media/meson/vdec/
H A Dvdec.c520 pixmp->width = clamp(pixmp->width, (u32)256, fmt_out->max_width);
521 pixmp->height = clamp(pixmp->height, (u32)144, fmt_out->max_height);
/linux-master/drivers/media/platform/atmel/
H A Datmel-isi.c607 pixfmt->width = clamp(pixfmt->width, 0U, MAX_SUPPORT_WIDTH);
608 pixfmt->height = clamp(pixfmt->height, 0U, MAX_SUPPORT_HEIGHT);
/linux-master/sound/core/seq/
H A Dseq_ump_convert.c636 val = clamp(val, 0, 0x3fff);
870 val = clamp(val, 0, 0x3fff);
/linux-master/drivers/spi/
H A Dspi-rspi.c265 rspi_write8(rspi, clamp(spbr, 0, 255), RSPI_SPBR);
357 spbr = clamp(spbr, 0, 255);
/linux-master/drivers/usb/gadget/function/
H A Du_audio.c800 val = clamp(val, prm->volume_min, prm->volume_max);
1040 volume = clamp(volume, prm->volume_min, prm->volume_max);
/linux-master/drivers/tty/serial/
H A Dmax310x.c1059 val = (clamp(port->rs485.delay_rts_before_send, 0U, 15U) << 4) |
1060 clamp(port->rs485.delay_rts_after_send, 0U, 15U);
/linux-master/drivers/staging/media/atomisp/pci/
H A Dsh_css_params.c4011 motion_x = clamp(motion_x, -half_env_x, half_env_x);
4012 motion_y = clamp(motion_y, -half_env_y, half_env_y);
4023 motion_x = clamp(motion_x, -half_env_x, half_env_x);
4024 motion_y = clamp(motion_y, -half_env_y, half_env_y);
4045 motion_x = clamp(motion_x, -half_env_x, half_env_x);
4046 motion_y = clamp(motion_y, -half_env_y, half_env_y);
/linux-master/drivers/media/i2c/ccs/
H A Dccs-core.c2217 clamp(fmt->format.width,
2221 clamp(fmt->format.height,
2359 a = clamp(a, CCS_LIM(sensor, SCALER_M_MIN),
2361 b = clamp(b, CCS_LIM(sensor, SCALER_M_MIN),
2363 max_m = clamp(max_m, CCS_LIM(sensor, SCALER_M_MIN),
/linux-master/mm/
H A Dpage_alloc.c2460 high = pcp->high = clamp(pcp->high, high_min, high_max);
2495 pcp->high = clamp(need_high, high_min, high_max);
2854 high = pcp->high = clamp(pcp->high, high_min, high_max);
5943 min_pages = clamp(min_pages, SWAP_CLUSTER_MAX, 128UL);
6031 min_free_kbytes = clamp(new_min_free_kbytes, 128, 262144);
/linux-master/drivers/tty/vt/
H A Dvt.c1570 unsigned int count = clamp(vc->vc_par[0], 1, vc->vc_cols - vc->state.x);
2046 nr = clamp(nr, 1, vc->vc_cols - vc->state.x);
2053 unsigned int nr = clamp(vc->vc_par[0], 1, vc->vc_rows - vc->state.y);
2062 unsigned int nr = clamp(vc->vc_par[0], 1, vc->vc_cols - vc->state.x);
2070 unsigned int nr = clamp(vc->vc_par[0], 1, vc->vc_rows - vc->state.y);
4900 /* clamp values if they don't fit */
/linux-master/drivers/media/platform/renesas/
H A Drcar_fdp1.c1426 /* Compute and clamp the stride and image size. */
1491 * Align the width and height for YUV 4:2:2 and 4:2:0 formats and clamp
1497 pix->width = clamp(width, FDP1_MIN_W, FDP1_MAX_W);
1501 pix->height = clamp(height, FDP1_MIN_H / 2, FDP1_MAX_H / 2);
1503 pix->height = clamp(height, FDP1_MIN_H, FDP1_MAX_H);
/linux-master/drivers/gpu/drm/i915/display/
H A Dintel_backlight.c47 source_val = clamp(source_val, source_min, source_max);
69 hw_level = clamp(hw_level, panel->backlight.min, panel->backlight.max);
1333 val = clamp(val, panel->backlight.pwm_level_min, panel->backlight.pwm_level_max);
/linux-master/drivers/gpu/drm/i915/gt/
H A Dintel_rps.c873 clamp(rps->cur_freq,
1964 new_freq = clamp(new_freq,
2608 intel_rps_set(rps, clamp(rps->cur_freq,
/linux-master/drivers/media/pci/ivtv/
H A Divtv-ioctl.c851 sel->r.width = clamp(sel->r.width, 16U, r.width);
852 sel->r.height = clamp(sel->r.height, 16U, r.height);
/linux-master/drivers/media/platform/nxp/dw100/
H A Ddw100.c978 clamp(sel->r.height, DW100_MIN_H, hframe - sel->r.top);
980 clamp(sel->r.width, DW100_MIN_W, wframe - sel->r.left);
/linux-master/drivers/media/platform/qcom/venus/
H A Dvdec.c208 pixmp->width = clamp(pixmp->width, frame_width_min(inst),
210 pixmp->height = clamp(pixmp->height, frame_height_min(inst),
H A Dvenc.c195 pixmp->width = clamp(pixmp->width, frame_width_min(inst),
197 pixmp->height = clamp(pixmp->height, frame_height_min(inst),
/linux-master/drivers/media/platform/nxp/
H A Dimx7-media-csi.c1159 pixfmt->width = clamp(round_up(pixfmt->width, walign), walign,
1161 pixfmt->height = clamp(pixfmt->height, 1U, 65535U);

Completed in 474 milliseconds

1234567891011>>