Lines Matching refs:netdev
63 u8 up = dcb_getapp(adapter->netdev, &app); in ixgbe_copy_dcb_cfg()
146 static u8 ixgbe_dcbnl_get_state(struct net_device *netdev) in ixgbe_dcbnl_get_state() argument
148 struct ixgbe_adapter *adapter = netdev_priv(netdev); in ixgbe_dcbnl_get_state()
153 static u8 ixgbe_dcbnl_set_state(struct net_device *netdev, u8 state) in ixgbe_dcbnl_set_state() argument
155 struct ixgbe_adapter *adapter = netdev_priv(netdev); in ixgbe_dcbnl_set_state()
165 return !!ixgbe_setup_tc(netdev, in ixgbe_dcbnl_set_state()
169 static void ixgbe_dcbnl_get_perm_hw_addr(struct net_device *netdev, in ixgbe_dcbnl_get_perm_hw_addr() argument
172 struct ixgbe_adapter *adapter = netdev_priv(netdev); in ixgbe_dcbnl_get_perm_hw_addr()
177 for (i = 0; i < netdev->addr_len; i++) in ixgbe_dcbnl_get_perm_hw_addr()
184 for (j = 0; j < netdev->addr_len; j++, i++) in ixgbe_dcbnl_get_perm_hw_addr()
192 static void ixgbe_dcbnl_set_pg_tc_cfg_tx(struct net_device *netdev, int tc, in ixgbe_dcbnl_set_pg_tc_cfg_tx() argument
196 struct ixgbe_adapter *adapter = netdev_priv(netdev); in ixgbe_dcbnl_set_pg_tc_cfg_tx()
210 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
213 struct ixgbe_adapter *adapter = netdev_priv(netdev); in ixgbe_dcbnl_set_pg_bwg_cfg_tx()
218 static void ixgbe_dcbnl_set_pg_tc_cfg_rx(struct net_device *netdev, int tc, in ixgbe_dcbnl_set_pg_tc_cfg_rx() argument
222 struct ixgbe_adapter *adapter = netdev_priv(netdev); in ixgbe_dcbnl_set_pg_tc_cfg_rx()
236 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
239 struct ixgbe_adapter *adapter = netdev_priv(netdev); in ixgbe_dcbnl_set_pg_bwg_cfg_rx()
244 static void ixgbe_dcbnl_get_pg_tc_cfg_tx(struct net_device *netdev, int tc, in ixgbe_dcbnl_get_pg_tc_cfg_tx() argument
248 struct ixgbe_adapter *adapter = netdev_priv(netdev); in ixgbe_dcbnl_get_pg_tc_cfg_tx()
256 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
259 struct ixgbe_adapter *adapter = netdev_priv(netdev); in ixgbe_dcbnl_get_pg_bwg_cfg_tx()
264 static void ixgbe_dcbnl_get_pg_tc_cfg_rx(struct net_device *netdev, int tc, in ixgbe_dcbnl_get_pg_tc_cfg_rx() argument
268 struct ixgbe_adapter *adapter = netdev_priv(netdev); in ixgbe_dcbnl_get_pg_tc_cfg_rx()
276 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
279 struct ixgbe_adapter *adapter = netdev_priv(netdev); in ixgbe_dcbnl_get_pg_bwg_cfg_rx()
284 static void ixgbe_dcbnl_set_pfc_cfg(struct net_device *netdev, int priority, in ixgbe_dcbnl_set_pfc_cfg() argument
287 struct ixgbe_adapter *adapter = netdev_priv(netdev); in ixgbe_dcbnl_set_pfc_cfg()
295 static void ixgbe_dcbnl_get_pfc_cfg(struct net_device *netdev, int priority, in ixgbe_dcbnl_get_pfc_cfg() argument
298 struct ixgbe_adapter *adapter = netdev_priv(netdev); in ixgbe_dcbnl_get_pfc_cfg()
322 static u8 ixgbe_dcbnl_set_all(struct net_device *netdev) in ixgbe_dcbnl_set_all() argument
324 struct ixgbe_adapter *adapter = netdev_priv(netdev); in ixgbe_dcbnl_set_all()
344 int max_frame = adapter->netdev->mtu + ETH_HLEN + ETH_FCS_LEN; in ixgbe_dcbnl_set_all()
347 if (adapter->netdev->features & NETIF_F_FCOE_MTU) in ixgbe_dcbnl_set_all()
366 netdev_set_prio_tc_map(netdev, i, prio_tc[i]); in ixgbe_dcbnl_set_all()
398 u8 up = dcb_getapp(netdev, &app); in ixgbe_dcbnl_set_all()
401 ixgbe_dcbnl_devreset(netdev); in ixgbe_dcbnl_set_all()
410 static u8 ixgbe_dcbnl_getcap(struct net_device *netdev, int capid, u8 *cap) in ixgbe_dcbnl_getcap() argument
412 struct ixgbe_adapter *adapter = netdev_priv(netdev); in ixgbe_dcbnl_getcap()
447 static int ixgbe_dcbnl_getnumtcs(struct net_device *netdev, int tcid, u8 *num) in ixgbe_dcbnl_getnumtcs() argument
449 struct ixgbe_adapter *adapter = netdev_priv(netdev); in ixgbe_dcbnl_getnumtcs()
469 static int ixgbe_dcbnl_setnumtcs(struct net_device *netdev, int tcid, u8 num) in ixgbe_dcbnl_setnumtcs() argument
474 static u8 ixgbe_dcbnl_getpfcstate(struct net_device *netdev) in ixgbe_dcbnl_getpfcstate() argument
476 struct ixgbe_adapter *adapter = netdev_priv(netdev); in ixgbe_dcbnl_getpfcstate()
481 static void ixgbe_dcbnl_setpfcstate(struct net_device *netdev, u8 state) in ixgbe_dcbnl_setpfcstate() argument
483 struct ixgbe_adapter *adapter = netdev_priv(netdev); in ixgbe_dcbnl_setpfcstate()
498 static int ixgbe_dcbnl_getapp(struct net_device *netdev, u8 idtype, u16 id) in ixgbe_dcbnl_getapp() argument
500 struct ixgbe_adapter *adapter = netdev_priv(netdev); in ixgbe_dcbnl_getapp()
509 return dcb_getapp(netdev, &app); in ixgbe_dcbnl_getapp()