Home
last modified time | relevance | path

Searched refs:tlv_container (Results 1 – 3 of 3) sorted by relevance

/Zephyr-latest/subsys/net/lib/ptp/
Dmsg.c144 struct ptp_tlv_container *tlv_container; in msg_tlv_post_recv() local
153 tlv_container = ptp_tlv_alloc(); in msg_tlv_post_recv()
154 if (!tlv_container) { in msg_tlv_post_recv()
158 tlv_container->tlv = (struct ptp_tlv *)suffix; in msg_tlv_post_recv()
159 tlv_container->tlv->type = ntohs(tlv_container->tlv->type); in msg_tlv_post_recv()
160 tlv_container->tlv->length = ntohs(tlv_container->tlv->length); in msg_tlv_post_recv()
162 if (tlv_container->tlv->length % 2) { in msg_tlv_post_recv()
165 ptp_tlv_free(tlv_container); in msg_tlv_post_recv()
173 if (tlv_container->tlv->length > length) { in msg_tlv_post_recv()
175 ptp_tlv_free(tlv_container); in msg_tlv_post_recv()
[all …]
Dtlv.c333 struct ptp_tlv_container *tlv_container = NULL; in ptp_tlv_alloc() local
334 int ret = k_mem_slab_alloc(&tlv_slab, (void **)&tlv_container, K_FOREVER); in ptp_tlv_alloc()
341 memset(tlv_container, 0, sizeof(*tlv_container)); in ptp_tlv_alloc()
342 return tlv_container; in ptp_tlv_alloc()
345 void ptp_tlv_free(struct ptp_tlv_container *tlv_container) in ptp_tlv_free() argument
347 k_mem_slab_free(&tlv_slab, (void *)tlv_container); in ptp_tlv_free()
Dtlv.h346 void ptp_tlv_free(struct ptp_tlv_container *tlv_container);