Lines Matching refs: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()
99 const void *mac; member
119 .mac = &dwmac100_ops,
137 .mac = &dwmac1000_ops,
155 .mac = &dwmac4_ops,
173 .mac = &dwmac410_ops,
191 .mac = &dwmac410_ops,
209 .mac = &dwmac510_ops,
228 .mac = &dwxgmac210_ops,
247 .mac = &dwxlgmac2_ops,
263 struct mac_device_info *mac; in stmmac_hwif_init() local
289 mac = priv->plat->setup(priv); in stmmac_hwif_init()
292 mac = devm_kzalloc(priv->device, sizeof(*mac), GFP_KERNEL); in stmmac_hwif_init()
295 if (!mac) in stmmac_hwif_init()
315 mac->desc = mac->desc ? : entry->desc; in stmmac_hwif_init()
316 mac->dma = mac->dma ? : entry->dma; in stmmac_hwif_init()
317 mac->mac = mac->mac ? : entry->mac; in stmmac_hwif_init()
318 mac->ptp = mac->ptp ? : entry->hwtimestamp; in stmmac_hwif_init()
319 mac->mode = mac->mode ? : entry->mode; in stmmac_hwif_init()
320 mac->tc = mac->tc ? : entry->tc; in stmmac_hwif_init()
321 mac->mmc = mac->mmc ? : entry->mmc; in stmmac_hwif_init()
323 priv->hw = mac; in stmmac_hwif_init()