Searched refs:tlv_desc (Results 1 - 2 of 2) sorted by relevance

/linux-4.1.27/include/uapi/linux/
H A Dtipc_config.h242 struct tlv_desc { struct
250 #define TLV_LENGTH(datalen) (sizeof(struct tlv_desc) + (datalen))
266 (ntohs(((struct tlv_desc *)tlv)->tlv_len) <= space); TLV_OK()
272 (ntohs(((struct tlv_desc *)tlv)->tlv_type) == exp_type); TLV_CHECK()
275 static inline int TLV_GET_LEN(struct tlv_desc *tlv) TLV_GET_LEN()
280 static inline void TLV_SET_LEN(struct tlv_desc *tlv, __u16 len) TLV_SET_LEN()
285 static inline int TLV_CHECK_TYPE(struct tlv_desc *tlv, __u16 type) TLV_CHECK_TYPE()
290 static inline void TLV_SET_TYPE(struct tlv_desc *tlv, __u16 type) TLV_SET_TYPE()
297 struct tlv_desc *tlv_ptr; TLV_SET()
301 tlv_ptr = (struct tlv_desc *)tlv; TLV_SET()
315 struct tlv_desc *tlv_ptr; /* ptr to current TLV */
322 list->tlv_ptr = (struct tlv_desc *)data; TLV_LIST_INIT()
345 list->tlv_ptr = (struct tlv_desc *)((char *)list->tlv_ptr + tlv_space); TLV_LIST_STEP()
/linux-4.1.27/net/tipc/
H A Dnetlink_compat.c59 struct tlv_desc *req;
90 struct tlv_desc *tlv = (struct tlv_desc *)skb_tail_pointer(skb); tipc_add_tlv()
106 struct tlv_desc *tlv = (struct tlv_desc *)skb->data; tipc_tlv_init()
110 skb_put(skb, sizeof(struct tlv_desc)); tipc_tlv_init()
119 struct tlv_desc *tlv; tipc_tlv_sprintf()
124 tlv = (struct tlv_desc *)skb->data; tipc_tlv_sprintf()

Completed in 138 milliseconds