Lines Matching refs:pbuf

129 #define SIZEOF_STRUCT_PBUF        LWIP_MEM_ALIGN_SIZE(sizeof(struct pbuf))
256 struct pbuf *
259 struct pbuf * in pbuf_alloc_ext()
263 struct pbuf *p, *q, *r; in pbuf_alloc_ext()
321 p = (struct pbuf *)memp_malloc(pbuf_pool_small ? MEMP_PBUF_POOL_SMALL : MEMP_PBUF_POOL); in pbuf_alloc_ext()
323 p = (struct pbuf *)memp_malloc(MEMP_PBUF_POOL); in pbuf_alloc_ext()
384 q = (struct pbuf *)memp_malloc(MEMP_PBUF_POOL); in pbuf_alloc_ext()
421 …p = (struct pbuf*)mem_malloc(LWIP_MEM_ALIGN_SIZE(SIZEOF_STRUCT_PBUF + offset) + LWIP_MEM_ALIGN_SIZ… in pbuf_alloc_ext()
423 …p = (struct pbuf*)mem_malloc(LWIP_MEM_ALIGN_SIZE(SIZEOF_STRUCT_PBUF + offset) + LWIP_MEM_ALIGN_SIZ… in pbuf_alloc_ext()
442 p = (struct pbuf *)memp_malloc(MEMP_PBUF); in pbuf_alloc_ext()
491 struct pbuf*
529 p->pbuf.next = NULL; in pbuf_alloced_custom()
531 p->pbuf.payload = (u8_t *)payload_mem + LWIP_MEM_ALIGN_SIZE(offset); in pbuf_alloced_custom()
533 p->pbuf.payload = NULL; in pbuf_alloced_custom()
535 p->pbuf.flags = PBUF_FLAG_IS_CUSTOM; in pbuf_alloced_custom()
536 p->pbuf.len = p->pbuf.tot_len = length; in pbuf_alloced_custom()
537 p->pbuf.type = type; in pbuf_alloced_custom()
538 p->pbuf.ref = 1; in pbuf_alloced_custom()
539 return &p->pbuf; in pbuf_alloced_custom()
560 pbuf_realloc(struct pbuf *p, u16_t new_len) in pbuf_realloc()
562 struct pbuf *q; in pbuf_realloc()
610 q = (struct pbuf *)mem_trim(q, (u16_t)((u8_t *)q->payload - (u8_t *)q) + rem_len + tail_space); in pbuf_realloc()
612 q = (struct pbuf *)mem_trim(q, (u16_t)((u8_t *)q->payload - (u8_t *)q) + rem_len); in pbuf_realloc()
638 pbuf_head_space(struct pbuf *p) in pbuf_head_space()
662 pbuf_header_impl(struct pbuf *p, s16_t header_size_increment, u8_t force) in pbuf_header_impl()
758 pbuf_header(struct pbuf *p, s16_t header_size_increment) in pbuf_header()
768 pbuf_header_force(struct pbuf *p, s16_t header_size_increment) in pbuf_header_force()
808 pbuf_free(struct pbuf *p) in pbuf_free()
811 struct pbuf *q; in pbuf_free()
897 pbuf_clen(const struct pbuf *p) in pbuf_clen()
917 pbuf_ref(struct pbuf *p) in pbuf_ref()
936 pbuf_cat(struct pbuf *h, struct pbuf *t) in pbuf_cat()
938 struct pbuf *p; in pbuf_cat()
978 pbuf_chain(struct pbuf *h, struct pbuf *t) in pbuf_chain()
994 struct pbuf *
995 pbuf_dechain(struct pbuf *p) in pbuf_dechain()
997 struct pbuf *q; in pbuf_dechain()
1044 pbuf_copy(struct pbuf *p_to, const struct pbuf *p_from) in pbuf_copy()
1111 pbuf_copy_partial(const struct pbuf *buf, void *dataptr, u16_t len, u16_t offset) in pbuf_copy_partial()
1113 const struct pbuf *p; in pbuf_copy_partial()
1158 void pbuf_split_64k(struct pbuf *p, struct pbuf **rest) in pbuf_split_64k()
1163 struct pbuf *i = p; in pbuf_split_64k()
1164 struct pbuf *r = p->next; in pbuf_split_64k()
1196 static const struct pbuf*
1197 pbuf_skip_const(const struct pbuf* in, u16_t in_offset, u16_t* out_offset) in pbuf_skip_const()
1200 const struct pbuf* q = in; in pbuf_skip_const()
1222 struct pbuf*
1223 pbuf_skip(struct pbuf* in, u16_t in_offset, u16_t* out_offset) in pbuf_skip()
1225 return (struct pbuf*)(size_t)pbuf_skip_const(in, in_offset, out_offset); in pbuf_skip()
1240 pbuf_take(struct pbuf *buf, const void *dataptr, u16_t len) in pbuf_take()
1242 struct pbuf *p; in pbuf_take()
1284 pbuf_take_at(struct pbuf *buf, const void *dataptr, u16_t len, u16_t offset) in pbuf_take_at()
1287 struct pbuf* q = pbuf_skip(buf, offset, &target_offset); in pbuf_take_at()
1319 struct pbuf*
1320 pbuf_coalesce(struct pbuf *p, pbuf_layer layer) in pbuf_coalesce()
1322 struct pbuf *q; in pbuf_coalesce()
1355 pbuf_fill_chksum(struct pbuf *p, u16_t start_offset, const void *dataptr, in pbuf_fill_chksum()
1392 pbuf_get_at(const struct pbuf* p, u16_t offset) in pbuf_get_at()
1410 pbuf_try_get_at(const struct pbuf* p, u16_t offset) in pbuf_try_get_at()
1413 const struct pbuf* q = pbuf_skip_const(p, offset, &q_idx); in pbuf_try_get_at()
1432 pbuf_put_at(struct pbuf* p, u16_t offset, u8_t data) in pbuf_put_at()
1435 struct pbuf* q = pbuf_skip(p, offset, &q_idx); in pbuf_put_at()
1455 pbuf_memcmp(const struct pbuf* p, u16_t offset, const void* s2, u16_t n) in pbuf_memcmp()
1458 const struct pbuf* q = p; in pbuf_memcmp()
1497 pbuf_memfind(const struct pbuf* p, const void* mem, u16_t mem_len, u16_t start_offset) in pbuf_memfind()
1524 pbuf_strstr(const struct pbuf* p, const char* substr) in pbuf_strstr()