Lines Matching refs:mac
2159 if (dpaa2_mac_is_type_phy(priv->mac)) in dpaa2_eth_link_state_update()
2216 dpaa2_mac_start(priv->mac); in dpaa2_eth_open()
2294 dpaa2_mac_stop(priv->mac); in dpaa2_eth_stop()
2635 err = phylink_mii_ioctl(priv->mac->phylink, rq, cmd); in dpaa2_eth_ioctl()
4637 struct dpaa2_mac *mac; in dpaa2_eth_connect_mac() local
4651 mac = kzalloc(sizeof(struct dpaa2_mac), GFP_KERNEL); in dpaa2_eth_connect_mac()
4652 if (!mac) in dpaa2_eth_connect_mac()
4655 mac->mc_dev = dpmac_dev; in dpaa2_eth_connect_mac()
4656 mac->mc_io = priv->mc_io; in dpaa2_eth_connect_mac()
4657 mac->net_dev = priv->net_dev; in dpaa2_eth_connect_mac()
4659 err = dpaa2_mac_open(mac); in dpaa2_eth_connect_mac()
4663 if (dpaa2_mac_is_type_phy(mac)) { in dpaa2_eth_connect_mac()
4664 err = dpaa2_mac_connect(mac); in dpaa2_eth_connect_mac()
4678 priv->mac = mac; in dpaa2_eth_connect_mac()
4684 dpaa2_mac_close(mac); in dpaa2_eth_connect_mac()
4686 kfree(mac); in dpaa2_eth_connect_mac()
4692 struct dpaa2_mac *mac; in dpaa2_eth_disconnect_mac() local
4695 mac = priv->mac; in dpaa2_eth_disconnect_mac()
4696 priv->mac = NULL; in dpaa2_eth_disconnect_mac()
4699 if (!mac) in dpaa2_eth_disconnect_mac()
4702 if (dpaa2_mac_is_type_phy(mac)) in dpaa2_eth_disconnect_mac()
4703 dpaa2_mac_disconnect(mac); in dpaa2_eth_disconnect_mac()
4705 dpaa2_mac_close(mac); in dpaa2_eth_disconnect_mac()
4706 kfree(mac); in dpaa2_eth_disconnect_mac()
4737 had_mac = !!priv->mac; in dpni_irq0_handler_thread()