Lines Matching refs:cee_cfg
604 struct i40e_aqc_get_cee_dcb_cfg_v1_resp *cee_cfg, in i40e_cee_to_dcb_v1_config() argument
607 u16 status, tlv_status = le16_to_cpu(cee_cfg->tlv_status); in i40e_cee_to_dcb_v1_config()
608 u16 app_prio = le16_to_cpu(cee_cfg->oper_app_prio); in i40e_cee_to_dcb_v1_config()
612 dcbcfg->etscfg.maxtcs = cee_cfg->oper_num_tc; in i40e_cee_to_dcb_v1_config()
615 tc = (u8)((cee_cfg->oper_prio_tc[i] & in i40e_cee_to_dcb_v1_config()
619 tc = (u8)((cee_cfg->oper_prio_tc[i] & in i40e_cee_to_dcb_v1_config()
626 dcbcfg->etscfg.tcbwtable[i] = cee_cfg->oper_tc_bw[i]; in i40e_cee_to_dcb_v1_config()
632 cee_cfg->oper_num_tc - 1; in i40e_cee_to_dcb_v1_config()
640 dcbcfg->pfc.pfcenable = cee_cfg->oper_pfc_en; in i40e_cee_to_dcb_v1_config()
682 struct i40e_aqc_get_cee_dcb_cfg_resp *cee_cfg, in i40e_cee_to_dcb_config() argument
685 u32 status, tlv_status = le32_to_cpu(cee_cfg->tlv_status); in i40e_cee_to_dcb_config()
686 u16 app_prio = le16_to_cpu(cee_cfg->oper_app_prio); in i40e_cee_to_dcb_config()
690 dcbcfg->etscfg.maxtcs = cee_cfg->oper_num_tc; in i40e_cee_to_dcb_config()
696 tc = (u8)((cee_cfg->oper_prio_tc[i] & in i40e_cee_to_dcb_config()
700 tc = (u8)((cee_cfg->oper_prio_tc[i] & in i40e_cee_to_dcb_config()
707 dcbcfg->etscfg.tcbwtable[i] = cee_cfg->oper_tc_bw[i]; in i40e_cee_to_dcb_config()
713 cee_cfg->oper_num_tc - 1; in i40e_cee_to_dcb_config()
721 dcbcfg->pfc.pfcenable = cee_cfg->oper_pfc_en; in i40e_cee_to_dcb_config()
814 struct i40e_aqc_get_cee_dcb_cfg_resp cee_cfg; in i40e_get_dcb_config() local
835 ret = i40e_aq_get_cee_dcb_config(hw, &cee_cfg, in i40e_get_dcb_config()
836 sizeof(cee_cfg), NULL); in i40e_get_dcb_config()
841 le32_to_cpu(cee_cfg.tlv_status); in i40e_get_dcb_config()
842 i40e_cee_to_dcb_config(&cee_cfg, in i40e_get_dcb_config()