Searched refs:num_needed (Results 1 – 2 of 2) sorted by relevance
133 uint_t num_needed; in eib_rsrc_grab_lsobufs() local143 num_needed = req_sz / EIB_LSO_BUFSZ; in eib_rsrc_grab_lsobufs()145 num_needed++; in eib_rsrc_grab_lsobufs()154 if (bkt->bk_nfree < num_needed) { in eib_rsrc_grab_lsobufs()163 for (i = 0; i < num_needed; i++) { in eib_rsrc_grab_lsobufs()192 bkt->bk_nfree -= num_needed; in eib_rsrc_grab_lsobufs()196 *nds = num_needed; in eib_rsrc_grab_lsobufs()
3713 uint_t num_needed; in ibd_acquire_lsobufs() local3723 num_needed = req_sz / IBD_LSO_BUFSZ; in ibd_acquire_lsobufs()3725 num_needed++; in ibd_acquire_lsobufs()3734 if (bktp->bkt_nfree < num_needed) { in ibd_acquire_lsobufs()3744 for (i = 0; i < num_needed; i++) { in ibd_acquire_lsobufs()3773 bktp->bkt_nfree -= num_needed; in ibd_acquire_lsobufs()3777 *nds_p = num_needed; in ibd_acquire_lsobufs()