Lines Matching defs:mac
607 * (the writer to port_priv->mac), so we cannot race with it.
609 if (dpaa2_mac_is_type_phy(port_priv->mac))
712 dpaa2_mac_start(port_priv->mac);
728 dpaa2_mac_stop(port_priv->mac);
1004 * practical purposes, this will be our "permanent" mac address,
1441 struct dpaa2_mac *mac;
1453 mac = kzalloc(sizeof(*mac), GFP_KERNEL);
1454 if (!mac)
1457 mac->mc_dev = dpmac_dev;
1458 mac->mc_io = port_priv->ethsw_data->mc_io;
1459 mac->net_dev = port_priv->netdev;
1461 err = dpaa2_mac_open(mac);
1465 if (dpaa2_mac_is_type_phy(mac)) {
1466 err = dpaa2_mac_connect(mac);
1476 port_priv->mac = mac;
1482 dpaa2_mac_close(mac);
1484 kfree(mac);
1490 struct dpaa2_mac *mac;
1493 mac = port_priv->mac;
1494 port_priv->mac = NULL;
1497 if (!mac)
1500 if (dpaa2_mac_is_type_phy(mac))
1501 dpaa2_mac_disconnect(mac);
1503 dpaa2_mac_close(mac);
1504 kfree(mac);
1533 * handler is the only one who changes priv->mac at runtime,
1536 had_mac = !!port_priv->mac;
3094 const char *mac)
3099 ether_addr_copy(acl_entry.key.match.l2_dest_mac, mac);