/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/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/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/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/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;
|
H A D | load_elf.c | 307 size_t chunk; local 507 chunk = ehdr->e_shnum * ehdr->e_shentsize; 508 if (chunk == 0 || ehdr->e_shoff == 0) 510 shdr = alloc_pread(ef->fd, ehdr->e_shoff, chunk); 516 file_addmetadata(fp, MODINFOMD_SHDR, chunk, shdr); 523 chunk = shdr[ehdr->e_shstrndx].sh_size; 524 if (chunk) { 525 shstr = alloc_pread(ef->fd, shdr[ehdr->e_shstrndx].sh_offset, chunk);
|
/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/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/lib/libc/port/aio/ |
H A D | aio_alloc.c | 54 * The header structure for each chunk. 57 typedef struct chunk { struct 58 struct chunk *chunk_next; /* linked list */ 59 size_t chunk_size; /* size of this chunk */
|
/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...] |
/illumos-gate/usr/src/uts/common/avs/ns/nsctl/ |
H A D | nsc_disk.c | 187 nsc_size_t buflen, len, limit, chunk; local 210 if ((rc = nsc_maxfbas(fd, 0, &chunk)) != 0) 215 uint64_t, chunk); 227 buflen = min(len, 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/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/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/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/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_nlm.c | 350 int sz, chunk; local 363 chunk = sz > 16 ? 16 : sz; 365 (void) showxdr_hex(chunk, buff);
|
H A D | snoop_display.c | 760 int chunk = 16; /* 16 bytes per line */ local 764 for (p = data; p < data + datalen; p += chunk) { 767 len = MIN(chunk, left); 773 for (i = 0; i < (chunk - left) / 2; i++)
|
/illumos-gate/usr/src/uts/common/io/ |
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/uts/common/io/scsi/adapters/pmcs/ |
H A D | pmcs_nvram.c | 328 pmcs_flash_chunk(pmcs_hw_t *pwp, uint8_t *chunk) argument 334 hp = (void *)chunk; 346 (void) memcpy(pwp->scratch, &chunk[off], amt);
|
/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/libc/port/i18n/ |
H A D | gettext_gnu.c | 1106 char *chunk, *mchunk; local 1129 chunk = malloc(hash_mem_size + d_msgid_size + d_msgstr_size); 1130 if (chunk == NULL) { 1134 d_hash = (uint32_t *)(uintptr_t)chunk; 1136 (chunk + hash_mem_size); 1138 (chunk + hash_mem_size + d_msgid_size); 1141 free(chunk);
|
/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/stand/lib/inet/ |
H A D | ipv4.c | 1223 int chunk = 16; /* 16 bytes per line */ local 1227 for (p = data; p < data + datalen; p += chunk) { 1230 len = MIN(chunk, left); 1236 for (i = 0; i < (chunk - left) / 2; i++)
|