Searched refs:REG_MASK (Results 1 – 14 of 14) sorted by relevance
/linux-6.6.21/drivers/gpu/drm/msm/disp/dpu1/ |
D | dpu_hw_pingpong.c | 58 data = dither_depth_map[cfg->c0_bitdepth] & REG_MASK(2); in dpu_hw_pp_setup_dither() 59 data |= (dither_depth_map[cfg->c1_bitdepth] & REG_MASK(2)) << 2; in dpu_hw_pp_setup_dither() 60 data |= (dither_depth_map[cfg->c2_bitdepth] & REG_MASK(2)) << 4; in dpu_hw_pp_setup_dither() 61 data |= (dither_depth_map[cfg->c3_bitdepth] & REG_MASK(2)) << 6; in dpu_hw_pp_setup_dither() 67 data = (cfg->matrix[i] & REG_MASK(4)) | in dpu_hw_pp_setup_dither() 68 ((cfg->matrix[i + 1] & REG_MASK(4)) << 4) | in dpu_hw_pp_setup_dither() 69 ((cfg->matrix[i + 2] & REG_MASK(4)) << 8) | in dpu_hw_pp_setup_dither() 70 ((cfg->matrix[i + 3] & REG_MASK(4)) << 12); in dpu_hw_pp_setup_dither()
|
D | dpu_hw_util.h | 15 #define REG_MASK(n) ((BIT(n)) - 1) macro
|
/linux-6.6.21/drivers/net/ethernet/mscc/ |
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()
|
D | ocelot_stats.c | 909 WARN(ocelot->map[SYS][last & REG_MASK] >= ocelot->map[SYS][layout[i].reg & REG_MASK], in ocelot_prepare_stats_regions() 911 last, ocelot->map[SYS][last & REG_MASK], in ocelot_prepare_stats_regions() 912 layout[i].reg, ocelot->map[SYS][layout[i].reg & REG_MASK]); in ocelot_prepare_stats_regions() 915 if (region && ocelot->map[SYS][layout[i].reg & REG_MASK] == in ocelot_prepare_stats_regions() 916 ocelot->map[SYS][last & REG_MASK] + 4) { in ocelot_prepare_stats_regions()
|
D | ocelot.h | 83 *addr = ocelot->map[*target][reg & REG_MASK]; in ocelot_reg_to_target_addr()
|
/linux-6.6.21/tools/testing/selftests/kvm/riscv/ |
D | get-reg-list.c | 13 #define REG_MASK (KVM_REG_ARCH_MASK | KVM_REG_SIZE_MASK) macro 19 switch (reg & ~REG_MASK) { in filter_reg() 118 __u64 reg_off = id & ~(REG_MASK | KVM_REG_RISCV_CONFIG); in config_id_to_str() 147 __u64 reg_off = id & ~(REG_MASK | KVM_REG_RISCV_CORE); in core_id_to_str() 244 __u64 reg_off = id & ~(REG_MASK | KVM_REG_RISCV_CSR); in csr_id_to_str() 263 __u64 reg_off = id & ~(REG_MASK | KVM_REG_RISCV_TIMER); in timer_id_to_str() 283 __u64 reg_off = id & ~(REG_MASK | KVM_REG_RISCV_FP_F); in fp_f_id_to_str() 300 __u64 reg_off = id & ~(REG_MASK | KVM_REG_RISCV_FP_D); in fp_d_id_to_str() 317 __u64 reg_off = id & ~(REG_MASK | KVM_REG_RISCV_ISA_EXT); in isa_ext_id_to_str() 404 __u64 reg_off = id & ~(REG_MASK | KVM_REG_RISCV_SBI_EXT); in sbi_ext_id_to_str()
|
/linux-6.6.21/tools/testing/selftests/kvm/aarch64/ |
D | get-reg-list.c | 100 #define REG_MASK (KVM_REG_ARCH_MASK | KVM_REG_SIZE_MASK | KVM_REG_ARM_COPROC_MASK) macro 108 __u64 core_off = id & ~REG_MASK, idx; in core_id_to_str() 156 sve_off = id & ~(REG_MASK | ((1ULL << 5) - 1)); in sve_id_to_str() 229 TEST_ASSERT(!(id & ~(REG_MASK | KVM_REG_ARM_DEMUX_ID_MASK | KVM_REG_ARM_DEMUX_VAL_MASK)), in print_reg()
|
/linux-6.6.21/arch/riscv/kernel/ |
D | traps_misaligned.c | 126 #define REG_MASK \ macro 130 (SHIFT_RIGHT((insn), (pos) - LOG_REGBYTES) & REG_MASK)
|
/linux-6.6.21/drivers/media/dvb-frontends/ |
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-6.6.21/arch/riscv/kvm/ |
D | vcpu_insn.c | 112 #define REG_MASK \ macro 116 (SHIFT_RIGHT((insn), (pos) - LOG_REGBYTES) & REG_MASK)
|
/linux-6.6.21/drivers/soc/ti/ |
D | knav_dma.c | 22 #define REG_MASK 0xffffffff macro 301 v = ~DMA_ENABLE & REG_MASK; in knav_dma_hw_destroy()
|
/linux-6.6.21/include/sound/ |
D | emu10k1.h | 63 #define REG_MASK(r) (REG_MASK0(r) << REG_SHIFT(r)) macro 64 #define REG_VAL_GET(r, v) ((v & REG_MASK(r)) >> REG_SHIFT(r))
|
/linux-6.6.21/include/soc/mscc/ |
D | ocelot.h | 104 #define REG_MASK GENMASK(TARGET_OFFSET - 1, 0) macro 105 #define REG(reg, offset) [reg & REG_MASK] = offset
|
/linux-6.6.21/drivers/net/dsa/ocelot/ |
D | seville_vsc9953.c | 897 ocelot->map[GCB][GCB_MIIM_MII_STATUS & REG_MASK], in vsc9953_mdio_bus_alloc()
|