Lines Matching refs:mac_dev
901 struct mac_device *mac_dev = fman_config_to_mac(config); in dtsec_mac_config() local
902 struct dtsec_regs __iomem *regs = mac_dev->fman_mac->regs; in dtsec_mac_config()
921 dev_warn(mac_dev->dev, "cannot configure dTSEC for %s\n", in dtsec_mac_config()
933 struct mac_device *mac_dev = fman_config_to_mac(config); in dtsec_link_up() local
934 struct fman_mac *dtsec = mac_dev->fman_mac; in dtsec_link_up()
962 mac_dev->update_speed(mac_dev, speed); in dtsec_link_up()
1344 static struct fman_mac *dtsec_config(struct mac_device *mac_dev, in dtsec_config() argument
1365 dtsec->regs = mac_dev->vaddr; in dtsec_config()
1366 dtsec->addr = ENET_ADDR_TO_UINT64(mac_dev->addr); in dtsec_config()
1367 dtsec->phy_if = mac_dev->phy_if; in dtsec_config()
1384 dtsec->dev_id = mac_dev; in dtsec_config()
1400 int dtsec_initialization(struct mac_device *mac_dev, in dtsec_initialization() argument
1410 mac_dev->phylink_ops = &dtsec_mac_ops; in dtsec_initialization()
1411 mac_dev->set_promisc = dtsec_set_promiscuous; in dtsec_initialization()
1412 mac_dev->change_addr = dtsec_modify_mac_address; in dtsec_initialization()
1413 mac_dev->add_hash_mac_addr = dtsec_add_hash_mac_address; in dtsec_initialization()
1414 mac_dev->remove_hash_mac_addr = dtsec_del_hash_mac_address; in dtsec_initialization()
1415 mac_dev->set_exception = dtsec_set_exception; in dtsec_initialization()
1416 mac_dev->set_allmulti = dtsec_set_allmulti; in dtsec_initialization()
1417 mac_dev->set_tstamp = dtsec_set_tstamp; in dtsec_initialization()
1418 mac_dev->set_multi = fman_set_multi; in dtsec_initialization()
1419 mac_dev->enable = dtsec_enable; in dtsec_initialization()
1420 mac_dev->disable = dtsec_disable; in dtsec_initialization()
1422 mac_dev->fman_mac = dtsec_config(mac_dev, params); in dtsec_initialization()
1423 if (!mac_dev->fman_mac) { in dtsec_initialization()
1428 dtsec = mac_dev->fman_mac; in dtsec_initialization()
1436 dev_err_probe(mac_dev->dev, err, in dtsec_initialization()
1445 dev_err_probe(mac_dev->dev, err, in dtsec_initialization()
1452 supported = mac_dev->phylink_config.supported_interfaces; in dtsec_initialization()
1458 if (mac_dev->phy_if == PHY_INTERFACE_MODE_SGMII || in dtsec_initialization()
1459 mac_dev->phy_if == PHY_INTERFACE_MODE_1000BASEX) { in dtsec_initialization()
1462 } else if (mac_dev->phy_if == PHY_INTERFACE_MODE_2500BASEX) { in dtsec_initialization()
1482 mac_dev->phylink_config.mac_capabilities = capabilities; in dtsec_initialization()
1493 dev_info(mac_dev->dev, "FMan dTSEC version: 0x%08x\n", in dtsec_initialization()