Lines Matching defs:pool

153 	[SC_KERNEL] = { .size  = SCS_POOL_0,	/* even divide, pool 0 */
157 [SC_USER] = { .size = SCS_POOL_0, /* even divide, pool 0 */
164 /* send context memory pool configuration */
170 /* default memory pool configuration: 100% in pool 0 */
173 { 10000, -1 }, /* pool 0 */
174 { 0, -1 }, /* pool 1 */
177 /* memory pool information, used when calculating final sizes */
183 int count; /* count of contexts in the pool */
184 int blocks; /* block size of the pool */
189 * Convert a pool wildcard to a valid pool index. The wildcards
195 * Return -1 on non-wildcard input, otherwise convert to a pool number.
219 * Read the send context memory pool configuration and send context
254 * - copy the centipercents/absolute sizes from the pool config
276 "Send context memory pool %d: both the block count and centipercent are invalid\n",
297 "Send context memory pool centipercent is %d, expecting 10000\n",
302 /* the absolute pool total cannot be more than the mem total */
306 "Send context memory pool absolute block count %d is larger than the memory size %d\n",
315 * - add up non-memory pool block sizes
316 * - add up memory pool user counts
322 int pool;
349 * Sanity check pool: The conversion will return a pool
354 pool = wildcard_to_pool(size);
355 if (pool == -1) { /* non-wildcard */
357 } else if (pool < NUM_SC_POOLS) { /* valid wildcard */
358 mem_pool_info[pool].count += count;
362 "%s send context invalid pool wildcard %d\n",
378 /* step 3: calculate the blocks in the pools, and pool context sizes */
383 "Send context fixed pool sizes, %u, larger than pool block count %u\n",
387 /* subtract off the fixed pool blocks */
400 "Send context memory pool %d has %u contexts, but no blocks\n",
409 "Send context memory pool %d has %u blocks, but zero contexts\n",
417 /* step 4: fill in the context type sizes from the pool sizes */
421 unsigned pool = wildcard_to_pool(dd->sc_sizes[i].size);
423 WARN_ON_ONCE(pool >= NUM_SC_POOLS);
424 dd->sc_sizes[i].size = mem_pool_info[pool].size;