Searched refs:bitf (Results 1 - 6 of 6) sorted by relevance
/linux-4.1.27/drivers/media/dvb-frontends/ |
H A D | stv090x_priv.h | 65 #define STV090x_SETFIELD(mask, bitf, val) (mask = (mask & (~(((1 << STV090x_WIDTH_##bitf) - 1) <<\ 66 STV090x_OFFST_##bitf))) | \ 67 (val << STV090x_OFFST_##bitf)) 69 #define STV090x_GETFIELD(val, bitf) ((val >> STV090x_OFFST_##bitf) & ((1 << STV090x_WIDTH_##bitf) - 1)) 72 #define STV090x_SETFIELD_Px(mask, bitf, val) (mask = (mask & (~(((1 << STV090x_WIDTH_Px_##bitf) - 1) <<\ 73 STV090x_OFFST_Px_##bitf))) | \ 74 (val << STV090x_OFFST_Px_##bitf)) 76 #define STV090x_GETFIELD_Px(val, bitf) ((val >> STV090x_OFFST_Px_##bitf) & ((1 << STV090x_WIDTH_Px_##bitf) - 1))
|
H A D | stv6110x_priv.h | 49 #define STV6110x_SETFIELD(mask, bitf, val) \ 50 (mask = (mask & (~(((1 << STV6110x_WIDTH_##bitf) - 1) << \ 51 STV6110x_OFFST_##bitf))) | \ 52 (val << STV6110x_OFFST_##bitf)) 54 #define STV6110x_GETFIELD(bitf, val) \ 55 ((val >> STV6110x_OFFST_##bitf) & \ 56 ((1 << STV6110x_WIDTH_##bitf) - 1))
|
H A D | stb0899_priv.h | 66 #define STB0899_GETFIELD(bitf, val) ((val >> STB0899_OFFST_##bitf) & ((1 << STB0899_WIDTH_##bitf) - 1)) 73 #define STB0899_SETFIELD_VAL(bitf, mask, val) (mask = (mask & (~(((1 << STB0899_WIDTH_##bitf) - 1) <<\ 74 STB0899_OFFST_##bitf))) | \ 75 (val << STB0899_OFFST_##bitf))
|
/linux-4.1.27/drivers/gpu/drm/i2c/ |
H A D | ch7006_mode.c | 226 regs[CH7006_BLACK_LEVEL] = bitf(CH7006_BLACK_LEVEL_0, black_level); ch7006_setup_levels() 278 regs[CH7006_PLLOV] = bitf(CH7006_PLLOV_N_8, best_n) | ch7006_setup_pll() 279 bitf(CH7006_PLLOV_M_8, best_m); ch7006_setup_pll() 281 regs[CH7006_PLLM] = bitf(CH7006_PLLM_0, best_m); ch7006_setup_pll() 282 regs[CH7006_PLLN] = bitf(CH7006_PLLN_0, best_n); ch7006_setup_pll() 339 regs[CH7006_FFILTER] = bitf(CH7006_FFILTER_TEXT, flicker) | ch7006_setup_properties() 340 bitf(CH7006_FFILTER_LUMA, flicker) | ch7006_setup_properties() 341 bitf(CH7006_FFILTER_CHROMA, 1); ch7006_setup_properties() 344 regs[CH7006_CONTRAST] = bitf(CH7006_CONTRAST_0, contrast); ch7006_setup_properties()
|
H A D | ch7006_drv.c | 130 regs[CH7006_INPUT_FORMAT] = bitf(CH7006_INPUT_FORMAT_FORMAT, ch7006_encoder_mode_set() 134 | bitf(CH7006_CLKMODE_XCM, params->xcm) ch7006_encoder_mode_set() 135 | bitf(CH7006_CLKMODE_PCM, params->pcm); ch7006_encoder_mode_set() 142 regs[CH7006_POV] = bitf(CH7006_POV_START_ACTIVE_8, start_active); ch7006_encoder_mode_set() 143 regs[CH7006_START_ACTIVE] = bitf(CH7006_START_ACTIVE_0, start_active); ch7006_encoder_mode_set()
|
H A D | ch7006_priv.h | 148 #define bitf(bitfield, x) __bitf(bitfield, x) macro 152 | bitf(reg##_##bitfield, x)
|
Completed in 155 milliseconds