Searched refs:mac_regs (Results 1 – 13 of 13) sorted by relevance
/Linux-v4.19/drivers/net/ethernet/synopsys/ |
D | dwc-xlgmac-hw.c | 40 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 …]
|
D | dwc-xlgmac-common.c | 79 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()
|
D | dwc-xlgmac-reg.h | 740 ((pdata)->mac_regs + MTL_Q_BASE + ((n) * MTL_Q_INC) + (reg))
|
D | dwc-xlgmac.h | 555 void __iomem *mac_regs; member
|
D | dwc-xlgmac-net.c | 265 dma_isr = readl(pdata->mac_regs + DMA_ISR); in xlgmac_isr() 329 mac_isr = readl(pdata->mac_regs + MAC_ISR); in xlgmac_isr()
|
D | dwc-xlgmac-desc.c | 260 channel->dma_regs = pdata->mac_regs + DMA_CH_BASE + in xlgmac_alloc_channels()
|
/Linux-v4.19/drivers/net/ethernet/via/ |
D | via-velocity.c | 97 void *addr = vptr->mac_regs; in velocity_set_power_state() 113 static void mac_get_cam_mask(struct mac_regs __iomem *regs, u8 *mask) in mac_get_cam_mask() 140 static void mac_set_cam_mask(struct mac_regs __iomem *regs, u8 *mask) in mac_set_cam_mask() 158 static void mac_set_vlan_cam_mask(struct mac_regs __iomem *regs, u8 *mask) in mac_set_vlan_cam_mask() 184 static void mac_set_cam(struct mac_regs __iomem *regs, int idx, const u8 *addr) in mac_set_cam() 208 static void mac_set_vlan_cam(struct mac_regs __iomem *regs, int idx, in mac_set_vlan_cam() 239 static void mac_wol_reset(struct mac_regs __iomem *regs) in mac_wol_reset() 504 struct mac_regs __iomem *regs = vptr->mac_regs; in velocity_init_cam_filter() 566 struct mac_regs __iomem *regs = vptr->mac_regs; in velocity_rx_reset() 625 static void safe_disable_mii_autopoll(struct mac_regs __iomem *regs) in safe_disable_mii_autopoll() [all …]
|
D | via-velocity.h | 977 struct mac_regs { struct 1189 static inline void mac_eeprom_reload(struct mac_regs __iomem * regs) { in mac_eeprom_reload() 1446 struct mac_regs __iomem * mac_regs; member 1546 BYTE_REG_BITS_ON(MIBCR_MIBFLSH, &(vptr->mac_regs->MIBCR)); in velocity_update_hw_mibs() 1548 while (BYTE_REG_BITS_IS_ON(MIBCR_MIBFLSH, &(vptr->mac_regs->MIBCR))); in velocity_update_hw_mibs() 1550 BYTE_REG_BITS_ON(MIBCR_MPTRINI, &(vptr->mac_regs->MIBCR)); in velocity_update_hw_mibs() 1552 tmp = readl(&(vptr->mac_regs->MIBData)) & 0x00FFFFFFUL; in velocity_update_hw_mibs() 1566 struct mac_regs __iomem * regs = vptr->mac_regs; in init_flow_control_register()
|
/Linux-v4.19/arch/powerpc/platforms/pasemi/ |
D | dma_lib.c | 37 static void __iomem *mac_regs[6]; variable 78 return in_le32(mac_regs[intf]+reg); in pasemi_read_mac_reg() 89 out_le32(mac_regs[intf]+reg, val); in pasemi_write_mac_reg() 560 mac_regs[intf++] = map_onedev(pdev, 0); in pasemi_dma_init() 567 mac_regs[intf++] = map_onedev(pdev, 0); in pasemi_dma_init()
|
/Linux-v4.19/drivers/net/ethernet/agere/ |
D | et131x.h | 1047 struct mac_regs { /* Location: */ struct 1240 struct mac_regs mac; 1242 u8 unused_mac[4096 - sizeof(struct mac_regs)];
|
D | et131x.c | 808 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() 1176 struct mac_regs __iomem *mac = &adapter->regs->mac; in et131x_phy_mii_read() 1245 struct mac_regs __iomem *mac = &adapter->regs->mac; in et131x_mii_write()
|
/Linux-v4.19/drivers/net/ethernet/sun/ |
D | niu.c | 75 #define nr64_mac(reg) readq(np->mac_regs + (reg)) 76 #define nw64_mac(reg, val) writeq((val), np->mac_regs + (reg)) 8971 np->mac_regs = np->regs + XMAC_PORT0_OFF; in niu_init_mac_ipp_pcs_base() 8978 np->mac_regs = np->regs + XMAC_PORT1_OFF; in niu_init_mac_ipp_pcs_base() 8985 np->mac_regs = np->regs + BMAC_PORT2_OFF; in niu_init_mac_ipp_pcs_base() 8992 np->mac_regs = np->regs + BMAC_PORT3_OFF; in niu_init_mac_ipp_pcs_base()
|
D | niu.h | 3277 void __iomem *mac_regs; member
|