/illumos-gate/usr/src/cmd/rpcgen/ |
H A D | rpc_scan.c | 322 int size; in findstrconst() local 332 size = p - *str; in findstrconst() 333 *val = malloc(size + 1); in findstrconst() 335 (*val)[size] = 0; in findstrconst() 343 int size; in findchrconst() local 352 size = p - *str; in findchrconst() 353 if (size != 3) in findchrconst() 357 (*val)[size] = 0; in findchrconst() 365 int size; in findconst() local 378 size = p - *str; in findconst() [all …]
|
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/ontario/common/ |
H A D | erie.c | 270 pval = malloc(pinfo.size); in erie_get_first_compatible_value() 273 err = picl_get_propval(proph, pval, pinfo.size); in erie_get_first_compatible_value() 286 err = picl_get_propval(proph, &tblh, pinfo.size); in erie_get_first_compatible_value() 298 pval = malloc(pinfo.size); in erie_get_first_compatible_value() 302 err = picl_get_propval(rowproph, pval, pinfo.size); in erie_get_first_compatible_value() 343 switch (pinfo.size) { in erie_get_int_propval() 431 path, size); in erie_get_path() 492 int size) in erie_get_nac() argument 499 (void) snprintf(nac, size, "%s/%s%d", MOTHERBOARD, in erie_get_nac() 521 &tmp_model, size); in erie_get_model() [all …]
|
/illumos-gate/usr/src/uts/intel/sys/ |
H A D | ucode_intel.h | 85 #define UCODE_SIZE_CONVERT(size, default_size) \ argument 86 ((size) == 0 ? (default_size) : (size)) 88 #define UCODE_BODY_SIZE_INTEL(size) \ argument 89 UCODE_SIZE_CONVERT((size), UCODE_DEFAULT_BODY_SIZE) 91 #define UCODE_TOTAL_SIZE_INTEL(size) \ argument 92 UCODE_SIZE_CONVERT((size), UCODE_DEFAULT_TOTAL_SIZE)
|
/illumos-gate/usr/src/compat/bhyve/dev/virtio/ |
H A D | virtio.h | 131 int size; in vring_size() local 133 size = num * sizeof(struct vring_desc); in vring_size() 134 size += sizeof(struct vring_avail) + (num * sizeof(uint16_t)) + in vring_size() 136 size = (size + align - 1) & ~(align - 1); in vring_size() 137 size += sizeof(struct vring_used) + in vring_size() 139 return (size); in vring_size()
|
/illumos-gate/usr/src/uts/common/krtld/ |
H A D | kobj_stubs.c | 77 kobj_read_file(struct _buf *file, char *buf, unsigned size, unsigned off) in kobj_read_file() argument 96 kobj_read(intptr_t descr, char *buf, unsigned size, unsigned offset) in kobj_read() argument 115 kobj_get_filesize(struct _buf *file, uint64_t *size) in kobj_get_filesize() argument 136 kobj_getelfsym(char *name, void *mp, int *size) in kobj_getelfsym() argument 187 kobj_alloc(size_t size, int flag) in kobj_alloc() argument 194 kobj_zalloc(size_t size, int flag) in kobj_zalloc() argument 201 kobj_free(void *address, size_t size) in kobj_free() argument 216 kobj_sync_instruction_memory(caddr_t addr, size_t size) in kobj_sync_instruction_memory() argument
|
/illumos-gate/usr/src/cmd/ucodeadm/ |
H A D | ucodeadm.c | 196 size = read(fd, buf, size); in ucode_convert_amd() 200 return (size); in ucode_convert_amd() 316 if (write(fd, buf, size) != size) { in ucode_gen_files_amd() 325 ptr += 2; size -= 8; in ucode_gen_files_amd() 327 count = *ptr++; size -= 4; in ucode_gen_files_amd() 352 if (!size) in ucode_gen_files_amd() 355 ptr++; size -= 4; in ucode_gen_files_amd() 607 size -= 12; in ucode_list_amd() 619 size -= sizeof (*eq); in ucode_list_amd() 624 size -= sizeof (*eq); in ucode_list_amd() [all …]
|
/illumos-gate/usr/src/lib/libcurses/screen/ |
H A D | vwprintw.c | 64 int size = BUFSIZ; in vwprintw() local 68 buffer = (char *) malloc(size); in vwprintw() 73 n = vsnprintf(buffer, size, fmt, ap); in vwprintw() 74 if (n < size) in vwprintw() 76 size *= 2; in vwprintw() 77 buffer = (char *) realloc(buffer, size); in vwprintw()
|
H A D | wctomb.c | 42 int size, index; in _curs_wctomb() local 54 size = eucw1; in _curs_wctomb() 60 size = eucw2; in _curs_wctomb() 66 size = eucw3; in _curs_wctomb() 72 if ((index = size) <= 0) in _curs_wctomb() 83 return ((int)(s - olds) + size); in _curs_wctomb()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/misc/ |
H A D | stack.c | 37 stackalloc(register int size, void* error) in stackalloc() argument 42 if (size <= 0) size = 100; in stackalloc() 49 if (!(b->stack = newof(0, void*, size, 0))) in stackalloc() 56 stack->size = size; in stackalloc() 116 if (++stack->position.index >= stack->size) in stackpush() 125 if (!(b->stack = newof(0, void*, stack->size, 0))) in stackpush() 157 stack->position.index = stack->size - 1; in stackpop()
|
/illumos-gate/usr/src/lib/iconv_modules/utf-8/utils/ |
H A D | utf8_to_cp720_generator.c | 48 tbl[i].size = (signed char)1; in main() 51 tbl[i].size = (signed char)2; in main() 54 tbl[i].size = (signed char)ICV_TYPE_ILLEGAL_CHAR; in main() 91 tbl[k].size = (signed char)1; in main() 93 tbl[k].size = (signed char)2; in main() 95 tbl[k].size = (signed char)3; in main() 97 tbl[k].size = (signed char)4; in main() 99 tbl[k].size = (signed char)5; in main() 101 tbl[k].size = (signed char)6; in main()
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | vm_subr.c | 349 size_t size, total = *lenp; in cow_mapin() local 375 size = total; in cow_mapin() 386 size = total - size; in cow_mapin() 387 *lenp += size; in cow_mapin() 388 size = size >> PAGESHIFT; in cow_mapin() 390 while (i < size) { in cow_mapin() 487 size = size << PAGESHIFT; in cow_mapin() 488 uaddr += size; in cow_mapin() 489 total -= size; in cow_mapin() 490 size = total; in cow_mapin() [all …]
|
/illumos-gate/usr/src/lib/libxcurses2/src/libc/xcurses/ |
H A D | vw_print.c | 51 int size = BUFSIZ; in vw_printw() local 55 buffer = (char *)malloc(size); in vw_printw() 61 n = vsnprintf(buffer, size, fmt, ap); in vw_printw() 62 if (n < size) in vw_printw() 64 size *= 2; in vw_printw() 65 buffer = (char *)realloc(buffer, size); in vw_printw()
|
H A D | vwprintw.c | 56 int size = BUFSIZ; in vwprintw() local 60 buffer = (char *)malloc(size); in vwprintw() 66 n = vsnprintf(buffer, size, fmt, ap); in vwprintw() 67 if (n < size) in vwprintw() 69 size *= 2; in vwprintw() 70 buffer = (char *)realloc(buffer, size); in vwprintw()
|
/illumos-gate/usr/src/cmd/picl/prtpicl/ |
H A D | prtpicl.c | 198 vbuf = alloca(propinfo->size); in print_propval() 217 if (propinfo->size > 0) in print_propval() 221 switch (propinfo->size) { in print_propval() 237 propinfo->size); in print_propval() 242 switch (propinfo->size) { in print_propval() 258 propinfo->size); in print_propval() 263 switch (propinfo->size) { in print_propval() 272 propinfo->size); in print_propval() 298 propinfo->size); in print_propval() 307 propinfo->size); in print_propval() [all …]
|
/illumos-gate/usr/src/uts/i86pc/io/pci/ |
H A D | pci_tools.c | 566 for (i = 0; i < size; i++) { in pcitool_swap_endian() 595 if ((size <= 0) || (size > 8) || !ISP2(size)) { in pcitool_cfg_access() 620 req.size = size; in pcitool_cfg_access() 633 switch (size) { in pcitool_cfg_access() 715 size, port); in pcitool_io_access() 717 switch (size) { in pcitool_io_access() 735 size, port); in pcitool_io_access() 737 switch (size) { in pcitool_io_access() 800 switch (size) { in pcitool_mem_access() 819 switch (size) { in pcitool_mem_access() [all …]
|
/illumos-gate/usr/src/boot/common/ |
H A D | md.c | 44 #error Image size must be a multiple of 512. 87 md_strategy(void *devdata, int rw, daddr_t blk, size_t size, char *buf, in md_strategy() argument 99 if (size % MD_BLOCK_SIZE) in md_strategy() 103 if ((ofs + size) > MD_IMAGE_SIZE) in md_strategy() 104 size = MD_IMAGE_SIZE - ofs; in md_strategy() 107 *rsize = size; in md_strategy() 111 bcopy(md_image.start + ofs, buf, size); in md_strategy() 114 bcopy(buf, md_image.start + ofs, size); in md_strategy()
|
/illumos-gate/usr/src/lib/lib9p/common/ |
H A D | lib9p_impl.h | 36 l9p_malloc(size_t size) in l9p_malloc() argument 38 void *r = malloc(size); in l9p_malloc() 42 size); in l9p_malloc() 50 l9p_calloc(size_t n, size_t size) in l9p_calloc() argument 52 void *r = calloc(n, size); in l9p_calloc() 56 n * size); in l9p_calloc()
|
/illumos-gate/usr/src/cmd/sgs/crle/common/ |
H A D | config.c | 82 hashoff = size; in genconfig() 105 size = S_ROUND(size, sizeof (Lword)); in genconfig() 106 objoff = size; in genconfig() 118 fileoff = size; in genconfig() 125 diroff = size; in genconfig() 134 envoff = size; in genconfig() 144 fltroff = size; in genconfig() 147 flteoff = size; in genconfig() 157 stroff = size; in genconfig() 163 size += sizeof (Rtc_id); in genconfig() [all …]
|
/illumos-gate/usr/src/cmd/bhyve/ |
H A D | qemu_fwcfg.c | 113 uint32_t size; member 170 } else if (fwcfg_sc.data_offset >= item->size) { in qemu_fwcfg_data_port_handler() 189 const uint32_t size, void *const data) in qemu_fwcfg_add_item() argument 206 fwcfg_item->size = size; in qemu_fwcfg_add_item() 221 void *ptr = calloc(1, size); in qemu_fwcfg_add_item_file_dir() 316 iop.size = size; in qemu_fwcfg_register_port() 338 index, size, data); in qemu_fwcfg_add_file() 417 fwcfg_sc.items[0][QEMU_FWCFG_INDEX_FILE_DIR].size = in qemu_fwcfg_add_file() 436 fwcfg_file->size, fwcfg_file->data); in qemu_fwcfg_add_user_files() 611 fwcfg_file->size = strlen(opt_ptr) + 1; in qemu_fwcfg_parse_cmdline_arg() [all …]
|
/illumos-gate/usr/src/cmd/csh/ |
H A D | sh.misc.c | 293 if (size) in copy() 296 while (--size != 0); in copy() 442 xalloc(size_t size) in xalloc() argument 447 return (nomem(size)); in xalloc() 448 bp = rptr + size; in xalloc() 460 return (xalloc(size)); in xrealloc() 464 if (size == 0) in xrealloc() 466 rptr = xalloc(size); in xrealloc() 474 if (size == 0) { in xrealloc() 479 return (nomem(size)); in xrealloc() [all …]
|
/illumos-gate/usr/src/cmd/lp/lib/lp/ |
H A D | sop.c | 45 register int size, in sop_up_rest() local 55 size = 0; in sop_up_rest() 65 str = Realloc(str, size + add_size + 1); in sop_up_rest() 67 str = Malloc(size + add_size + 1); in sop_up_rest() 72 strcpy (str + size, buf); in sop_up_rest() 73 size += add_size; in sop_up_rest()
|
/illumos-gate/usr/src/cmd/truss/ |
H A D | htbl.c | 41 init_hash(unsigned int size) in init_hash() argument 47 if ((size & (size - 1)) != 0) in init_hash() 51 htp->size = size; in init_hash() 53 my_calloc((size_t)size, sizeof (hashb_t), NULL); in init_hash() 56 for (i = 0; i < size; i++) { in init_hash() 72 for (i = 0; i < htp->size; i++) { in destroy_hash() 124 bucket = hash_str(key, htp->size); in add_fcall() 183 for (i = 0; i < tbl->size; i++) { in iterate_hash() 206 for (i = 0; i < tbl->size; i++) { in iter_free() 234 for (i = i + 1; i < hash->size; i++) { in iter_next()
|
/illumos-gate/usr/src/uts/common/io/ib/ibtl/ |
H A D | ibtl_wr.c | 54 ibt_post_send(ibt_channel_hdl_t chan, ibt_send_wr_t *wr_list, uint_t size, in ibt_post_send() argument 58 chan, wr_list, size); in ibt_post_send() 61 chan->ch_qp.qp_ibc_qp_hdl, wr_list, size, posted)); in ibt_post_send() 79 ibt_post_recv(ibt_channel_hdl_t chan, ibt_recv_wr_t *wr_list, uint_t size, in ibt_post_recv() argument 83 chan, wr_list, size); in ibt_post_recv() 86 chan->ch_qp.qp_ibc_qp_hdl, wr_list, size, posted)); in ibt_post_recv()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/ |
H A D | output.c | 116 sendpacket(struct sockaddr_in6 *sin6, struct interface *ifp, int size, in sendpacket() argument 119 if (sendto(ifp->int_sock, packet, size, flags, in sendpacket() 139 int size, i, maxsize; in supply() local 197 size = (char *)n - packet; in supply() 198 if (size > maxsize - sizeof (struct netinfo6)) { in supply() 199 sendpacket(sin6, ifp, size, 0); in supply() 200 TRACE_OUTPUT(ifp, sin6, size); in supply() 212 size = (char *)n - packet; in supply() 213 sendpacket(sin6, ifp, size, 0); in supply() 214 TRACE_OUTPUT(ifp, sin6, size); in supply()
|
/illumos-gate/usr/src/lib/iconv_modules/utf-8/common/binarytables/test/ |
H A D | mkmnmcstbl.c | 43 signed char size; member 72 tbl[i].size = 0; in main() 103 if (tbl[k].size != 0) { in main() 111 tbl[k].size = 1; in main() 113 tbl[k].size = 2; in main() 115 tbl[k].size = 3; in main() 117 tbl[k].size = 4; in main() 119 tbl[k].size = 5; in main() 121 tbl[k].size = 6; in main() 124 if (tbl[i].size > 0 ) { in main()
|