/linux-master/arch/x86/kernel/ |
H A D | check.c | 117 start = clamp_t(phys_addr_t, round_up(start, PAGE_SIZE), 119 end = clamp_t(phys_addr_t, round_down(end, PAGE_SIZE),
|
/linux-master/drivers/platform/x86/dell/ |
H A D | dell-wmi-led.c | 143 on_eighths = clamp_t(unsigned long, on_eighths, 1, 255); 147 off_eighths = clamp_t(unsigned long, off_eighths, 1, 255);
|
/linux-master/drivers/net/ethernet/wangxun/txgbe/ |
H A D | txgbe_ethtool.c | 24 new_tx_count = clamp_t(u32, ring->tx_pending, WX_MIN_TXD, WX_MAX_TXD); 27 new_rx_count = clamp_t(u32, ring->rx_pending, WX_MIN_RXD, WX_MAX_RXD);
|
/linux-master/drivers/media/platform/renesas/vsp1/ |
H A D | vsp1_uif.c | 155 sel->r.left = clamp_t(unsigned int, sel->r.left, 0, format->width - 1); 156 sel->r.top = clamp_t(unsigned int, sel->r.top, 0, format->height - 1); 157 sel->r.width = clamp_t(unsigned int, sel->r.width, UIF_MIN_SIZE, 159 sel->r.height = clamp_t(unsigned int, sel->r.height, UIF_MIN_SIZE,
|
H A D | vsp1_hsit.c | 94 format->width = clamp_t(unsigned int, fmt->format.width, 96 format->height = clamp_t(unsigned int, fmt->format.height,
|
H A D | vsp1_rwpf.c | 95 format->width = clamp_t(unsigned int, fmt->format.width, 97 format->height = clamp_t(unsigned int, fmt->format.height,
|
/linux-master/drivers/net/ethernet/wangxun/ngbe/ |
H A D | ngbe_ethtool.c | 57 new_tx_count = clamp_t(u32, ring->tx_pending, WX_MIN_TXD, WX_MAX_TXD); 60 new_rx_count = clamp_t(u32, ring->rx_pending, WX_MIN_RXD, WX_MAX_RXD);
|
/linux-master/arch/powerpc/platforms/85xx/ |
H A D | t1042rdb_diu.c | 110 pxclk = clamp_t(u32, pxclk, 2, 255);
|
H A D | p1022_rdk.c | 76 pxclk = clamp_t(u32, pxclk, 2, 255);
|
/linux-master/lib/ |
H A D | notifier-error-inject.c | 8 *(int *)data = clamp_t(int, val, -MAX_ERRNO, 0);
|
/linux-master/drivers/power/supply/ |
H A D | pm8916_lbc.c | 88 chg->charge_voltage_max = clamp_t(u32, chg->charge_voltage_max, 101 tmp = clamp_t(u32, chg->charge_current_max, 209 chg->charge_voltage_safe = clamp_t(u32, chg->charge_voltage_safe, 224 chg->charge_current_safe = clamp_t(u32, chg->charge_current_safe,
|
/linux-master/drivers/clk/zynqmp/ |
H A D | pll.c | 119 fbdiv = clamp_t(u32, fbdiv, PLL_FBDIV_MIN, PLL_FBDIV_MAX); 193 m = clamp_t(u32, m, (PLL_FBDIV_MIN), (PLL_FBDIV_MAX)); 210 fbdiv = clamp_t(u32, fbdiv, PLL_FBDIV_MIN, PLL_FBDIV_MAX);
|
/linux-master/drivers/media/dvb-frontends/ |
H A D | ts2020.c | 358 gain1 = clamp_t(long, gain1, 0, 15); 359 gain2 = clamp_t(long, gain2, 0, 13); 360 v_agc = clamp_t(long, v_agc, 400, 1100); 375 gain1 = clamp_t(long, gain1, 0, 15); 376 gain2 = clamp_t(long, gain2, 2, 16); 377 gain3 = clamp_t(long, gain3, 0, 6); 378 v_agc = clamp_t(long, v_agc, 600, 1600);
|
/linux-master/drivers/staging/media/omap4iss/ |
H A D | iss_ipipeif.c | 401 fmt->width = clamp_t(u32, width, 1, 8192); 402 fmt->height = clamp_t(u32, height, 1, 8192); 416 fmt->width = clamp_t(u32, width, 32, (fmt->width + 15) & ~15); 418 fmt->height = clamp_t(u32, height, 32, fmt->height); 427 fmt->width = clamp_t(u32, width, 32, fmt->width); 428 fmt->height = clamp_t(u32, height, 32, fmt->height);
|
H A D | iss_ipipe.c | 219 fmt->width = clamp_t(u32, width, 1, 8192); 220 fmt->height = clamp_t(u32, height, 1, 8192); 230 fmt->width = clamp_t(u32, width, 32, fmt->width); 231 fmt->height = clamp_t(u32, height, 32, fmt->height);
|
/linux-master/drivers/watchdog/ |
H A D | stmp3xxx_rtc_wdt.c | 97 stmp3xxx_wdd.timeout = clamp_t(unsigned, heartbeat, 1, STMP3XXX_MAX_TIMEOUT);
|
/linux-master/include/linux/ |
H A D | minmax.h | 215 * clamp_t - return a value clamped to a given range using a given type 224 #define clamp_t(type, val, lo, hi) __careful_clamp((type)(val), (type)(lo), (type)(hi)) macro 237 #define clamp_val(val, lo, hi) clamp_t(typeof(val), val, lo, hi)
|
/linux-master/drivers/media/platform/xilinx/ |
H A D | xilinx-vip.c | 152 format->width = clamp_t(unsigned int, fmt->format.width, 154 format->height = clamp_t(unsigned int, fmt->format.height,
|
/linux-master/drivers/staging/media/atomisp/pci/ |
H A D | atomisp_csi2.c | 104 actual_ffmt->width = clamp_t(u32, ffmt->width, 107 actual_ffmt->height = clamp_t(u32, ffmt->height,
|
/linux-master/drivers/media/platform/renesas/rzg2l-cru/ |
H A D | rzg2l-ip.c | 121 sink_format->width = clamp_t(u32, fmt->format.width, 123 sink_format->height = clamp_t(u32, fmt->format.height,
|
/linux-master/drivers/media/platform/ti/omap3isp/ |
H A D | ispresizer.c | 812 ratio->vert = clamp_t(unsigned int, ratio->vert, 883 ratio->horz = clamp_t(unsigned int, ratio->horz, 1202 crop->width = clamp_t(u32, crop->width, min_width, max_width); 1203 crop->height = clamp_t(u32, crop->height, min_height, max_height); 1206 crop->left = clamp_t(u32, crop->left, 0, sink->width - MIN_IN_WIDTH); 1207 crop->width = clamp_t(u32, crop->width, MIN_IN_WIDTH, 1209 crop->top = clamp_t(u32, crop->top, 0, sink->height - MIN_IN_HEIGHT); 1210 crop->height = clamp_t(u32, crop->height, MIN_IN_HEIGHT, 1392 fmt->width = clamp_t(u32, fmt->width, MIN_IN_WIDTH, 1394 fmt->height = clamp_t(u3 [all...] |
/linux-master/drivers/media/test-drivers/vivid/ |
H A D | vivid-radio-common.c | 165 freq = clamp_t(u32, vf->frequency, vivid_radio_bands[band].rangelow,
|
/linux-master/drivers/net/wireless/realtek/rtw88/ |
H A D | sar.c | 55 return (s8)clamp_t(s32, tmp, -max - 1, max) - base;
|
/linux-master/drivers/gpu/drm/vboxvideo/ |
H A D | vbox_main.c | 149 vbox->num_crtcs = clamp_t(u32, vbox->num_crtcs, 1, VBOX_MAX_SCREENS);
|
/linux-master/mm/ |
H A D | dmapool_test.c | 37 return clamp_t(int, (PAGE_SIZE / size) * 512, 1024, 8192);
|