Searched refs:elt (Results 1 – 3 of 3) 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 …]
105 static uint32_t I830BoundGammaElt(uint32_t elt, uint32_t eltPrev) in I830BoundGammaElt() argument107 elt &= 0xff; in I830BoundGammaElt()109 if (elt < eltPrev) in I830BoundGammaElt()110 elt = eltPrev; in I830BoundGammaElt()111 else if ((elt - eltPrev) > 0x7e) in I830BoundGammaElt()112 elt = eltPrev + 0x7e; in I830BoundGammaElt()113 return elt; in I830BoundGammaElt()
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);