Lines Matching refs:tlv_ptr
280 struct tlv_desc *tlv_ptr;
284 tlv_ptr = (struct tlv_desc *)tlv;
285 tlv_ptr->tlv_type = htons(type);
286 tlv_ptr->tlv_len = htons(tlv_len);
288 memcpy(TLV_DATA(tlv_ptr), data, tlv_len);
298 struct tlv_desc *tlv_ptr; /* ptr to current TLV */
305 list->tlv_ptr = (struct tlv_desc *)data;
316 return TLV_CHECK(list->tlv_ptr, list->tlv_space, exp_type);
321 return TLV_DATA(list->tlv_ptr);
326 __u16 tlv_space = TLV_ALIGN(ntohs(list->tlv_ptr->tlv_len));
328 list->tlv_ptr = (struct tlv_desc *)((char *)list->tlv_ptr + tlv_space);