Home
last modified time | relevance | path

Searched refs:csize (Results 1 – 25 of 54) sorted by relevance

123

/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dddt_zap.c63 uint64_t one, csize; in ddt_zap_lookup() local
67 DDT_KEY_WORDS, &one, &csize); in ddt_zap_lookup()
72 ASSERT(csize <= sizeof (cbuf)); in ddt_zap_lookup()
75 DDT_KEY_WORDS, 1, csize, cbuf); in ddt_zap_lookup()
79 ddt_decompress(cbuf, dde->dde_phys, csize, sizeof (dde->dde_phys)); in ddt_zap_lookup()
95 uint64_t csize; in ddt_zap_update() local
97 csize = ddt_compress(dde->dde_phys, cbuf, in ddt_zap_update()
101 DDT_KEY_WORDS, 1, csize, cbuf, tx)); in ddt_zap_update()
132 uint64_t csize = za.za_num_integers; in ddt_zap_walk() local
135 DDT_KEY_WORDS, 1, csize, cbuf); in ddt_zap_walk()
[all …]
H A Dvdev_raidz_math_impl.h396 const v_t * const qend = q + (csize / sizeof (v_t)); in raidz_gen_pq_add()
424 const size_t csize = rm->rm_col[CODE_P].rc_size; in raidz_generate_pq_impl() local
434 raidz_copy(cabds[CODE_P], rm->rm_col[2].rc_abd, csize); in raidz_generate_pq_impl()
435 raidz_copy(cabds[CODE_Q], rm->rm_col[2].rc_abd, csize); in raidz_generate_pq_impl()
441 abd_raidz_gen_iterate(cabds, dabd, csize, dsize, 2, in raidz_generate_pq_impl()
467 const v_t * const qend = q + (csize / sizeof (v_t)); in raidz_gen_pqr_add()
497 const size_t csize = rm->rm_col[CODE_P].rc_size; in raidz_generate_pqr_impl() local
508 raidz_copy(cabds[CODE_P], rm->rm_col[3].rc_abd, csize); in raidz_generate_pqr_impl()
509 raidz_copy(cabds[CODE_Q], rm->rm_col[3].rc_abd, csize); in raidz_generate_pqr_impl()
510 raidz_copy(cabds[CODE_R], rm->rm_col[3].rc_abd, csize); in raidz_generate_pqr_impl()
[all …]
/illumos-gate/usr/src/lib/libumem/amd64/
H A Dumem_genasm.c326 genasm_malinit(uint8_t *bp, uint32_t off, uint32_t ep, uint32_t csize) in genasm_malinit() argument
333 bcopy(&csize, bp + PTC_MALINIT_MCS, sizeof (csize)); in genasm_malinit()
365 genasm_firstcache(uint8_t *bp, uint32_t csize, uint32_t ap) in genasm_firstcache() argument
370 bcopy(&csize, bp + PTC_INICACHE_CMP, sizeof (csize)); in genasm_firstcache()
371 bcopy(&csize, bp + PTC_INICACHE_SIZE, sizeof (csize)); in genasm_firstcache()
380 genasm_gencache(uint8_t *bp, int num, uint32_t csize, uint32_t ap) in genasm_gencache() argument
388 bcopy(&csize, bp + PTC_GENCACHE_CMP, sizeof (csize)); in genasm_gencache()
389 bcopy(&csize, bp + PTC_GENCACHE_SIZE, sizeof (csize)); in genasm_gencache()
399 genasm_lastcache(uint8_t *bp, int num, uint32_t csize, uint32_t ep) in genasm_lastcache() argument
407 bcopy(&csize, bp + PTC_FINCACHE_CMP, sizeof (csize)); in genasm_lastcache()
[all …]
/illumos-gate/usr/src/lib/libumem/i386/
H A Dumem_genasm.c318 genasm_malinit(uint8_t *bp, uint32_t off, uint32_t ep, uint32_t csize) in genasm_malinit() argument
325 bcopy(&csize, bp + PTC_MALINIT_MCS, sizeof (csize)); in genasm_malinit()
356 genasm_firstcache(uint8_t *bp, uint32_t csize, uint32_t ap) in genasm_firstcache() argument
361 bcopy(&csize, bp + PTC_INICACHE_CMP, sizeof (csize)); in genasm_firstcache()
362 bcopy(&csize, bp + PTC_INICACHE_SIZE, sizeof (csize)); in genasm_firstcache()
371 genasm_gencache(uint8_t *bp, int num, uint32_t csize, uint32_t ap) in genasm_gencache() argument
379 bcopy(&csize, bp + PTC_GENCACHE_CMP, sizeof (csize)); in genasm_gencache()
380 bcopy(&csize, bp + PTC_GENCACHE_SIZE, sizeof (csize)); in genasm_gencache()
390 genasm_lastcache(uint8_t *bp, int num, uint32_t csize, uint32_t ep) in genasm_lastcache() argument
397 bcopy(&csize, bp + PTC_FINCACHE_CMP, sizeof (csize)); in genasm_lastcache()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/vmalloc/
H A Dvmdcheap.c36 size_t csize, size_t nsize, in heapmem() argument
39 static Void_t* heapmem(vm, caddr, csize, nsize, disc) in heapmem()
42 size_t csize; /* current size */
47 if(csize == 0 && nsize == 0)
49 else if(csize == 0)
H A Dvmbest.c1161 if(csize == 0) in win32mem()
1181 if(csize > 0 && addr != (Vmuchar_t*)caddr+csize) in sbrkmem()
1183 else if(csize == 0) in sbrkmem()
1187 if(nsize < csize) in sbrkmem()
1188 addr -= csize-nsize; in sbrkmem()
1244 /**/ASSERT(csize > 0 || nsize > 0); in mmapmem()
1245 if(csize == 0) in mmapmem()
1273 { (void)munmap(caddr, csize); in mmapmem()
1284 /**/ASSERT(csize > 0 || nsize > 0); in mallocmem()
1285 if(csize == 0) in mallocmem()
[all …]
/illumos-gate/usr/src/cmd/acct/
H A Dacctcms.c60 int csize = CSIZE; variable
455 for (i %= csize, j = 0; tcm[i].tcm_comm[0] && j != csize; i = (i+1)%csize, j++) in tenter()
458 if(j == csize) { in tenter()
468 i = csize; in tenter()
469 csize = csize + CSIZE - 1; in tenter()
491 for (i %= csize, j = 0; pcm[i].pcm_comm[0] && j != csize; i = (i+1)%csize, j++) in enter()
494 if(j == csize) { in enter()
504 i = csize; in enter()
505 csize = csize + CSIZE - 1; in enter()
582 csize = k; in tsqueeze()
[all …]
/illumos-gate/usr/src/boot/libsa/
H A Dufs.c708 size_t csize; in ufs_read() local
722 csize = size; in ufs_read()
723 if (csize > buf_size) in ufs_read()
724 csize = buf_size; in ufs_read()
729 addr += csize; in ufs_read()
730 size -= csize; in ufs_read()
746 size_t csize; in ufs_write() local
750 csize = size; in ufs_write()
755 if (csize >= 512) csize = 512; /* XXX */ in ufs_write()
762 addr += csize; in ufs_write()
[all …]
H A Dext2fs.c820 size_t csize, buf_size; in ext2fs_read() local
832 csize = size; in ext2fs_read()
833 if (csize > buf_size) in ext2fs_read()
834 csize = buf_size; in ext2fs_read()
836 bcopy(buf, addr, csize); in ext2fs_read()
838 fp->f_seekp += csize; in ext2fs_read()
839 addr = (char *)addr + csize; in ext2fs_read()
840 size -= csize; in ext2fs_read()
H A Dcd9660.c499 size_t buf_size, csize; in cd9660_read() local
511 csize = size > buf_size ? buf_size : size; in cd9660_read()
512 bcopy(buf, addr, csize); in cd9660_read()
514 fp->f_off += csize; in cd9660_read()
515 addr += csize; in cd9660_read()
516 size -= csize; in cd9660_read()
/illumos-gate/usr/src/lib/libsip/common/
H A Dsip_add_hdrs.c129 int csize = sizeof (char); in sip_add_empty_hdr() local
140 header_size = strlen(hdr_name) + SIP_SPACE_LEN + csize; in sip_add_empty_hdr()
169 int csize = sizeof (char); in sip_add_2strs_to_msg() local
184 header_size = strlen(hdr_name) + SIP_SPACE_LEN + csize + in sip_add_2strs_to_msg()
188 header_size = strlen(hdr_name) + SIP_SPACE_LEN + csize + in sip_add_2strs_to_msg()
190 csize + strlen(plist) + strlen(SIP_CRLF); in sip_add_2strs_to_msg()
242 int csize = sizeof (char); in sip_add_str_to_msg() local
293 int csize = sizeof (char); in sip_add_int_to_msg() local
316 SIP_SPACE_LEN + strlen(digit_str) + csize + in sip_add_int_to_msg()
355 int csize = sizeof (char); in sip_add_intstr_to_msg() local
[all …]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/rsend/
H A Dsend-c_zstreamdump.ksh53 csize=$(awk '/^WRITE [^0]/ {csize += $5} END {printf("%d", csize)}' \
56 within_percent $csize $csize_prop 90 || log_fail \
57 "$csize and $csize_prop differed by too much"
/illumos-gate/usr/src/cmd/savecore/
H A Dsavecore.c531 uint32_t csize; in CopyPages() local
547 if (csize > pagesize || csize == 0) { in CopyPages()
550 dumphdr.dump_npages - np, csize, csize, in CopyPages()
554 Fread(cbuf, csize, in); in CopyPages()
556 *offp += csize; in CopyPages()
894 int csize; in lzjbblock() local
930 if (csize > pagesize) in lzjbblock()
942 in += csize; in lzjbblock()
1200 uint32_t csize; in decompress_pages() local
1237 if (csize > maxcsize) in decompress_pages()
[all …]
/illumos-gate/usr/src/uts/sun4/io/efcode/
H A Dfcode.c620 size_t csize; in fc_run_priv() local
657 csize = (FCC_FIXED_CELLS + nargs + nresults) * sizeof (fc_cell_t); in fc_run_priv()
658 cp = kmem_zalloc(csize, KM_SLEEP); in fc_run_priv()
662 if (copyin((void *)arg, cp, csize - (nresults * sizeof (fc_cell_t)))) { in fc_run_priv()
665 kmem_free(cp, csize); in fc_run_priv()
684 kmem_free(cp, csize); in fc_run_priv()
716 kmem_free(cp, csize); in fc_run_priv()
736 kmem_free(cp, csize); in fc_run_priv()
763 kmem_free(cp, csize); in fc_run_priv()
/illumos-gate/usr/src/uts/common/io/sdcard/impl/
H A Dsda_mem.c265 uint32_t csize; in sda_mem_parse_cid_csd() local
275 csize = sda_mem_getbits(rcsd, 73, 12); in sda_mem_parse_cid_csd()
282 csize = sda_mem_getbits(rcsd, 69, 22); in sda_mem_parse_cid_csd()
340 csize = sda_mem_getbits(rcsd, 73, 12); in sda_mem_parse_cid_csd()
360 slot->s_nblks = (csize + 1) * cmult * (rblen / 512); in sda_mem_parse_cid_csd()
/illumos-gate/usr/src/lib/libcurses/screen/
H A Dnewscreen.c74 newscreen(char *type, int lsize, int csize, int tabsize, in newscreen() argument
195 COLS = SP->csize = csize > 0 ? csize : columns; in newscreen()
H A Dsetcurscreen.c63 COLS = SP->csize; in setcurscreen()
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/sun4vpi/
H A Dsun4vpi.c121 size_t csize; in pi_enum() local
157 MD_STR_COMPONENTS, MD_STR_FWD, &components, &csize); in pi_enum()
199 topo_mod_free(mod, components, csize); in pi_enum()
/illumos-gate/usr/src/cmd/file/
H A Delf_read.c461 FILE_ELF_SIZE_T csize; in process_shdr() local
465 csize = sizeof (Elf_Cap); in process_shdr()
477 if ((pread64(EI->elffd, &Chdr, csize, cap_off) in process_shdr()
478 != csize) || in process_shdr()
486 cap_off += csize; in process_shdr()
/illumos-gate/usr/src/boot/common/
H A Dbcache.c365 size_t csize, isize, total; in bcache_strategy() local
397 csize = size; in bcache_strategy()
399 csize = cblk * bcache_blksize; in bcache_strategy()
401 ret = read_strategy(devdata, rw, blk, csize, in bcache_strategy()
/illumos-gate/usr/src/uts/i86xpv/os/
H A Dxpv_panic.c376 uint32_t csize; in dump_xpv_data() local
387 csize = (uint32_t)compress((void *)va, dump_cbuf, PAGESIZE); in dump_xpv_data()
388 dumpvp_write(&csize, sizeof (uint32_t)); in dump_xpv_data()
389 dumpvp_write(dump_cbuf, csize); in dump_xpv_data()
401 csize = (uint32_t)compress((void *)HYPERVISOR_shared_info, dump_cbuf, in dump_xpv_data()
403 dumpvp_write(&csize, sizeof (uint32_t)); in dump_xpv_data()
404 dumpvp_write(dump_cbuf, csize); in dump_xpv_data()
/illumos-gate/usr/src/uts/common/os/
H A Ddumpsubr.c1962 uint32_t csize; in dumpsys_bzrun() local
2003 cs = DUMP_SET_TAG(csize, hp->tag); in dumpsys_bzrun()
2004 if (csize > 0) { in dumpsys_bzrun()
2128 if (csize > 0) { in dumpsys_lzjbrun()
2129 cs = DUMP_SET_TAG(csize, 0); in dumpsys_lzjbrun()
2143 size_t csize; in dumpsys_lzjbcompress() local
2174 ASSERT(csize > 0 && csize <= PAGESIZE); in dumpsys_lzjbcompress()
2175 dumpsys_lzjbrun(hp, csize, hp->lzbuf, csize); in dumpsys_lzjbcompress()
2278 uint32_t csize; in dumpsys_lzjb_page() local
2295 dumpvp_write(&csize, sizeof (csize)); in dumpsys_lzjb_page()
[all …]
/illumos-gate/usr/src/lib/libnsl/nsl/
H A D_utility.c220 int csize) in _t_register_lookevent() argument
230 if ((csize > cbuf_size) || dsize > dbuf_size) { in _t_register_lookevent()
243 if (cptr && csize >= (int)sizeof (struct T_discon_ind) && in _t_register_lookevent()
297 (void) memcpy(tlbs->tl_lookcbuf, cptr, csize); in _t_register_lookevent()
301 tlbs->tl_lookclen = csize; in _t_register_lookevent()
509 unsigned int csize, dsize, asize, osize; in _t_alloc_bufs() local
513 csize = _t_setsize(tsap->CDATA_size, B_FALSE); in _t_alloc_bufs()
516 size1 = _T_MAX(csize, dsize); in _t_alloc_bufs()
/illumos-gate/usr/src/cmd/tbl/
H A Dt4.c33 csize[i][icol][0]=0; in getspec()
177 temp = snp = csize[nclin][icol-1]; in readspec()
/illumos-gate/usr/src/cmd/keyserv/
H A Dkeyserv.c1350 int csize, len; local
1362 csize = atoi(size);
1364 csize = atoi(size);
1368 csize = 0 - csize;
1371 if (csize == 0) {
1376 return (csize);

123