/illumos-gate/usr/src/uts/common/io/ |
H A D | strsun.c | 95 if (mp == NULL || MBLKSIZE(mp) < size || DB_REF(mp) > 1) { in mexchange() 97 if ((mp = allocb(size, BPRI_LO)) == NULL) { in mexchange() 108 mp->b_wptr = mp->b_rptr + size; in mexchange() 157 cp->cq_size = size; in mcopyin() 184 cp->cq_size = size; in mcopyout() 194 mp->b_cont->b_wptr = mp->b_cont->b_rptr + size; in mcopyout() 199 miocpullup(mblk_t *iocmp, size_t size) in miocpullup() argument 225 if (size == 0) in miocpullup() 231 if (MBLKL(datamp) >= size) in miocpullup() 234 newdatamp = msgpullup(datamp, size); in miocpullup() [all …]
|
/illumos-gate/usr/src/stand/lib/fs/common/ |
H A D | cache.c | 67 int size; /* .. Size of cached data */ member 73 int size; /* .. Size of "cache" objects */ member 183 bkmem_free((caddr_t)cap->data, cap->size); in reclaim_cache() 187 bkmem_free((caddr_t)cap, chp->size); in reclaim_cache() 218 (cap = (cache_t *)bkmem_alloc(chp->size))) { in set_cache() 240 bzero((char *)cap, chp->size); in set_cache() 316 icp->ic_hdr.size = size; in set_icache() 338 icp->ic_hdr.size = size; in set_ricache() 426 dcp->dc_hdr.size = len; in set_dcache() 474 dcp->dc_hdr.size = len; in set_rdcache() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_ppp.c | 925 opt_format_mru(uchar_t *optdata, uint8_t size) in opt_format_mru() argument 946 opt_format_accm(uchar_t *optdata, uint8_t size) in opt_format_accm() argument 986 if (size < sizeof (proto) + sizeof (algo)) in opt_format_authproto() 1088 opt_format_fcs(uchar_t *optdata, uint8_t size) in opt_format_fcs() argument 1114 opt_format_sdp(uchar_t *optdata, uint8_t size) in opt_format_sdp() argument 1184 if (size > sizeof (operation)) { in opt_format_callback() 1186 size - sizeof (operation), optdata); in opt_format_callback() 1201 opt_format_mrru(uchar_t *optdata, uint8_t size) in opt_format_mrru() argument 1223 uint8_t addrlen = size - sizeof (class); in opt_format_epdisc() 1308 opt_format_dce(uchar_t *optdata, uint8_t size) in opt_format_dce() argument [all …]
|
/illumos-gate/usr/src/lib/libresolv2/common/irs/ |
H A D | lcl_sv.c | 226 key.size = sizeof(u_short) * 2; in sv_byport() 229 BUFSIZ - key.size); in sv_byport() 230 key.size += strlen((char *)ports + key.size) + 1; in sv_byport() 386 if (key->size < sizeof(u_short)*2 || data->size < 2) in sv_db_rec() 398 data->size -= n; in sv_db_rec() 400 if (data->size < sizeof(u_short) + 1) in sv_db_rec() 402 if (key->size > sizeof(sv->line)) in sv_db_rec() 403 key->size = sizeof(sv->line); in sv_db_rec() 405 memcpy(sv->line, key->data, key->size); in sv_db_rec() 411 data->size -= sizeof(u_short); in sv_db_rec() [all …]
|
/illumos-gate/usr/src/uts/sparc/krtld/ |
H A D | kobj_isa.c | 125 pp->size = ALIGN(pp->size, shp->sh_addralign); in get_progbits_size() 126 pp->size += ALIGN(shp->sh_size, 8); in get_progbits_size() 128 tp->size = ALIGN(tp->size, 8); in get_progbits_size() 129 dp->size = ALIGN(dp->size, 8); in get_progbits_size()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/cdt/ |
H A D | dttree.c | 196 ssize_t size, z; local 212 size = 1; 216 else size += z; 220 else size += z; 222 return size; 233 ssize_t size; local 243 st->size = size; 254 ssize_t size; 260 if(size <= 2) 274 ssize_t size; in toptimize() local [all …]
|
/illumos-gate/usr/src/lib/libsocket/inet/ |
H A D | interface_id.c | 55 size_t size; in if_nametoindex() local 69 size = strlen(ifname); in if_nametoindex() 70 if (size > (IF_NAMESIZE - 1)) { in if_nametoindex() 75 strncpy(lifr.lifr_name, ifname, size +1); in if_nametoindex() 189 size_t size; in if_indextoname() local 196 size = strcspn(lifrp->lifr_name, in if_indextoname() 198 lifrp->lifr_name[size] = '\0'; in if_indextoname() 200 (void) strncpy(ifname, lifrp->lifr_name, size + 1); in if_indextoname() 286 size_t size; in if_nameindex() local 296 lifrp->lifr_name, size) == 0) { in if_nameindex() [all …]
|
/illumos-gate/usr/src/cmd/ttymon/ |
H A D | tmparse.c | 39 getword(char *ptr, int *size, int getall) in getword() argument 45 *size = 0; in getword() 49 (*size)++; in getword() 57 *ptr != '\0' && *ptr != ':'; ptr++, (*size)++) { in getword() 66 (*size) += qsize; in getword() 77 (*size)++; in getword()
|
/illumos-gate/usr/src/uts/common/io/sfxge/ |
H A D | sfxge_tcp.c | 79 size_t size; in sfxge_pkthdr_parse() local 88 size = 0; in sfxge_pkthdr_parse() 132 size = ntohs(iphp->ip_len); in sfxge_pkthdr_parse() 134 ASSERT3U(etherhs + size, <=, msgdsize(mp)); in sfxge_pkthdr_parse() 140 size -= iphs; in sfxge_pkthdr_parse() 157 size -= ths; in sfxge_pkthdr_parse() 176 size -= sizeof (struct udphdr); in sfxge_pkthdr_parse() 195 size -= sizeof (struct sctp_hdr); in sfxge_pkthdr_parse() 208 *sizep = size; in sfxge_pkthdr_parse()
|
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/oce/ |
H A D | oce_buf.c | 64 uint32_t size, ddi_dma_attr_t *dma_attr, uint32_t flags) in oce_alloc_dma_buffer() argument 72 ASSERT(size > 0); in oce_alloc_dma_buffer() 92 ret = ddi_dma_mem_alloc(dbuf->dma_handle, size, &oce_dma_buf_accattr, in oce_alloc_dma_buffer() 113 dbuf->size = actual_len; in oce_alloc_dma_buffer() 115 dbuf->len = size; in oce_alloc_dma_buffer() 116 dbuf->num_pages = OCE_NUM_PAGES(size); in oce_alloc_dma_buffer() 171 uint32_t size; in create_ring_buffer() local 180 size = num_items * item_size; in create_ring_buffer() 181 ring->dbuf = oce_alloc_dma_buffer(dev, size, NULL, flags); in create_ring_buffer()
|
/illumos-gate/usr/src/lib/libfakekernel/common/ |
H A D | strext.c | 27 int size; in kmem_asprintf() local 32 size = vsnprintf(NULL, 0, fmt, adx) + 1; in kmem_asprintf() 35 buf = kmem_alloc(size, KM_SLEEP); in kmem_asprintf() 38 size = vsnprintf(buf, size, fmt, adx); in kmem_asprintf()
|
/illumos-gate/usr/src/boot/i386/libi386/ |
H A D | bio.c | 44 bio_alloc(size_t size) in bio_alloc() argument 49 if (ptr + size > bio_buffer_end) in bio_alloc() 51 bio_buffer_ptr += size; in bio_alloc() 57 bio_free(void *ptr, size_t size) in bio_free() argument 63 bio_buffer_ptr -= size; in bio_free()
|
/illumos-gate/usr/src/lib/libdtrace/common/ |
H A D | dt_print.c | 182 if (size > sizeof (value)) { in print_bitfield() 194 buf += sizeof (value) - size; in print_bitfield() 197 bcopy(addr, buf, size); in print_bitfield() 225 switch (size) { in dt_print_hex() 257 size_t size; in dt_print_int() local 274 size = e.cte_bits / NBBY; in dt_print_int() 294 dt_print_hex(fp, addr, size); in dt_print_int() 345 dt_print_hex(fp, addr, size); in dt_print_ptr() 500 ssize_t size; in dt_print_enum() local 510 switch (size) { in dt_print_enum() [all …]
|
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/recno/ |
H A D | rec_get.c | 132 if (t->bt_rdata.size < t->bt_reclen) { 138 t->bt_rdata.size = t->bt_reclen; 141 data.size = t->bt_reclen; 195 data.size = p - (u_char *)t->bt_rdata.data; 196 if (ch == EOF && data.size == 0) 205 t->bt_rdata.size += (sz = 256); 207 malloc(t->bt_rdata.size) : 244 if (t->bt_rdata.size < t->bt_reclen) { 250 t->bt_rdata.size = t->bt_reclen; 253 data.size = t->bt_reclen; [all …]
|
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/ |
H A D | adb_policy.c | 93 dbkey.size = (strlen(entry->name) + 1); in osa_adb_create_policy() 112 dbdata.size = xdr_getpos(&xdrs); in osa_adb_create_policy() 166 dbkey.size = (strlen(name) + 1); in osa_adb_destroy_policy() 225 dbkey.size = (strlen(dbkey.data) + 1); in osa_adb_get_policy() 227 dbdata.size = 0; in osa_adb_get_policy() 243 if (!(aligned_data = (char *) malloc(dbdata.size))) { in osa_adb_get_policy() 247 memcpy(aligned_data, dbdata.data, dbdata.size); in osa_adb_get_policy() 297 dbkey.size = (strlen(entry->name) + 1); in osa_adb_put_policy() 315 dbdata.size = xdr_getpos(&xdrs); in osa_adb_put_policy() 372 if(!(aligned_data = (char *) malloc(dbdata.size))) { in osa_adb_iter_policy() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/ |
H A D | trace.h | 79 #define TRACE_INPUT(ifp, src, size) { \ argument 81 trace(&(ifp)->int_input, (src), packet, (size), \ 86 packet, (size)); \ 89 #define TRACE_OUTPUT(ifp, dst, size) { \ argument 91 trace(&(ifp)->int_output, (dst), packet, (size), \ 96 packet, (size)); \
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/vmalloc/ |
H A D | malloc.c | 511 extern Void_t* malloc(size) in malloc() 512 reg size_t size; in malloc() 543 return malloc(size); 556 copy = size; 631 reg size_t size; 656 reg size_t size; 675 reg size_t size; in valloc() 688 reg size_t size; in pvalloc() 740 size_t size; in alloca() 798 r = malloc(size); in vm_malloc_hook() [all …]
|
H A D | vmgetmem.c | 37 Void_t* vmgetmem(Vmalloc_t* vm, Void_t* data, size_t size) in vmgetmem() argument 39 Void_t* vmgetmem(vm, data, size) in vmgetmem() 42 size_t size; 47 if (data || size) 48 return vmresize(vm, data, size, VM_RSMOVE|VM_RSCOPY|VM_RSZERO);
|
/illumos-gate/usr/src/lib/krb5/dyn/ |
H A D | dyn_create.c | 41 obj->num_el = obj->size = 0; 59 obj1->size = obj->size; 64 obj1->array = (char *) malloc(obj1->el_size * obj1->size); 70 (size_t) (obj1->el_size * obj1->size)); 81 obj->el_size * obj->size, obj->array); 82 memset(obj->array, 0, obj->el_size * obj->size);
|
/illumos-gate/usr/src/uts/sun4u/io/pci/ |
H A D | pci_tools.c | 162 switch (size) { in pcitool_phys_peek() 201 switch (size) { in pcitool_phys_poke() 574 } else if (!IS_P2ALIGNED(phys_addr, size)) { in pcitool_access() 585 size, (endian ? "BE" : "LE"), phys_addr); in pcitool_access() 602 size, (endian ? "BE" : "LE"), phys_addr); in pcitool_access() 633 uint8_t size; in pcitool_bus_reg_ops() local 669 size = PCITOOL_ACC_ATTR_SIZE(prg.acc_attr); in pcitool_bus_reg_ops() 848 uint8_t size; in pcitool_dev_reg_ops() local 866 size = PCITOOL_ACC_ATTR_SIZE(prg.acc_attr); in pcitool_dev_reg_ops() 898 size, write_flag); in pcitool_dev_reg_ops() [all …]
|
/illumos-gate/usr/src/tools/smatch/src/ |
H A D | smatch_type.c | 842 n = type_str_helper(buf, size, type); in type_str_helper() 843 if (n > size) in type_str_helper() 848 n = type_str_helper(buf, size, type); in type_str_helper() 849 if (n > size) in type_str_helper() 865 if (n > size) in type_str_helper() 868 if (n > size) in type_str_helper() 875 if (n > size) in type_str_helper() 879 if (n > size) in type_str_helper() 885 n = snprintf(buf, size, "node {"); in type_str_helper() 886 if (n > size) in type_str_helper() [all …]
|
/illumos-gate/usr/src/grub/grub-0.97/stage2/ |
H A D | fsys_ufs2.c | 171 int logno, off, size, ret = 0; in ufs2_read() local 178 size = blksize (SUPERBLOCK, INODE_UFS2, logno); in ufs2_read() 183 size -= off; in ufs2_read() 185 if (size > len) in ufs2_read() 186 size = len; in ufs2_read() 190 devread (fsbtodb (SUPERBLOCK, map), off, size, buf); in ufs2_read() 194 buf += size; in ufs2_read() 195 len -= size; in ufs2_read() 196 filepos += size; in ufs2_read() 197 ret += size; in ufs2_read()
|
/illumos-gate/usr/src/lib/libmlrpc/common/ |
H A D | ndr_heap.c | 125 ndr_heap_malloc(ndr_heap_t *heap, unsigned size) in ndr_heap_malloc() argument 130 size += NDR_ALIGN4(size); in ndr_heap_malloc() 132 if (heap == NULL || size == 0) in ndr_heap_malloc() 137 if (p + size > heap->top) { in ndr_heap_malloc() 141 incr_size = (size < NDR_HEAP_BLKSZ) ? NDR_HEAP_BLKSZ : size; in ndr_heap_malloc() 152 heap->next = p + size; in ndr_heap_malloc() 153 heap->iov->iov_len += size; in ndr_heap_malloc() 277 vcbuf->size = datalen; in ndr_heap_mkvcb()
|
/illumos-gate/usr/src/cmd/ramdiskadm/ |
H A D | main.c | 92 alloc_ramdisk(int ctl_fd, char *name, uint64_t size) in alloc_ramdisk() argument 97 ri.ri_size = size; in alloc_ramdisk() 217 uint64_t size; in main() local 238 size = strtoll(argv[optind], &suffix, 0); in main() 240 size *= 512; in main() 243 size *= 1024; in main() 246 size *= (1024 * 1024); in main() 249 size *= (1024 * 1024 * 1024); in main() 252 if (size == 0 || *suffix != '\0') { in main() 330 alloc_ramdisk(ctl_fd, name, size); in main()
|
/illumos-gate/usr/src/boot/sys/cddl/boot/zfs/ |
H A D | sha256.c | 201 unsigned padsize = size & 63; in SHA256() 205 for (i = 0; i < size - padsize; i += 64) in SHA256() 216 pad[padsize++] = (size << 3) >> (56 - 8 * i); in SHA256() 257 unsigned padsize = size & 127; in SHA512() 261 for (i = 0; i < size - padsize; i += 128) in SHA512() 277 c64[1] = size << 3; in SHA512() 289 zio_checksum_SHA256(const void *buf, uint64_t size, in zio_checksum_SHA256() argument 297 SHA256(H, buf, size, zcp); in zio_checksum_SHA256() 301 zio_checksum_SHA512_native(const void *buf, uint64_t size, in zio_checksum_SHA512_native() argument 311 SHA512(H, buf, size, zcp); in zio_checksum_SHA512_native() [all …]
|