Lines Matching refs:pidx

137 void t4vf_os_link_changed(struct adapter *adapter, int pidx, int link_ok)  in t4vf_os_link_changed()  argument
139 struct net_device *dev = adapter->port[pidx]; in t4vf_os_link_changed()
213 void t4vf_os_portmod_changed(struct adapter *adapter, int pidx) in t4vf_os_portmod_changed() argument
218 const struct net_device *dev = adapter->port[pidx]; in t4vf_os_portmod_changed()
352 int pidx; in name_msix_vecs() local
364 for_each_port(adapter, pidx) { in name_msix_vecs()
365 struct net_device *dev = adapter->port[pidx]; in name_msix_vecs()
591 int err, pidx, msix; in setup_sge_queues() local
629 for_each_port(adapter, pidx) { in setup_sge_queues()
630 struct net_device *dev = adapter->port[pidx]; in setup_sge_queues()
660 for_each_port(adapter, pidx) { in setup_sge_queues()
661 struct net_device *dev = adapter->port[pidx]; in setup_sge_queues()
701 int pidx; in setup_rss() local
703 for_each_port(adapter, pidx) { in setup_rss()
704 struct port_info *pi = adap2pinfo(adapter, pidx); in setup_rss()
913 err = t4vf_get_port_stats(adapter, pi->pidx, &stats); in cxgb4vf_get_stats()
1834 int err = t4vf_get_port_stats(adapter, pi->pidx, in cxgb4vf_get_ethtool_stats()
2079 T("TxQ PIdx:", q.pidx); in sge_qinfo_show()
2092 R("FL PIdx:", fl.pidx); in sge_qinfo_show()
2339 int pidx = (uintptr_t)v - 2; in interfaces_show() local
2340 struct net_device *dev = adapter->port[pidx]; in interfaces_show()
2671 int q10g, n10g, qidx, pidx, qs; in cfg_queues() local
2686 for_each_port(adapter, pidx) in cfg_queues()
2687 n10g += is_x_10g_port(&adap2pinfo(adapter, pidx)->link_cfg); in cfg_queues()
2708 for_each_port(adapter, pidx) { in cfg_queues()
2709 struct port_info *pi = adap2pinfo(adapter, pidx); in cfg_queues()
2869 unsigned int naddr = 1, pidx = 0; in cxgb4vf_get_port_mask() local
2877 err = t4vf_get_vf_mac_acl(adapter, pidx, &naddr, mac); in cxgb4vf_get_port_mask()
2879 rmask |= (1 << pidx); in cxgb4vf_get_port_mask()
2882 pidx++; in cxgb4vf_get_port_mask()
2902 int err, pidx; in cxgb4vf_pci_probe() local
3031 for_each_port(adapter, pidx) { in cxgb4vf_pci_probe()
3056 adapter->port[pidx] = netdev; in cxgb4vf_pci_probe()
3060 pi->pidx = pidx; in cxgb4vf_pci_probe()
3104 err = t4vf_port_init(adapter, pidx); in cxgb4vf_pci_probe()
3107 pidx); in cxgb4vf_pci_probe()
3172 for_each_port(adapter, pidx) { in cxgb4vf_pci_probe()
3173 struct port_info *pi = netdev_priv(adapter->port[pidx]); in cxgb4vf_pci_probe()
3174 netdev = adapter->port[pidx]; in cxgb4vf_pci_probe()
3189 set_bit(pidx, &adapter->registered_device_map); in cxgb4vf_pci_probe()
3211 for_each_port(adapter, pidx) { in cxgb4vf_pci_probe()
3213 adapter->port[pidx]->name, in cxgb4vf_pci_probe()
3237 for_each_port(adapter, pidx) { in cxgb4vf_pci_probe()
3238 netdev = adapter->port[pidx]; in cxgb4vf_pci_probe()
3244 if (test_bit(pidx, &adapter->registered_device_map)) in cxgb4vf_pci_probe()
3282 int pidx; in cxgb4vf_pci_remove() local
3288 for_each_port(adapter, pidx) in cxgb4vf_pci_remove()
3289 if (test_bit(pidx, &adapter->registered_device_map)) in cxgb4vf_pci_remove()
3290 unregister_netdev(adapter->port[pidx]); in cxgb4vf_pci_remove()
3312 for_each_port(adapter, pidx) { in cxgb4vf_pci_remove()
3313 struct net_device *netdev = adapter->port[pidx]; in cxgb4vf_pci_remove()
3350 int pidx; in cxgb4vf_pci_shutdown() local
3360 for_each_port(adapter, pidx) in cxgb4vf_pci_shutdown()
3361 if (test_bit(pidx, &adapter->registered_device_map)) in cxgb4vf_pci_shutdown()
3362 unregister_netdev(adapter->port[pidx]); in cxgb4vf_pci_shutdown()