Home
last modified time | relevance | path

Searched refs:sl_ndev (Results 1 – 3 of 3) sorted by relevance

/Linux-v6.6/drivers/net/ethernet/ti/
Dcpsw_ethtool.c602 struct net_device *sl_ndev; in cpsw_set_channels_common() local
622 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()
Dcpsw_new.c1494 struct net_device *sl_ndev = cpsw->slaves[i].ndev; in cpsw_port_offload_fwd_mark_update() local
1495 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() local
1653 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() local
1666 if (!sl_ndev) in cpsw_dl_switch_mode_set()
1692 struct net_device *sl_ndev = slave->ndev; in cpsw_dl_switch_mode_set() local
1695 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 …]
Dam65-cpsw-nuss.c2539 struct net_device *sl_ndev = cpsw->ports[i].ndev; in am65_cpsw_dl_switch_mode_set() local
2541 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() local
2553 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() local
2581 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 …]