Searched refs:elt (Results 1 – 2 of 2) sorted by relevance
1553 bcm_next_tlv(bcm_tlv_t *elt, int *buflen) in bcm_next_tlv() argument1558 if (!bcm_valid_tlv(elt, *buflen)) in bcm_next_tlv()1562 len = elt->len; in bcm_next_tlv()1563 elt = (bcm_tlv_t*)(elt->data + len); in bcm_next_tlv()1567 if (!bcm_valid_tlv(elt, *buflen)) in bcm_next_tlv()1570 return elt; in bcm_next_tlv()1581 bcm_tlv_t *elt; in bcm_parse_tlvs() local1584 elt = (bcm_tlv_t*)buf; in bcm_parse_tlvs()1589 int len = elt->len; in bcm_parse_tlvs()1592 if ((elt->id == key) && in bcm_parse_tlvs()[all …]
754 #define bcm_valid_tlv(elt, buflen) ((buflen) >= 2 && (int)(buflen) >= (int)(2 + (elt)->len)) argument810 extern bcm_tlv_t *bcm_next_tlv(bcm_tlv_t *elt, int *buflen);