Lines Matching refs:tlv_desc
248 struct tlv_desc { struct
256 #define TLV_LENGTH(datalen) (sizeof(struct tlv_desc) + (datalen)) argument
272 (ntohs(((struct tlv_desc *)tlv)->tlv_len) <= space); in TLV_OK()
278 (ntohs(((struct tlv_desc *)tlv)->tlv_type) == exp_type); in TLV_CHECK()
281 static inline int TLV_GET_LEN(struct tlv_desc *tlv) in TLV_GET_LEN()
286 static inline void TLV_SET_LEN(struct tlv_desc *tlv, __u16 len) in TLV_SET_LEN()
291 static inline int TLV_CHECK_TYPE(struct tlv_desc *tlv, __u16 type) in TLV_CHECK_TYPE()
296 static inline void TLV_SET_TYPE(struct tlv_desc *tlv, __u16 type) in TLV_SET_TYPE()
303 struct tlv_desc *tlv_ptr; in TLV_SET()
307 tlv_ptr = (struct tlv_desc *)tlv; in TLV_SET()
323 struct tlv_desc *tlv_ptr; /* ptr to current TLV */
330 list->tlv_ptr = (struct tlv_desc *)data; in TLV_LIST_INIT()
353 list->tlv_ptr = (struct tlv_desc *)((char *)list->tlv_ptr + tlv_space); in TLV_LIST_STEP()