Home
last modified time | relevance | path

Searched refs:REG_MASK (Results 1 – 10 of 10) sorted by relevance

/linux/drivers/net/ethernet/mscc/
H A Docelot_io.c74 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 Docelot_stats.c929 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 Docelot.h83 *addr = ocelot->map[*target][reg & REG_MASK]; in ocelot_reg_to_target_addr()
/linux/tools/testing/selftests/kvm/riscv/
H A Dget-reg-list.c13 #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 Dget-reg-list.c129 #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 Ddpu_hw_util.h15 #define REG_MASK(n) ((BIT(n)) - 1) macro
/linux/arch/riscv/include/asm/
H A Dinsn.h397 #define REG_MASK \ macro
401 (SHIFT_RIGHT((insn), (pos) - LOG_REGBYTES) & REG_MASK)
/linux/drivers/media/dvb-frontends/
H A Drtl2832.c11 #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 Dknav_dma.c22 #define REG_MASK 0xffffffff macro
301 v = ~DMA_ENABLE & REG_MASK; in knav_dma_hw_destroy()
/linux/include/soc/mscc/
H A Docelot.h104 #define REG_MASK GENMASK(TARGET_OFFSET - 1, 0) macro
105 #define REG(reg, offset) [reg & REG_MASK] = offset