Lines Matching refs: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()
309 ndev = cpsw->slaves[--port].ndev; in cpsw_rx_handler()
465 for (i = 0; i < cpsw->data.slaves; i++) { in cpsw_ndo_vlan_rx_add_vid()
466 if (cpsw->slaves[i].ndev && in cpsw_ndo_vlan_rx_add_vid()
467 vid == cpsw->slaves[i].port_vlan) { in cpsw_ndo_vlan_rx_add_vid()
500 cpsw_mqprio_resume(&cpsw->slaves[priv->emac_port - 1], priv); in cpsw_restore()
503 cpsw_cbs_resume(&cpsw->slaves[priv->emac_port - 1], priv); in cpsw_restore()
660 slave = &cpsw->slaves[priv->emac_port - 1]; in cpsw_adjust_link()
803 slave = &cpsw->slaves[priv->emac_port - 1]; in cpsw_ndo_stop()
862 cpsw_slave_open(&cpsw->slaves[priv->emac_port - 1], priv); in cpsw_ndo_open()
1000 vid = cpsw->slaves[slave_no].port_vlan; in cpsw_ndo_set_mac_address()
1010 cpsw_set_slave_mac(&cpsw->slaves[slave_no], priv); in cpsw_ndo_set_mac_address()
1041 for (i = 0; i < cpsw->data.slaves; i++) { in cpsw_ndo_vlan_rx_kill_vid()
1042 if (cpsw->slaves[i].ndev && in cpsw_ndo_vlan_rx_kill_vid()
1043 vid == cpsw->slaves[i].port_vlan) { in cpsw_ndo_vlan_rx_kill_vid()
1172 if (!cpsw->slaves[slave_no].phy) in cpsw_set_pauseparam()
1175 if (!phy_validate_pause(cpsw->slaves[slave_no].phy, pause)) in cpsw_set_pauseparam()
1181 phy_set_asym_pause(cpsw->slaves[slave_no].phy, in cpsw_set_pauseparam()
1237 data->slaves = of_get_child_count(tmp_node); in cpsw_probe_dt()
1238 if (data->slaves != CPSW_SLAVE_PORTS_NUM) { in cpsw_probe_dt()
1357 for (i = 0; i < cpsw->data.slaves; i++) { in cpsw_remove_dt()
1378 for (i = 0; i < cpsw->data.slaves; i++) { in cpsw_create_ports()
1412 cpsw->slaves[i].ndev = ndev; in cpsw_create_ports()
1450 for (i = 0; i < cpsw->data.slaves; i++) { in cpsw_unregister_ports()
1451 if (!cpsw->slaves[i].ndev) in cpsw_unregister_ports()
1454 unregister_netdev(cpsw->slaves[i].ndev); in cpsw_unregister_ports()
1462 for (i = 0; i < cpsw->data.slaves; i++) { in cpsw_register_ports()
1463 if (!cpsw->slaves[i].ndev) in cpsw_register_ports()
1467 ret = register_netdev(cpsw->slaves[i].ndev); in cpsw_register_ports()
1471 cpsw->slaves[i].ndev = NULL; in cpsw_register_ports()
1503 for (i = 0; i < cpsw->data.slaves; i++) { in cpsw_port_offload_fwd_mark_update()
1504 struct net_device *sl_ndev = cpsw->slaves[i].ndev; in cpsw_port_offload_fwd_mark_update()
1660 for (i = 0; i < cpsw->data.slaves; i++) { in cpsw_dl_switch_mode_set()
1661 struct cpsw_slave *slave = &cpsw->slaves[i]; in cpsw_dl_switch_mode_set()
1673 for (i = 0; i < cpsw->data.slaves; i++) { in cpsw_dl_switch_mode_set()
1674 struct cpsw_slave *slave = &cpsw->slaves[i]; in cpsw_dl_switch_mode_set()
1701 for (i = 0; i < cpsw->data.slaves; i++) { in cpsw_dl_switch_mode_set()
1702 struct cpsw_slave *slave = &cpsw->slaves[i]; in cpsw_dl_switch_mode_set()
1730 for (i = 0; i < cpsw->data.slaves; i++) { in cpsw_dl_switch_mode_set()
1731 struct cpsw_slave *slave = &cpsw->slaves[i]; in cpsw_dl_switch_mode_set()
1880 cpsw->slaves = devm_kcalloc(dev, in cpsw_probe()
1884 if (!cpsw->slaves) in cpsw_probe()
2085 for (i = 0; i < cpsw->data.slaves; i++) { in cpsw_suspend()
2086 struct net_device *ndev = cpsw->slaves[i].ndev; in cpsw_suspend()
2113 for (i = 0; i < cpsw->data.slaves; i++) { in cpsw_resume()
2114 struct net_device *ndev = cpsw->slaves[i].ndev; in cpsw_resume()