Lines Matching full:mac
40 struct mac_device_info *mac = priv->hw; in stmmac_dwmac_mode_quirk() local
45 mac->mode = &chain_mode_ops; in stmmac_dwmac_mode_quirk()
49 mac->mode = &ring_mode_ops; in stmmac_dwmac_mode_quirk()
55 struct mac_device_info *mac = priv->hw; in stmmac_dwmac1_quirks() local
68 mac->desc = &enh_desc_ops; in stmmac_dwmac1_quirks()
71 mac->desc = &ndesc_ops; in stmmac_dwmac1_quirks()
112 const void *mac; member
132 .mac = &dwmac100_ops,
150 .mac = &dwmac1000_ops,
168 .mac = &dwmac4_ops,
186 .mac = &dwmac410_ops,
204 .mac = &dwmac410_ops,
222 .mac = &dwmac510_ops,
241 .mac = &dwxgmac210_ops,
260 .mac = &dwxlgmac2_ops,
276 struct mac_device_info *mac; in stmmac_hwif_init() local
302 mac = priv->plat->setup(priv); in stmmac_hwif_init()
305 mac = devm_kzalloc(priv->device, sizeof(*mac), GFP_KERNEL); in stmmac_hwif_init()
308 if (!mac) in stmmac_hwif_init()
328 mac->desc = mac->desc ? : entry->desc; in stmmac_hwif_init()
329 mac->dma = mac->dma ? : entry->dma; in stmmac_hwif_init()
330 mac->mac = mac->mac ? : entry->mac; in stmmac_hwif_init()
331 mac->ptp = mac->ptp ? : entry->hwtimestamp; in stmmac_hwif_init()
332 mac->mode = mac->mode ? : entry->mode; in stmmac_hwif_init()
333 mac->tc = mac->tc ? : entry->tc; in stmmac_hwif_init()
334 mac->mmc = mac->mmc ? : entry->mmc; in stmmac_hwif_init()
336 priv->hw = mac; in stmmac_hwif_init()