Searched refs:dpmac_dev (Results 1 – 3 of 3) sorted by relevance
/Linux-v6.6/drivers/net/ethernet/freescale/dpaa2/ |
D | dpaa2-mac.c | 468 struct fsl_mc_device *dpmac_dev = mac->mc_dev; in dpaa2_mac_open() local 473 err = dpmac_open(mac->mc_io, 0, dpmac_dev->obj_desc.id, in dpaa2_mac_open() 474 &dpmac_dev->mc_handle); in dpaa2_mac_open() 475 if (err || !dpmac_dev->mc_handle) { in dpaa2_mac_open() 480 err = dpmac_get_attributes(mac->mc_io, 0, dpmac_dev->mc_handle, in dpaa2_mac_open() 510 dpmac_close(mac->mc_io, 0, dpmac_dev->mc_handle); in dpaa2_mac_open() 516 struct fsl_mc_device *dpmac_dev = mac->mc_dev; in dpaa2_mac_close() local 518 dpmac_close(mac->mc_io, 0, dpmac_dev->mc_handle); in dpaa2_mac_close() 574 struct fsl_mc_device *dpmac_dev = mac->mc_dev; in dpaa2_mac_get_ethtool_stats() local 579 err = dpmac_get_counter(mac->mc_io, 0, dpmac_dev->mc_handle, in dpaa2_mac_get_ethtool_stats()
|
D | dpaa2-switch.c | 1440 struct fsl_mc_device *dpsw_port_dev, *dpmac_dev; in dpaa2_switch_port_connect_mac() local 1445 dpmac_dev = fsl_mc_get_endpoint(dpsw_port_dev, port_priv->idx); in dpaa2_switch_port_connect_mac() 1447 if (PTR_ERR(dpmac_dev) == -EPROBE_DEFER) in dpaa2_switch_port_connect_mac() 1448 return PTR_ERR(dpmac_dev); in dpaa2_switch_port_connect_mac() 1450 if (IS_ERR(dpmac_dev) || dpmac_dev->dev.type != &fsl_mc_bus_dpmac_type) in dpaa2_switch_port_connect_mac() 1457 mac->mc_dev = dpmac_dev; in dpaa2_switch_port_connect_mac()
|
D | dpaa2-eth.c | 4630 struct fsl_mc_device *dpni_dev, *dpmac_dev; in dpaa2_eth_connect_mac() local 4635 dpmac_dev = fsl_mc_get_endpoint(dpni_dev, 0); in dpaa2_eth_connect_mac() 4637 if (PTR_ERR(dpmac_dev) == -EPROBE_DEFER) { in dpaa2_eth_connect_mac() 4639 return PTR_ERR(dpmac_dev); in dpaa2_eth_connect_mac() 4642 if (IS_ERR(dpmac_dev) || dpmac_dev->dev.type != &fsl_mc_bus_dpmac_type) in dpaa2_eth_connect_mac() 4649 mac->mc_dev = dpmac_dev; in dpaa2_eth_connect_mac()
|