Lines Matching refs:tlv
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()
173 if (tlv_container->tlv->length > length) { in msg_tlv_post_recv()
179 length -= tlv_container->tlv->length; in msg_tlv_post_recv()
180 suffix += tlv_container->tlv->length; in msg_tlv_post_recv()
181 suffix_len += tlv_container->tlv->length; in msg_tlv_post_recv()
183 ret = ptp_tlv_post_recv(tlv_container->tlv); in msg_tlv_post_recv()
212 ptp_tlv_pre_send(tlv_container->tlv); in msg_tlv_pre_send()
455 suffix = (uint8_t *)tlv_container->tlv; in ptp_msg_add_tlv()
456 suffix += sizeof(*tlv_container->tlv); in ptp_msg_add_tlv()
457 suffix += tlv_container->tlv->length; in ptp_msg_add_tlv()
467 tlv_container->tlv = (struct ptp_tlv *)suffix; in ptp_msg_add_tlv()
471 return tlv_container ? tlv_container->tlv : NULL; in ptp_msg_add_tlv()