/linux-master/drivers/dma/dw/ |
H A D | core.c | 791 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 D | netmisc.c | 992 day = clamp(day, 1, 31); 993 month = clamp(month, 1, 12);
|
/linux-master/drivers/gpu/drm/panel/ |
H A D | panel-sitronix-st7701.c | 248 (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 D | ispresizer.c | 747 * 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 D | mt9m111.c | 472 rect.left = clamp(rect.left, MT9M111_MIN_DARK_COLS, 475 rect.top = clamp(rect.top, MT9M111_MIN_DARK_ROWS,
|
H A D | ov5693.c | 827 * 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 D | vsp1_video.c | 138 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 D | vdec.c | 520 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 D | atmel-isi.c | 607 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 D | seq_ump_convert.c | 636 val = clamp(val, 0, 0x3fff); 870 val = clamp(val, 0, 0x3fff);
|
/linux-master/drivers/spi/ |
H A D | spi-rspi.c | 265 rspi_write8(rspi, clamp(spbr, 0, 255), RSPI_SPBR); 357 spbr = clamp(spbr, 0, 255);
|
/linux-master/drivers/usb/gadget/function/ |
H A D | u_audio.c | 800 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 D | max310x.c | 1059 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 D | sh_css_params.c | 4011 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 D | ccs-core.c | 2217 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 D | page_alloc.c | 2460 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 D | vt.c | 1570 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 D | rcar_fdp1.c | 1426 /* 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 D | intel_backlight.c | 47 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 D | intel_rps.c | 873 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 D | ivtv-ioctl.c | 851 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 D | dw100.c | 978 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 D | vdec.c | 208 pixmp->width = clamp(pixmp->width, frame_width_min(inst), 210 pixmp->height = clamp(pixmp->height, frame_height_min(inst),
|
H A D | venc.c | 195 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 D | imx7-media-csi.c | 1159 pixfmt->width = clamp(round_up(pixfmt->width, walign), walign, 1161 pixfmt->height = clamp(pixfmt->height, 1U, 65535U);
|