Lines Matching defs:blocks
130 /* centi%, abs blocks */
138 * 100th of 1% of memory to use, -1 if blocks
142 int blocks; /* block size of the pool */
143 int size; /* context size, in blocks */
215 * - add up absolute blocks, then later check for over-commit
229 } else if (ab >= 0) { /* absolute blocks valid */
240 mem_pool_info[i].blocks = ab;
243 /* do not use both % and absolute blocks for different pools */
247 "All send context memory pools must be described as either centipercent or blocks, no mixing between pools\n");
336 /* step 3: calculate the blocks in the pools, and pool context sizes */
345 /* subtract off the fixed pool blocks */
351 /* % beats absolute blocks */
353 pi->blocks = (pool_blocks * pi->centipercent) / 10000;
355 if (pi->blocks == 0 && pi->count != 0) {
358 "Send context memory pool %d has %u contexts, but no blocks\n",
363 /* warn about wasted blocks */
364 if (pi->blocks != 0)
367 "Send context memory pool %d has %u blocks, but zero contexts\n",
368 i, pi->blocks);
371 pi->size = pi->blocks / pi->count;
394 dd_dev_info(dd, "unused send context blocks: %d\n", extra);
1237 "PIO send context init %s while initializing all PIO blocks\n",
1415 unsigned long blocks = dwords_to_blocks(dw_len);
1428 if (blocks > avail) {
1439 if (blocks > avail) {
1457 sc->fill += blocks;
1459 sc->fill_wrap += blocks;