Searched refs:CLAMP (Results 1 – 10 of 10) sorted by relevance
| /OK3568_Linux_fs/kernel/drivers/hid/ |
| H A D | hid-lgff.c | 65 #define CLAMP(x) if (x < 0) x = 0; if (x > 0xff) x = 0xff in hid_lgff_play() macro 71 CLAMP(x); in hid_lgff_play() 72 CLAMP(y); in hid_lgff_play() 86 CLAMP(left); in hid_lgff_play() 87 CLAMP(right); in hid_lgff_play()
|
| H A D | hid-lg4ff.c | 428 #define CLAMP(x) do { if (x < 0) x = 0; else if (x > 0xff) x = 0xff; } while (0) in lg4ff_play() macro 433 CLAMP(x); in lg4ff_play()
|
| /OK3568_Linux_fs/kernel/drivers/media/usb/pwc/ |
| H A D | pwc-dec23.c | 278 #define CLAMP(x) (pwc_crop_table[MAX_OUTER_CROP_VALUE+(x)]) macro 280 #define CLAMP(x) ((x)>255?255:((x)<0?0:x)) macro 383 *d++ = CLAMP((*c) >> scalebits); in copy_image_block_Y() 387 *d++ = CLAMP((*c) >> scalebits); in copy_image_block_Y() 391 *d++ = CLAMP((*c) >> scalebits); in copy_image_block_Y() 395 *d++ = CLAMP((*c) >> scalebits); in copy_image_block_Y() 436 *d++ = CLAMP((*c1) >> scalebits); in copy_image_block_CrCb() 437 *d++ = CLAMP((*c2) >> scalebits); in copy_image_block_CrCb() 442 *d++ = CLAMP((*c1) >> scalebits); in copy_image_block_CrCb() 443 *d++ = CLAMP((*c2) >> scalebits); in copy_image_block_CrCb()
|
| /OK3568_Linux_fs/kernel/arch/arm/mach-qcom/ |
| H A D | platsmp.c | 32 #define CLAMP BIT(0) macro 119 val = PLL_CLAMP | L2DT_SLP | CLAMP; in kpssv1_release_secondary() 131 val &= ~CLAMP; in kpssv1_release_secondary() 222 reg_val = COREPOR_RST | CLAMP; in kpssv2_release_secondary() 227 reg_val &= ~CLAMP; in kpssv2_release_secondary()
|
| /OK3568_Linux_fs/buildroot/package/pixman/ |
| H A D | 0005-pixman_image_composite32-Support-rockchip-RGA-2D-acc.patch | 62 +#define CLAMP(v, low, high) \ 278 + sx = CLAMP(box.x1, 0, src_stride); 279 + sy = CLAMP(box.y1, 0, src->bits.height); 280 + sw = CLAMP(box.x2 - box.x1, 0, src_stride); 281 + sh = CLAMP(box.y2 - box.y1, 0, src->bits.height);
|
| /OK3568_Linux_fs/kernel/drivers/media/platform/davinci/ |
| H A D | dm355_ccdc_regs.h | 28 #define CLAMP 0x44 macro
|
| H A D | dm355_ccdc.c | 322 regw(0x0000, CLAMP); in ccdc_config_black_clamp() 329 regw(val, CLAMP); in ccdc_config_black_clamp()
|
| /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-gnome/vte9/vte9/ |
| H A D | cve-2012-2738.patch | 30 + g_value_set_long(&value, CLAMP (total, 0, G_MAXUSHORT));
|
| /OK3568_Linux_fs/external/gstreamer-rockchip/gst/rockchipmpp/ |
| H A D | gstmppdec.c | 747 cmeta->x = CLAMP (crop_x, 0, width - 1); in gst_mpp_dec_get_gst_buffer() 748 cmeta->y = CLAMP (crop_y, 0, height - 1); in gst_mpp_dec_get_gst_buffer()
|
| /OK3568_Linux_fs/kernel/drivers/media/platform/omap3isp/ |
| H A D | ispccdc.c | 82 CCDC_PRINT_REGISTER(isp, CLAMP); in ccdc_print_status()
|