Lines Matching refs:dcb_config
95 struct ixgbe_dcb_config *dcb_config, in ixgbe_dcb_calculate_tc_credits_cee() argument
110 if (dcb_config == NULL) { in ixgbe_dcb_calculate_tc_credits_cee()
120 p = &dcb_config->tc_config[i].path[direction]; in ixgbe_dcb_calculate_tc_credits_cee()
121 bw_percent = dcb_config->bw_percentage[direction][p->bwg_id]; in ixgbe_dcb_calculate_tc_credits_cee()
142 p = &dcb_config->tc_config[i].path[direction]; in ixgbe_dcb_calculate_tc_credits_cee()
143 bw_percent = dcb_config->bw_percentage[direction][p->bwg_id]; in ixgbe_dcb_calculate_tc_credits_cee()
187 dcb_config->tc_config[i].desc_credits_max = in ixgbe_dcb_calculate_tc_credits_cee()
309 s32 ixgbe_dcb_check_config_cee(struct ixgbe_dcb_config *dcb_config) in ixgbe_dcb_check_config_cee() argument
324 p = &dcb_config->tc_config[j].path[i]; in ixgbe_dcb_check_config_cee()
355 bw += dcb_config->bw_percentage[i][j]; in ixgbe_dcb_check_config_cee()
456 struct ixgbe_dcb_config *dcb_config) in ixgbe_dcb_config_rx_arbiter_cee() argument
465 ixgbe_dcb_unpack_refill_cee(dcb_config, IXGBE_DCB_TX_CONFIG, refill); in ixgbe_dcb_config_rx_arbiter_cee()
466 ixgbe_dcb_unpack_max_cee(dcb_config, max); in ixgbe_dcb_config_rx_arbiter_cee()
467 ixgbe_dcb_unpack_bwgid_cee(dcb_config, IXGBE_DCB_TX_CONFIG, bwgid); in ixgbe_dcb_config_rx_arbiter_cee()
468 ixgbe_dcb_unpack_tsa_cee(dcb_config, IXGBE_DCB_TX_CONFIG, tsa); in ixgbe_dcb_config_rx_arbiter_cee()
469 ixgbe_dcb_unpack_map_cee(dcb_config, IXGBE_DCB_TX_CONFIG, map); in ixgbe_dcb_config_rx_arbiter_cee()
497 struct ixgbe_dcb_config *dcb_config) in ixgbe_dcb_config_tx_desc_arbiter_cee() argument
505 ixgbe_dcb_unpack_refill_cee(dcb_config, IXGBE_DCB_TX_CONFIG, refill); in ixgbe_dcb_config_tx_desc_arbiter_cee()
506 ixgbe_dcb_unpack_max_cee(dcb_config, max); in ixgbe_dcb_config_tx_desc_arbiter_cee()
507 ixgbe_dcb_unpack_bwgid_cee(dcb_config, IXGBE_DCB_TX_CONFIG, bwgid); in ixgbe_dcb_config_tx_desc_arbiter_cee()
508 ixgbe_dcb_unpack_tsa_cee(dcb_config, IXGBE_DCB_TX_CONFIG, tsa); in ixgbe_dcb_config_tx_desc_arbiter_cee()
537 struct ixgbe_dcb_config *dcb_config) in ixgbe_dcb_config_tx_data_arbiter_cee() argument
546 ixgbe_dcb_unpack_refill_cee(dcb_config, IXGBE_DCB_TX_CONFIG, refill); in ixgbe_dcb_config_tx_data_arbiter_cee()
547 ixgbe_dcb_unpack_max_cee(dcb_config, max); in ixgbe_dcb_config_tx_data_arbiter_cee()
548 ixgbe_dcb_unpack_bwgid_cee(dcb_config, IXGBE_DCB_TX_CONFIG, bwgid); in ixgbe_dcb_config_tx_data_arbiter_cee()
549 ixgbe_dcb_unpack_tsa_cee(dcb_config, IXGBE_DCB_TX_CONFIG, tsa); in ixgbe_dcb_config_tx_data_arbiter_cee()
550 ixgbe_dcb_unpack_map_cee(dcb_config, IXGBE_DCB_TX_CONFIG, map); in ixgbe_dcb_config_tx_data_arbiter_cee()
580 struct ixgbe_dcb_config *dcb_config) in ixgbe_dcb_config_pfc_cee() argument
586 ixgbe_dcb_unpack_map_cee(dcb_config, IXGBE_DCB_TX_CONFIG, map); in ixgbe_dcb_config_pfc_cee()
587 ixgbe_dcb_unpack_pfc_cee(dcb_config, map, &pfc_en); in ixgbe_dcb_config_pfc_cee()
641 struct ixgbe_dcb_config *dcb_config) in ixgbe_dcb_hw_config_cee() argument
652 ixgbe_dcb_unpack_refill_cee(dcb_config, IXGBE_DCB_TX_CONFIG, refill); in ixgbe_dcb_hw_config_cee()
653 ixgbe_dcb_unpack_max_cee(dcb_config, max); in ixgbe_dcb_hw_config_cee()
654 ixgbe_dcb_unpack_bwgid_cee(dcb_config, IXGBE_DCB_TX_CONFIG, bwgid); in ixgbe_dcb_hw_config_cee()
655 ixgbe_dcb_unpack_tsa_cee(dcb_config, IXGBE_DCB_TX_CONFIG, tsa); in ixgbe_dcb_hw_config_cee()
656 ixgbe_dcb_unpack_map_cee(dcb_config, IXGBE_DCB_TX_CONFIG, map); in ixgbe_dcb_hw_config_cee()
658 hw->mac.ops.setup_rxpba(hw, dcb_config->num_tcs.pg_tcs, in ixgbe_dcb_hw_config_cee()
659 0, dcb_config->rx_pba_cfg); in ixgbe_dcb_hw_config_cee()
663 ret = ixgbe_dcb_hw_config_82598(hw, dcb_config->link_speed, in ixgbe_dcb_hw_config_cee()
671 ixgbe_dcb_config_82599(hw, dcb_config); in ixgbe_dcb_hw_config_cee()
672 ret = ixgbe_dcb_hw_config_82599(hw, dcb_config->link_speed, in ixgbe_dcb_hw_config_cee()
676 ixgbe_dcb_config_tc_stats_82599(hw, dcb_config); in ixgbe_dcb_hw_config_cee()
682 if (!ret && dcb_config->pfc_mode_enable) { in ixgbe_dcb_hw_config_cee()
683 ixgbe_dcb_unpack_pfc_cee(dcb_config, map, &pfc_en); in ixgbe_dcb_hw_config_cee()