Lines Matching refs:tlv_ptr
297 struct tlv_desc *tlv_ptr; in TLV_SET() local
301 tlv_ptr = (struct tlv_desc *)tlv; in TLV_SET()
302 tlv_ptr->tlv_type = htons(type); in TLV_SET()
303 tlv_ptr->tlv_len = htons(tlv_len); in TLV_SET()
305 memcpy(TLV_DATA(tlv_ptr), data, tlv_len); in TLV_SET()
315 struct tlv_desc *tlv_ptr; /* ptr to current TLV */ member
322 list->tlv_ptr = (struct tlv_desc *)data; in TLV_LIST_INIT()
333 return TLV_CHECK(list->tlv_ptr, list->tlv_space, exp_type); in TLV_LIST_CHECK()
338 return TLV_DATA(list->tlv_ptr); in TLV_LIST_DATA()
343 __u16 tlv_space = TLV_ALIGN(ntohs(list->tlv_ptr->tlv_len)); in TLV_LIST_STEP()
345 list->tlv_ptr = (struct tlv_desc *)((char *)list->tlv_ptr + tlv_space); in TLV_LIST_STEP()