Home
last modified time | relevance | path

Searched refs:CLAMP (Results 1 – 6 of 6) sorted by relevance

/drivers/hid/
Dhid-lgff.c65 #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()
Dhid-lg4ff.c428 #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()
/drivers/media/usb/pwc/
Dpwc-dec23.c278 #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()
/drivers/media/platform/davinci/
Ddm355_ccdc_regs.h28 #define CLAMP 0x44 macro
Ddm355_ccdc.c322 regw(0x0000, CLAMP); in ccdc_config_black_clamp()
329 regw(val, CLAMP); in ccdc_config_black_clamp()
/drivers/media/platform/omap3isp/
Dispccdc.c83 CCDC_PRINT_REGISTER(isp, CLAMP); in ccdc_print_status()