Searched refs:CLAMP (Results 1 – 7 of 7) sorted by relevance
77 #define CLAMP(x) if (x < 0) x = 0; if (x > 0xff) x = 0xff in hid_lgff_play() macro83 CLAMP(x); in hid_lgff_play()84 CLAMP(y); in hid_lgff_play()98 CLAMP(left); in hid_lgff_play()99 CLAMP(right); in hid_lgff_play()
434 #define CLAMP(x) do { if (x < 0) x = 0; else if (x > 0xff) x = 0xff; } while (0) in lg4ff_play() macro439 CLAMP(x); in lg4ff_play()
290 #define CLAMP(x) (pwc_crop_table[MAX_OUTER_CROP_VALUE+(x)]) macro292 #define CLAMP(x) ((x)>255?255:((x)<0?0:x)) macro395 *d++ = CLAMP((*c) >> scalebits); in copy_image_block_Y()399 *d++ = CLAMP((*c) >> scalebits); in copy_image_block_Y()403 *d++ = CLAMP((*c) >> scalebits); in copy_image_block_Y()407 *d++ = CLAMP((*c) >> scalebits); in copy_image_block_Y()448 *d++ = CLAMP((*c1) >> scalebits); in copy_image_block_CrCb()449 *d++ = CLAMP((*c2) >> scalebits); in copy_image_block_CrCb()454 *d++ = CLAMP((*c1) >> scalebits); in copy_image_block_CrCb()455 *d++ = CLAMP((*c2) >> scalebits); in copy_image_block_CrCb()
35 #define CLAMP BIT(0) macro133 val = PLL_CLAMP | L2DT_SLP | CLAMP; in kpssv1_release_secondary()145 val &= ~CLAMP; in kpssv1_release_secondary()236 reg_val = COREPOR_RST | CLAMP; in kpssv2_release_secondary()241 reg_val &= ~CLAMP; in kpssv2_release_secondary()
37 #define CLAMP 0x44 macro
331 regw(0x0000, CLAMP); in ccdc_config_black_clamp()338 regw(val, CLAMP); in ccdc_config_black_clamp()
85 CCDC_PRINT_REGISTER(isp, CLAMP); in ccdc_print_status()