Lines Matching refs:nents
450 genasm_malloc(void *base, size_t len, int nents, int *umem_alloc_sizes)
459 if (nents >= 2)
460 total += sizeof (inicache) + sizeof (gencache) * (nents - 2);
471 umem_alloc_sizes[nents-1]);
476 if (nents > 1) {
483 for (ii = 1; ii < nents - 1; ii++) {
490 bp += genasm_lastcache(bp, nents - 1, umem_alloc_sizes[nents - 1],
499 genasm_free(void *base, size_t len, int nents, int *umem_alloc_sizes)
506 /* Assume that nents has already been audited for us */
508 if (nents >= 2)
509 total += sizeof (inicache) + sizeof (gencache) * (nents - 2);
521 umem_alloc_sizes[nents - 1]);
526 if (nents > 1) {
533 for (ii = 1; ii < nents - 1; ii++) {
540 bp += genasm_lastcache(bp, nents - 1, umem_alloc_sizes[nents - 1],
552 int nents, i;
570 nents = _tmem_get_nentries();
572 if (UMEM_GENASM_MAX64 < nents)
573 nents = UMEM_GENASM_MAX64;
575 if (nc < nents)
576 nents = nc;
579 if (nents == 0 || umem_ptc_size == 0)
583 if (genasm_malloc(mptr, umem_genasm_msize, nents, cp) != 0)
586 if (genasm_free(fptr, umem_genasm_fsize, nents, cp) != 0)
600 for (i = 0; i < nents; i++)