Searched refs:REG_MASK (Results 1 – 10 of 10) sorted by relevance
/linux-6.1.9/drivers/net/ethernet/mscc/ |
D | ocelot_io.c | 21 ocelot->map[target][reg & REG_MASK] + offset, in __ocelot_bulk_read_ix() 34 ocelot->map[target][reg & REG_MASK] + offset, &val); in __ocelot_read_ix() 46 ocelot->map[target][reg & REG_MASK] + offset, val); in __ocelot_write_ix() 58 ocelot->map[target][reg & REG_MASK] + offset, in __ocelot_rmw_ix() 71 regmap_read(port->target, ocelot->map[target][reg & REG_MASK], &val); in ocelot_port_readl() 83 regmap_write(port->target, ocelot->map[target][reg & REG_MASK], val); in ocelot_port_writel() 127 regfield.reg = ocelot->map[target][reg & REG_MASK]; in ocelot_regfields_init()
|
/linux-6.1.9/drivers/gpu/drm/msm/disp/dpu1/ |
D | dpu_hw_pingpong.c | 76 data = dither_depth_map[cfg->c0_bitdepth] & REG_MASK(2); in dpu_hw_pp_setup_dither() 77 data |= (dither_depth_map[cfg->c1_bitdepth] & REG_MASK(2)) << 2; in dpu_hw_pp_setup_dither() 78 data |= (dither_depth_map[cfg->c2_bitdepth] & REG_MASK(2)) << 4; in dpu_hw_pp_setup_dither() 79 data |= (dither_depth_map[cfg->c3_bitdepth] & REG_MASK(2)) << 6; in dpu_hw_pp_setup_dither() 85 data = (cfg->matrix[i] & REG_MASK(4)) | in dpu_hw_pp_setup_dither() 86 ((cfg->matrix[i + 1] & REG_MASK(4)) << 4) | in dpu_hw_pp_setup_dither() 87 ((cfg->matrix[i + 2] & REG_MASK(4)) << 8) | in dpu_hw_pp_setup_dither() 88 ((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.1.9/tools/testing/selftests/kvm/aarch64/ |
D | get-reg-list.c | 148 #define REG_MASK (KVM_REG_ARCH_MASK | KVM_REG_SIZE_MASK | KVM_REG_ARM_COPROC_MASK) macro 156 __u64 core_off = id & ~REG_MASK, idx; in core_id_to_str() 204 sve_off = id & ~(REG_MASK | ((1ULL << 5) - 1)); in sve_id_to_str() 277 TEST_ASSERT(!(id & ~(REG_MASK | KVM_REG_ARM_DEMUX_ID_MASK | KVM_REG_ARM_DEMUX_VAL_MASK)), in print_reg() 336 core_off = id & ~REG_MASK; in core_reg_fixup()
|
/linux-6.1.9/arch/riscv/kernel/ |
D | traps_misaligned.c | 126 #define REG_MASK \ macro 130 (SHIFT_RIGHT((insn), (pos) - LOG_REGBYTES) & REG_MASK)
|
/linux-6.1.9/arch/riscv/kvm/ |
D | vcpu_insn.c | 112 #define REG_MASK \ macro 116 (SHIFT_RIGHT((insn), (pos) - LOG_REGBYTES) & REG_MASK)
|
/linux-6.1.9/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.1.9/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.1.9/include/soc/mscc/ |
D | ocelot.h | 102 #define REG_MASK GENMASK(TARGET_OFFSET - 1, 0) macro 103 #define REG(reg, offset) [reg & REG_MASK] = offset
|
/linux-6.1.9/drivers/net/dsa/ocelot/ |
D | seville_vsc9953.c | 926 ocelot->map[GCB][GCB_MIIM_MII_STATUS & REG_MASK]); in vsc9953_mdio_bus_alloc()
|