Lines Matching refs:wpabuf

22 static struct wpabuf_trace * wpabuf_get_trace(const struct wpabuf *buf)  in wpabuf_get_trace()
30 static void wpabuf_overflow(const struct wpabuf *buf, size_t len) in wpabuf_overflow()
47 int wpabuf_resize(struct wpabuf **_buf, size_t add_len) in wpabuf_resize()
49 struct wpabuf *buf = *_buf; in wpabuf_resize()
80 sizeof(struct wpabuf) + in wpabuf_resize()
85 buf = (struct wpabuf *) (trace + 1); in wpabuf_resize()
87 sizeof(struct wpabuf) + buf->used, 0, in wpabuf_resize()
90 nbuf = os_realloc(buf, sizeof(struct wpabuf) + in wpabuf_resize()
94 buf = (struct wpabuf *) nbuf; in wpabuf_resize()
95 os_memset(nbuf + sizeof(struct wpabuf) + buf->used, 0, in wpabuf_resize()
113 struct wpabuf * wpabuf_alloc(size_t len) in wpabuf_alloc()
117 sizeof(struct wpabuf) + len); in wpabuf_alloc()
118 struct wpabuf *buf; in wpabuf_alloc()
122 buf = (struct wpabuf *) (trace + 1); in wpabuf_alloc()
124 struct wpabuf *buf = os_zalloc(sizeof(struct wpabuf) + len); in wpabuf_alloc()
135 struct wpabuf * wpabuf_alloc_ext_data(u8 *data, size_t len) in wpabuf_alloc_ext_data()
139 sizeof(struct wpabuf)); in wpabuf_alloc_ext_data()
140 struct wpabuf *buf; in wpabuf_alloc_ext_data()
144 buf = (struct wpabuf *) (trace + 1); in wpabuf_alloc_ext_data()
146 struct wpabuf *buf = os_zalloc(sizeof(struct wpabuf)); in wpabuf_alloc_ext_data()
160 struct wpabuf * wpabuf_alloc_copy(const void *data, size_t len) in wpabuf_alloc_copy()
162 struct wpabuf *buf = wpabuf_alloc(len); in wpabuf_alloc_copy()
169 struct wpabuf * wpabuf_dup(const struct wpabuf *src) in wpabuf_dup()
171 struct wpabuf *buf = wpabuf_alloc(wpabuf_len(src)); in wpabuf_dup()
182 void wpabuf_free(struct wpabuf *buf) in wpabuf_free()
208 void wpabuf_clear_free(struct wpabuf *buf) in wpabuf_clear_free()
217 void * wpabuf_put(struct wpabuf *buf, size_t len) in wpabuf_put()
237 struct wpabuf * wpabuf_concat(struct wpabuf *a, struct wpabuf *b) in wpabuf_concat()
239 struct wpabuf *n = NULL; in wpabuf_concat()
277 struct wpabuf * wpabuf_zeropad(struct wpabuf *buf, size_t len) in wpabuf_zeropad()
279 struct wpabuf *ret; in wpabuf_zeropad()
300 void wpabuf_printf(struct wpabuf *buf, char *fmt, ...) in wpabuf_printf()