/linux/drivers/gpu/drm/exynos/ |
H A D | regs-vp.h | 52 #define VP_MASK(high_bit, low_bit) \ argument 53 (((2 << ((high_bit) - (low_bit))) - 1) << (low_bit)) 55 #define VP_MASK_VAL(val, high_bit, low_bit) \ argument 56 (((val) << (low_bit)) & VP_MASK(high_bit, low_bit))
|
H A D | regs-mixer.h | 66 #define MXR_MASK(high_bit, low_bit) \ argument 67 (((2 << ((high_bit) - (low_bit))) - 1) << (low_bit)) 69 #define MXR_MASK_VAL(val, high_bit, low_bit) \ argument 70 (((val) << (low_bit)) & MXR_MASK(high_bit, low_bit))
|
/linux/drivers/ras/amd/atl/ |
H A D | internal.h | 326 * Remove bits in @data between @low_bit and @high_bit inclusive. 328 * low_bit = 3 332 static inline u64 remove_bits(u8 low_bit, u8 high_bit, u64 data) in remove_bits() argument 337 WARN_ON_ONCE(low_bit >= BITS_PER_LONG); in remove_bits() 338 WARN_ON_ONCE(low_bit > high_bit); in remove_bits() 340 if (!low_bit) in remove_bits() 343 temp1 = GENMASK_ULL(low_bit - 1, 0) & data; in remove_bits() 345 temp2 >>= high_bit - low_bit + 1; in remove_bits()
|
H A D | denormalize.c | 584 u8 low_bit, intlv_bit = ctx->map.intlv_bit_pos; in denorm_addr_df3_6chan() local 606 low_bit = 14 + np2_bits - total_intlv_bits; in denorm_addr_df3_6chan() 607 msb_intlv_bits = ctx->ret_addr >> low_bit; in denorm_addr_df3_6chan() 618 temp_addr_b = GENMASK_ULL(low_bit - 1, intlv_bit) & ctx->ret_addr; in denorm_addr_df3_6chan() 635 temp_addr_b |= phys_addr_msb << (low_bit - total_intlv_bits - intlv_bit); in denorm_addr_df3_6chan()
|
/linux/drivers/dma/amd/qdma/ |
H A D | qdma.c | 53 u16 low_pos, hi_pos, low_bit, hi_bit; in qdma_get_field() local 60 low_bit = f->lsb % BITS_PER_TYPE(*data); in qdma_get_field() 62 mask = GENMASK(hi_bit, low_bit); in qdma_get_field() 63 value = (data[low_pos] & mask) >> low_bit; in qdma_get_field() 65 low_bit = f->lsb % BITS_PER_TYPE(*data); in qdma_get_field() 66 hi_bit = low_bit + (f->msb - f->lsb); in qdma_get_field() 69 mask = GENMASK_ULL(hi_bit, low_bit); in qdma_get_field() 70 value = (value & mask) >> low_bit; in qdma_get_field() 75 low_bit = f->msb - f->lsb - hi_bit; in qdma_get_field() 76 value <<= low_bit; in qdma_get_field() 90 u16 low_pos, hi_pos, low_bit; qdma_set_field() local [all...] |
/linux/drivers/net/wireless/realtek/rtw89/ |
H A D | efuse_be.c | 437 u8 low_bit, high_bit, cnt_zero = 0; in get_sb_cryp_sel_idx() local 445 low_bit = !!(sel_form_v & BIT(idx)); in get_sb_cryp_sel_idx() 447 if (low_bit != high_bit) in get_sb_cryp_sel_idx() 449 if (low_bit) in get_sb_cryp_sel_idx() 459 low_bit = u8_get_bits(sel_idx_v, 0x0F); in get_sb_cryp_sel_idx() 462 if ((low_bit ^ high_bit) != 0xF) in get_sb_cryp_sel_idx() 465 return sb_cryp_sel_v + low_bit; in get_sb_cryp_sel_idx()
|
/linux/arch/mips/include/asm/octeon/ |
H A D | cvmx.h | 145 * @low_bit: Lowest bit value can occupy inclusive 0-high_bit 150 uint64_t low_bit, uint64_t value) in cvmx_build_bits() argument 152 return (value & cvmx_build_mask(high_bit - low_bit + 1)) << low_bit; in cvmx_build_bits()
|
/linux/drivers/pinctrl/mediatek/ |
H A D | pinctrl-mtk-common.h | 74 * @low_bit: The lowest bit of this group. 81 unsigned char low_bit; member 90 .low_bit = _low, \
|
H A D | pinctrl-mtk-common.c | 227 bits = drv_grp->high_bit - drv_grp->low_bit + 1; in mtk_pconf_set_driving() 229 shift = pin_drv->bit + drv_grp->low_bit; in mtk_pconf_set_driving()
|
/linux/tools/testing/selftests/kvm/include/x86/ |
H A D | processor.h | 244 #define KVM_X86_CPU_PROPERTY(fn, idx, gpr, low_bit, high_bit) \ argument 250 .lo_bit = low_bit, \ 254 kvm_static_assert(low_bit < high_bit); \
|