/illumos-gate/usr/src/uts/intel/io/pci/ |
H A D | pci_memlist.c | 155 struct memlist *chunk; local 168 chunk = *listp; 169 while (chunk) { 170 chunk_begin = chunk->ml_address; 171 chunk_end = chunk->ml_address + chunk->ml_size - 1; 178 /* spans entire chunk - delete chunk */ 179 delete_chunk = chunk; 181 chunk [all...] |
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | zap_leaf.c | 28 * chunk number n means l_chunk[n], even though the header precedes it. 44 #define CHAIN_END 0xffff /* end of the chunk chain */ 189 int chunk; local 193 chunk = zap_leaf_phys(l)->l_hdr.lh_freelist; 194 ASSERT3U(chunk, <, ZAP_LEAF_NUMCHUNKS(l)); 195 ASSERT3U(ZAP_LEAF_CHUNK(l, chunk).l_free.lf_type, ==, ZAP_CHUNK_FREE); 198 ZAP_LEAF_CHUNK(l, chunk).l_free.lf_next; 202 return (chunk); 206 zap_leaf_chunk_free(zap_leaf_t *l, uint16_t chunk) argument 208 struct zap_leaf_free *zlf = &ZAP_LEAF_CHUNK(l, chunk) 239 uint16_t chunk = zap_leaf_chunk_alloc(l); local 268 uint16_t chunk = *chunkp; local 283 zap_leaf_array_read(zap_leaf_t *l, uint16_t chunk, int array_int_len, int array_len, int buf_int_len, uint64_t buf_len, void *buf) argument 342 zap_leaf_array_match(zap_leaf_t *l, zap_name_t *zn, int chunk, int array_numints) argument 409 uint16_t chunk = *chunkp; local 457 uint16_t chunk; local 585 uint16_t chunk; local 684 uint64_t chunk; local 744 zap_leaf_transfer_array(zap_leaf_t *l, uint16_t chunk, zap_leaf_t *nl) argument 775 uint16_t chunk; local 864 int chunk = zap_leaf_phys(l)->l_hash[i]; local [all...] |
/illumos-gate/usr/src/lib/scsi/plugins/ses/SUN/common/ |
H A D | sun_enclosure.c | 51 uint64_t chunk; local 95 chunk = 512; 97 chunk = 65536; 99 chunk = 512 * sfbip->sfbi_fw_upload_max_chunk_sz; 102 LIBSES_EN_PROP_FIRMWARE_CHUNK_SIZE, chunk);
|
/illumos-gate/usr/src/uts/common/io/sfxge/common/ |
H A D | efx_bootcfg.c | 247 uint8_t *chunk; local 283 EFSYS_KMEM_ALLOC(enp->en_esip, chunk_length, chunk); 284 if (chunk == NULL) { 300 /* Fill chunk */ 301 (void) memset(chunk, 0x0, chunk_length); 303 (void) memcpy(chunk, data + offset, 308 chunk[0] -= checksum; 311 offset, (caddr_t)chunk, remaining)) != 0) 317 EFSYS_KMEM_FREE(enp->en_esip, chunk_length, chunk); 326 EFSYS_KMEM_FREE(enp->en_esip, chunk_length, chunk); [all...] |
H A D | siena_nvram.c | 93 size_t chunk; local 97 chunk = MIN(size, SIENA_NVRAM_CHUNK); 99 if ((rc = efx_mcdi_nvram_read(enp, partn, offset, data, chunk, 104 size -= chunk; 105 data += chunk; 106 offset += chunk; 146 size_t chunk; local 150 chunk = MIN(size, SIENA_NVRAM_CHUNK); 153 data, chunk)) != 0) { 157 size -= chunk; [all...] |
/illumos-gate/usr/src/boot/sys/boot/ofw/libofw/ |
H A D | ofw_copy.c | 139 size_t resid, chunk, get; local 145 chunk = min(READIN_BUF, len); 146 buf = malloc(chunk); 159 get = min(chunk, resid);
|
/illumos-gate/usr/src/boot/sys/boot/common/ |
H A D | misc.c | 101 size_t chunk, resid; local 106 chunk = min(sizeof(buf), resid); 107 archsw.arch_copyin(buf, dest, chunk); 108 resid -= chunk; 109 dest += chunk;
|
/illumos-gate/usr/src/uts/common/vm/ |
H A D | hat_refmod.c | 77 hat_resvstat(size_t chunk, struct as *as, caddr_t addr) argument 95 size_t chunk; /* mapped size for stats */ local 113 chunk = hat_get_mapped_size(as->a_hat); 114 chunk = (btop(chunk)/HRM_PAGES); 115 if (chunk < HRM_BLIST_INCR) 116 chunk = 0; 118 hrm_getblk((int)chunk); 281 hrm_getblk(int chunk) argument 299 * handle the current chunk [all...] |
/illumos-gate/usr/src/uts/common/avs/ns/dsw/ |
H A D | ii_tree.c | 52 * This file contains the chunk map lookup functions of II. 55 #define CHUNK_FBA(chunk) DSW_CHK2FBA(chunk) 68 chunkid_t vchunk_id; /* virtual chunk id */ 318 /* link chunk onto overflow free list */ 321 /* write old free list head into chunk */ 349 /* put overflow chunk on the overflow volume free list */ 351 ii_free_overflow(_ii_info_t *ip, chunkid_t chunk) argument 357 if (!II_ISOVERFLOW(chunk)) { 361 chunk 451 chunkid_t chunk; local [all...] |
H A D | dsw_dev.c | 161 #define _ii_unlock_chunk(ip, chunk) _ii_unlock_chunks(ip, chunk, 1) 1881 * copy with a bitmap file stored mapping for chunk locations. 1892 /* do not add in partial chunk at end */ 3999 /* take 1 off as chunk 0 contains header */ 6509 * avoid deadlocks on the same chunk. 6674 * Avoid deadlock with COW on same chunk of sibling shadow 6675 * by unlocking this chunk before copying all other sibling 6680 * Only using a single chunk when copying to master avoids 6733 * Reacquire chunk loc 7250 _ii_lock_chunk(_ii_info_t *ip, chunkid_t chunk) argument 7287 _ii_trylock_chunk(_ii_info_t *ip, chunkid_t chunk) argument 7322 _ii_unlock_chunks(_ii_info_t *ip, chunkid_t chunk, int n) argument 7801 _ii_ab_tst_shd_bit(_ii_info_t *ip, chunkid_t chunk) argument 7838 _ii_ab_set_shd_bit(_ii_info_t *ip, chunkid_t chunk) argument 7887 _ii_ab_tst_copy_bit(_ii_info_t *ip, chunkid_t chunk) argument 7924 _ii_ab_set_copy_bit(_ii_info_t *ip, chunkid_t chunk) argument 7974 _ii_ab_clr_copy_bits(_ii_info_t *ip, chunkid_t chunk, int nchunks) argument 8090 chunkid_t chunk; local 8552 _ii_km_tst_shd_bit(_ii_info_t *ip, chunkid_t chunk) argument 8575 _ii_km_set_shd_bit(_ii_info_t *ip, chunkid_t chunk) argument 8604 _ii_km_tst_copy_bit(_ii_info_t *ip, chunkid_t chunk) argument 8627 _ii_km_set_copy_bit(_ii_info_t *ip, chunkid_t chunk) argument 8653 _ii_km_clr_copy_bits(_ii_info_t *ip, chunkid_t chunk, int nchunks) argument 8776 _ii_km_next_copy_bit(_ii_info_t *ip, chunkid_t chunk, chunkid_t maxchunk, int want, int *got) argument [all...] |
/illumos-gate/usr/src/uts/common/io/ib/clients/iser/ |
H A D | iser_resource.c | 373 iser_mr_t *chunk, *next_chunk; local 378 for (chunk = avl_first(&vmr_pool->ivmp_mr_list); chunk != NULL; 379 chunk = next_chunk) { 380 next_chunk = AVL_NEXT(&vmr_pool->ivmp_mr_list, chunk); 381 avl_remove(&vmr_pool->ivmp_mr_list, chunk); 382 iser_vmem_chunk_free(vmr_pool->ivmp_hca, chunk); 425 /* Free the chunk we just allocated */ 474 /* See if this chunk contains the specified address range */ 478 /* Yes, this chunk contain 496 void *chunk = NULL; local 532 void *chunk = (void *)(uintptr_t)iser_mr->is_mrva; local [all...] |
/illumos-gate/usr/src/uts/common/crypto/io/ |
H A D | dca_rng.c | 90 uint16_t chunk; local 105 chunk = ROUNDUP(len, sizeof (uint32_t)); 131 if (chunk > reqp->dr_obuf_head.dc_buffer_length) 134 reqp->dr_out_len = chunk; 137 reqp->dr_pkt_length = (uint16_t)chunk;
|
/illumos-gate/usr/src/cmd/ptools/pmap/ |
H A D | pmap.c | 84 * Per-page information for a memory chunk. 87 * chunks. The chunk information is stored in the memory_chunk structure. 1468 mem_chunk_init(memory_chunk_t *chunk, uintptr_t end, size_t psz) argument 1470 chunk->end_addr = end; 1471 chunk->page_size = psz; 1472 chunk->page_index = 0; 1473 chunk->chunk_start = chunk->chunk_end = 0; 1477 * Create a new chunk of addresses starting from vaddr. 1478 * Pass the whole chunk t 1482 mem_chunk_get(memory_chunk_t *chunk, uintptr_t vaddr) argument 1611 addr_to_lgrp(memory_chunk_t *chunk, uintptr_t vaddr, size_t *psz) argument [all...] |
/illumos-gate/usr/src/lib/librsm/common/ |
H A D | rsmlib.c | 401 rsm_pollfd_chunk_t *chunk; local 407 chunk = pollfd_table.buckets[hash]; 408 while (chunk) { 409 if (chunk->nfree > 0) 411 chunk = chunk->next; 414 if (!chunk) { /* couldn't find a free chunk - allocate a new one */ 415 chunk = malloc(sizeof (rsm_pollfd_chunk_t)); 416 if (!chunk) { 462 rsm_pollfd_chunk_t *chunk; local 502 rsm_pollfd_chunk_t *chunk; local [all...] |
/illumos-gate/usr/src/uts/common/io/comstar/port/srpt/ |
H A D | srpt_ioc.c | 1381 srpt_mr_t *chunk; local 1397 chunk = srpt_vmem_chunk_alloc(result, chunksize); 1399 avl_add(&result->svp_mr_list, chunk); 1403 (void*)(uintptr_t)chunk->mr_va, 1404 (size_t)chunk->mr_len, SRPT_MR_QUANTSIZE, 1413 srpt_mr_t *chunk; local 1419 chunk = avl_first(&vm_pool->svp_mr_list); 1421 while (chunk != NULL) { 1422 next = AVL_NEXT(&vm_pool->svp_mr_list, chunk); 1423 avl_remove(&vm_pool->svp_mr_list, chunk); 1503 srpt_mr_t chunk; local 1540 void *chunk = NULL; local 1569 void *chunk = (void *)(uintptr_t)mr->mr_va; local [all...] |
/illumos-gate/usr/src/lib/libeti/form/common/ |
H A D | form.c | 344 int chunk; local 354 chunk = MIN(cols, dcols - start); 356 (void) winnstr(w, bptr, chunk); 358 if (bptr != _data_ahead(bptr, pad, chunk)) {
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | fssnap.c | 81 * "chunks" should be considered for copy-on-write (a chunk is the unit of 86 * If a chunk has no allocated blocks, it does not need to be copied before 96 * described above, and the "hastrans bitmap" which tells it whether the chunk 97 * has been copied already or not. If the chunk is a candidate but has not 100 * task queue is dispatched for each old chunk read in which writes the old 111 * information to satisfy read requests. If the requested chunk is not a 112 * candidate, it returns a zeroed buffer. If the chunk is a candidate but 165 static int snap_getchunk(struct snapshot_id *sidp, chunknumber_t chunk, 652 * cycles through each chunk in the requested buffer and calls 653 * snap_getchunk() on each chunk t 662 chunknumber_t chunk; local 772 snap_getchunk(struct snapshot_id *sidp, chunknumber_t chunk, int offset, int len, char *buffer) argument 1189 transtbl_add(cow_map_t *cmap, chunknumber_t chunk, caddr_t buf) argument 1220 transtbl_get(cow_map_t *cmap, chunknumber_t chunk) argument [all...] |
H A D | bufmod.c | 92 mblk_t *sb_mp; /* partial chunk */ 97 uint_t sb_chunk; /* max chunk size */ 253 * Free the current chunk. 337 uint_t chunk; local 339 chunk = *(uint_t *)mp->b_cont->b_rptr; 344 sop->so_hiwat = SNIT_HIWAT(chunk, 1); 345 sop->so_lowat = SNIT_LOWAT(chunk, 1); 497 * Reset timeout, flush the chunk currently in 498 * progress, and start a new chunk. 738 uint_t chunk; local [all...] |
/illumos-gate/usr/src/lib/libc/capabilities/sun4u/common/ |
H A D | memcpy.s | 413 ! 1st chunk - %d0 low, %d16 high, %d32 pre, %d48 dst 421 ! 2nd chunk - %d0 pre, %d16 low, %d32 high, %d48 dst 429 ! 3rd chunk - %d0 high, %d16 pre, %d32 low, %d48 dst 501 ! 1st chunk - %d0 low, %d16 high, %d32 pre, %d48 dst 509 ! 2nd chunk - %d0 pre, %d16 low, %d32 high, %d48 dst 517 ! 3rd chunk - %d0 high, %d16 pre, %d32 low, %d48 dst 587 ! 1st chunk - %d0 low, %d16 high, %d32 pre, %d48 dst 595 ! 2nd chunk - %d0 pre, %d16 low, %d32 high, %d48 dst 603 ! 3rd chunk - %d0 high, %d16 pre, %d32 low, %d48 dst 675 ! 1st chunk [all...] |
/illumos-gate/usr/src/uts/common/fs/ufs/ |
H A D | ufs_snap.c | 156 * use chunk size that is passed in, or the file system 171 * compute the number of fragments per chunk. Things work out 172 * nicer if the chunk size is a power-of-two multiple of the 288 ulong_t chunk; local 331 chunk = (ulong_t)((cgbase + curfrag) / 334 fssnap_set_candidate(snapid, chunk); 336 * no need to scan the rest of this chunk since
|
/illumos-gate/usr/src/uts/common/io/uath/ |
H A D | uath.c | 1560 struct uath_chunk *chunk; local 1597 chunk = (struct uath_chunk *)rxbuf; 1598 if (chunk->seqnum == 0 && chunk->flags == 0 && chunk->length == 0) { 1606 if (chunk->seqnum != sc->sc_intrx_nextnum) { 1609 chunk->seqnum, sc->sc_intrx_nextnum); 1616 /* check multi-chunk frames */ 1617 if ((chunk->seqnum == 0 && !(chunk 1989 struct uath_chunk *chunk; local 2324 struct uath_chunk *chunk; local [all...] |
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | getenv.c | 77 typedef struct chunk { struct 78 struct chunk *next; 305 /* Add the new chunk to chunk_list to hide potential future leak. */
|
/illumos-gate/usr/src/uts/common/xen/io/ |
H A D | xnb.c | 722 size_t chunk = ml->b_wptr - ml->b_rptr; local 724 bcopy(ml->b_rptr, valoop, chunk); 725 valoop += chunk; 726 len += chunk; 1036 * gnttab_copy_t for each sub-page chunk in each data 1041 size_t chunk = ml->b_wptr - ml->b_rptr; local 1055 mblk_t *ml_new = replace_msg(ml, chunk, 1072 if (d_offset + chunk > PAGESIZE) 1075 "(%lu) + chunk (%lu) > PAGESIZE %d!", 1078 d_offset, chunk, (in 1096 (mblk_t *), ml, int, chunk, int, local 1123 chunk, int, len, int, item_count); local [all...] |
/illumos-gate/usr/src/lib/print/libpapi-ipp/common/ |
H A D | ipp-support.c | 357 void *chunk, *ptr; local 396 /* build the request chunk */ 397 chunk = ptr = calloc(1, chunk_size); 401 httpDumpData(stdout, "request:", chunk, chunk_size); 405 if (ipp_request_write(svc, chunk, chunk_size) != chunk_size) 407 free(chunk);
|
/illumos-gate/usr/src/grub/grub-0.97/stage2/ |
H A D | fsys_zfs.c | 630 zap_leaf_array_equal(zap_leaf_phys_t *l, int blksft, int chunk, argument 637 &ZAP_LEAF_CHUNK(l, blksft, chunk).l_array; 640 if (chunk >= ZAP_LEAF_NUMCHUNKS(blksft)) 645 chunk = la->la_next; 663 uint16_t chunk; local 672 for (chunk = l->l_hash[LEAF_HASH(blksft, h)]; 673 chunk != CHAIN_END; chunk = le->le_next) { 675 if (chunk >= ZAP_LEAF_NUMCHUNKS(blksft)) 678 le = ZAP_LEAF_ENTRY(l, blksft, chunk); [all...] |