Home
last modified time | relevance | path

Searched refs:reg_offsets (Results 1 – 25 of 27) sorted by relevance

12

/Linux-v5.10/drivers/i2c/busses/
Di2c-mv64xxx.c127 struct mv64xxx_i2c_regs reg_offsets; member
214 writel(0, drv_data->reg_base + drv_data->reg_offsets.soft_reset); in mv64xxx_i2c_hw_init()
216 drv_data->reg_base + drv_data->reg_offsets.clock); in mv64xxx_i2c_hw_init()
217 writel(0, drv_data->reg_base + drv_data->reg_offsets.addr); in mv64xxx_i2c_hw_init()
218 writel(0, drv_data->reg_base + drv_data->reg_offsets.ext_addr); in mv64xxx_i2c_hw_init()
220 drv_data->reg_base + drv_data->reg_offsets.control); in mv64xxx_i2c_hw_init()
342 drv_data->reg_base + drv_data->reg_offsets.control); in mv64xxx_i2c_send_start()
370 drv_data->reg_base + drv_data->reg_offsets.control); in mv64xxx_i2c_do_action()
375 drv_data->reg_base + drv_data->reg_offsets.data); in mv64xxx_i2c_do_action()
377 drv_data->reg_base + drv_data->reg_offsets.control); in mv64xxx_i2c_do_action()
[all …]
/Linux-v5.10/drivers/spi/
Dspi-bcm63xx.c141 const unsigned long *reg_offsets; member
157 return readb(bs->regs + bs->reg_offsets[offset]); in bcm_spi_readb()
164 return ioread16be(bs->regs + bs->reg_offsets[offset]); in bcm_spi_readw()
166 return readw(bs->regs + bs->reg_offsets[offset]); in bcm_spi_readw()
173 writeb(value, bs->regs + bs->reg_offsets[offset]); in bcm_spi_writeb()
180 iowrite16be(value, bs->regs + bs->reg_offsets[offset]); in bcm_spi_writew()
182 writew(value, bs->regs + bs->reg_offsets[offset]); in bcm_spi_writew()
559 bs->reg_offsets = bcm63xx_spireg; in bcm63xx_spi_probe()
560 bs->fifo_size = bs->reg_offsets[SPI_MSG_DATA_SIZE]; in bcm63xx_spi_probe()
578 bs->msg_type_shift = bs->reg_offsets[SPI_MSG_TYPE_SHIFT]; in bcm63xx_spi_probe()
[all …]
/Linux-v5.10/arch/nios2/kernel/
Dmisaligned.c49 static int reg_offsets[32]; variable
53 u8 *p = ((u8 *)fp) + reg_offsets[reg]; in get_reg_val()
59 u8 *p = ((u8 *)fp) + reg_offsets[reg]; in put_reg_val()
214 reg_offsets[r] = offset; in misaligned_calc_reg_offsets()
222 reg_offsets[r] = offset; in misaligned_calc_reg_offsets()
/Linux-v5.10/drivers/pci/controller/dwc/
Dpcie-al.c137 struct al_pcie_reg_offsets reg_offsets; member
191 pcie->reg_offsets.ob_ctrl = OB_CTRL_REV1_2_OFFSET; in al_pcie_reg_offsets_set()
195 pcie->reg_offsets.ob_ctrl = OB_CTRL_REV3_5_OFFSET; in al_pcie_reg_offsets_set()
216 pcie->reg_offsets.ob_ctrl + CFG_TARGET_BUS, in al_pcie_target_bus_set()
286 cfg_control_offset = AXI_BASE_OFFSET + pcie->reg_offsets.ob_ctrl + in al_pcie_config_prepare()
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/dce100/
Ddce100_hw_sequencer.c43 static const struct dce100_hw_seq_reg_offsets reg_offsets[] = { variable
65 (reg + reg_offsets[id].crtc)
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/dce112/
Ddce112_hw_sequencer.c42 static const struct dce112_hw_seq_reg_offsets reg_offsets[] = { variable
63 (reg + reg_offsets[id].crtc)
Ddce112_compressor.c46 static const struct dce112_compressor_reg_offsets reg_offsets[] = { variable
405 cp110->offsets = reg_offsets[params->inst]; in dce112_compressor_enable_fbc()
/Linux-v5.10/arch/x86/um/
Dptrace_64.c22 static const int reg_offsets[] = variable
106 child->thread.regs.regs.gp[reg_offsets[regno >> 3]] = value; in putreg()
167 return mask & child->thread.regs.regs.gp[reg_offsets[regno >> 3]]; in getreg()
Dptrace_32.c55 static const int reg_offsets[] = { variable
120 child->thread.regs.regs.gp[reg_offsets[regno]] = value; in putreg()
172 return mask & child->thread.regs.regs.gp[reg_offsets[regno]]; in getreg()
/Linux-v5.10/drivers/net/dsa/
Dbcm_sf2.h73 const u16 *reg_offsets; member
194 return readl_relaxed(priv->reg + priv->reg_offsets[off]); in reg_readl()
199 writel_relaxed(val, priv->reg + priv->reg_offsets[off]); in reg_writel()
Dbcm_sf2.c1133 const u16 *reg_offsets; member
1158 .reg_offsets = bcm_sf2_7445_reg_offsets,
1181 .reg_offsets = bcm_sf2_7278_reg_offsets,
1240 priv->reg_offsets = data->reg_offsets; in bcm_sf2_sw_probe()
/Linux-v5.10/drivers/net/ethernet/8390/
Dxsurf100.c259 static u32 reg_offsets[32]; in xsurf100_probe() local
282 reg_offsets[reg] = 4 * reg; in xsurf100_probe()
289 ax88796_data.ax.reg_offsets = reg_offsets; in xsurf100_probe()
Dax88796.c95 u32 reg_offsets[0x20]; member
887 if (ax->plat->reg_offsets) in ax_probe()
888 ei_local->reg_offset = ax->plat->reg_offsets; in ax_probe()
890 ei_local->reg_offset = ax->reg_offsets; in ax_probe()
892 ax->reg_offsets[ret] = (mem_size / 0x18) * ret; in ax_probe()
914 if (!ax->plat->reg_offsets) { in ax_probe()
916 ax->reg_offsets[ret] = (mem_size / 0x20) * ret; in ax_probe()
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/dce120/
Ddce120_hw_sequencer.c53 static const struct dce120_hw_seq_reg_offsets reg_offsets[] = { variable
75 (reg + reg_offsets[id].crtc)
/Linux-v5.10/drivers/pci/controller/
Dpcie-iproc-msi.c95 const u16 (*reg_offsets)[IPROC_MSI_REG_SIZE]; member
134 return readl_relaxed(pcie->base + msi->reg_offsets[eq][reg]); in iproc_msi_read_reg()
143 writel_relaxed(val, pcie->base + msi->reg_offsets[eq][reg]); in iproc_msi_write_reg()
569 msi->reg_offsets = iproc_msi_reg_paxb; in iproc_msi_init()
574 msi->reg_offsets = iproc_msi_reg_paxc; in iproc_msi_init()
Dpcie-iproc.h83 u16 *reg_offsets; member
Dpcie-iproc.c413 return pcie->reg_offsets[reg]; in iproc_pcie_reg_offset()
1453 pcie->reg_offsets = devm_kcalloc(dev, IPROC_PCIE_MAX_NUM_REG, in iproc_pcie_rev_init()
1454 sizeof(*pcie->reg_offsets), in iproc_pcie_rev_init()
1456 if (!pcie->reg_offsets) in iproc_pcie_rev_init()
1460 pcie->reg_offsets[0] = (pcie->type == IPROC_PCIE_PAXC_V2) ? in iproc_pcie_rev_init()
1463 pcie->reg_offsets[reg_idx] = regs[reg_idx] ? in iproc_pcie_rev_init()
Dpcie-brcmstb.c175 #define IDX_ADDR(pcie) (pcie->reg_offsets[EXT_CFG_INDEX])
176 #define DATA_ADDR(pcie) (pcie->reg_offsets[EXT_CFG_DATA])
177 #define PCIE_RGR1_SW_INIT_1(pcie) (pcie->reg_offsets[RGR1_SW_INIT_1])
282 const int *reg_offsets; member
1236 pcie->reg_offsets = data->offsets; in brcm_pcie_probe()
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/dce80/
Ddce80_timing_generator.c51 static const struct dce110_timing_generator_offsets reg_offsets[] = { variable
233 tg110->derived_offsets = reg_offsets[instance]; in dce80_timing_generator_construct()
/Linux-v5.10/include/net/
Dax88796.h26 u32 *reg_offsets; /* register offsets */ member
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/dce60/
Ddce60_timing_generator.c51 static const struct dce110_timing_generator_offsets reg_offsets[] = { variable
252 tg110->derived_offsets = reg_offsets[instance]; in dce60_timing_generator_construct()
/Linux-v5.10/drivers/mtd/nand/raw/brcmnand/
Dbrcmnand.c258 const u16 *reg_offsets; member
624 ctrl->reg_offsets = brcmnand_regs_v72; in brcmnand_revision_init()
626 ctrl->reg_offsets = brcmnand_regs_v71; in brcmnand_revision_init()
628 ctrl->reg_offsets = brcmnand_regs_v60; in brcmnand_revision_init()
630 ctrl->reg_offsets = brcmnand_regs_v50; in brcmnand_revision_init()
632 ctrl->reg_offsets = brcmnand_regs_v33; in brcmnand_revision_init()
634 ctrl->reg_offsets = brcmnand_regs_v21; in brcmnand_revision_init()
736 u16 offs = ctrl->reg_offsets[reg]; in brcmnand_read_reg()
747 u16 offs = ctrl->reg_offsets[reg]; in brcmnand_write_reg()
842 u16 offs_cs0 = ctrl->reg_offsets[BRCMNAND_CS0_BASE]; in brcmnand_cs_offset()
[all …]
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/dce110/
Ddce110_compressor.c47 static const struct dce110_compressor_reg_offsets reg_offsets[] = { variable
81 cp110->offsets = reg_offsets[crtc_inst]; in reset_lb_on_vblank()
307 cp110->offsets = reg_offsets[params->inst]; in dce110_compressor_program_compressed_surface_address_and_pitch()
Ddce110_hw_sequencer.c94 static const struct dce110_hw_seq_reg_offsets reg_offsets[] = { variable
110 (reg + reg_offsets[id].blnd)
113 (reg + reg_offsets[id].crtc)
/Linux-v5.10/drivers/gpu/drm/msm/adreno/
Dadreno_gpu.h114 const unsigned int *reg_offsets; member

12