Home
last modified time | relevance | path

Searched refs:p_to (Results 1 – 2 of 2) sorted by relevance

/third_party/lwip/src/core/
Dpbuf.c961 pbuf_copy(struct pbuf *p_to, const struct pbuf *p_from) in pbuf_copy() argument
964 (const void *)p_to, (const void *)p_from)); in pbuf_copy()
967 return pbuf_copy_partial_pbuf(p_to, p_from, p_from->tot_len, 0); in pbuf_copy()
988 pbuf_copy_partial_pbuf(struct pbuf *p_to, const struct pbuf *p_from, u16_t copy_len, u16_t offset) in pbuf_copy_partial_pbuf() argument
994 (const void *)p_to, (const void *)p_from, copy_len, offset)); in pbuf_copy_partial_pbuf()
1000 LWIP_ERROR("pbuf_copy_partial_pbuf: target not big enough", ((p_to != NULL) && in pbuf_copy_partial_pbuf()
1001 (p_to->tot_len >= (offset + copy_len))), return ERR_ARG;); in pbuf_copy_partial_pbuf()
1006 if ((p_to->len - offset_to) >= (p_from->len - offset_from)) { in pbuf_copy_partial_pbuf()
1011 len_calc = p_to->len - offset_to; in pbuf_copy_partial_pbuf()
1014 MEMCPY((u8_t *)p_to->payload + offset_to, (u8_t *)p_from->payload + offset_from, len); in pbuf_copy_partial_pbuf()
[all …]
/third_party/lwip/src/include/lwip/
Dpbuf.h298 err_t pbuf_copy(struct pbuf *p_to, const struct pbuf *p_from);
299 err_t pbuf_copy_partial_pbuf(struct pbuf *p_to, const struct pbuf *p_from, u16_t copy_len, u16_t of…