Home
last modified time | relevance | path

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

12

/illumos-gate/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
/illumos-gate/usr/src/lib/libc/port/threads/
H A Dalloc.c231 if (bp->chunks == 0) in lmalloc()
232 bp->chunks = 1; in lmalloc()
234 bp->chunks <<= 1; in lmalloc()
236 bsize = CHUNKSIZE * bp->chunks; in lmalloc()
243 if ((bp->chunks >>= 1) == 0) { in lmalloc()
/illumos-gate/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()
/illumos-gate/usr/src/lib/libipmi/common/
H A Dipmi_util.c242 int i, j = 0, chunks, leftovers; in ipmi_decode_string() local
272 chunks = len / 3; in ipmi_decode_string()
279 for (i = 0; i < chunks; i++) { in ipmi_decode_string()
/illumos-gate/usr/src/tools/smatch/src/
H A Dcheck_atomic_inc_dec.c63 int start_pos, state_len, key_len, chunks, i; in get_best_match() local
69 chunks = 0; in get_best_match()
72 chunks++; in get_best_match()
73 if (chunks == 2) { in get_best_match()
H A Dcheck_locking.c525 int start_pos, state_len, key_len, chunks, i; in get_best_match() local
531 chunks = 0; in get_best_match()
534 chunks++; in get_best_match()
535 if (chunks == 2) { in get_best_match()
/illumos-gate/usr/src/uts/common/sys/scsi/adapters/pmcs/
H A Dpmcs_sgl.h64 pmcs_dmasgl_t *chunks; member
/illumos-gate/usr/src/lib/libumem/common/
H A Dumem.c1405 size_t color, chunks; in umem_slab_create() local
1430 chunks = (slabsize - color) / chunksize; in umem_slab_create()
1440 sp->slab_chunks = chunks; in umem_slab_create()
1442 ASSERT(chunks > 0); in umem_slab_create()
1443 while (chunks-- != 0) { in umem_slab_create()
2846 size_t chunks, waste, slabsize; in umem_cache_create() local
2850 for (chunks = 1; chunks <= UMEM_VOID_FRACTION; chunks++) { in umem_cache_create()
2851 slabsize = P2ROUNDUP(chunksize * chunks, in umem_cache_create()
2856 if ((slabsize / chunks) < chunksize) { in umem_cache_create()
2860 chunks = slabsize / chunksize; in umem_cache_create()
[all …]
/illumos-gate/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()
/illumos-gate/usr/src/cmd/mdb/common/modules/libumem/
H A Dumem.c1303 int chunks; in umem_walk_step() local
1384 chunks = sp->slab_chunks; in umem_walk_step()
1393 if (mdb_vread(ubase, chunks * chunksize, in umem_walk_step()
1404 (void) memset(valid, 1, chunks); in umem_walk_step()
1428 if (i == chunks) in umem_walk_step()
1432 sp, addr, chunks - i); in umem_walk_step()
1455 if (offs > chunks * chunksize) { in umem_walk_step()
4272 long chunks = slab.slab_chunks; in umem_malloc_info() local
4277 (c.cache_chunksize * chunks); in umem_malloc_info()
4281 chunks * in umem_malloc_info()
[all …]
/illumos-gate/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()
/illumos-gate/usr/src/lib/libeti/form/common/
H A Dchg_data.c77 _grow_field(FIELD *c, int chunks) in _grow_field() argument
101 grow = chunks * c->cols; in _grow_field()
111 grow = chunks * (c->rows + c->nrow); in _grow_field()
/illumos-gate/usr/src/uts/sun4v/cpu/
H A Dgeneric_copy.S264 ! in word size chunks right away
716 ! Four byte copy loop. %o2 is the number of 4 byte chunks to copy.
912 srl %o2, 3, %o2 ! Number of 8 byte chunks to copy
928 srl %o2, 2, %o2 ! Number of 4 byte chunks to copy
935 srl %o2, 1, %o2 ! Number of 2 byte chunks to copy
954 ! 4 byte copy loop. %o2 is number of 4 byte chunks to copy.
974 ! 2 byte aligned copy loop. %o2 is number of 2 byte chunks to
H A Dniagara_copy.S2572 ! in word size chunks right away
4513 srl %o2, 3, %o2 ! Number of 8 byte chunks to copy
4574 srl %o2, 1, %o2 ! Number of 2 byte chunks to copy
4636 ! two byte aligned copy loop. %o2 is the number of 2 byte chunks to
6680 srl %o2, 2, %o2 ! Number of 4 byte chunks to copy
6714 srl %o2, 1, %o2 ! Number of 2 byte chunks to copy
6740 ! with modifications. %o2 is number of 8 byte chunks to copy. When
6762 ! 4 byte copy loop. %o2 is number of 4 byte chunks to copy.
6782 ! 2 byte aligned copy loop. %o2 is number of 2 byte chunks to
/illumos-gate/usr/src/uts/common/os/
H A Dkmem.c1503 size_t color, chunks; in kmem_slab_create() local
1536 chunks = (slabsize - color) / chunksize; in kmem_slab_create()
1539 chunks = (slabsize - sizeof (kmem_slab_t) - color) / chunksize; in kmem_slab_create()
1546 sp->slab_chunks = chunks; in kmem_slab_create()
1551 ASSERT(chunks > 0); in kmem_slab_create()
1552 while (chunks-- != 0) { in kmem_slab_create()
3901 size_t chunks, bestfit, waste, slabsize; in kmem_cache_create() local
3905 for (chunks = 1; chunks <= KMEM_VOID_FRACTION; chunks++) { in kmem_cache_create()
3906 slabsize = P2ROUNDUP(chunksize * chunks, in kmem_cache_create()
3908 chunks = slabsize / chunksize; in kmem_cache_create()
[all …]
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dkmem.c1348 int chunks; in kmem_walk_step() local
1436 chunks = sp->slab_chunks; in kmem_walk_step()
1445 if (mdb_vread(ubase, chunks * chunksize, in kmem_walk_step()
1456 (void) memset(valid, 1, chunks); in kmem_walk_step()
1467 dprintf(("refcnt is %d; chunks is %d\n", sp->slab_refcnt, chunks)); in kmem_walk_step()
1474 for (i = sp->slab_refcnt; i <= chunks; i++) { in kmem_walk_step()
1480 if (i == chunks) in kmem_walk_step()
1484 sp, addr, chunks - i); in kmem_walk_step()
1507 if (offs > chunks * chunksize) { in kmem_walk_step()
1574 for (i = 0; ret == WALK_NEXT && i < chunks; i++) { in kmem_walk_step()
/illumos-gate/usr/src/boot/libsa/zfs/
H A Dzfsimpl.c2433 int chunks, i; in mzap_lookup() local
2439 chunks = size / MZAP_ENT_LEN - 1; in mzap_lookup()
2440 for (i = 0; i < chunks; i++) { in mzap_lookup()
2789 int chunks, i, rc; in mzap_list() local
2796 chunks = size / MZAP_ENT_LEN - 1; in mzap_list()
2797 for (i = 0; i < chunks; i++) { in mzap_list()
2944 int chunks, i; in mzap_rlookup() local
2950 chunks = size / MZAP_ENT_LEN - 1; in mzap_rlookup()
2951 for (i = 0; i < chunks; i++) { in mzap_rlookup()
/illumos-gate/usr/src/common/bignum/
H A Dbignum.h179 #error HWCAP works only with 32-bit bignum chunks
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dfsys_zfs.c574 int i, chunks; in mzap_lookup() local
577 chunks = objsize / MZAP_ENT_LEN - 1; in mzap_lookup()
578 for (i = 0; i < chunks; i++) { in mzap_lookup()
/illumos-gate/usr/src/uts/sun4u/cpu/
H A Dspitfire_copy.S1741 ! in word size chunks right away
2326 srl %o2, 3, %o2 ! Number of 8 byte chunks to copy
2389 srl %o2, 1, %o2 ! Number of 2 byte chunks to copy
2451 ! two byte aligned copy loop. %o2 is the number of 2 byte chunks to
3555 srl %o2, 2, %o2 ! Number of 4 byte chunks to copy
3589 srl %o2, 1, %o2 ! Number of 2 byte chunks to copy
3615 ! with modifications. %o2 is number of 8 byte chunks to copy. When
3637 ! 4 byte copy loop. %o2 is number of 4 byte chunks to copy.
3657 ! 2 byte aligned copy loop. %o2 is number of 2 byte chunks to
/illumos-gate/usr/src/lib/libc/inc/
H A Dthr_uberdata.h848 size_t chunks; /* number of 64K blocks mmap()ed last time */ member
857 size32_t chunks; member
/illumos-gate/usr/src/uts/common/xen/io/
H A Dxnf.c1902 int pages, chunks, slots, slots_free; in xnf_send() local
1956 for (ml = mp, pages = 0, chunks = 0, length = 0; ml != NULL; in xnf_send()
1957 ml = ml->b_cont, chunks++) { in xnf_send()
1961 DTRACE_PROBE3(packet, int, length, int, chunks, int, pages); in xnf_send()
/illumos-gate/usr/src/uts/common/io/nxge/
H A Dnxge_rxdma.c3195 uint32_t chunks; in nxge_map_rxdma() local
3222 chunks = nxgep->rx_buf_pool_p->num_chunks[channel]; in nxge_map_rxdma()
3230 chunks, control, rcr_ring, mailbox); in nxge_map_rxdma()
/illumos-gate/usr/src/uts/common/io/scsi/adapters/pmcs/
H A Dpmcs_subr.c6248 sgl = tc->chunks; in pmcs_dma_load()
6249 (void) memset(tc->chunks, 0, PMCS_SGL_CHUNKSZ); in pmcs_dma_load()
6291 (void) memset(tc->chunks, 0, PMCS_SGL_CHUNKSZ); in pmcs_dma_load()
6292 sgl = tc->chunks; in pmcs_dma_load()
6359 np->chunks = (void *)&pchunk->addrp[off]; in pmcs_idma_chunks()

12