Home
last modified time | relevance | path

Searched refs:reg_space (Results 1 – 15 of 15) sorted by relevance

/openbmc/linux/drivers/net/ethernet/stmicro/stmmac/
H A Ddwmac100_core.c37 static void dwmac100_dump_mac_regs(struct mac_device_info *hw, u32 *reg_space) in dwmac100_dump_mac_regs() argument
41 reg_space[MAC_CONTROL / 4] = readl(ioaddr + MAC_CONTROL); in dwmac100_dump_mac_regs()
42 reg_space[MAC_ADDR_HIGH / 4] = readl(ioaddr + MAC_ADDR_HIGH); in dwmac100_dump_mac_regs()
43 reg_space[MAC_ADDR_LOW / 4] = readl(ioaddr + MAC_ADDR_LOW); in dwmac100_dump_mac_regs()
44 reg_space[MAC_HASH_HIGH / 4] = readl(ioaddr + MAC_HASH_HIGH); in dwmac100_dump_mac_regs()
45 reg_space[MAC_HASH_LOW / 4] = readl(ioaddr + MAC_HASH_LOW); in dwmac100_dump_mac_regs()
46 reg_space[MAC_FLOW_CTRL / 4] = readl(ioaddr + MAC_FLOW_CTRL); in dwmac100_dump_mac_regs()
47 reg_space[MAC_VLAN1 / 4] = readl(ioaddr + MAC_VLAN1); in dwmac100_dump_mac_regs()
48 reg_space[MAC_VLAN2 / 4] = readl(ioaddr + MAC_VLAN2); in dwmac100_dump_mac_regs()
H A Ddwmac4_dma.c192 u32 *reg_space) in _dwmac4_dump_dma_regs() argument
200 reg_space[DMA_CHAN_CONTROL(default_addrs, channel) / 4] = in _dwmac4_dump_dma_regs()
202 reg_space[DMA_CHAN_TX_CONTROL(default_addrs, channel) / 4] = in _dwmac4_dump_dma_regs()
204 reg_space[DMA_CHAN_RX_CONTROL(default_addrs, channel) / 4] = in _dwmac4_dump_dma_regs()
214 reg_space[DMA_CHAN_TX_END_ADDR(default_addrs, channel) / 4] = in _dwmac4_dump_dma_regs()
216 reg_space[DMA_CHAN_RX_END_ADDR(default_addrs, channel) / 4] = in _dwmac4_dump_dma_regs()
218 reg_space[DMA_CHAN_TX_RING_LEN(default_addrs, channel) / 4] = in _dwmac4_dump_dma_regs()
222 reg_space[DMA_CHAN_INTR_ENA(default_addrs, channel) / 4] = in _dwmac4_dump_dma_regs()
240 reg_space[DMA_CHAN_STATUS(default_addrs, channel) / 4] = in _dwmac4_dump_dma_regs()
245 u32 *reg_space) in dwmac4_dump_dma_regs() argument
[all …]
H A Ddwmac100_dma.c70 void __iomem *ioaddr, u32 *reg_space) in dwmac100_dump_dma_regs() argument
75 reg_space[DMA_BUS_MODE / 4 + i] = in dwmac100_dump_dma_regs()
78 reg_space[DMA_CUR_TX_BUF_ADDR / 4] = in dwmac100_dump_dma_regs()
80 reg_space[DMA_CUR_RX_BUF_ADDR / 4] = in dwmac100_dump_dma_regs()
H A Ddwmac1000_dma.c216 void __iomem *ioaddr, u32 *reg_space) in dwmac1000_dump_dma_regs() argument
222 reg_space[DMA_BUS_MODE / 4 + i] = in dwmac1000_dump_dma_regs()
H A Dstmmac_ethtool.c453 u32 *reg_space = (u32 *) space; in stmmac_ethtool_gregs() local
455 stmmac_dump_mac_regs(priv, priv->hw, reg_space); in stmmac_ethtool_gregs()
456 stmmac_dump_dma_regs(priv, priv->ioaddr, reg_space); in stmmac_ethtool_gregs()
461 memcpy(&reg_space[ETHTOOL_DMA_OFFSET], in stmmac_ethtool_gregs()
462 &reg_space[GMAC4_DMA_CHAN_BASE_ADDR / 4], in stmmac_ethtool_gregs()
465 memcpy(&reg_space[ETHTOOL_DMA_OFFSET], in stmmac_ethtool_gregs()
466 &reg_space[DMA_BUS_MODE / 4], in stmmac_ethtool_gregs()
H A Ddwmac-sun8i.c331 void __iomem *ioaddr, u32 *reg_space) in sun8i_dwmac_dump_regs() argument
338 reg_space[i / 4] = readl(ioaddr + i); in sun8i_dwmac_dump_regs()
347 u32 *reg_space) in sun8i_dwmac_dump_mac_regs() argument
355 reg_space[i / 4] = readl(ioaddr + i); in sun8i_dwmac_dump_mac_regs()
H A Ddwmac1000_core.c88 static void dwmac1000_dump_regs(struct mac_device_info *hw, u32 *reg_space) in dwmac1000_dump_regs() argument
94 reg_space[i] = readl(ioaddr + i * 4); in dwmac1000_dump_regs()
H A Ddwxgmac2_dma.c138 void __iomem *ioaddr, u32 *reg_space) in dwxgmac2_dma_dump_regs() argument
143 reg_space[i] = readl(ioaddr + i * 4); in dwxgmac2_dma_dump_regs()
H A Dhwif.h184 u32 *reg_space);
333 void (*dump_regs)(struct mac_device_info *hw, u32 *reg_space);
H A Ddwmac4_core.c314 static void dwmac4_dump_regs(struct mac_device_info *hw, u32 *reg_space) in dwmac4_dump_regs() argument
320 reg_space[i] = readl(ioaddr + i * 4); in dwmac4_dump_regs()
H A Ddwxgmac2_core.c289 static void dwxgmac2_dump_regs(struct mac_device_info *hw, u32 *reg_space) in dwxgmac2_dump_regs() argument
295 reg_space[i] = readl(ioaddr + i * 4); in dwxgmac2_dump_regs()
/openbmc/linux/drivers/net/can/spi/mcp251xfd/
H A Dmcp251xfd-dump.c73 const struct mcp251xfd_dump_reg_space *reg_space; in mcp251xfd_dump_registers() local
76 reg_space = &mcp251xfd_dump_reg_space[i]; in mcp251xfd_dump_registers()
78 buf = kmalloc(reg_space->size, GFP_KERNEL); in mcp251xfd_dump_registers()
82 err = regmap_bulk_read(priv->map_reg, reg_space->base, in mcp251xfd_dump_registers()
83 buf, reg_space->size / val_bytes); in mcp251xfd_dump_registers()
89 for (j = 0; j < reg_space->size; j += sizeof(u32), reg++) { in mcp251xfd_dump_registers()
90 reg->reg = cpu_to_le32(reg_space->base + j); in mcp251xfd_dump_registers()
/openbmc/linux/drivers/net/ethernet/samsung/sxgbe/
H A Dsxgbe_ethtool.c446 u32 *reg_space = (u32 *)space; in sxgbe_get_regs() local
451 memset(reg_space, 0x0, REG_SPACE_SIZE); in sxgbe_get_regs()
456 reg_space[reg_ix] = readl(ioaddr + reg_offset); in sxgbe_get_regs()
463 reg_space[reg_ix] = readl(ioaddr + reg_offset); in sxgbe_get_regs()
470 reg_space[reg_ix] = readl(ioaddr + reg_offset); in sxgbe_get_regs()
/openbmc/linux/drivers/gpu/drm/hisilicon/kirin/
H A Dkirin_drm_ade.c350 u32 reg_ctrl, reg_addr, reg_size, reg_stride, reg_space, reg_en; in ade_rdma_dump_regs() local
357 reg_space = RD_CH_SPACE(ch); in ade_rdma_dump_regs()
370 val = readl(base + reg_space); in ade_rdma_dump_regs()
552 u32 reg_ctrl, reg_addr, reg_size, reg_stride, reg_space, reg_en; in ade_rdma_set() local
567 reg_space = RD_CH_SPACE(ch); in ade_rdma_set()
577 writel(in_h * stride, base + reg_space); in ade_rdma_set()
/openbmc/linux/drivers/net/ethernet/neterion/
H A Ds2io.c5367 u8 *reg_space = (u8 *)space; in s2io_ethtool_gregs() local
5375 memcpy((reg_space + i), &reg, 8); in s2io_ethtool_gregs()