/illumos-gate/usr/src/boot/common/ |
H A D | module.c | 424 size_t size = 0; in env_get_size() local 430 size++; /* "=" */ in env_get_size() 436 return (size); in env_get_size() 464 size_t size; in build_environment_module() local 481 size = env_get_size(); in build_environment_module() 526 size_t size; in build_font_module() local 580 size += roundup2(size, 8); in build_font_module() 901 size); in file_addmetadata() 903 md->md_size = size; in file_addmetadata() 1288 size = st.st_size - size; in moduledir_readhints() [all …]
|
/illumos-gate/usr/src/psm/promif/ieee1275/sun4/ |
H A D | prom_mem.c | 64 prom_allocate_phys(size_t size, uint_t align, unsigned long long *physaddr) in prom_allocate_phys() argument 82 ci[6] = p1275_size2cell(size); /* Arg4: SA2: size */ in prom_allocate_phys() 106 prom_claim_phys(size_t size, unsigned long long physaddr) in prom_claim_phys() argument 121 ci[6] = p1275_size2cell(size); /* Arg4: SA2: len */ in prom_claim_phys() 143 prom_free_phys(size_t size, unsigned long long physaddr) in prom_free_phys() argument 156 ci[5] = p1275_size2cell(size); /* Arg3: SA1: size */ in prom_free_phys()
|
/illumos-gate/usr/src/uts/common/io/cxgbe/t4nex/ |
H A D | cudbg_lib_common.h | 86 u32 size; member 100 u16 size; member 104 u32 size; member 145 void sort_t(void *base, int num, int size, 147 void (*swap_func)(void *, void *, int size)); 148 int cudbg_read_flash(void *handle, void *data, u32 size, int data_flag);
|
/illumos-gate/usr/src/common/ucode/ |
H A D | ucode_utils_intel.c | 109 ucode_checksum_intel(uint32_t sum, uint32_t size, uint8_t *code) in ucode_checksum_intel() argument 114 i = size >> 2; in ucode_checksum_intel() 146 ucode_validate_intel(uint8_t *ucodep, int size) in ucode_validate_intel() argument 151 if (ucodep == NULL || size <= 0) in ucode_validate_intel() 154 for (remaining = size; remaining > 0; ) { in ucode_validate_intel() 157 uint8_t *curbuf = &ucodep[size - remaining]; in ucode_validate_intel()
|
/illumos-gate/usr/src/boot/libsa/ |
H A D | bootp.c | 355 int size; in vend_rfc1048() local 372 size = *cp++; in vend_rfc1048() 432 cp += size; in vend_rfc1048() 646 unsigned int size; /* option size */ in setenv_() local 651 size = *ncp++; in setenv_() 682 setenv_(cp, cp+size, vndr_opt); in setenv_() 686 for (; size > 0 && vp < endv; size -= 4, cp += 4) { in setenv_() 697 for (; size > 0 && vp < endv; size -= 1, cp += 1) { in setenv_() 705 buf[size] = 0; in setenv_() 711 for (; size > 0 && vp < endv; in setenv_() [all …]
|
H A D | printf.c | 104 size_t size; member 112 if (pbuf->size < 2) { in snprint_func() 120 pbuf->size--; in snprint_func() 137 arg.size = retval + 1; in asprintf() 138 arg.buf = *buf = malloc(arg.size); in asprintf() 146 if (arg.size >= 1) in asprintf() 152 snprintf(char *buf, size_t size, const char *cfmt, ...) in snprintf() argument 159 arg.size = size; in snprintf() 165 if (arg.size >= 1) in snprintf() 180 vsnprintf(char *buf, size_t size, const char *cfmt, va_list ap) in vsnprintf() argument [all …]
|
/illumos-gate/usr/src/cmd/cpc/common/ |
H A D | caps.c | 46 int size; member 85 emalloc(size_t size) in emalloc() argument 89 if ((ptr = malloc(size)) == NULL) { in emalloc() 106 list->size += strlen(name); in cap_walker() 107 if ((list->list = realloc(list->list, list->size + 1)) == NULL) { in cap_walker() 130 lists[i]->size = 0; in allpics_equal() 137 if (lists[i]->size != lists[0]->size || in allpics_equal() 139 lists[0]->size) != 0) { in allpics_equal()
|
/illumos-gate/usr/src/stand/lib/sa/ |
H A D | stdio.c | 248 fread(void *ptr, size_t size, size_t nitems, FILE *stream) in fread() argument 258 bytes = read(stream->_file, &strp[totbytes], size); in fread() 264 return ((totbytes == 0) ? 0 : totbytes / size); in fread() 265 } else if (bytes == size) { in fread() 270 return (totbytes / size); in fread() 274 return (totbytes / size); in fread() 330 fwrite(const void *ptr, size_t size, size_t nitems, FILE *stream) in fwrite() argument 344 prom_writestr(ptr, size * nitems); in fwrite() 350 setvbuf(FILE *stream, char *buf, int type, size_t size) in setvbuf() argument
|
/illumos-gate/usr/src/cmd/lp/lib/forms/ |
H A D | rdform.c | 67 int size; in rdform() local 238 size = 0; in rdform() 268 size + add_size + 1 in rdform() 272 size + add_size + 1 in rdform() 286 strcpy (formp->comment + size, p); in rdform() 287 size += add_size; in rdform() 296 if (size && formp->comment[size - 1] == '\n') in rdform() 297 formp->comment[size - 1] = 0; in rdform()
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/edit/ |
H A D | history.c | 344 size += size; in sh_histinit() 563 if(size <= 2L || sfseek(iop,size,SEEK_SET)<0) in hist_nearend() 590 size += n; in hist_nearend() 597 if(n < size/2) in hist_nearend() 605 size += n; in hist_nearend() 855 if(size&01) in hist_write() 857 size++; in hist_write() 860 hp->histcnt += size; in hist_write() 870 size += HIST_MARKSZ; in hist_write() 873 size = write(sffileno(iop),(char*)buff,size); in hist_write() [all …]
|
/illumos-gate/usr/src/lib/libproc/common/ |
H A D | Pgcore.c | 457 size_t size; in new_per_lwp() local 706 size_t size; in dump_symtab() local 1497 size_t size; in Pfgcore() local 1690 if (n > size) in proc_content2str() 1691 n = size; in proc_content2str() 1693 size -= n; in proc_content2str() 1699 n = size; in proc_content2str() 1701 size -= n; in proc_content2str() 1714 size--; in proc_content2str() 1722 n = size; in proc_content2str() [all …]
|
/illumos-gate/usr/src/common/nvpair/ |
H A D | nvpair_alloc_fixed.c | 82 nv_fixed_alloc(nv_alloc_t *nva, size_t size) in nv_fixed_alloc() argument 87 if (size == 0 || new + size > nvb->nvb_lim) in nv_fixed_alloc() 90 nvb->nvb_cur = P2ROUNDUP(new + size, sizeof (uintptr_t)); in nv_fixed_alloc() 97 nv_fixed_free(nv_alloc_t *nva, void *buf, size_t size) in nv_fixed_free() argument
|
/illumos-gate/usr/src/uts/common/inet/ |
H A D | mi.h | 81 extern void *mi_alloc(size_t size, uint_t pri); 82 extern void *mi_alloc_sleep(size_t size, uint_t pri); 110 extern IDP mi_open_alloc(size_t size); 111 extern IDP mi_open_alloc_sleep(size_t size); 112 extern int mi_open_comm(void **mi_head, size_t size, queue_t *q, 136 extern MBLKP mi_timer_alloc(size_t size); 159 extern IDP mi_zalloc(size_t size); 160 extern IDP mi_zalloc_sleep(size_t size);
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | zfs_byteswap.c | 50 zfs_ace_byteswap(void *buf, size_t size, boolean_t zfs_layout) in zfs_ace_byteswap() argument 60 end = (caddr_t)buf + size; in zfs_ace_byteswap() 137 zfs_oldacl_byteswap(void *buf, size_t size) in zfs_oldacl_byteswap() argument 146 cnt = size / sizeof (ace_t); in zfs_oldacl_byteswap() 153 zfs_acl_byteswap(void *buf, size_t size) in zfs_acl_byteswap() argument 155 zfs_ace_byteswap(buf, size, B_TRUE); in zfs_acl_byteswap() 159 zfs_znode_byteswap(void *buf, size_t size) in zfs_znode_byteswap() argument 163 ASSERT(size >= sizeof (znode_phys_t)); in zfs_znode_byteswap()
|
/illumos-gate/usr/src/tools/smatch/src/ |
H A D | check_string_len.c | 222 int buf_size, size; in match_not_limited() local 242 size = get_formatted_string_size(call, params->string); in match_not_limited() 243 if (size < 0) in match_not_limited() 245 if (size < offset) in match_not_limited() 246 size -= offset; in match_not_limited() 247 size++; /* add the NULL terminator */ in match_not_limited() 248 if (size <= buf_size) in match_not_limited() 260 buf_size, size, user ? " [user data]": ""); in match_not_limited()
|
/illumos-gate/usr/src/uts/common/io/ixgbe/core/ |
H A D | ixgbe_mbx.c | 128 ret_val = mbx->ops.read(hw, msg, size, mbx_id); in ixgbe_read_posted_mbx() 156 ret_val = mbx->ops.write(hw, msg, size, mbx_id); in ixgbe_write_posted_mbx() 315 static s32 ixgbe_write_mbx_vf(struct ixgbe_hw *hw, u32 *msg, u16 size, in ixgbe_write_mbx_vf() argument 335 for (i = 0; i < size; i++) in ixgbe_write_mbx_vf() 357 static s32 ixgbe_read_mbx_vf(struct ixgbe_hw *hw, u32 *msg, u16 size, in ixgbe_read_mbx_vf() argument 372 for (i = 0; i < size; i++) in ixgbe_read_mbx_vf() 400 mbx->size = IXGBE_VFMAILBOX_SIZE; in ixgbe_init_mbx_params_vf() 573 for (i = 0; i < size; i++) in ixgbe_write_mbx_pf() 598 static s32 ixgbe_read_mbx_pf(struct ixgbe_hw *hw, u32 *msg, u16 size, in ixgbe_read_mbx_pf() argument 612 for (i = 0; i < size; i++) in ixgbe_read_mbx_pf() [all …]
|
/illumos-gate/usr/src/lib/cfgadm_plugins/fp/common/ |
H A D | cfga_rep.c | 183 munmap(t_repbuf, size); \ 227 off_t filesize, size; in update_fabric_wwn_list() local 234 size = filesize = write_offset = bytes_left = 0; in update_fabric_wwn_list() 272 filesize = size = stbuf.st_size; in update_fabric_wwn_list() 420 size += len; in update_fabric_wwn_list() 485 if (msync(t_repbuf, size, MS_SYNC) == -1) { in update_fabric_wwn_list() 510 if (size >= sizeof_rep_hdr + len - 1) { in update_fabric_wwn_list() 511 size -= len; in update_fabric_wwn_list() 543 if (size > 0) { in update_fabric_wwn_list() 554 if ((t_repbuf = (char *)mmap(0, size, in update_fabric_wwn_list() [all …]
|
/illumos-gate/usr/src/uts/sun4v/io/ |
H A D | dr_mem.c | 148 uint64_t size; member 538 res[idx].size = req_mblks[idx].size; /* for partial case */ in dr_mem_list_wrk() 700 resp_stat[idx].size = res[idx].size; in dr_mem_pack_response() 801 mb.size = ml->ml_size; in dr_mem_list_query() 884 uint64_t addr, size; in dr_mem_configure() local 888 size = mbp->size; in dr_mem_configure() 898 addr, size, rv); in dr_mem_configure() 907 rv = mem_add(btop(addr), btop(size)); in dr_mem_configure() 928 mbp->addr, mbp->size); in dr_mem_unconfigure() 937 mbp->addr, mbp->size); in dr_mem_unconfigure() [all …]
|
/illumos-gate/usr/src/uts/common/fs/zfs/sys/ |
H A D | dmu.h | 287 void byteswap_uint64_array(void *buf, size_t size); 288 void byteswap_uint32_array(void *buf, size_t size); 289 void byteswap_uint16_array(void *buf, size_t size); 290 void byteswap_uint8_array(void *buf, size_t size); 291 void zap_byteswap(void *buf, size_t size); 292 void zfs_oldacl_byteswap(void *buf, size_t size); 293 void zfs_acl_byteswap(void *buf, size_t size); 294 void zfs_znode_byteswap(void *buf, size_t size); 347 void dmu_objset_byteswap(void *buf, size_t size); 827 uint64_t size, dmu_tx_t *tx); [all …]
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | uucopy.c | 29 uucopy(const void *from, void *to, size_t size) in uucopy() argument 36 ucopy(from, to, size); in uucopy() 44 uucopystr(const char *from, char *to, size_t size) in uucopystr() argument 52 ucopystr(from, to, size, &len); in uucopystr()
|
/illumos-gate/usr/src/lib/udapl/udapl_tavor/include/ |
H A D | dapl_osd.h | 241 #define dapl_os_alloc(size) malloc((size)) argument 244 #define dapl_os_realloc(ptr, size) realloc((ptr), (size)) argument 247 #define dapl_os_free(ptr, size) free((ptr)) argument 250 #define dapl_os_memzero(loc, size) memset((loc), 0, (size)) argument
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_clear/ |
H A D | zpool_clear_001_pos.ksh | 164 typeset -i size 167 (( size = ${FILESIZE%%[g|G]} )) 168 (( wcount = size*1024*1024 - 512 )) 171 (( size = ${FILESIZE%%[m|M]} )) 172 (( wcount = size*1024 - 512 )) 175 (( size = ${FILESIZE%%[k|K]} )) 176 (( wcount = size - 512 ))
|
/illumos-gate/usr/src/uts/common/krtld/ |
H A D | bootrd_cpio.c | 320 ssize_t size; in find_filename() local 326 size = scan_archive_hdr(hdr, off, file, path); in find_filename() 327 if (size <= 0) in find_filename() 328 return (size); in find_filename() 330 off += size; in find_filename() 412 bcpio_read(int fd, caddr_t buf, size_t size) in bcpio_read() argument 420 if (size == 0) in bcpio_read() 423 if (file->off + size > file->stat.st_size) in bcpio_read() 424 size = file->stat.st_size - file->off; in bcpio_read() 428 file->off += size; in bcpio_read() [all …]
|
/illumos-gate/usr/src/uts/common/fs/zfs/lua/ |
H A D | lundump.c | 36 #define LoadMem(S,b,n,size) LoadBlock(S,b,(n)*(size)) argument 39 #define LoadVector(S,b,n,size) LoadMem(S,b,n,size) argument 45 static void LoadBlock(LoadState* S, void* b, size_t size) in LoadBlock() argument 47 if (luaZ_read(S->Z,b,size)!=0) error(S,"truncated"); in LoadBlock() 74 size_t size; in LoadString() local 75 LoadVar(S,size); in LoadString() 76 if (size==0) in LoadString() 80 char* s=luaZ_openspace(S->L,S->b,size); in LoadString() 81 LoadBlock(S,s,size*sizeof(char)); in LoadString() 82 return luaS_newlstr(S->L,s,size-1); /* remove trailing '\0' */ in LoadString()
|
/illumos-gate/usr/src/cmd/fs.d/hsfs/labelit/ |
H A D | labelit.c | 88 static void putdisk(char *buf, int daddr, int size); 89 static void getdisk(char *buf, int daddr, int size); 91 static void copystring(char *from, char *to, int size); 438 copystring(char *from, char *to, int size) in copystring() argument 444 for (i = 0; i < size; i++) { in copystring() 449 for (; i < size; i++) *to++ = ' '; in copystring() 494 getdisk(char *buf, int daddr, int size) in getdisk() argument 502 if (read(cdfd, buf, size) != size) { in getdisk() 511 putdisk(char *buf, int daddr, int size) in putdisk() argument 519 if (write(cdfd, buf, size) != size) { in putdisk()
|