Home
last modified time | relevance | path

Searched refs:num_needed (Results 1 – 2 of 2) sorted by relevance

/illumos-gate/usr/src/uts/common/io/ib/clients/eoib/
H A Deib_rsrc.c133 uint_t num_needed; in eib_rsrc_grab_lsobufs() local
143 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()
/illumos-gate/usr/src/uts/common/io/ib/clients/ibd/
H A Dibd.c3713 uint_t num_needed; in ibd_acquire_lsobufs() local
3723 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()