Home
last modified time | relevance | path

Searched refs:chunks (Results 1 – 25 of 33) sorted by relevance

12

/titanic_53/usr/src/lib/libc/port/threads/
H A Dalloc.c230 if (bp->chunks == 0) in lmalloc()
231 bp->chunks = 1; in lmalloc()
233 bp->chunks <<= 1; in lmalloc()
235 bsize = CHUNKSIZE * bp->chunks; in lmalloc()
242 if ((bp->chunks >>= 1) == 0) { in lmalloc()
/titanic_53/usr/src/cmd/isns/isnsd/
H A Dhtable.c550 newsz * tab->chunks, sizeof (htab_item_t *)); in enlarge_htab()
556 while (i < tab->chunks) { in enlarge_htab()
617 uint16_t chunks in htab_create() argument
626 chunks > 0) { in htab_create()
631 count * chunks, sizeof (htab_item_t *)); in htab_create()
636 tab->chunks = chunks; in htab_create()
737 items = (htab_item_t *)calloc(tab->chunks, sizeof (htab_item_t)); in htab_add()
791 if (i < tab->chunks) { in htab_add()
906 if (zhizi != NULL && i < tab->chunks) { in htab_remove()
1018 ASSERT(tab->chunks == 1 && x != NULL); in htab_lookup()
H A Disns_htab.h65 uint16_t chunks; member
/titanic_53/usr/src/uts/common/io/
H A Dksyms.c126 int chunks, i; in ksyms_buflist_alloc() local
129 chunks = howmany(size, BUF_SIZE); in ksyms_buflist_alloc()
131 if (hdr->nchunks >= chunks) in ksyms_buflist_alloc()
138 for (i = chunks - hdr->nchunks; i > 0; i--) { in ksyms_buflist_alloc()
155 hdr->nchunks = chunks; in ksyms_buflist_alloc()
159 return (chunks * BUF_SIZE); in ksyms_buflist_alloc()
/titanic_53/usr/src/lib/libipmi/common/
H A Dipmi_util.c244 int i, j = 0, chunks, leftovers; in ipmi_decode_string() local
274 chunks = len / 3; in ipmi_decode_string()
281 for (i = 0; i < chunks; i++) { in ipmi_decode_string()
/titanic_53/usr/src/uts/sun4u/starcat/io/
H A Diosram.c71 static iosram_chunk_t *chunks = NULL; /* array of TOC entries */ variable
1504 for (i = 0, chunkp = chunks; i < nchunks; i++, in iosram_softintr()
2025 } else if ((chunks == NULL) && (iosram_read_toc(softp) != 0)) { in iosram_switch_tunnel()
2033 if ((prev_master == NULL) && (chunks != NULL)) { in iosram_switch_tunnel()
2034 kmem_free(chunks, nchunks * sizeof (iosram_chunk_t)); in iosram_switch_tunnel()
2035 chunks = NULL; in iosram_switch_tunnel()
2857 if (chunks != NULL) { in iosram_read_toc()
2858 kmem_free(chunks, nchunks * sizeof (iosram_chunk_t)); in iosram_read_toc()
2860 chunks = new_chunks; in iosram_read_toc()
2888 if (chunks) { in iosram_init_hashtab()
[all …]
H A Ddrmach.c6206 uint64_t chunks, pa, mask, sz; in drmach_mem_init_size() local
6225 chunks = gdcd->dcd_chunk_list.dcl_chunks; in drmach_mem_init_size()
6226 while (chunks-- != 0) { in drmach_mem_init_size()
6625 uint64_t chunks, pa, mask; in drmach_mem_get_memlist() local
6640 chunks = gdcd->dcd_chunk_list.dcl_chunks; in drmach_mem_get_memlist()
6641 while (chunks-- != 0) { in drmach_mem_get_memlist()
/titanic_53/usr/src/uts/common/sys/scsi/adapters/pmcs/
H A Dpmcs_sgl.h64 pmcs_dmasgl_t *chunks; member
/titanic_53/usr/src/lib/libumem/common/
H A Dumem.c1401 size_t color, chunks; in umem_slab_create() local
1426 chunks = (slabsize - color) / chunksize; in umem_slab_create()
1429 chunks = (slabsize - sizeof (umem_slab_t) - color) / chunksize; in umem_slab_create()
1436 sp->slab_chunks = chunks; in umem_slab_create()
1438 ASSERT(chunks > 0); in umem_slab_create()
1439 while (chunks-- != 0) { in umem_slab_create()
2842 size_t chunks, bestfit, waste, slabsize; in umem_cache_create() local
2845 for (chunks = 1; chunks <= UMEM_VOID_FRACTION; chunks++) { in umem_cache_create()
2846 slabsize = P2ROUNDUP(chunksize * chunks, in umem_cache_create()
2851 if ((slabsize / chunks) < chunksize) { in umem_cache_create()
[all …]
/titanic_53/usr/src/uts/sun4u/os/
H A Dcpr_impl.c1007 i_cpr_compress_and_save(int chunks, pfn_t spfn, pgcnt_t pages) in i_cpr_compress_and_save() argument
1021 descp = i_cpr_storage_desc_base + chunks - 1; in i_cpr_compress_and_save()
1025 (void *)i_cpr_storage_desc_base, chunks, in i_cpr_compress_and_save()
1164 int chunks; in i_cpr_storage_desc_alloc() local
1174 chunks = cpr_contig_pages(NULL, STORAGE_DESC_ALLOC) + in i_cpr_storage_desc_alloc()
1176 npages = mmu_btopr(sizeof (**basepp) * (pgcnt_t)chunks); in i_cpr_storage_desc_alloc()
1177 CPR_DEBUG(CPR_DEBUG7, "%s chunks %d, ", str, chunks); in i_cpr_storage_desc_alloc()
/titanic_53/usr/src/cmd/mdb/common/modules/libumem/
H A Dumem.c1302 int chunks; in umem_walk_step() local
1383 chunks = sp->slab_chunks; in umem_walk_step()
1392 if (mdb_vread(ubase, chunks * chunksize, in umem_walk_step()
1403 (void) memset(valid, 1, chunks); in umem_walk_step()
1414 dprintf(("refcnt is %d; chunks is %d\n", sp->slab_refcnt, chunks)); in umem_walk_step()
1421 for (i = sp->slab_refcnt; i <= chunks; i++) { in umem_walk_step()
1427 if (i == chunks) in umem_walk_step()
1431 sp, addr, chunks - i); in umem_walk_step()
1454 if (offs > chunks * chunksize) { in umem_walk_step()
1521 for (i = 0; ret == WALK_NEXT && i < chunks; i++) { in umem_walk_step()
[all …]
/titanic_53/usr/src/uts/common/cpr/
H A Dcpr_dump.c1065 int chunks = 0, error = 0; in cpr_contig_pages() local
1086 chunks++; in cpr_contig_pages()
1089 chunks, spfn + i, j); in cpr_contig_pages()
1116 return (chunks); in cpr_contig_pages()
/titanic_53/usr/src/lib/libeti/form/common/
H A Dchg_data.c79 _grow_field(FIELD *c, int chunks) in _grow_field() argument
103 grow = chunks * c->cols; in _grow_field()
113 grow = chunks * (c->rows + c->nrow); in _grow_field()
/titanic_53/usr/src/boot/sys/boot/zfs/
H A Dzfsimpl.c1378 int chunks, i; in mzap_lookup() local
1387 chunks = size / MZAP_ENT_LEN - 1; in mzap_lookup()
1389 for (i = 0; i < chunks; i++) { in mzap_lookup()
1563 int chunks, i, rc; in mzap_list() local
1571 chunks = size / MZAP_ENT_LEN - 1; in mzap_list()
1573 for (i = 0; i < chunks; i++) { in mzap_list()
1705 int chunks, i; in mzap_rlookup() local
1714 chunks = size / MZAP_ENT_LEN - 1; in mzap_rlookup()
1716 for (i = 0; i < chunks; i++) { in mzap_rlookup()
/titanic_53/usr/src/uts/sun4v/cpu/
H A Dgeneric_copy.s284 ! in word size chunks right away
765 ! Four byte copy loop. %o2 is the number of 4 byte chunks to copy.
994 srl %o2, 3, %o2 ! Number of 8 byte chunks to copy
1010 srl %o2, 2, %o2 ! Number of 4 byte chunks to copy
1017 srl %o2, 1, %o2 ! Number of 2 byte chunks to copy
1036 ! 4 byte copy loop. %o2 is number of 4 byte chunks to copy.
1056 ! 2 byte aligned copy loop. %o2 is number of 2 byte chunks to
H A Dniagara_copy.s2594 ! in word size chunks right away
4564 srl %o2, 3, %o2 ! Number of 8 byte chunks to copy
4625 srl %o2, 1, %o2 ! Number of 2 byte chunks to copy
4687 ! two byte aligned copy loop. %o2 is the number of 2 byte chunks to
6764 srl %o2, 2, %o2 ! Number of 4 byte chunks to copy
6798 srl %o2, 1, %o2 ! Number of 2 byte chunks to copy
6824 ! with modifications. %o2 is number of 8 byte chunks to copy. When
6846 ! 4 byte copy loop. %o2 is number of 4 byte chunks to copy.
6866 ! 2 byte aligned copy loop. %o2 is number of 2 byte chunks to
/titanic_53/usr/src/uts/sun4u/starcat/sys/
H A Diosramvar.h218 iosram_chunk_t *chunks; /* ptr to iosram_chunk array */ member
/titanic_53/usr/src/uts/common/os/
H A Dkmem.c1490 size_t color, chunks; in kmem_slab_create() local
1523 chunks = (slabsize - color) / chunksize; in kmem_slab_create()
1526 chunks = (slabsize - sizeof (kmem_slab_t) - color) / chunksize; in kmem_slab_create()
1533 sp->slab_chunks = chunks; in kmem_slab_create()
1538 ASSERT(chunks > 0); in kmem_slab_create()
1539 while (chunks-- != 0) { in kmem_slab_create()
3817 size_t chunks, bestfit, waste, slabsize; in kmem_cache_create() local
3820 for (chunks = 1; chunks <= KMEM_VOID_FRACTION; chunks++) { in kmem_cache_create()
3821 slabsize = P2ROUNDUP(chunksize * chunks, in kmem_cache_create()
3823 chunks = slabsize / chunksize; in kmem_cache_create()
[all …]
/titanic_53/usr/src/cmd/mdb/common/modules/genunix/
H A Dkmem.c1347 int chunks; in kmem_walk_step() local
1435 chunks = sp->slab_chunks; in kmem_walk_step()
1444 if (mdb_vread(ubase, chunks * chunksize, in kmem_walk_step()
1455 (void) memset(valid, 1, chunks); in kmem_walk_step()
1466 dprintf(("refcnt is %d; chunks is %d\n", sp->slab_refcnt, chunks)); in kmem_walk_step()
1473 for (i = sp->slab_refcnt; i <= chunks; i++) { in kmem_walk_step()
1479 if (i == chunks) in kmem_walk_step()
1483 sp, addr, chunks - i); in kmem_walk_step()
1506 if (offs > chunks * chunksize) { in kmem_walk_step()
1573 for (i = 0; ret == WALK_NEXT && i < chunks; i++) { in kmem_walk_step()
/titanic_53/usr/src/common/bignum/
H A Dbignum.h179 #error HWCAP works only with 32-bit bignum chunks
/titanic_53/usr/src/grub/grub-0.97/stage2/
H A Dfsys_zfs.c573 int i, chunks; in mzap_lookup() local
576 chunks = objsize / MZAP_ENT_LEN - 1; in mzap_lookup()
577 for (i = 0; i < chunks; i++) { in mzap_lookup()
/titanic_53/usr/src/uts/sun4u/cpu/
H A Dspitfire_copy.s1763 ! in word size chunks right away
2377 srl %o2, 3, %o2 ! Number of 8 byte chunks to copy
2440 srl %o2, 1, %o2 ! Number of 2 byte chunks to copy
2502 ! two byte aligned copy loop. %o2 is the number of 2 byte chunks to
3639 srl %o2, 2, %o2 ! Number of 4 byte chunks to copy
3673 srl %o2, 1, %o2 ! Number of 2 byte chunks to copy
3699 ! with modifications. %o2 is number of 8 byte chunks to copy. When
3721 ! 4 byte copy loop. %o2 is number of 4 byte chunks to copy.
3741 ! 2 byte aligned copy loop. %o2 is number of 2 byte chunks to
/titanic_53/usr/src/lib/libc/inc/
H A Dthr_uberdata.h841 size_t chunks; /* number of 64K blocks mmap()ed last time */ member
850 size32_t chunks; member
/titanic_53/usr/src/boot/lib/libz/doc/
H A Dtxtvsbin.txt92 large chunks of textual data. Furthermore, "polluted" plain text should
/titanic_53/usr/src/boot/lib/libz/
H A DFAQ244 Each call of inflate() or deflate() is limited to input and output chunks
246 type, but there is no limit to the number of chunks. Note however that the

12