Lines Matching refs:netdev
36 u8 up = dcb_getapp(adapter->netdev, &app); in ixgbe_copy_dcb_cfg()
119 static u8 ixgbe_dcbnl_get_state(struct net_device *netdev) in ixgbe_dcbnl_get_state() argument
121 struct ixgbe_adapter *adapter = netdev_priv(netdev); in ixgbe_dcbnl_get_state()
126 static u8 ixgbe_dcbnl_set_state(struct net_device *netdev, u8 state) in ixgbe_dcbnl_set_state() argument
128 struct ixgbe_adapter *adapter = netdev_priv(netdev); in ixgbe_dcbnl_set_state()
138 return !!ixgbe_setup_tc(netdev, in ixgbe_dcbnl_set_state()
142 static void ixgbe_dcbnl_get_perm_hw_addr(struct net_device *netdev, in ixgbe_dcbnl_get_perm_hw_addr() argument
145 struct ixgbe_adapter *adapter = netdev_priv(netdev); in ixgbe_dcbnl_get_perm_hw_addr()
150 for (i = 0; i < netdev->addr_len; i++) in ixgbe_dcbnl_get_perm_hw_addr()
157 for (j = 0; j < netdev->addr_len; j++, i++) in ixgbe_dcbnl_get_perm_hw_addr()
165 static void ixgbe_dcbnl_set_pg_tc_cfg_tx(struct net_device *netdev, int tc, in ixgbe_dcbnl_set_pg_tc_cfg_tx() argument
169 struct ixgbe_adapter *adapter = netdev_priv(netdev); in ixgbe_dcbnl_set_pg_tc_cfg_tx()
183 static void ixgbe_dcbnl_set_pg_bwg_cfg_tx(struct net_device *netdev, int bwg_id, in ixgbe_dcbnl_set_pg_bwg_cfg_tx() argument
186 struct ixgbe_adapter *adapter = netdev_priv(netdev); in ixgbe_dcbnl_set_pg_bwg_cfg_tx()
191 static void ixgbe_dcbnl_set_pg_tc_cfg_rx(struct net_device *netdev, int tc, in ixgbe_dcbnl_set_pg_tc_cfg_rx() argument
195 struct ixgbe_adapter *adapter = netdev_priv(netdev); in ixgbe_dcbnl_set_pg_tc_cfg_rx()
209 static void ixgbe_dcbnl_set_pg_bwg_cfg_rx(struct net_device *netdev, int bwg_id, in ixgbe_dcbnl_set_pg_bwg_cfg_rx() argument
212 struct ixgbe_adapter *adapter = netdev_priv(netdev); in ixgbe_dcbnl_set_pg_bwg_cfg_rx()
217 static void ixgbe_dcbnl_get_pg_tc_cfg_tx(struct net_device *netdev, int tc, in ixgbe_dcbnl_get_pg_tc_cfg_tx() argument
221 struct ixgbe_adapter *adapter = netdev_priv(netdev); in ixgbe_dcbnl_get_pg_tc_cfg_tx()
229 static void ixgbe_dcbnl_get_pg_bwg_cfg_tx(struct net_device *netdev, int bwg_id, in ixgbe_dcbnl_get_pg_bwg_cfg_tx() argument
232 struct ixgbe_adapter *adapter = netdev_priv(netdev); in ixgbe_dcbnl_get_pg_bwg_cfg_tx()
237 static void ixgbe_dcbnl_get_pg_tc_cfg_rx(struct net_device *netdev, int tc, in ixgbe_dcbnl_get_pg_tc_cfg_rx() argument
241 struct ixgbe_adapter *adapter = netdev_priv(netdev); in ixgbe_dcbnl_get_pg_tc_cfg_rx()
249 static void ixgbe_dcbnl_get_pg_bwg_cfg_rx(struct net_device *netdev, int bwg_id, in ixgbe_dcbnl_get_pg_bwg_cfg_rx() argument
252 struct ixgbe_adapter *adapter = netdev_priv(netdev); in ixgbe_dcbnl_get_pg_bwg_cfg_rx()
257 static void ixgbe_dcbnl_set_pfc_cfg(struct net_device *netdev, int priority, in ixgbe_dcbnl_set_pfc_cfg() argument
260 struct ixgbe_adapter *adapter = netdev_priv(netdev); in ixgbe_dcbnl_set_pfc_cfg()
268 static void ixgbe_dcbnl_get_pfc_cfg(struct net_device *netdev, int priority, in ixgbe_dcbnl_get_pfc_cfg() argument
271 struct ixgbe_adapter *adapter = netdev_priv(netdev); in ixgbe_dcbnl_get_pfc_cfg()
295 static u8 ixgbe_dcbnl_set_all(struct net_device *netdev) in ixgbe_dcbnl_set_all() argument
297 struct ixgbe_adapter *adapter = netdev_priv(netdev); in ixgbe_dcbnl_set_all()
317 int max_frame = adapter->netdev->mtu + ETH_HLEN + ETH_FCS_LEN; in ixgbe_dcbnl_set_all()
320 if (adapter->netdev->features & NETIF_F_FCOE_MTU) in ixgbe_dcbnl_set_all()
339 netdev_set_prio_tc_map(netdev, i, prio_tc[i]); in ixgbe_dcbnl_set_all()
371 u8 up = dcb_getapp(netdev, &app); in ixgbe_dcbnl_set_all()
374 ixgbe_dcbnl_devreset(netdev); in ixgbe_dcbnl_set_all()
383 static u8 ixgbe_dcbnl_getcap(struct net_device *netdev, int capid, u8 *cap) in ixgbe_dcbnl_getcap() argument
385 struct ixgbe_adapter *adapter = netdev_priv(netdev); in ixgbe_dcbnl_getcap()
420 static int ixgbe_dcbnl_getnumtcs(struct net_device *netdev, int tcid, u8 *num) in ixgbe_dcbnl_getnumtcs() argument
422 struct ixgbe_adapter *adapter = netdev_priv(netdev); in ixgbe_dcbnl_getnumtcs()
442 static int ixgbe_dcbnl_setnumtcs(struct net_device *netdev, int tcid, u8 num) in ixgbe_dcbnl_setnumtcs() argument
447 static u8 ixgbe_dcbnl_getpfcstate(struct net_device *netdev) in ixgbe_dcbnl_getpfcstate() argument
449 struct ixgbe_adapter *adapter = netdev_priv(netdev); in ixgbe_dcbnl_getpfcstate()
454 static void ixgbe_dcbnl_setpfcstate(struct net_device *netdev, u8 state) in ixgbe_dcbnl_setpfcstate() argument
456 struct ixgbe_adapter *adapter = netdev_priv(netdev); in ixgbe_dcbnl_setpfcstate()
471 static int ixgbe_dcbnl_getapp(struct net_device *netdev, u8 idtype, u16 id) in ixgbe_dcbnl_getapp() argument
473 struct ixgbe_adapter *adapter = netdev_priv(netdev); in ixgbe_dcbnl_getapp()
482 return dcb_getapp(netdev, &app); in ixgbe_dcbnl_getapp()