Lines Matching refs:len
37 static void wpabuf_overflow(const struct wpabuf *buf, size_t len) in wpabuf_overflow() argument
48 (unsigned long) len); in wpabuf_overflow()
117 struct wpabuf * wpabuf_alloc(size_t len) in wpabuf_alloc() argument
121 sizeof(struct wpabuf) + len); in wpabuf_alloc()
128 struct wpabuf *buf = (struct wpabuf *)os_zalloc(sizeof(struct wpabuf) + len); in wpabuf_alloc()
133 buf->size = len; in wpabuf_alloc()
138 struct wpabuf * wpabuf_alloc_ext_data(u8 *data, size_t len) in wpabuf_alloc_ext_data() argument
154 buf->size = len; in wpabuf_alloc_ext_data()
155 buf->used = len; in wpabuf_alloc_ext_data()
163 struct wpabuf * wpabuf_alloc_copy(const void *data, size_t len) in wpabuf_alloc_copy() argument
165 struct wpabuf *buf = wpabuf_alloc(len); in wpabuf_alloc_copy()
167 wpabuf_put_data(buf, data, len); in wpabuf_alloc_copy()
219 void * wpabuf_put(struct wpabuf *buf, size_t len) in wpabuf_put() argument
222 buf->used += len; in wpabuf_put()
224 wpabuf_overflow(buf, len); in wpabuf_put()
242 size_t len = 0; in wpabuf_concat() local
248 len += wpabuf_len(a); in wpabuf_concat()
250 len += wpabuf_len(b); in wpabuf_concat()
252 n = wpabuf_alloc(len); in wpabuf_concat()
279 struct wpabuf * wpabuf_zeropad(struct wpabuf *buf, size_t len) in wpabuf_zeropad() argument
288 if (blen >= len) in wpabuf_zeropad()
291 ret = wpabuf_alloc(len); in wpabuf_zeropad()
293 memset(wpabuf_put(ret, len - blen), 0, len - blen); in wpabuf_zeropad()