Lines Matching refs:tlv_ptr
303 struct tlv_desc *tlv_ptr; in TLV_SET() local
307 tlv_ptr = (struct tlv_desc *)tlv; in TLV_SET()
308 tlv_ptr->tlv_type = htons(type); in TLV_SET()
309 tlv_ptr->tlv_len = htons(tlv_len); in TLV_SET()
311 memcpy(TLV_DATA(tlv_ptr), data, len); in TLV_SET()
312 memset((char *)TLV_DATA(tlv_ptr) + len, 0, TLV_SPACE(len) - tlv_len); in TLV_SET()
323 struct tlv_desc *tlv_ptr; /* ptr to current TLV */ member
330 list->tlv_ptr = (struct tlv_desc *)data; in TLV_LIST_INIT()
341 return TLV_CHECK(list->tlv_ptr, list->tlv_space, exp_type); in TLV_LIST_CHECK()
346 return TLV_DATA(list->tlv_ptr); in TLV_LIST_DATA()
351 __u16 tlv_space = TLV_ALIGN(ntohs(list->tlv_ptr->tlv_len)); in TLV_LIST_STEP()
353 list->tlv_ptr = (struct tlv_desc *)((char *)list->tlv_ptr + tlv_space); in TLV_LIST_STEP()