Lines Matching defs:mac
1702 if (priv->mac)
1741 if (!priv->mac) {
1763 if (priv->mac)
1764 phylink_start(priv->mac->phylink);
1837 if (!priv->mac) {
1841 phylink_stop(priv->mac->phylink);
1925 /* Copy mac unicast addresses from @net_dev to @priv.
1944 /* Copy mac multicast addresses from @net_dev to @priv
2023 * For now, rebuild mac filtering tables while forcing both of them on.
2032 /* Actual mac filtering tables reconstruction */
2035 netdev_warn(net_dev, "Can't clear mac filters\n");
2126 if (priv->mac)
2127 return phylink_mii_ioctl(priv->mac->phylink, rq, cmd);
3946 * practical purposes, this will be our "permanent" mac address,
4048 struct dpaa2_mac *mac;
4059 mac = kzalloc(sizeof(struct dpaa2_mac), GFP_KERNEL);
4060 if (!mac)
4063 mac->mc_dev = dpmac_dev;
4064 mac->mc_io = priv->mc_io;
4065 mac->net_dev = priv->net_dev;
4067 err = dpaa2_mac_connect(mac);
4070 kfree(mac);
4073 priv->mac = mac;
4080 if (!priv->mac)
4083 dpaa2_mac_disconnect(priv->mac);
4084 kfree(priv->mac);
4085 priv->mac = NULL;
4112 if (priv->mac)