Lines Matching refs:trace
40 struct wpabuf_trace *trace = wpabuf_get_trace(buf); in wpabuf_overflow() local
41 if (trace->magic != WPABUF_MAGIC) { in wpabuf_overflow()
43 trace->magic); in wpabuf_overflow()
56 struct wpabuf_trace *trace; in wpabuf_resize() local
65 trace = wpabuf_get_trace(buf); in wpabuf_resize()
66 if (trace->magic != WPABUF_MAGIC) { in wpabuf_resize()
68 trace->magic); in wpabuf_resize()
83 nbuf = os_realloc(trace, sizeof(struct wpabuf_trace) + in wpabuf_resize()
88 trace = (struct wpabuf_trace *) nbuf; in wpabuf_resize()
89 buf = (struct wpabuf *) (trace + 1); in wpabuf_resize()
120 struct wpabuf_trace *trace = os_zalloc(sizeof(struct wpabuf_trace) + in wpabuf_alloc() local
123 if (trace == NULL) in wpabuf_alloc()
125 trace->magic = WPABUF_MAGIC; in wpabuf_alloc()
126 buf = (struct wpabuf *) (trace + 1); in wpabuf_alloc()
141 struct wpabuf_trace *trace = os_zalloc(sizeof(struct wpabuf_trace) + in wpabuf_alloc_ext_data() local
144 if (trace == NULL) in wpabuf_alloc_ext_data()
146 trace->magic = WPABUF_MAGIC; in wpabuf_alloc_ext_data()
147 buf = (struct wpabuf *) (trace + 1); in wpabuf_alloc_ext_data()
188 struct wpabuf_trace *trace; in wpabuf_free() local
191 trace = wpabuf_get_trace(buf); in wpabuf_free()
192 if (trace->magic != WPABUF_MAGIC) { in wpabuf_free()
194 trace->magic); in wpabuf_free()
199 os_free(trace); in wpabuf_free()