Lines Matching refs:tlv
59 static void i40e_parse_ieee_etscfg_tlv(struct i40e_lldp_org_tlv *tlv, in i40e_parse_ieee_etscfg_tlv() argument
63 u8 *buf = tlv->tlvinfo; in i40e_parse_ieee_etscfg_tlv()
130 static void i40e_parse_ieee_etsrec_tlv(struct i40e_lldp_org_tlv *tlv, in i40e_parse_ieee_etsrec_tlv() argument
133 u8 *buf = tlv->tlvinfo; in i40e_parse_ieee_etsrec_tlv()
185 static void i40e_parse_ieee_pfccfg_tlv(struct i40e_lldp_org_tlv *tlv, in i40e_parse_ieee_pfccfg_tlv() argument
188 u8 *buf = tlv->tlvinfo; in i40e_parse_ieee_pfccfg_tlv()
212 static void i40e_parse_ieee_app_tlv(struct i40e_lldp_org_tlv *tlv, in i40e_parse_ieee_app_tlv() argument
221 typelength = ntohs(tlv->typelength); in i40e_parse_ieee_app_tlv()
224 buf = tlv->tlvinfo; in i40e_parse_ieee_app_tlv()
227 length -= (sizeof(tlv->ouisubtype) + 1); in i40e_parse_ieee_app_tlv()
267 static void i40e_parse_ieee_tlv(struct i40e_lldp_org_tlv *tlv, in i40e_parse_ieee_tlv() argument
273 ouisubtype = ntohl(tlv->ouisubtype); in i40e_parse_ieee_tlv()
278 i40e_parse_ieee_etscfg_tlv(tlv, dcbcfg); in i40e_parse_ieee_tlv()
281 i40e_parse_ieee_etsrec_tlv(tlv, dcbcfg); in i40e_parse_ieee_tlv()
284 i40e_parse_ieee_pfccfg_tlv(tlv, dcbcfg); in i40e_parse_ieee_tlv()
287 i40e_parse_ieee_app_tlv(tlv, dcbcfg); in i40e_parse_ieee_tlv()
301 static void i40e_parse_cee_pgcfg_tlv(struct i40e_cee_feat_tlv *tlv, in i40e_parse_cee_pgcfg_tlv() argument
305 u8 *buf = tlv->tlvinfo; in i40e_parse_cee_pgcfg_tlv()
312 if (tlv->en_will_err & I40E_CEE_FEAT_TLV_WILLING_MASK) in i40e_parse_cee_pgcfg_tlv()
354 static void i40e_parse_cee_pfccfg_tlv(struct i40e_cee_feat_tlv *tlv, in i40e_parse_cee_pfccfg_tlv() argument
357 u8 *buf = tlv->tlvinfo; in i40e_parse_cee_pfccfg_tlv()
359 if (tlv->en_will_err & I40E_CEE_FEAT_TLV_WILLING_MASK) in i40e_parse_cee_pfccfg_tlv()
378 static void i40e_parse_cee_app_tlv(struct i40e_cee_feat_tlv *tlv, in i40e_parse_cee_app_tlv() argument
385 typelength = ntohs(tlv->hdr.typelen); in i40e_parse_cee_app_tlv()
394 app = (struct i40e_cee_app_prio *)(tlv->tlvinfo + offset); in i40e_parse_cee_app_tlv()
425 static void i40e_parse_cee_tlv(struct i40e_lldp_org_tlv *tlv, in i40e_parse_cee_tlv() argument
433 ouisubtype = ntohl(tlv->ouisubtype); in i40e_parse_cee_tlv()
440 typelength = ntohs(tlv->typelength); in i40e_parse_cee_tlv()
443 len = sizeof(tlv->typelength) + sizeof(ouisubtype) + in i40e_parse_cee_tlv()
449 sub_tlv = (struct i40e_cee_feat_tlv *)((char *)tlv + len); in i40e_parse_cee_tlv()
486 static void i40e_parse_org_tlv(struct i40e_lldp_org_tlv *tlv, in i40e_parse_org_tlv() argument
492 ouisubtype = ntohl(tlv->ouisubtype); in i40e_parse_org_tlv()
497 i40e_parse_ieee_tlv(tlv, dcbcfg); in i40e_parse_org_tlv()
500 i40e_parse_cee_tlv(tlv, dcbcfg); in i40e_parse_org_tlv()
518 struct i40e_lldp_org_tlv *tlv; in i40e_lldp_to_dcb_config() local
529 tlv = (struct i40e_lldp_org_tlv *)lldpmib; in i40e_lldp_to_dcb_config()
531 typelength = ntohs(tlv->typelength); in i40e_lldp_to_dcb_config()
544 i40e_parse_org_tlv(tlv, dcbcfg); in i40e_lldp_to_dcb_config()
551 tlv = (struct i40e_lldp_org_tlv *)((char *)tlv + in i40e_lldp_to_dcb_config()
552 sizeof(tlv->typelength) + in i40e_lldp_to_dcb_config()