Lines Matching refs:bb
134 void *bb = NULL; in bb_alloc() local
138 bb = maybe_tag_bb(uctx->bbuf + uctx->bbuf_offs, len); in bb_alloc()
141 return bb; in bb_alloc()
144 static void bb_free_helper(struct user_mode_ctx *uctx, vaddr_t bb, size_t len) in bb_free_helper() argument
148 if (bb >= bbuf && IS_ALIGNED(bb, BB_ALIGNMENT)) { in bb_free_helper()
149 size_t prev_offs = bb - bbuf; in bb_free_helper()
155 maybe_untag_bb((void *)bb, len); in bb_free_helper()
162 void bb_free(void *bb, size_t len) in bb_free() argument
167 bb_free_helper(uctx, memtag_strip_tag_vaddr(bb), len); in bb_free()
170 void bb_free_wipe(void *bb, size_t len) in bb_free_wipe() argument
172 if (bb) in bb_free_wipe()
173 memset(bb, 0, len); in bb_free_wipe()
174 bb_free(bb, len); in bb_free_wipe()