/linux-master/drivers/staging/media/omap4iss/ |
H A D | iss_resizer.c | 458 fmt->width = clamp_t(u32, width, 1, 8192); 459 fmt->height = clamp_t(u32, height, 1, 8192); 478 fmt->width = clamp_t(u32, width, 32, (fmt->width + 15) & ~15); 480 fmt->height = clamp_t(u32, height, 32, fmt->height);
|
/linux-master/drivers/staging/media/imx/ |
H A D | imx-media-csc-scaler.c | 367 s->r.width = clamp_t(unsigned int, s->r.width, 8, 369 s->r.height = clamp_t(unsigned int, s->r.height, 1, 371 s->r.left = clamp_t(unsigned int, s->r.left, 0, 373 s->r.top = clamp_t(unsigned int, s->r.top, 0,
|
/linux-master/drivers/media/platform/rockchip/rkisp1/ |
H A D | rkisp1-resizer.c | 426 src_fmt->width = clamp_t(u32, format->width, 429 src_fmt->height = clamp_t(u32, format->height, 495 sink_fmt->width = clamp_t(u32, format->width, 498 sink_fmt->height = clamp_t(u32, format->height,
|
/linux-master/drivers/media/i2c/ |
H A D | mt9p031.c | 602 width = clamp_t(unsigned int, ALIGN(format->format.width, 2), 606 height = clamp_t(unsigned int, ALIGN(format->format.height, 2), 667 rect.width = clamp_t(unsigned int, ALIGN(sel->r.width, 2), 670 rect.height = clamp_t(unsigned int, ALIGN(sel->r.height, 2),
|
H A D | mt9m114.c | 1287 crop->width = clamp_t(unsigned int, ALIGN(sel->r.width, 4), 1290 crop->height = clamp_t(unsigned int, ALIGN(sel->r.height, 2), 1909 crop->left = clamp_t(unsigned int, ALIGN(sel->r.left, 2), 4, 1912 crop->top = clamp_t(unsigned int, ALIGN(sel->r.top, 2), 4, 1915 crop->width = clamp_t(unsigned int, ALIGN(sel->r.width, 2), 1918 crop->height = clamp_t(unsigned int, ALIGN(sel->r.height, 2), 1933 compose->width = clamp_t(unsigned int, ALIGN(sel->r.width, 2), 1936 compose->height = clamp_t(unsigned int, ALIGN(sel->r.height, 2),
|
/linux-master/drivers/watchdog/ |
H A D | stm32_iwdg.c | 96 tout = clamp_t(unsigned int, wdd->timeout,
|
/linux-master/drivers/video/backlight/ |
H A D | bd6107.c | 156 props.brightness = clamp_t(unsigned int, pdata->def_value, 0,
|
/linux-master/drivers/net/ethernet/marvell/octeontx2/nic/ |
H A D | otx2_ethtool.c | 436 tx_count = clamp_t(u32, ring->tx_pending, 518 ec->rx_coalesce_usecs = clamp_t(u32, ec->rx_coalesce_usecs, 520 ec->tx_coalesce_usecs = clamp_t(u32, ec->tx_coalesce_usecs, 537 ec->rx_max_coalesced_frames = clamp_t(u32, ec->rx_max_coalesced_frames, 539 ec->tx_max_coalesced_frames = clamp_t(u32, ec->tx_max_coalesced_frames,
|
/linux-master/drivers/media/platform/ti/omap3isp/ |
H A D | isppreview.c | 1755 fmt->width = clamp_t(u32, fmt->width, PREV_MIN_IN_WIDTH, 1757 fmt->height = clamp_t(u32, fmt->height, 1853 crop->left = clamp_t(u32, crop->left, left, right - PREV_MIN_OUT_WIDTH); 1854 crop->top = clamp_t(u32, crop->top, top, bottom - PREV_MIN_OUT_HEIGHT); 1855 crop->width = clamp_t(u32, crop->width, PREV_MIN_OUT_WIDTH, 1857 crop->height = clamp_t(u32, crop->height, PREV_MIN_OUT_HEIGHT,
|
H A D | ispccdc.c | 2001 fmt->width = clamp_t(u32, width, 32, 4096); 2002 fmt->height = clamp_t(u32, height, 32, 4096); 2072 fmt->width = clamp_t(u32, width, 32, fmt->width); 2073 fmt->height = clamp_t(u32, height, 32, fmt->height - 1); 2105 crop->left = clamp_t(u32, crop->left, 0, sink->width - CCDC_MIN_WIDTH); 2106 crop->top = clamp_t(u32, crop->top, 0, sink->height - CCDC_MIN_HEIGHT); 2114 crop->width = clamp_t(u32, crop->width, CCDC_MIN_WIDTH, max_width) 2116 crop->height = clamp_t(u32, crop->height, CCDC_MIN_HEIGHT,
|
/linux-master/drivers/clk/baikal-t1/ |
H A D | ccu-div.c | 227 return clamp_t(unsigned long, divider, CCU_DIV_CLKDIV_MIN, 376 val = clamp_t(u64, val, CCU_DIV_CLKDIV_MIN,
|
/linux-master/drivers/media/test-drivers/vivid/ |
H A D | vivid-sdr-cap.c | 395 freq = clamp_t(unsigned, freq, 409 dev->sdr_fm_freq = clamp_t(unsigned, freq,
|
/linux-master/drivers/clk/xilinx/ |
H A D | xlnx_vcu.c | 317 rate = clamp_t(unsigned long, rate, pll->fvco_min, pll->fvco_max); 320 feedback_div = clamp_t(unsigned int, feedback_div, 25, 125);
|
/linux-master/drivers/media/platform/st/stm32/stm32-dcmipp/ |
H A D | dcmipp-byteproc.c | 151 fmt->width = clamp_t(u32, fmt->width, DCMIPP_FRAME_MIN_WIDTH, 153 fmt->height = clamp_t(u32, fmt->height, DCMIPP_FRAME_MIN_HEIGHT,
|
/linux-master/drivers/media/test-drivers/vimc/ |
H A D | vimc-debayer.c | 243 fmt->width = clamp_t(u32, fmt->width, VIMC_FRAME_MIN_WIDTH, 245 fmt->height = clamp_t(u32, fmt->height, VIMC_FRAME_MIN_HEIGHT,
|
/linux-master/drivers/media/platform/renesas/vsp1/ |
H A D | vsp1_entity.c | 367 format->width = clamp_t(unsigned int, fmt->format.width, 369 format->height = clamp_t(unsigned int, fmt->format.height,
|
/linux-master/drivers/staging/media/starfive/camss/ |
H A D | stf-video.c | 82 pix->width = clamp_t(u32, width, STFCAMSS_FRAME_MIN_WIDTH, 84 pix->height = clamp_t(u32, height, STFCAMSS_FRAME_MIN_HEIGHT,
|
/linux-master/arch/x86/mm/ |
H A D | init_32.c | 405 unsigned long pfn = clamp_t(unsigned long, PFN_UP(start), 407 unsigned long e_pfn = clamp_t(unsigned long, PFN_DOWN(end),
|
/linux-master/drivers/media/platform/qcom/camss/ |
H A D | camss-csiphy.c | 361 fmt->width = clamp_t(u32, fmt->width, 1, 8191); 362 fmt->height = clamp_t(u32, fmt->height, 1, 8191);
|
/linux-master/drivers/cpufreq/ |
H A D | intel_pstate.c | 1303 no_turbo = !!clamp_t(int, input, 0, 1); 1394 global.max_perf_pct = clamp_t(int, input, global.min_perf_pct, 100); 1427 global.min_perf_pct = clamp_t(int, input, 1772 vid_fp = clamp_t(int32_t, vid_fp, cpudata->vid.min, cpudata->vid.max); 2254 return clamp_t(int, pstate, min_pstate, max_pstate); 2508 min_policy_perf = clamp_t(int32_t, min_policy_perf, 2539 global_min = clamp_t(int32_t, global_min, 0, global_max); 2953 target_pstate = clamp_t(int, target_pstate, min_pstate, max_pstate);
|
/linux-master/drivers/media/radio/ |
H A D | dsbr100.c | 209 return dsbr100_setfreq(radio, clamp_t(unsigned, f->frequency,
|
H A D | radio-raremono.c | 256 freq = clamp_t(u32, f->frequency, bands[band].rangelow, bands[band].rangehigh);
|
/linux-master/drivers/acpi/pmic/ |
H A D | intel_pmic_bxtwc.c | 335 cursel = clamp_t(s8, (count - 7), 0, 7);
|
/linux-master/drivers/hwmon/ |
H A D | lochnagar-hwmon.c | 307 val = clamp_t(long, val, 1, (LN2_MAX_NSAMPLE * LN2_SAMPLE_US) / 1000);
|
/linux-master/drivers/leds/ |
H A D | leds-sc27xx-bltc.c | 139 v = clamp_t(u32, v, SC27XX_DELTA_T_MIN, SC27XX_DELTA_T_MAX);
|