Lines Matching refs:ppmax

230 	if (idx >= ppm->ppmax) {  in cxgbi_ppm_ppod_release()
231 pr_warn("ippm: idx too big %u > %u.\n", idx, ppm->ppmax); in cxgbi_ppm_ppod_release()
349 unsigned int ppmax = (*total) / num_possible_cpus(); in ppm_alloc_cpu_pool() local
357 if (ppmax > max) in ppm_alloc_cpu_pool()
358 ppmax = max; in ppm_alloc_cpu_pool()
361 bmap = ppmax / BITS_PER_TYPE(unsigned long); in ppm_alloc_cpu_pool()
365 ppmax = (bmap * sizeof(unsigned long)) << 3; in ppm_alloc_cpu_pool()
378 count += ppmax; in ppm_alloc_cpu_pool()
382 *pcpu_ppmax = ppmax; in ppm_alloc_cpu_pool()
400 unsigned int ppmax; in cxgbi_ppm_init() local
418 ppmax = (iscsi_edram_size + iscsi_size) >> PPOD_SIZE_SHIFT; in cxgbi_ppm_init()
422 ndev->name, ppm_pp, ppm, ppm->ppmax, ppmax); in cxgbi_ppm_init()
428 ppmax_pool = ppmax / reserve_factor; in cxgbi_ppm_init()
436 ndev->name, ppmax, ppmax_pool, pool_index_max); in cxgbi_ppm_init()
439 ppod_bmap_size = BITS_TO_LONGS(ppmax - ppmax_pool); in cxgbi_ppm_init()
441 ppmax * (sizeof(struct cxgbi_ppod_data)) + in cxgbi_ppm_init()
448 ppm->ppod_bmap = (unsigned long *)(&ppm->ppod_data[ppmax]); in cxgbi_ppm_init()
450 if ((ppod_bmap_size >> 3) > (ppmax - ppmax_pool)) { in cxgbi_ppm_init()
451 unsigned int start = ppmax - ppmax_pool; in cxgbi_ppm_init()
454 bitmap_set(ppm->ppod_bmap, ppmax, end - start); in cxgbi_ppm_init()
456 __func__, ppmax, ppmax_pool, ppod_bmap_size, start, in cxgbi_ppm_init()
477 ppm->ppmax = ppmax; in cxgbi_ppm_init()
482 ppm->bmap_index_max = ppmax - ppmax_pool; in cxgbi_ppm_init()
494 ndev->name, ppm_pp, *ppm_pp, ppm->ppmax, ppmax); in cxgbi_ppm_init()
504 ndev->name, ppm_pp, ppm, ppm->base_idx, ppm->ppmax, PAGE_SIZE, in cxgbi_ppm_init()
516 unsigned int cxgbi_tagmask_set(unsigned int ppmax) in cxgbi_tagmask_set() argument
518 unsigned int bits = fls(ppmax); in cxgbi_tagmask_set()
524 ppmax, ppmax, bits, 1 << (bits + PPOD_IDX_SHIFT)); in cxgbi_tagmask_set()