Searched refs:clamp_t (Results 51 - 75 of 238) sorted by relevance

12345678910

/linux-master/drivers/staging/media/omap4iss/
H A Diss_resizer.c458 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 Dimx-media-csc-scaler.c367 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 Drkisp1-resizer.c426 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 Dmt9p031.c602 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 Dmt9m114.c1287 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 Dstm32_iwdg.c96 tout = clamp_t(unsigned int, wdd->timeout,
/linux-master/drivers/video/backlight/
H A Dbd6107.c156 props.brightness = clamp_t(unsigned int, pdata->def_value, 0,
/linux-master/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_ethtool.c436 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 Disppreview.c1755 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 Dispccdc.c2001 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 Dccu-div.c227 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 Dvivid-sdr-cap.c395 freq = clamp_t(unsigned, freq,
409 dev->sdr_fm_freq = clamp_t(unsigned, freq,
/linux-master/drivers/clk/xilinx/
H A Dxlnx_vcu.c317 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 Ddcmipp-byteproc.c151 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 Dvimc-debayer.c243 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 Dvsp1_entity.c367 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 Dstf-video.c82 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 Dinit_32.c405 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 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/cpufreq/
H A Dintel_pstate.c1303 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 Ddsbr100.c209 return dsbr100_setfreq(radio, clamp_t(unsigned, f->frequency,
H A Dradio-raremono.c256 freq = clamp_t(u32, f->frequency, bands[band].rangelow, bands[band].rangehigh);
/linux-master/drivers/acpi/pmic/
H A Dintel_pmic_bxtwc.c335 cursel = clamp_t(s8, (count - 7), 0, 7);
/linux-master/drivers/hwmon/
H A Dlochnagar-hwmon.c307 val = clamp_t(long, val, 1, (LN2_MAX_NSAMPLE * LN2_SAMPLE_US) / 1000);
/linux-master/drivers/leds/
H A Dleds-sc27xx-bltc.c139 v = clamp_t(u32, v, SC27XX_DELTA_T_MIN, SC27XX_DELTA_T_MAX);

Completed in 597 milliseconds

12345678910