Home
last modified time | relevance | path

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

/linux-5.19.10/drivers/media/dvb-frontends/
Dstv090x_priv.h53 #define STV090x_SETFIELD(mask, bitf, val) (mask = (mask & (~(((1 << STV090x_WIDTH_##bitf) - 1) <<\ argument
54 STV090x_OFFST_##bitf))) | \
55 (val << STV090x_OFFST_##bitf))
57 #define STV090x_GETFIELD(val, bitf) ((val >> STV090x_OFFST_##bitf) & ((1 << STV090x_WIDTH_##bitf) … argument
60 #define STV090x_SETFIELD_Px(mask, bitf, val) (mask = (mask & (~(((1 << STV090x_WIDTH_Px_##bitf) - 1… argument
61 STV090x_OFFST_Px_##bitf))) | \
62 (val << STV090x_OFFST_Px_##bitf))
64 #define STV090x_GETFIELD_Px(val, bitf) ((val >> STV090x_OFFST_Px_##bitf) & ((1 << STV090x_WIDTH_Px… argument
Dstv6110x_priv.h37 #define STV6110x_SETFIELD(mask, bitf, val) \ argument
38 (mask = (mask & (~(((1 << STV6110x_WIDTH_##bitf) - 1) << \
39 STV6110x_OFFST_##bitf))) | \
40 (val << STV6110x_OFFST_##bitf))
42 #define STV6110x_GETFIELD(bitf, val) \ argument
43 ((val >> STV6110x_OFFST_##bitf) & \
44 ((1 << STV6110x_WIDTH_##bitf) - 1))
Dstb0899_priv.h54 #define STB0899_GETFIELD(bitf, val) ((val >> STB0899_OFFST_##bitf) & ((1 << STB0899_WIDTH_##bitf) … argument
61 #define STB0899_SETFIELD_VAL(bitf, mask, val) (mask = (mask & (~(((1 << STB0899_WIDTH_##bitf) - 1) … argument
62 STB0899_OFFST_##bitf))) | \
63 (val << STB0899_OFFST_##bitf))
/linux-5.19.10/drivers/gpu/drm/i2c/
Dch7006_mode.c225 regs[CH7006_BLACK_LEVEL] = bitf(CH7006_BLACK_LEVEL_0, black_level); in ch7006_setup_levels()
277 regs[CH7006_PLLOV] = bitf(CH7006_PLLOV_N_8, best_n) | in ch7006_setup_pll()
278 bitf(CH7006_PLLOV_M_8, best_m); in ch7006_setup_pll()
280 regs[CH7006_PLLM] = bitf(CH7006_PLLM_0, best_m); in ch7006_setup_pll()
281 regs[CH7006_PLLN] = bitf(CH7006_PLLN_0, best_n); in ch7006_setup_pll()
338 regs[CH7006_FFILTER] = bitf(CH7006_FFILTER_TEXT, flicker) | in ch7006_setup_properties()
339 bitf(CH7006_FFILTER_LUMA, flicker) | in ch7006_setup_properties()
340 bitf(CH7006_FFILTER_CHROMA, 1); in ch7006_setup_properties()
343 regs[CH7006_CONTRAST] = bitf(CH7006_CONTRAST_0, contrast); in ch7006_setup_properties()
Dch7006_drv.c130 regs[CH7006_INPUT_FORMAT] = bitf(CH7006_INPUT_FORMAT_FORMAT, in ch7006_encoder_mode_set()
134 | bitf(CH7006_CLKMODE_XCM, params->xcm) in ch7006_encoder_mode_set()
135 | bitf(CH7006_CLKMODE_PCM, params->pcm); in ch7006_encoder_mode_set()
142 regs[CH7006_POV] = bitf(CH7006_POV_START_ACTIVE_8, start_active); in ch7006_encoder_mode_set()
143 regs[CH7006_START_ACTIVE] = bitf(CH7006_START_ACTIVE_0, start_active); in ch7006_encoder_mode_set()
Dch7006_priv.h148 #define bitf(bitfield, x) __bitf(bitfield, x) macro
152 | bitf(reg##_##bitfield, x)