Searched refs:CLAMP (Results 1 – 8 of 8) sorted by relevance
/linux-6.1.9/drivers/hid/ |
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()
|
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()
|
/linux-6.1.9/arch/arm/mach-qcom/ |
D | platsmp.c | 33 #define CLAMP BIT(0) macro 103 reg_val = CORE_RST | COREPOR_RST | CLAMP | CORE_MEM_CLAMP; in cortex_a7_release_secondary() 117 reg_val = (reg_val | BIT(17)) & ~CLAMP; in cortex_a7_release_secondary() 176 val = PLL_CLAMP | L2DT_SLP | CLAMP; in kpssv1_release_secondary() 188 val &= ~CLAMP; in kpssv1_release_secondary() 279 reg_val = COREPOR_RST | CLAMP; in kpssv2_release_secondary() 284 reg_val &= ~CLAMP; in kpssv2_release_secondary()
|
/linux-6.1.9/drivers/media/usb/pwc/ |
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()
|
/linux-6.1.9/drivers/staging/media/deprecated/vpfe_capture/ |
D | dm355_ccdc_regs.h | 28 #define CLAMP 0x44 macro
|
D | dm355_ccdc.c | 322 regw(0x0000, CLAMP); in ccdc_config_black_clamp() 329 regw(val, CLAMP); in ccdc_config_black_clamp()
|
/linux-6.1.9/lib/zstd/compress/ |
D | zstd_compress.c | 1069 # define CLAMP(cParam, val) CLAMP_TYPE(cParam, val, unsigned) in ZSTD_clampCParams() macro 1070 CLAMP(ZSTD_c_windowLog, cParams.windowLog); in ZSTD_clampCParams() 1071 CLAMP(ZSTD_c_chainLog, cParams.chainLog); in ZSTD_clampCParams() 1072 CLAMP(ZSTD_c_hashLog, cParams.hashLog); in ZSTD_clampCParams() 1073 CLAMP(ZSTD_c_searchLog, cParams.searchLog); in ZSTD_clampCParams() 1074 CLAMP(ZSTD_c_minMatch, cParams.minMatch); in ZSTD_clampCParams() 1075 CLAMP(ZSTD_c_targetLength,cParams.targetLength); in ZSTD_clampCParams()
|
/linux-6.1.9/drivers/media/platform/ti/omap3isp/ |
D | ispccdc.c | 83 CCDC_PRINT_REGISTER(isp, CLAMP); in ccdc_print_status()
|