Lines Matching refs:elt
1553 bcm_next_tlv(bcm_tlv_t *elt, int *buflen) in bcm_next_tlv() argument
1558 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() local
1584 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()
1594 return (elt); in bcm_parse_tlvs()
1596 elt = (bcm_tlv_t*)((uint8*)elt + (len + TLV_HDR_LEN)); in bcm_parse_tlvs()
1612 bcm_tlv_t *elt; in bcm_parse_ordered_tlvs() local
1615 elt = (bcm_tlv_t*)buf; in bcm_parse_ordered_tlvs()
1620 uint id = elt->id; in bcm_parse_ordered_tlvs()
1621 int len = elt->len; in bcm_parse_ordered_tlvs()
1630 return (elt); in bcm_parse_ordered_tlvs()
1632 elt = (bcm_tlv_t*)((uint8*)elt + (len + TLV_HDR_LEN)); in bcm_parse_ordered_tlvs()