Lines Matching refs:netdev

44 int ixgbe_fcoe_ddp_put(struct net_device *netdev, u16 xid)  in ixgbe_fcoe_ddp_put()  argument
53 if (!netdev) in ixgbe_fcoe_ddp_put()
56 if (xid >= netdev->fcoe_ddp_xid) in ixgbe_fcoe_ddp_put()
59 adapter = netdev_priv(netdev); in ixgbe_fcoe_ddp_put()
133 static int ixgbe_fcoe_ddp_setup(struct net_device *netdev, u16 xid, in ixgbe_fcoe_ddp_setup() argument
153 if (!netdev || !sgl) in ixgbe_fcoe_ddp_setup()
156 adapter = netdev_priv(netdev); in ixgbe_fcoe_ddp_setup()
157 if (xid >= netdev->fcoe_ddp_xid) { in ixgbe_fcoe_ddp_setup()
344 int ixgbe_fcoe_ddp_get(struct net_device *netdev, u16 xid, in ixgbe_fcoe_ddp_get() argument
347 return ixgbe_fcoe_ddp_setup(netdev, xid, sgl, sgc, 0); in ixgbe_fcoe_ddp_get()
365 int ixgbe_fcoe_ddp_target(struct net_device *netdev, u16 xid, in ixgbe_fcoe_ddp_target() argument
368 return ixgbe_fcoe_ddp_setup(netdev, xid, sgl, sgc, 1); in ixgbe_fcoe_ddp_target()
647 if (!(adapter->netdev->features & NETIF_F_FCOE_CRC)) in ixgbe_configure_fcoe()
728 ixgbe_fcoe_ddp_put(adapter->netdev, i); in ixgbe_free_fcoe_ddp_resources()
806 adapter->netdev->fcoe_ddp_xid = IXGBE_FCOE_DDP_MAX - 1; in ixgbe_fcoe_ddp_enable()
809 adapter->netdev->fcoe_ddp_xid = IXGBE_FCOE_DDP_MAX_X550 - 1; in ixgbe_fcoe_ddp_enable()
818 adapter->netdev->fcoe_ddp_xid = 0; in ixgbe_fcoe_ddp_disable()
835 int ixgbe_fcoe_enable(struct net_device *netdev) in ixgbe_fcoe_enable() argument
837 struct ixgbe_adapter *adapter = netdev_priv(netdev); in ixgbe_fcoe_enable()
853 if (netif_running(netdev)) in ixgbe_fcoe_enable()
854 netdev->netdev_ops->ndo_stop(netdev); in ixgbe_fcoe_enable()
861 netdev->features |= NETIF_F_FCOE_MTU; in ixgbe_fcoe_enable()
862 netdev_features_change(netdev); in ixgbe_fcoe_enable()
868 if (netif_running(netdev)) in ixgbe_fcoe_enable()
869 netdev->netdev_ops->ndo_open(netdev); in ixgbe_fcoe_enable()
882 int ixgbe_fcoe_disable(struct net_device *netdev) in ixgbe_fcoe_disable() argument
884 struct ixgbe_adapter *adapter = netdev_priv(netdev); in ixgbe_fcoe_disable()
893 if (netif_running(netdev)) in ixgbe_fcoe_disable()
894 netdev->netdev_ops->ndo_stop(netdev); in ixgbe_fcoe_disable()
901 netdev->features &= ~NETIF_F_FCOE_MTU; in ixgbe_fcoe_disable()
903 netdev_features_change(netdev); in ixgbe_fcoe_disable()
909 if (netif_running(netdev)) in ixgbe_fcoe_disable()
910 netdev->netdev_ops->ndo_open(netdev); in ixgbe_fcoe_disable()
927 int ixgbe_fcoe_get_wwn(struct net_device *netdev, u64 *wwn, int type) in ixgbe_fcoe_get_wwn() argument
930 struct ixgbe_adapter *adapter = netdev_priv(netdev); in ixgbe_fcoe_get_wwn()
967 int ixgbe_fcoe_get_hbainfo(struct net_device *netdev, in ixgbe_fcoe_get_hbainfo() argument
970 struct ixgbe_adapter *adapter = netdev_priv(netdev); in ixgbe_fcoe_get_hbainfo()
1043 return netdev_get_prio_tc_map(adapter->netdev, adapter->fcoe.up); in ixgbe_fcoe_get_tc()