Home
last modified time | relevance | path

Searched refs:mac_regs (Results 1 – 13 of 13) sorted by relevance

/linux-5.19.10/drivers/net/ethernet/synopsys/
Ddwc-xlgmac-hw.c40 regval = readl(pdata->mac_regs + MAC_RCR); in xlgmac_disable_rx_csum()
43 writel(regval, pdata->mac_regs + MAC_RCR); in xlgmac_disable_rx_csum()
52 regval = readl(pdata->mac_regs + MAC_RCR); in xlgmac_enable_rx_csum()
55 writel(regval, pdata->mac_regs + MAC_RCR); in xlgmac_enable_rx_csum()
68 writel(mac_addr_hi, pdata->mac_regs + MAC_MACA0HR); in xlgmac_set_mac_address()
69 writel(mac_addr_lo, pdata->mac_regs + MAC_MACA0LR); in xlgmac_set_mac_address()
104 writel(mac_addr_hi, pdata->mac_regs + *mac_reg); in xlgmac_set_mac_reg()
106 writel(mac_addr_lo, pdata->mac_regs + *mac_reg); in xlgmac_set_mac_reg()
114 regval = readl(pdata->mac_regs + MAC_VLANTR); in xlgmac_enable_rx_vlan_stripping()
130 writel(regval, pdata->mac_regs + MAC_VLANTR); in xlgmac_enable_rx_vlan_stripping()
[all …]
Ddwc-xlgmac-common.c79 netdev->base_addr = (unsigned long)pdata->mac_regs; in xlgmac_init()
249 pdata->mac_regs = res->addr; in xlgmac_drv_probe()
364 mac_hfr0 = readl(pdata->mac_regs + MAC_HWF0R); in xlgmac_get_all_hw_features()
365 mac_hfr1 = readl(pdata->mac_regs + MAC_HWF1R); in xlgmac_get_all_hw_features()
366 mac_hfr2 = readl(pdata->mac_regs + MAC_HWF2R); in xlgmac_get_all_hw_features()
370 hw_feat->version = readl(pdata->mac_regs + MAC_VR); in xlgmac_get_all_hw_features()
Ddwc-xlgmac-reg.h740 ((pdata)->mac_regs + MTL_Q_BASE + ((n) * MTL_Q_INC) + (reg))
Ddwc-xlgmac.h556 void __iomem *mac_regs; member
Ddwc-xlgmac-net.c265 dma_isr = readl(pdata->mac_regs + DMA_ISR); in xlgmac_isr()
329 mac_isr = readl(pdata->mac_regs + MAC_ISR); in xlgmac_isr()
Ddwc-xlgmac-desc.c260 channel->dma_regs = pdata->mac_regs + DMA_CH_BASE + in xlgmac_alloc_channels()
/linux-5.19.10/drivers/net/ethernet/via/
Dvia-velocity.c88 void *addr = vptr->mac_regs; in velocity_set_power_state()
104 static void mac_get_cam_mask(struct mac_regs __iomem *regs, u8 *mask) in mac_get_cam_mask()
131 static void mac_set_cam_mask(struct mac_regs __iomem *regs, u8 *mask) in mac_set_cam_mask()
149 static void mac_set_vlan_cam_mask(struct mac_regs __iomem *regs, u8 *mask) in mac_set_vlan_cam_mask()
175 static void mac_set_cam(struct mac_regs __iomem *regs, int idx, const u8 *addr) in mac_set_cam()
199 static void mac_set_vlan_cam(struct mac_regs __iomem *regs, int idx, in mac_set_vlan_cam()
230 static void mac_wol_reset(struct mac_regs __iomem *regs) in mac_wol_reset()
506 struct mac_regs __iomem *regs = vptr->mac_regs; in velocity_init_cam_filter()
568 struct mac_regs __iomem *regs = vptr->mac_regs; in velocity_rx_reset()
627 static void safe_disable_mii_autopoll(struct mac_regs __iomem *regs) in safe_disable_mii_autopoll()
[all …]
Dvia-velocity.h967 struct mac_regs { struct
1179 static inline void mac_eeprom_reload(struct mac_regs __iomem * regs) { in mac_eeprom_reload()
1392 struct mac_regs __iomem * mac_regs; member
1493 BYTE_REG_BITS_ON(MIBCR_MIBFLSH, &(vptr->mac_regs->MIBCR)); in velocity_update_hw_mibs()
1495 while (BYTE_REG_BITS_IS_ON(MIBCR_MIBFLSH, &(vptr->mac_regs->MIBCR))); in velocity_update_hw_mibs()
1497 BYTE_REG_BITS_ON(MIBCR_MPTRINI, &(vptr->mac_regs->MIBCR)); in velocity_update_hw_mibs()
1499 tmp = readl(&(vptr->mac_regs->MIBData)) & 0x00FFFFFFUL; in velocity_update_hw_mibs()
1513 struct mac_regs __iomem * regs = vptr->mac_regs; in init_flow_control_register()
/linux-5.19.10/arch/powerpc/platforms/pasemi/
Ddma_lib.c27 static void __iomem *mac_regs[6]; variable
68 return in_le32(mac_regs[intf]+reg); in pasemi_read_mac_reg()
79 out_le32(mac_regs[intf]+reg, val); in pasemi_write_mac_reg()
548 mac_regs[intf++] = map_onedev(pdev, 0); in pasemi_dma_init()
555 mac_regs[intf++] = map_onedev(pdev, 0); in pasemi_dma_init()
/linux-5.19.10/drivers/net/ethernet/agere/
Det131x.h1046 struct mac_regs { /* Location: */ struct
1239 struct mac_regs mac;
1241 u8 unused_mac[4096 - sizeof(struct mac_regs)];
Det131x.c808 struct mac_regs __iomem *macregs = &adapter->regs->mac; in et1310_config_mac_regs1()
867 struct mac_regs __iomem *mac = &adapter->regs->mac; in et1310_config_mac_regs2()
1172 struct mac_regs __iomem *mac = &adapter->regs->mac; in et131x_phy_mii_read()
1241 struct mac_regs __iomem *mac = &adapter->regs->mac; in et131x_mii_write()
/linux-5.19.10/drivers/net/ethernet/sun/
Dniu.c94 #define nr64_mac(reg) readq(np->mac_regs + (reg))
95 #define nw64_mac(reg, val) writeq((val), np->mac_regs + (reg))
9004 np->mac_regs = np->regs + XMAC_PORT0_OFF; in niu_init_mac_ipp_pcs_base()
9011 np->mac_regs = np->regs + XMAC_PORT1_OFF; in niu_init_mac_ipp_pcs_base()
9018 np->mac_regs = np->regs + BMAC_PORT2_OFF; in niu_init_mac_ipp_pcs_base()
9025 np->mac_regs = np->regs + BMAC_PORT3_OFF; in niu_init_mac_ipp_pcs_base()
Dniu.h3277 void __iomem *mac_regs; member