Lines Matching refs:hw

65 	/* Find out the hw credits for each TC */
88 s32 ixgbe_dcb_calculate_tc_credits_cee(struct ixgbe_hw *hw,
178 && (hw->mac.type == ixgbe_mac_82598EB))
386 * @hw: pointer to hardware structure
392 s32 ixgbe_dcb_get_tc_stats(struct ixgbe_hw *hw, struct ixgbe_hw_stats *stats,
396 switch (hw->mac.type) {
398 ret = ixgbe_dcb_get_tc_stats_82598(hw, stats, tc_count);
406 ret = ixgbe_dcb_get_tc_stats_82599(hw, stats, tc_count);
417 * @hw: pointer to hardware structure
423 s32 ixgbe_dcb_get_pfc_stats(struct ixgbe_hw *hw, struct ixgbe_hw_stats *stats,
427 switch (hw->mac.type) {
429 ret = ixgbe_dcb_get_pfc_stats_82598(hw, stats, tc_count);
437 ret = ixgbe_dcb_get_pfc_stats_82599(hw, stats, tc_count);
448 * @hw: pointer to hardware structure
453 s32 ixgbe_dcb_config_rx_arbiter_cee(struct ixgbe_hw *hw,
469 switch (hw->mac.type) {
471 ret = ixgbe_dcb_config_rx_arbiter_82598(hw, refill, max, tsa);
479 ret = ixgbe_dcb_config_rx_arbiter_82599(hw, refill, max, bwgid,
491 * @hw: pointer to hardware structure
496 s32 ixgbe_dcb_config_tx_desc_arbiter_cee(struct ixgbe_hw *hw,
510 switch (hw->mac.type) {
512 ret = ixgbe_dcb_config_tx_desc_arbiter_82598(hw, refill, max,
521 ret = ixgbe_dcb_config_tx_desc_arbiter_82599(hw, refill, max,
533 * @hw: pointer to hardware structure
538 s32 ixgbe_dcb_config_tx_data_arbiter_cee(struct ixgbe_hw *hw,
554 switch (hw->mac.type) {
556 ret = ixgbe_dcb_config_tx_data_arbiter_82598(hw, refill, max,
565 ret = ixgbe_dcb_config_tx_data_arbiter_82599(hw, refill, max,
578 * @hw: pointer to hardware structure
583 s32 ixgbe_dcb_config_pfc_cee(struct ixgbe_hw *hw,
593 switch (hw->mac.type) {
595 ret = ixgbe_dcb_config_pfc_82598(hw, pfc_en);
603 ret = ixgbe_dcb_config_pfc_82599(hw, pfc_en, map);
614 * @hw: pointer to hardware structure
619 s32 ixgbe_dcb_config_tc_stats(struct ixgbe_hw *hw)
622 switch (hw->mac.type) {
624 ret = ixgbe_dcb_config_tc_stats_82598(hw);
632 ret = ixgbe_dcb_config_tc_stats_82599(hw, NULL);
643 * @hw: pointer to hardware structure
648 s32 ixgbe_dcb_hw_config_cee(struct ixgbe_hw *hw,
666 hw->mac.ops.setup_rxpba(hw, dcb_config->num_tcs.pg_tcs,
669 switch (hw->mac.type) {
671 ret = ixgbe_dcb_hw_config_82598(hw, dcb_config->link_speed,
680 ixgbe_dcb_config_82599(hw, dcb_config);
681 ret = ixgbe_dcb_hw_config_82599(hw, dcb_config->link_speed,
685 ixgbe_dcb_config_tc_stats_82599(hw, dcb_config);
694 ret = ixgbe_dcb_config_pfc(hw, pfc_en, map);
701 s32 ixgbe_dcb_config_pfc(struct ixgbe_hw *hw, u8 pfc_en, u8 *map)
705 switch (hw->mac.type) {
707 ret = ixgbe_dcb_config_pfc_82598(hw, pfc_en);
715 ret = ixgbe_dcb_config_pfc_82599(hw, pfc_en, map);
724 s32 ixgbe_dcb_hw_config(struct ixgbe_hw *hw, u16 *refill, u16 *max,
727 switch (hw->mac.type) {
729 ixgbe_dcb_config_rx_arbiter_82598(hw, refill, max, tsa);
730 ixgbe_dcb_config_tx_desc_arbiter_82598(hw, refill, max, bwg_id,
732 ixgbe_dcb_config_tx_data_arbiter_82598(hw, refill, max, bwg_id,
741 ixgbe_dcb_config_rx_arbiter_82599(hw, refill, max, bwg_id,
743 ixgbe_dcb_config_tx_desc_arbiter_82599(hw, refill, max, bwg_id,
745 ixgbe_dcb_config_tx_data_arbiter_82599(hw, refill, max, bwg_id,