Searched refs:REG_MASK (Results 1 – 10 of 10) sorted by relevance
| /linux/drivers/net/ethernet/mscc/ |
| H A D | ocelot_io.c | 74 regmap_read(port->target, ocelot->map[target][reg & REG_MASK], &val); in ocelot_port_readl() 86 regmap_write(port->target, ocelot->map[target][reg & REG_MASK], val); in ocelot_port_writel() 131 regfield.reg = ocelot->map[target][reg & REG_MASK]; in ocelot_regfields_init()
|
| H A D | ocelot_stats.c | 929 WARN(ocelot->map[SYS][last & REG_MASK] >= ocelot->map[SYS][layout[i].reg & REG_MASK], in ocelot_prepare_stats_regions() 931 last, ocelot->map[SYS][last & REG_MASK], in ocelot_prepare_stats_regions() 932 layout[i].reg, ocelot->map[SYS][layout[i].reg & REG_MASK]); in ocelot_prepare_stats_regions() 935 if (region && ocelot->map[SYS][layout[i].reg & REG_MASK] == in ocelot_prepare_stats_regions() 936 ocelot->map[SYS][last & REG_MASK] + 4) { in ocelot_prepare_stats_regions()
|
| H A D | ocelot.h | 83 *addr = ocelot->map[*target][reg & REG_MASK]; in ocelot_reg_to_target_addr()
|
| /linux/tools/testing/selftests/kvm/riscv/ |
| H A D | get-reg-list.c | 13 #define REG_MASK (KVM_REG_ARCH_MASK | KVM_REG_SIZE_MASK) macro 33 switch (reg & ~REG_MASK) { in filter_reg() 253 __u64 reg_off = id & ~(REG_MASK | KVM_REG_RISCV_CONFIG); in config_id_to_str() 282 __u64 reg_off = id & ~(REG_MASK | KVM_REG_RISCV_CORE); in core_id_to_str() 394 __u64 reg_off = id & ~(REG_MASK | KVM_REG_RISCV_CSR); in csr_id_to_str() 416 __u64 reg_off = id & ~(REG_MASK | KVM_REG_RISCV_TIMER); in timer_id_to_str() 437 __u64 reg_off = id & ~(REG_MASK | KVM_REG_RISCV_FP_F); in fp_f_id_to_str() 455 __u64 reg_off = id & ~(REG_MASK | KVM_REG_RISCV_FP_D); in fp_d_id_to_str() 473 __u64 reg_off = id & ~(REG_MASK | KVM_REG_RISCV_VECTOR); in vector_id_to_str() 607 __u64 reg_off = id & ~(REG_MASK | KVM_REG_RISCV_ISA_EXT); in isa_ext_id_to_str() [all …]
|
| /linux/tools/testing/selftests/kvm/arm64/ |
| H A D | get-reg-list.c | 129 #define REG_MASK (KVM_REG_ARCH_MASK | KVM_REG_SIZE_MASK | KVM_REG_ARM_COPROC_MASK) macro 137 __u64 core_off = id & ~REG_MASK, idx; in core_id_to_str() 185 sve_off = id & ~(REG_MASK | ((1ULL << 5) - 1)); in sve_id_to_str() 258 TEST_ASSERT(!(id & ~(REG_MASK | KVM_REG_ARM_DEMUX_ID_MASK | KVM_REG_ARM_DEMUX_VAL_MASK)), in print_reg()
|
| /linux/drivers/gpu/drm/msm/disp/dpu1/ |
| H A D | dpu_hw_util.h | 15 #define REG_MASK(n) ((BIT(n)) - 1) macro
|
| /linux/arch/riscv/include/asm/ |
| H A D | insn.h | 397 #define REG_MASK \ macro 401 (SHIFT_RIGHT((insn), (pos) - LOG_REGBYTES) & REG_MASK)
|
| /linux/drivers/media/dvb-frontends/ |
| H A D | rtl2832.c | 11 #define REG_MASK(b) (BIT(b + 1) - 1) macro 155 mask = REG_MASK(msb - lsb); in rtl2832_rd_demod_reg() 185 mask = REG_MASK(msb - lsb); in rtl2832_wr_demod_reg()
|
| /linux/drivers/soc/ti/ |
| H A D | knav_dma.c | 22 #define REG_MASK 0xffffffff macro 301 v = ~DMA_ENABLE & REG_MASK; in knav_dma_hw_destroy()
|
| /linux/include/soc/mscc/ |
| H A D | ocelot.h | 104 #define REG_MASK GENMASK(TARGET_OFFSET - 1, 0) macro 105 #define REG(reg, offset) [reg & REG_MASK] = offset
|