Home
last modified time | relevance | path

Searched refs:clamp_t (Results 1 – 25 of 201) sorted by relevance

123456789

/OK3568_Linux_fs/yocto/poky/meta/recipes-kernel/systemtap/systemtap/
H A D0001-PR28778-gcc-warning-tweak-for-sprintf-precision-para.patch14 Adding a clamp_t() around the parameter field to keep it limited to
30 + len = strnlen(ptr, clamp_t(size_t, precision, 0, STP_BUFFER_SIZE));
39 + len = strnlen(ptr, clamp_t(size_t, precision, 0, STP_BUFFER_SIZE));
/OK3568_Linux_fs/kernel/drivers/media/platform/vsp1/
H A Dvsp1_uif.c154 sel->r.left = clamp_t(unsigned int, sel->r.left, 0, format->width - 1); in uif_set_selection()
155 sel->r.top = clamp_t(unsigned int, sel->r.top, 0, format->height - 1); in uif_set_selection()
156 sel->r.width = clamp_t(unsigned int, sel->r.width, UIF_MIN_SIZE, in uif_set_selection()
158 sel->r.height = clamp_t(unsigned int, sel->r.height, UIF_MIN_SIZE, in uif_set_selection()
H A Dvsp1_hsit.c93 format->width = clamp_t(unsigned int, fmt->format.width, in hsit_set_format()
95 format->height = clamp_t(unsigned int, fmt->format.height, in hsit_set_format()
H A Dvsp1_histo.c269 sel->r.left = clamp_t(unsigned int, sel->r.left, 0, format->width - 1); in histo_set_crop()
270 sel->r.top = clamp_t(unsigned int, sel->r.top, 0, format->height - 1); in histo_set_crop()
271 sel->r.width = clamp_t(unsigned int, sel->r.width, HISTO_MIN_SIZE, in histo_set_crop()
273 sel->r.height = clamp_t(unsigned int, sel->r.height, HISTO_MIN_SIZE, in histo_set_crop()
H A Dvsp1_rwpf.c95 format->width = clamp_t(unsigned int, fmt->format.width, in vsp1_rwpf_set_format()
97 format->height = clamp_t(unsigned int, fmt->format.height, in vsp1_rwpf_set_format()
/OK3568_Linux_fs/kernel/drivers/media/dvb-frontends/
H A Dts2020.c358 gain1 = clamp_t(long, gain1, 0, 15); in ts2020_read_tuner_gain()
359 gain2 = clamp_t(long, gain2, 0, 13); in ts2020_read_tuner_gain()
360 v_agc = clamp_t(long, v_agc, 400, 1100); in ts2020_read_tuner_gain()
375 gain1 = clamp_t(long, gain1, 0, 15); in ts2020_read_tuner_gain()
376 gain2 = clamp_t(long, gain2, 2, 16); in ts2020_read_tuner_gain()
377 gain3 = clamp_t(long, gain3, 0, 6); in ts2020_read_tuner_gain()
378 v_agc = clamp_t(long, v_agc, 600, 1600); in ts2020_read_tuner_gain()
/OK3568_Linux_fs/kernel/drivers/staging/media/omap4iss/
H A Diss_ipipeif.c401 fmt->width = clamp_t(u32, width, 1, 8192); in ipipeif_try_format()
402 fmt->height = clamp_t(u32, height, 1, 8192); in ipipeif_try_format()
415 fmt->width = clamp_t(u32, width, 32, (fmt->width + 15) & ~15); in ipipeif_try_format()
417 fmt->height = clamp_t(u32, height, 32, fmt->height); in ipipeif_try_format()
425 fmt->width = clamp_t(u32, width, 32, fmt->width); in ipipeif_try_format()
426 fmt->height = clamp_t(u32, height, 32, fmt->height); in ipipeif_try_format()
H A Diss_ipipe.c219 fmt->width = clamp_t(u32, width, 1, 8192); in ipipe_try_format()
220 fmt->height = clamp_t(u32, height, 1, 8192); in ipipe_try_format()
229 fmt->width = clamp_t(u32, width, 32, fmt->width); in ipipe_try_format()
230 fmt->height = clamp_t(u32, height, 32, fmt->height); in ipipe_try_format()
H A Diss_resizer.c458 fmt->width = clamp_t(u32, width, 1, 8192); in resizer_try_format()
459 fmt->height = clamp_t(u32, height, 1, 8192); in resizer_try_format()
477 fmt->width = clamp_t(u32, width, 32, (fmt->width + 15) & ~15); in resizer_try_format()
479 fmt->height = clamp_t(u32, height, 32, fmt->height); in resizer_try_format()
/OK3568_Linux_fs/kernel/drivers/clk/zynqmp/
H A Dpll.c116 fbdiv = clamp_t(u32, fbdiv, PLL_FBDIV_MIN, PLL_FBDIV_MAX); in zynqmp_pll_round_rate()
183 m = clamp_t(u32, m, (PLL_FBDIV_MIN), (PLL_FBDIV_MAX)); in zynqmp_pll_set_rate()
200 fbdiv = clamp_t(u32, fbdiv, PLL_FBDIV_MIN, PLL_FBDIV_MAX); in zynqmp_pll_set_rate()
/OK3568_Linux_fs/kernel/drivers/media/platform/omap3isp/
H A Dispresizer.c810 ratio->vert = clamp_t(unsigned int, ratio->vert, in resizer_calc_ratios()
881 ratio->horz = clamp_t(unsigned int, ratio->horz, in resizer_calc_ratios()
1200 crop->width = clamp_t(u32, crop->width, min_width, max_width); in resizer_try_crop()
1201 crop->height = clamp_t(u32, crop->height, min_height, max_height); in resizer_try_crop()
1204 crop->left = clamp_t(u32, crop->left, 0, sink->width - MIN_IN_WIDTH); in resizer_try_crop()
1205 crop->width = clamp_t(u32, crop->width, MIN_IN_WIDTH, in resizer_try_crop()
1207 crop->top = clamp_t(u32, crop->top, 0, sink->height - MIN_IN_HEIGHT); in resizer_try_crop()
1208 crop->height = clamp_t(u32, crop->height, MIN_IN_HEIGHT, in resizer_try_crop()
1388 fmt->width = clamp_t(u32, fmt->width, MIN_IN_WIDTH, in resizer_try_format()
1390 fmt->height = clamp_t(u32, fmt->height, MIN_IN_HEIGHT, in resizer_try_format()
H A Dispccp2.c263 vpclk_div = clamp_t(unsigned int, vpclk_div, 1, 65536); in ccp2_vp_config()
268 vpclk_div = clamp_t(unsigned int, vpclk_div, 1, 4); in ccp2_vp_config()
651 fmt->width = clamp_t(u32, fmt->width, in ccp2_try_format()
654 fmt->height = clamp_t(u32, fmt->height, in ccp2_try_format()
658 fmt->width = clamp_t(u32, fmt->width, in ccp2_try_format()
661 fmt->height = clamp_t(u32, fmt->height, in ccp2_try_format()
/OK3568_Linux_fs/kernel/drivers/platform/x86/
H A Ddell-wmi-led.c143 on_eighths = clamp_t(unsigned long, on_eighths, 1, 255); in dell_led_blink()
147 off_eighths = clamp_t(unsigned long, off_eighths, 1, 255); in dell_led_blink()
/OK3568_Linux_fs/kernel/include/linux/
H A Dminmax.h124 #define clamp_t(type, val, lo, hi) min_t(type, max_t(type, val, lo), hi) macro
137 #define clamp_val(val, lo, hi) clamp_t(typeof(val), val, lo, hi)
/OK3568_Linux_fs/kernel/arch/x86/kernel/
H A Dcheck.c117 start = clamp_t(phys_addr_t, round_up(start, PAGE_SIZE), in setup_bios_corruption_check()
119 end = clamp_t(phys_addr_t, round_down(end, PAGE_SIZE), in setup_bios_corruption_check()
/OK3568_Linux_fs/kernel/drivers/media/platform/rockchip/isp1/
H A Drkisp1.c1191 fmt->width = clamp_t(u32, fmt->width,
1194 fmt->height = clamp_t(u32, fmt->height,
1198 fmt->width = clamp_t(u32, fmt->width,
1201 fmt->height = clamp_t(u32, fmt->height,
1205 fmt->width = clamp_t(u32, fmt->width,
1208 fmt->height = clamp_t(u32, fmt->height,
1301 input->left = clamp_t(u32, input->left, 0, in_frm.width);
1302 input->top = clamp_t(u32, input->top, 0, in_frm.height);
1303 input->width = clamp_t(u32, input->width, CIF_ISP_INPUT_W_MIN,
1305 input->height = clamp_t(u32, input->height,
[all …]
H A Ddev.c393 fmt.format.width = clamp_t(u32, fmt.format.width,
396 fmt.format.height = clamp_t(u32, fmt.format.height,
400 fmt.format.width = clamp_t(u32, fmt.format.width,
403 fmt.format.height = clamp_t(u32, fmt.format.height,
407 fmt.format.width = clamp_t(u32, fmt.format.width,
410 fmt.format.height = clamp_t(u32, fmt.format.height,
/OK3568_Linux_fs/kernel/drivers/media/platform/xilinx/
H A Dxilinx-vip.c150 format->width = clamp_t(unsigned int, fmt->format.width, in xvip_set_format_size()
152 format->height = clamp_t(unsigned int, fmt->format.height, in xvip_set_format_size()
/OK3568_Linux_fs/kernel/drivers/media/platform/qcom/camss/
H A Dcamss-video.c669 bytesperline[i] = clamp_t(u32, p->bytesperline, in __video_try_fmt()
671 sizeimage[i] = clamp_t(u32, p->sizeimage, in __video_try_fmt()
690 pix_mp->width = clamp_t(u32, width, 1, CAMSS_FRAME_MAX_WIDTH); in __video_try_fmt()
691 pix_mp->height = clamp_t(u32, height, 1, CAMSS_FRAME_MAX_HEIGHT_RDI); in __video_try_fmt()
713 p->bytesperline = clamp_t(u32, p->bytesperline, in __video_try_fmt()
715 p->sizeimage = clamp_t(u32, p->sizeimage, in __video_try_fmt()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_ethtool.c329 tx_count = clamp_t(u32, ring->tx_pending, in otx2_set_ringparam()
376 ec->rx_coalesce_usecs = clamp_t(u32, ec->rx_coalesce_usecs, in otx2_set_coalesce()
378 ec->tx_coalesce_usecs = clamp_t(u32, ec->tx_coalesce_usecs, in otx2_set_coalesce()
395 ec->rx_max_coalesced_frames = clamp_t(u32, ec->rx_max_coalesced_frames, in otx2_set_coalesce()
397 ec->tx_max_coalesced_frames = clamp_t(u32, ec->tx_max_coalesced_frames, in otx2_set_coalesce()
/OK3568_Linux_fs/u-boot/include/linux/
H A Dkernel.h219 #define clamp_t(type, val, lo, hi) min_t(type, max_t(type, val, lo), hi) macro
232 #define clamp_val(val, lo, hi) clamp_t(typeof(val), val, lo, hi)
/OK3568_Linux_fs/kernel/drivers/staging/media/atomisp/pci/
H A Datomisp_csi2.c104 actual_ffmt->width = clamp_t( in atomisp_csi2_set_ffmt()
107 actual_ffmt->height = clamp_t( in atomisp_csi2_set_ffmt()
/OK3568_Linux_fs/kernel/drivers/iio/magnetometer/
H A Dak8975.c713 *val = clamp_t(s16, buff, -def->range, def->range); in ak8975_read_axis()
823 data->scan.channels[0] = clamp_t(s16, le16_to_cpu(fval[0]), -def->range, def->range); in ak8975_fill_buffer()
824 data->scan.channels[1] = clamp_t(s16, le16_to_cpu(fval[1]), -def->range, def->range); in ak8975_fill_buffer()
825 data->scan.channels[2] = clamp_t(s16, le16_to_cpu(fval[2]), -def->range, def->range); in ak8975_fill_buffer()
/OK3568_Linux_fs/kernel/drivers/media/platform/rockchip/isp/
H A Dbridge.c350 crop->left = clamp_t(u32, crop->left, 0, src_w); in bridge_set_selection()
351 crop->top = clamp_t(u32, crop->top, 0, src_h); in bridge_set_selection()
352 crop->width = clamp_t(u32, crop->width, in bridge_set_selection()
354 crop->height = clamp_t(u32, crop->height, in bridge_set_selection()
/OK3568_Linux_fs/kernel/arch/powerpc/platforms/85xx/
H A Dp1022_rdk.c75 pxclk = clamp_t(u32, pxclk, 2, 255); in p1022rdk_set_pixel_clock()

123456789