Lines Matching defs:payload

179 pbuf_init_alloced_pbuf(struct pbuf *p, void *payload, u16_t tot_len, u16_t len, pbuf_type type, u8_t flags)
182 p->payload = payload;
200 * @param length size of the pbuf's payload
256 LWIP_ASSERT("pbuf_alloc: pbuf q->payload properly aligned",
257 ((mem_ptr_t)q->payload % MEM_ALIGNMENT) == 0);
290 LWIP_ASSERT("pbuf_alloc: pbuf->payload properly aligned",
291 ((mem_ptr_t)p->payload % MEM_ALIGNMENT) == 0);
311 * @param payload referenced payload
312 * @param length size of the pbuf's payload
327 pbuf_alloc_reference(void *payload, u16_t length, pbuf_type type)
339 pbuf_init_alloced_pbuf(p, payload, length, length, type, 0);
351 * @param length size of the pbuf's payload
355 * @param payload_mem pointer to the buffer that is used for payload and headers,
367 void *payload;
376 payload = (u8_t *)payload_mem + LWIP_MEM_ALIGN_SIZE(offset);
378 payload = NULL;
380 pbuf_init_alloced_pbuf(&p->pbuf, payload, length, length, type, PBUF_FLAG_IS_CUSTOM);
444 q = (struct pbuf *)mem_trim(q, (mem_size_t)(((u8_t *)q->payload - (u8_t *)q) + rem_len));
462 * Adjusts the payload pointer to reveal headers in the payload.
476 void *payload;
497 /* set new payload pointer */
498 payload = (u8_t *)p->payload - header_size_increment;
500 if ((u8_t *)payload < (u8_t *)p + SIZEOF_STRUCT_PBUF) {
503 (void *)payload, (void *)((u8_t *)p + SIZEOF_STRUCT_PBUF)));
509 /* hide a header in the payload? */
511 payload = (u8_t *)p->payload - header_size_increment;
513 /* cannot expand payload to front (yet!)
519 (void *)p->payload, (void *)payload, increment_magnitude));
522 p->payload = payload;
531 * Adjusts the payload pointer to reveal headers in the payload.
533 * Adjusts the ->payload pointer so that space for a header
534 * appears in the pbuf payload.
536 * The ->payload, ->tot_len and ->len fields are adjusted.
545 * not move the payload pointer in front of the start of the buffer.
567 * Adjusts the payload pointer to hide headers in the payload.
569 * Adjusts the ->payload pointer so that space for a header
570 * disappears in the pbuf payload.
572 * The ->payload, ->tot_len and ->len fields are adjusted.
584 void *payload;
599 /* remember current payload pointer */
600 payload = p->payload;
601 LWIP_UNUSED_ARG(payload); /* only used in LWIP_DEBUGF below */
603 /* increase payload pointer (guarded by length check above) */
604 p->payload = (u8_t *)p->payload + header_size_decrement;
610 (void *)payload, (void *)p->payload, increment_magnitude));
626 * Adjusts the payload pointer to hide or reveal headers in the payload.
628 * Adjusts the ->payload pointer so that space for a header
629 * (dis)appears in the pbuf payload.
631 * The ->payload, ->tot_len and ->len fields are adjusted.
641 * not move the payload pointer in front of the start of the buffer.
1014 MEMCPY((u8_t *)p_to->payload + offset_to, (u8_t *)p_from->payload + offset_from, len);
1071 /* Note some systems use byte copy if dataptr or one of the pbuf payload pointers are unaligned. */
1083 MEMCPY(&((char *)dataptr)[left], &((char *)p->payload)[offset], buf_copy_len);
1095 * Get part of a pbuf's payload as contiguous memory. The returned memory is
1096 * either a pointer into the pbuf's payload or, if split over multiple pbufs,
1121 return (u8_t *)q->payload + out_offset;
1245 /* Note some systems use byte copy if dataptr or one of the pbuf payload pointers are unaligned. */
1254 MEMCPY(p->payload, &((const char *)dataptr)[copied_total], buf_copy_len);
1287 MEMCPY(((u8_t *)q->payload) + target_offset, dataptr, first_copy_len);
1360 * @param start_offset offset of p->payload where to copy the data to
1383 dst_ptr = ((char *)p->payload) + start_offset;
1430 return ((u8_t *)q->payload)[q_idx];
1452 ((u8_t *)q->payload)[q_idx] = data;