Lines Matching refs:bl
1246 sbp2_buf_list_t *bl = &lp->l_orb_freelist; in sbp2_orb_freelist_get() local
1249 mutex_enter(&bl->bl_mutex); in sbp2_orb_freelist_get()
1250 if ((bl->bl_head != NULL) && (bl->bl_head->bb_len == len)) { in sbp2_orb_freelist_get()
1251 buf = bl->bl_head; in sbp2_orb_freelist_get()
1252 bl->bl_head = buf->bb_next; in sbp2_orb_freelist_get()
1253 if (bl->bl_tail == buf) { /* last one? */ in sbp2_orb_freelist_get()
1254 ASSERT(bl->bl_head == NULL); in sbp2_orb_freelist_get()
1255 bl->bl_tail = NULL; in sbp2_orb_freelist_get()
1257 bl->bl_len--; in sbp2_orb_freelist_get()
1260 mutex_exit(&bl->bl_mutex); in sbp2_orb_freelist_get()
1268 sbp2_buf_list_t *bl = &lp->l_orb_freelist; in sbp2_orb_freelist_put() local
1271 mutex_enter(&bl->bl_mutex); in sbp2_orb_freelist_put()
1272 if (bl->bl_len < SBP2_ORB_FREELIST_MAX) { in sbp2_orb_freelist_put()
1273 if (bl->bl_head == NULL) { in sbp2_orb_freelist_put()
1274 ASSERT(bl->bl_tail == NULL); in sbp2_orb_freelist_put()
1275 bl->bl_head = bl->bl_tail = buf; in sbp2_orb_freelist_put()
1277 bl->bl_tail->bb_next = buf; in sbp2_orb_freelist_put()
1278 bl->bl_tail = buf; in sbp2_orb_freelist_put()
1281 bl->bl_len++; in sbp2_orb_freelist_put()
1286 mutex_exit(&bl->bl_mutex); in sbp2_orb_freelist_put()
1295 sbp2_buf_list_t *bl = &lp->l_orb_freelist; in sbp2_orb_freelist_destroy() local
1298 mutex_enter(&bl->bl_mutex); in sbp2_orb_freelist_destroy()
1299 for (buf = bl->bl_head; buf != NULL; ) { in sbp2_orb_freelist_destroy()
1305 bl->bl_head = bl->bl_tail = NULL; in sbp2_orb_freelist_destroy()
1306 mutex_exit(&bl->bl_mutex); in sbp2_orb_freelist_destroy()