Lines Matching refs:meta
203 struct bt_buf_view_meta *meta) in bt_buf_make_view() argument
214 LOG_DBG("make-view %p viewsize %zu meta %p", view, len, meta); in bt_buf_make_view()
224 meta->backup.data = parent->data; in bt_buf_make_view()
227 meta->backup.size = parent->size; in bt_buf_make_view()
232 meta->parent = parent; in bt_buf_make_view()
238 void bt_buf_destroy_view(struct net_buf *view, struct bt_buf_view_meta *meta) in bt_buf_destroy_view() argument
240 LOG_DBG("destroy-view %p meta %p", view, meta); in bt_buf_destroy_view()
241 __ASSERT_NO_MSG(meta->parent); in bt_buf_destroy_view()
244 meta->parent->data = meta->backup.data; in bt_buf_destroy_view()
245 meta->parent->size = meta->backup.size; in bt_buf_destroy_view()
247 net_buf_unref(meta->parent); in bt_buf_destroy_view()
249 memset(meta, 0, sizeof(*meta)); in bt_buf_destroy_view()