Lines Matching refs:pbuf
82 #define SIZEOF_STRUCT_PBUF LWIP_MEM_ALIGN_SIZE(sizeof(struct pbuf))
206 struct pbuf *
209 struct pbuf *p, *q, *r; in pbuf_alloc()
239 p = (struct pbuf *)memp_malloc(MEMP_PBUF_POOL); in pbuf_alloc()
272 q = (struct pbuf *)memp_malloc(MEMP_PBUF_POOL); in pbuf_alloc()
308 …p = (struct pbuf*)mem_malloc(LWIP_MEM_ALIGN_SIZE(SIZEOF_STRUCT_PBUF + offset) + LWIP_MEM_ALIGN_SIZ… in pbuf_alloc()
326 p = (struct pbuf *)memp_malloc(MEMP_PBUF); in pbuf_alloc()
366 struct pbuf*
400 p->pbuf.next = NULL; in pbuf_alloced_custom()
402 p->pbuf.payload = (u8_t *)payload_mem + LWIP_MEM_ALIGN_SIZE(offset); in pbuf_alloced_custom()
404 p->pbuf.payload = NULL; in pbuf_alloced_custom()
406 p->pbuf.flags = PBUF_FLAG_IS_CUSTOM; in pbuf_alloced_custom()
407 p->pbuf.len = p->pbuf.tot_len = length; in pbuf_alloced_custom()
408 p->pbuf.type = type; in pbuf_alloced_custom()
409 p->pbuf.ref = 1; in pbuf_alloced_custom()
410 return &p->pbuf; in pbuf_alloced_custom()
430 pbuf_realloc(struct pbuf *p, u16_t new_len) in pbuf_realloc()
432 struct pbuf *q; in pbuf_realloc()
473 q = (struct pbuf *)mem_trim(q, (u16_t)((u8_t *)q->payload - (u8_t *)q) + rem_len); in pbuf_realloc()
511 pbuf_header(struct pbuf *p, s16_t header_size_increment) in pbuf_header()
618 pbuf_free(struct pbuf *p) in pbuf_free()
621 struct pbuf *q; in pbuf_free()
704 pbuf_clen(struct pbuf *p) in pbuf_clen()
723 pbuf_ref(struct pbuf *p) in pbuf_ref()
745 pbuf_cat(struct pbuf *h, struct pbuf *t) in pbuf_cat()
747 struct pbuf *p; in pbuf_cat()
786 pbuf_chain(struct pbuf *h, struct pbuf *t) in pbuf_chain()
802 struct pbuf *
803 pbuf_dechain(struct pbuf *p) in pbuf_dechain()
805 struct pbuf *q; in pbuf_dechain()
852 pbuf_copy(struct pbuf *p_to, struct pbuf *p_from) in pbuf_copy()
918 pbuf_copy_partial(struct pbuf *buf, void *dataptr, u16_t len, u16_t offset) in pbuf_copy_partial()
920 struct pbuf *p; in pbuf_copy_partial()
966 pbuf_take(struct pbuf *buf, const void *dataptr, u16_t len) in pbuf_take()
968 struct pbuf *p; in pbuf_take()
1009 struct pbuf*
1010 pbuf_coalesce(struct pbuf *p, pbuf_layer layer) in pbuf_coalesce()
1012 struct pbuf *q; in pbuf_coalesce()
1042 pbuf_fill_chksum(struct pbuf *p, u16_t start_offset, const void *dataptr, in pbuf_fill_chksum()
1077 pbuf_get_at(struct pbuf* p, u16_t offset) in pbuf_get_at()
1080 struct pbuf* q = p; in pbuf_get_at()
1104 pbuf_memcmp(struct pbuf* p, u16_t offset, const void* s2, u16_t n) in pbuf_memcmp()
1107 struct pbuf* q = p; in pbuf_memcmp()
1140 pbuf_memfind(struct pbuf* p, const void* mem, u16_t mem_len, u16_t start_offset) in pbuf_memfind()
1168 pbuf_strstr(struct pbuf* p, const char* substr) in pbuf_strstr()