Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/gpu/drm/msm/disp/dpu1/
Ddpu_hw_pingpong.c60 data = dither_depth_map[cfg->c0_bitdepth] & REG_MASK(2); in dpu_hw_pp_setup_dither()
61 data |= (dither_depth_map[cfg->c1_bitdepth] & REG_MASK(2)) << 2; in dpu_hw_pp_setup_dither()
62 data |= (dither_depth_map[cfg->c2_bitdepth] & REG_MASK(2)) << 4; in dpu_hw_pp_setup_dither()
63 data |= (dither_depth_map[cfg->c3_bitdepth] & REG_MASK(2)) << 6; in dpu_hw_pp_setup_dither()
69 data = (cfg->matrix[i] & REG_MASK(4)) | in dpu_hw_pp_setup_dither()
70 ((cfg->matrix[i + 1] & REG_MASK(4)) << 4) | in dpu_hw_pp_setup_dither()
71 ((cfg->matrix[i + 2] & REG_MASK(4)) << 8) | in dpu_hw_pp_setup_dither()
72 ((cfg->matrix[i + 3] & REG_MASK(4)) << 12); in dpu_hw_pp_setup_dither()
Ddpu_hw_util.h15 #define REG_MASK(n) ((BIT(n)) - 1) macro
/linux-6.12.1/tools/testing/selftests/kvm/riscv/
Dget-reg-list.c13 #define REG_MASK (KVM_REG_ARCH_MASK | KVM_REG_SIZE_MASK) macro
24 switch (reg & ~REG_MASK) { in filter_reg()
188 __u64 reg_off = id & ~(REG_MASK | KVM_REG_RISCV_CONFIG); in config_id_to_str()
215 __u64 reg_off = id & ~(REG_MASK | KVM_REG_RISCV_CORE); in core_id_to_str()
327 __u64 reg_off = id & ~(REG_MASK | KVM_REG_RISCV_CSR); in csr_id_to_str()
349 __u64 reg_off = id & ~(REG_MASK | KVM_REG_RISCV_TIMER); in timer_id_to_str()
370 __u64 reg_off = id & ~(REG_MASK | KVM_REG_RISCV_FP_F); in fp_f_id_to_str()
388 __u64 reg_off = id & ~(REG_MASK | KVM_REG_RISCV_FP_D); in fp_d_id_to_str()
498 __u64 reg_off = id & ~(REG_MASK | KVM_REG_RISCV_ISA_EXT); in isa_ext_id_to_str()
561 __u64 reg_off = id & ~(REG_MASK | KVM_REG_RISCV_SBI_EXT); in sbi_ext_id_to_str()
[all …]
/linux-6.12.1/drivers/net/ethernet/mscc/
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()
Docelot_stats.c909 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()
Docelot.h83 *addr = ocelot->map[*target][reg & REG_MASK]; in ocelot_reg_to_target_addr()
/linux-6.12.1/tools/testing/selftests/kvm/aarch64/
Dget-reg-list.c112 #define REG_MASK (KVM_REG_ARCH_MASK | KVM_REG_SIZE_MASK | KVM_REG_ARM_COPROC_MASK) macro
120 __u64 core_off = id & ~REG_MASK, idx; in core_id_to_str()
168 sve_off = id & ~(REG_MASK | ((1ULL << 5) - 1)); in sve_id_to_str()
241 TEST_ASSERT(!(id & ~(REG_MASK | KVM_REG_ARM_DEMUX_ID_MASK | KVM_REG_ARM_DEMUX_VAL_MASK)), in print_reg()
/linux-6.12.1/arch/riscv/kernel/
Dtraps_misaligned.c130 #define REG_MASK \ macro
134 (SHIFT_RIGHT((insn), (pos) - LOG_REGBYTES) & REG_MASK)
/linux-6.12.1/drivers/media/dvb-frontends/
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-6.12.1/arch/riscv/kvm/
Dvcpu_insn.c117 #define REG_MASK \ macro
121 (SHIFT_RIGHT((insn), (pos) - LOG_REGBYTES) & REG_MASK)
/linux-6.12.1/drivers/soc/ti/
Dknav_dma.c22 #define REG_MASK 0xffffffff macro
301 v = ~DMA_ENABLE & REG_MASK; in knav_dma_hw_destroy()
/linux-6.12.1/include/sound/
Demu10k1.h63 #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.12.1/include/soc/mscc/
Docelot.h104 #define REG_MASK GENMASK(TARGET_OFFSET - 1, 0) macro
105 #define REG(reg, offset) [reg & REG_MASK] = offset
/linux-6.12.1/drivers/net/dsa/ocelot/
Dseville_vsc9953.c897 ocelot->map[GCB][GCB_MIIM_MII_STATUS & REG_MASK], in vsc9953_mdio_bus_alloc()