Lines Matching defs:blocks
172 /* centi%, abs blocks */
180 * 100th of 1% of memory to use, -1 if blocks
184 int blocks; /* block size of the pool */
185 int size; /* context size, in blocks */
257 * - add up absolute blocks, then later check for over-commit
271 } else if (ab >= 0) { /* absolute blocks valid */
282 mem_pool_info[i].blocks = ab;
285 /* do not use both % and absolute blocks for different pools */
289 "All send context memory pools must be described as either centipercent or blocks, no mixing between pools\n");
378 /* step 3: calculate the blocks in the pools, and pool context sizes */
387 /* subtract off the fixed pool blocks */
393 /* % beats absolute blocks */
395 pi->blocks = (pool_blocks * pi->centipercent) / 10000;
397 if (pi->blocks == 0 && pi->count != 0) {
400 "Send context memory pool %d has %u contexts, but no blocks\n",
405 /* warn about wasted blocks */
406 if (pi->blocks != 0)
409 "Send context memory pool %d has %u blocks, but zero contexts\n",
410 i, pi->blocks);
413 pi->size = pi->blocks / pi->count;
436 dd_dev_info(dd, "unused send context blocks: %d\n", extra);
1279 "PIO send context init %s while initializing all PIO blocks\n",
1457 unsigned long blocks = dwords_to_blocks(dw_len);
1470 if (blocks > avail) {
1481 if (blocks > avail) {
1499 sc->fill += blocks;
1501 sc->fill_wrap += blocks;