Lines Matching full:slaves
92 for (i = 0; i < cpsw->data.slaves; i++) in cpsw_set_promiscious()
93 if (cpsw->slaves[i].ndev && in cpsw_set_promiscious()
94 (cpsw->slaves[i].ndev->flags & IFF_PROMISC)) in cpsw_set_promiscious()
133 vid = cpsw->slaves[slave_no].port_vlan; in cpsw_set_mc()
308 ndev = cpsw->slaves[--port].ndev; in cpsw_rx_handler()
461 for (i = 0; i < cpsw->data.slaves; i++) { in cpsw_ndo_vlan_rx_add_vid()
462 if (cpsw->slaves[i].ndev && in cpsw_ndo_vlan_rx_add_vid()
463 vid == cpsw->slaves[i].port_vlan) { in cpsw_ndo_vlan_rx_add_vid()
496 cpsw_mqprio_resume(&cpsw->slaves[priv->emac_port - 1], priv); in cpsw_restore()
499 cpsw_cbs_resume(&cpsw->slaves[priv->emac_port - 1], priv); in cpsw_restore()
656 slave = &cpsw->slaves[priv->emac_port - 1]; in cpsw_adjust_link()
797 slave = &cpsw->slaves[priv->emac_port - 1]; in cpsw_ndo_stop()
856 cpsw_slave_open(&cpsw->slaves[priv->emac_port - 1], priv); in cpsw_ndo_open()
994 vid = cpsw->slaves[slave_no].port_vlan; in cpsw_ndo_set_mac_address()
1004 cpsw_set_slave_mac(&cpsw->slaves[slave_no], priv); in cpsw_ndo_set_mac_address()
1035 for (i = 0; i < cpsw->data.slaves; i++) { in cpsw_ndo_vlan_rx_kill_vid()
1036 if (cpsw->slaves[i].ndev && in cpsw_ndo_vlan_rx_kill_vid()
1037 vid == cpsw->slaves[i].port_vlan) { in cpsw_ndo_vlan_rx_kill_vid()
1166 if (!cpsw->slaves[slave_no].phy) in cpsw_set_pauseparam()
1169 if (!phy_validate_pause(cpsw->slaves[slave_no].phy, pause)) in cpsw_set_pauseparam()
1175 phy_set_asym_pause(cpsw->slaves[slave_no].phy, in cpsw_set_pauseparam()
1232 data->slaves = of_get_child_count(tmp_node); in cpsw_probe_dt()
1233 if (data->slaves != CPSW_SLAVE_PORTS_NUM) { in cpsw_probe_dt()
1352 for (i = 0; i < cpsw->data.slaves; i++) { in cpsw_remove_dt()
1373 for (i = 0; i < cpsw->data.slaves; i++) { in cpsw_create_ports()
1407 cpsw->slaves[i].ndev = ndev; in cpsw_create_ports()
1444 for (i = 0; i < cpsw->data.slaves; i++) { in cpsw_unregister_ports()
1445 if (!cpsw->slaves[i].ndev) in cpsw_unregister_ports()
1448 unregister_netdev(cpsw->slaves[i].ndev); in cpsw_unregister_ports()
1456 for (i = 0; i < cpsw->data.slaves; i++) { in cpsw_register_ports()
1457 if (!cpsw->slaves[i].ndev) in cpsw_register_ports()
1461 ret = register_netdev(cpsw->slaves[i].ndev); in cpsw_register_ports()
1465 cpsw->slaves[i].ndev = NULL; in cpsw_register_ports()
1497 for (i = 0; i < cpsw->data.slaves; i++) { in cpsw_port_offload_fwd_mark_update()
1498 struct net_device *sl_ndev = cpsw->slaves[i].ndev; in cpsw_port_offload_fwd_mark_update()
1654 for (i = 0; i < cpsw->data.slaves; i++) { in cpsw_dl_switch_mode_set()
1655 struct cpsw_slave *slave = &cpsw->slaves[i]; in cpsw_dl_switch_mode_set()
1667 for (i = 0; i < cpsw->data.slaves; i++) { in cpsw_dl_switch_mode_set()
1668 struct cpsw_slave *slave = &cpsw->slaves[i]; in cpsw_dl_switch_mode_set()
1695 for (i = 0; i < cpsw->data.slaves; i++) { in cpsw_dl_switch_mode_set()
1696 struct cpsw_slave *slave = &cpsw->slaves[i]; in cpsw_dl_switch_mode_set()
1724 for (i = 0; i < cpsw->data.slaves; i++) { in cpsw_dl_switch_mode_set()
1725 struct cpsw_slave *slave = &cpsw->slaves[i]; in cpsw_dl_switch_mode_set()
1874 cpsw->slaves = devm_kcalloc(dev, in cpsw_probe()
1878 if (!cpsw->slaves) in cpsw_probe()
2079 for (i = 0; i < cpsw->data.slaves; i++) { in cpsw_suspend()
2080 struct net_device *ndev = cpsw->slaves[i].ndev; in cpsw_suspend()
2107 for (i = 0; i < cpsw->data.slaves; i++) { in cpsw_resume()
2108 struct net_device *ndev = cpsw->slaves[i].ndev; in cpsw_resume()