Lines Matching defs:hw
73 /* Find out the hw credits for each TC */
89 * @hw: pointer to hardware structure
98 s32 ixgbe_dcb_calculate_tc_credits_cee(struct ixgbe_hw *hw,
188 && (hw->mac.type == ixgbe_mac_82598EB))
396 * @hw: pointer to hardware structure
402 s32 ixgbe_dcb_get_tc_stats(struct ixgbe_hw *hw, struct ixgbe_hw_stats *stats,
406 switch (hw->mac.type) {
408 ret = ixgbe_dcb_get_tc_stats_82598(hw, stats, tc_count);
415 ret = ixgbe_dcb_get_tc_stats_82599(hw, stats, tc_count);
425 * @hw: pointer to hardware structure
431 s32 ixgbe_dcb_get_pfc_stats(struct ixgbe_hw *hw, struct ixgbe_hw_stats *stats,
435 switch (hw->mac.type) {
437 ret = ixgbe_dcb_get_pfc_stats_82598(hw, stats, tc_count);
444 ret = ixgbe_dcb_get_pfc_stats_82599(hw, stats, tc_count);
454 * @hw: pointer to hardware structure
459 s32 ixgbe_dcb_config_rx_arbiter_cee(struct ixgbe_hw *hw,
475 switch (hw->mac.type) {
477 ret = ixgbe_dcb_config_rx_arbiter_82598(hw, refill, max, tsa);
484 ret = ixgbe_dcb_config_rx_arbiter_82599(hw, refill, max, bwgid,
495 * @hw: pointer to hardware structure
500 s32 ixgbe_dcb_config_tx_desc_arbiter_cee(struct ixgbe_hw *hw,
514 switch (hw->mac.type) {
516 ret = ixgbe_dcb_config_tx_desc_arbiter_82598(hw, refill, max,
524 ret = ixgbe_dcb_config_tx_desc_arbiter_82599(hw, refill, max,
535 * @hw: pointer to hardware structure
540 s32 ixgbe_dcb_config_tx_data_arbiter_cee(struct ixgbe_hw *hw,
556 switch (hw->mac.type) {
558 ret = ixgbe_dcb_config_tx_data_arbiter_82598(hw, refill, max,
566 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);
602 ret = ixgbe_dcb_config_pfc_82599(hw, pfc_en, map);
612 * @hw: pointer to hardware structure
617 s32 ixgbe_dcb_config_tc_stats(struct ixgbe_hw *hw)
620 switch (hw->mac.type) {
622 ret = ixgbe_dcb_config_tc_stats_82598(hw);
629 ret = ixgbe_dcb_config_tc_stats_82599(hw, NULL);
639 * @hw: pointer to hardware structure
644 s32 ixgbe_dcb_hw_config_cee(struct ixgbe_hw *hw,
662 hw->mac.ops.setup_rxpba(hw, dcb_config->num_tcs.pg_tcs,
665 switch (hw->mac.type) {
667 ret = ixgbe_dcb_hw_config_82598(hw, dcb_config->link_speed,
675 ixgbe_dcb_config_82599(hw, dcb_config);
676 ret = ixgbe_dcb_hw_config_82599(hw, dcb_config->link_speed,
680 ixgbe_dcb_config_tc_stats_82599(hw, dcb_config);
688 ret = ixgbe_dcb_config_pfc(hw, pfc_en, map);
695 s32 ixgbe_dcb_config_pfc(struct ixgbe_hw *hw, u8 pfc_en, u8 *map)
699 switch (hw->mac.type) {
701 ret = ixgbe_dcb_config_pfc_82598(hw, pfc_en);
708 ret = ixgbe_dcb_config_pfc_82599(hw, pfc_en, map);
716 s32 ixgbe_dcb_hw_config(struct ixgbe_hw *hw, u16 *refill, u16 *max,
719 switch (hw->mac.type) {
721 ixgbe_dcb_config_rx_arbiter_82598(hw, refill, max, tsa);
722 ixgbe_dcb_config_tx_desc_arbiter_82598(hw, refill, max, bwg_id,
724 ixgbe_dcb_config_tx_data_arbiter_82598(hw, refill, max, bwg_id,
732 ixgbe_dcb_config_rx_arbiter_82599(hw, refill, max, bwg_id,
734 ixgbe_dcb_config_tx_desc_arbiter_82599(hw, refill, max, bwg_id,
736 ixgbe_dcb_config_tx_data_arbiter_82599(hw, refill, max, bwg_id,