Searched refs:num_sect (Results 1 – 1 of 1) sorted by relevance
2497 int num_sect = rqSz / SG_SECTOR_SZ; in sg_low_malloc() local2502 ++num_sect; in sg_low_malloc()2503 rqSz = num_sect * SG_SECTOR_SZ; in sg_low_malloc()2505 while (num_sect > 0) { in sg_low_malloc()2506 if ((num_sect <= sg_pool_secs_avail) && in sg_low_malloc()2507 (scsi_dma_free_sectors > (SG_LOW_POOL_THRESHHOLD + num_sect))) { in sg_low_malloc()2513 sg_pool_secs_avail -= num_sect; in sg_low_malloc()2519 num_sect /= 2; /* try half as many */ in sg_low_malloc()2520 rqSz = num_sect * SG_SECTOR_SZ; in sg_low_malloc()2605 int num_sect = size / SG_SECTOR_SZ; in sg_low_free() local[all …]