Searched refs:sl_ndev (Results 1 – 3 of 3) sorted by relevance
602 struct net_device *sl_ndev; in cpsw_set_channels_common() local622 sl_ndev = cpsw->slaves[i].ndev; in cpsw_set_channels_common()623 if (!(sl_ndev && netif_running(sl_ndev))) in cpsw_set_channels_common()627 ret = netif_set_real_num_tx_queues(sl_ndev, cpsw->tx_ch_num); in cpsw_set_channels_common()633 ret = netif_set_real_num_rx_queues(sl_ndev, cpsw->rx_ch_num); in cpsw_set_channels_common()
1494 struct net_device *sl_ndev = cpsw->slaves[i].ndev; in cpsw_port_offload_fwd_mark_update() local1495 struct cpsw_priv *priv = netdev_priv(sl_ndev); in cpsw_port_offload_fwd_mark_update()1651 struct net_device *sl_ndev = slave->ndev; in cpsw_dl_switch_mode_set() local1653 if (!sl_ndev || !netif_running(sl_ndev)) in cpsw_dl_switch_mode_set()1664 struct net_device *sl_ndev = slave->ndev; in cpsw_dl_switch_mode_set() local1666 if (!sl_ndev) in cpsw_dl_switch_mode_set()1692 struct net_device *sl_ndev = slave->ndev; in cpsw_dl_switch_mode_set() local1695 if (!sl_ndev) in cpsw_dl_switch_mode_set()1698 priv = netdev_priv(sl_ndev); in cpsw_dl_switch_mode_set()1701 if (netif_running(sl_ndev)) in cpsw_dl_switch_mode_set()[all …]
2539 struct net_device *sl_ndev = cpsw->ports[i].ndev; in am65_cpsw_dl_switch_mode_set() local2541 if (!sl_ndev || !netif_running(sl_ndev)) in am65_cpsw_dl_switch_mode_set()2550 struct net_device *sl_ndev = cpsw->ports[i].ndev; in am65_cpsw_dl_switch_mode_set() local2553 if (!sl_ndev) in am65_cpsw_dl_switch_mode_set()2556 slave = am65_ndev_to_slave(sl_ndev); in am65_cpsw_dl_switch_mode_set()2577 struct net_device *sl_ndev = cpsw->ports[i].ndev; in am65_cpsw_dl_switch_mode_set() local2581 if (!sl_ndev) in am65_cpsw_dl_switch_mode_set()2584 port = am65_ndev_to_port(sl_ndev); in am65_cpsw_dl_switch_mode_set()2585 slave = am65_ndev_to_slave(sl_ndev); in am65_cpsw_dl_switch_mode_set()2588 if (netif_running(sl_ndev)) in am65_cpsw_dl_switch_mode_set()[all …]