Home | History | Annotate | Download | only in core

Lines Matching refs:payload

161  * @param length size of the pbuf's payload
226 /* make the payload pointer point 'offset' bytes into pbuf data memory */
227 p->payload = LWIP_MEM_ALIGN((void *)((u8_t *)p + (SIZEOF_STRUCT_PBUF + offset)));
228 LWIP_ASSERT("pbuf_alloc: pbuf p->payload properly aligned",
229 ((mem_ptr_t)p->payload % MEM_ALIGNMENT) == 0);
234 LWIP_ASSERT("check p->payload + p->len does not overflow pbuf",
235 ((u8_t*)p->payload + p->len <=
268 q->payload = (void *)((u8_t *)q + SIZEOF_STRUCT_PBUF);
269 LWIP_ASSERT("pbuf_alloc: pbuf q->payload properly aligned",
270 ((mem_ptr_t)q->payload % MEM_ALIGNMENT) == 0);
271 LWIP_ASSERT("check p->payload + p->len does not overflow pbuf",
272 ((u8_t*)p->payload + p->len <=
291 p->payload = LWIP_MEM_ALIGN((void *)((u8_t *)p + SIZEOF_STRUCT_PBUF + offset));
296 LWIP_ASSERT("pbuf_alloc: pbuf->payload properly aligned",
297 ((mem_ptr_t)p->payload % MEM_ALIGNMENT) == 0);
299 /* pbuf references existing (non-volatile static constant) ROM payload? */
301 /* pbuf references existing (externally allocated) RAM payload? */
312 p->payload = NULL;
333 * @param length size of the pbuf's payload
337 * @param payload_mem pointer to the buffer that is used for payload and headers,
379 p->pbuf.payload = LWIP_MEM_ALIGN((void *)((u8_t *)payload_mem + offset));
381 p->pbuf.payload = NULL;
450 q = (struct pbuf *)mem_trim(q, (u16_t)((u8_t *)q->payload - (u8_t *)q) + rem_len);
468 * Adjusts the payload pointer to hide or reveal headers in the payload.
470 * Adjusts the ->payload pointer so that space for a header
471 * (dis)appears in the pbuf payload.
473 * The ->payload, ->tot_len and ->len fields are adjusted.
483 * not move the payload pointer in front of the start of the buffer.
491 void *payload;
512 LWIP_ASSERT("p->payload - increment_magnitude >= p + SIZEOF_STRUCT_PBUF",
513 (u8_t *)p->payload - increment_magnitude >= (u8_t *)p + SIZEOF_STRUCT_PBUF);
518 /* remember current payload pointer */
519 payload = p->payload;
523 /* set new payload pointer */
524 p->payload = (u8_t *)p->payload - header_size_increment;
526 if ((u8_t *)p->payload < (u8_t *)p + SIZEOF_STRUCT_PBUF) {
529 (void *)p->payload, (void *)(p + 1)));
530 /* restore old payload pointer */
531 p->payload = payload;
537 /* hide a header in the payload? */
539 /* increase payload pointer */
540 p->payload = (u8_t *)p->payload - header_size_increment;
542 /* cannot expand payload to front (yet!)
556 (void *)payload, (void *)p->payload, header_size_increment));
852 MEMCPY((u8_t*)p_to->payload + offset_to, (u8_t*)p_from->payload + offset_from, len);
911 /* Note some systems use byte copy if dataptr or one of the pbuf payload pointers are unaligned. */
922 MEMCPY(&((char*)dataptr)[left], &((char*)p->payload)[offset], buf_copy_len);
957 /* Note some systems use byte copy if dataptr or one of the pbuf payload pointers are unaligned. */
966 MEMCPY(p->payload, &((char*)dataptr)[copied_total], buf_copy_len);
1011 * @param start_offset offset of p->payload where to copy the data to
1034 dst_ptr = ((char*)p->payload) + start_offset;
1066 return ((u8_t*)q->payload)[copy_from];