Lines Matching defs:p_from
822 * @param p_from pbuf source of the copy
826 * enough to hold p_from
829 pbuf_copy(struct pbuf *p_to, struct pbuf *p_from)
834 (void*)p_to, (void*)p_from));
838 (p_from != NULL) && (p_to->tot_len >= p_from->tot_len)), return ERR_ARG;);
845 if ((p_to->len - offset_to) >= (p_from->len - offset_from)) {
846 /* complete current p_from fits into current p_to */
847 len = p_from->len - offset_from;
849 /* current p_from does not fit into current p_to */
852 MEMCPY((u8_t*)p_to->payload + offset_to, (u8_t*)p_from->payload + offset_from, len);
861 LWIP_ASSERT("offset_from <= p_from->len", offset_from <= p_from->len);
862 if (offset_from >= p_from->len) {
863 /* on to next p_from (if any) */
865 p_from = p_from->next;
868 if((p_from != NULL) && (p_from->len == p_from->tot_len)) {
871 (p_from->next == NULL), return ERR_VAL;);
878 } while (p_from);