Lines Matching refs:b0
1542 mlxcx_buffer_t *b0) in mlxcx_sq_add_buffer() argument
1558 ASSERT3P(b0->mlb_tx_head, ==, b0); in mlxcx_sq_add_buffer()
1559 ASSERT3U(b0->mlb_state, ==, MLXCX_BUFFER_ON_WQ); in mlxcx_sq_add_buffer()
1564 b0->mlb_wqe_index = mlwq->mlwq_pc; in mlxcx_sq_add_buffer()
1572 ent0->mlsqe_control.mlcs_wqe_index = to_be16(b0->mlb_wqe_index); in mlxcx_sq_add_buffer()
1611 b = b0; in mlxcx_sq_add_buffer()
1653 if (b == b0) { in mlxcx_sq_add_buffer()
1654 b = list_head(&b0->mlb_tx_chain); in mlxcx_sq_add_buffer()
1656 b = list_next(&b0->mlb_tx_chain, b); in mlxcx_sq_add_buffer()
1660 b0->mlb_wqebbs = ents; in mlxcx_sq_add_buffer()
1703 list_insert_tail(&cq->mlcq_buffers_b, b0); in mlxcx_sq_add_buffer()
1707 list_remove(&cq->mlcq_buffers_b, b0); in mlxcx_sq_add_buffer()
2314 mlxcx_buffer_t *b, *b0 = NULL; in mlxcx_buf_bind_or_copy() local
2330 b0 = b; in mlxcx_buf_bind_or_copy()
2336 b->mlb_tx_head = b0; in mlxcx_buf_bind_or_copy()
2340 list_insert_tail(&b0->mlb_tx_chain, b); in mlxcx_buf_bind_or_copy()
2357 if (b0 != NULL) in mlxcx_buf_bind_or_copy()
2358 mlxcx_buf_return_chain(mlxp, b0, B_TRUE); in mlxcx_buf_bind_or_copy()
2363 b0 = mlxcx_bind_or_copy_mblk(mlxp, wq, mp, off); in mlxcx_buf_bind_or_copy()
2364 if (b0 == NULL) { in mlxcx_buf_bind_or_copy()
2370 b0->mlb_tx_mp = mp; in mlxcx_buf_bind_or_copy()
2371 b0->mlb_tx_head = b0; in mlxcx_buf_bind_or_copy()
2372 b0->mlb_used = MBLKL(mp) - off; in mlxcx_buf_bind_or_copy()
2377 *bp = b0; in mlxcx_buf_bind_or_copy()
2382 if (b0 != NULL) in mlxcx_buf_bind_or_copy()
2383 mlxcx_buf_return_chain(mlxp, b0, B_TRUE); in mlxcx_buf_bind_or_copy()
2474 mlxcx_buf_return_chain(mlxcx_t *mlxp, mlxcx_buffer_t *b0, boolean_t keepmp) in mlxcx_buf_return_chain() argument
2478 if (b0->mlb_tx_head != b0) { in mlxcx_buf_return_chain()
2479 mlxcx_buf_return(mlxp, b0); in mlxcx_buf_return_chain()
2483 while ((b = list_head(&b0->mlb_tx_chain)) != NULL) { in mlxcx_buf_return_chain()
2487 b0->mlb_tx_mp = NULL; in mlxcx_buf_return_chain()
2488 b0->mlb_tx_head = NULL; in mlxcx_buf_return_chain()
2490 mlxcx_buf_return(mlxp, b0); in mlxcx_buf_return_chain()