Lines Matching refs:tot_len

23  * The last pbuf of a packet has a ->tot_len field that equals the
29 * loop end condition (tot_len == p->len), NOT (next == NULL).
253 p->tot_len = length;
287 q->tot_len = (u16_t)rem_len;
314 p->len = p->tot_len = length;
335 p->len = p->tot_len = length;
407 p->pbuf.len = p->pbuf.tot_len = length;
424 * @note If the pbuf is ROM/REF, only the ->tot_len and ->len fields are adjusted.
443 if (new_len >= p->tot_len) {
448 /* the pbuf chain grows by (new_len - p->tot_len) bytes
450 grow = new_len - p->tot_len;
461 q->tot_len += (u16_t)grow;
478 q->tot_len = q->len;
496 * The ->payload, ->tot_len and ->len fields are adjusted.
576 p->tot_len += header_size_increment;
755 p->tot_len += t->tot_len;
758 LWIP_ASSERT("p->tot_len == p->len (of last pbuf in chain)", p->tot_len == p->len);
761 p->tot_len += t->tot_len;
780 * The ->tot_len fields of all pbufs of the head chain are adjusted.
797 * Makes p->tot_len field equal to p->len.
811 /* assert tot_len invariant: (p->tot_len == p->len + (p->next? p->next->tot_len: 0) */
812 LWIP_ASSERT("p->tot_len == p->len + q->tot_len", q->tot_len == p->tot_len - p->len);
814 q->tot_len = p->tot_len - p->len;
818 p->tot_len = p->len;
828 /* assert tot_len invariant: (p->tot_len == p->len + (p->next? p->next->tot_len: 0) */
829 LWIP_ASSERT("p->tot_len == p->len", p->tot_len == p->len);
861 (p_from != NULL) && (p_to->tot_len >= p_from->tot_len)), return ERR_ARG;);
891 if((p_from != NULL) && (p_from->len == p_from->tot_len)) {
896 if((p_to != NULL) && (p_to->len == p_to->tot_len)) {
913 * than buf->tot_len will be copied, irrespective of len
957 * This function can only be used to copy the equivalent of buf->tot_len data.
976 if ((buf == NULL) || (dataptr == NULL) || (buf->tot_len < len)) {
1017 q = pbuf_alloc(layer, p->tot_len, PBUF_RAM);
1070 * WARNING: returns zero for offset >= p->tot_len
1074 * @return byte at an offset into p OR ZERO IF 'offset' >= p->tot_len
1143 u16_t max = p->tot_len - mem_len;
1144 if (p->tot_len >= mem_len + start_offset) {
1171 if ((substr == NULL) || (substr[0] == 0) || (p->tot_len == 0xFFFF)) {