/illumos-gate/usr/src/common/smbios/ |
H A D | smb_info.c | 358 uint_t size; in smbios_info_contains() local 373 size = isp->is_contsz; in smbios_info_contains() 379 if (size == SMB_CONT_WORD) in smbios_info_contains() 1602 size_t size; in smbios_info_extmemdevice_cs() local 1618 size = exmd.smbmdeve_ncs * sizeof (*exmd.smbmdeve_cs); in smbios_info_extmemdevice_cs() 1620 if (stp->smbst_hdr->smbh_len < sizeof (exmd) + size) in smbios_info_extmemdevice_cs() 1623 buf = smb_alloc(size); in smbios_info_extmemdevice_cs() 1626 smb_info_bcopy_offset(stp->smbst_hdr, buf, size, sizeof (exmd)); in smbios_info_extmemdevice_cs() 1637 size_t size = ncs * sizeof (uint8_t); in smbios_info_extmemdevice_cs_free() local 1639 if (size == 0) { in smbios_info_extmemdevice_cs_free() [all …]
|
/illumos-gate/usr/src/uts/common/inet/tcp/ |
H A D | tcp_output.c | 107 size_t size; in tcp_wput() local 116 size = msgdsize(mp); in tcp_wput() 119 tcp->tcp_squeue_bytes += size; in tcp_wput()
|
/illumos-gate/usr/src/uts/common/inet/ip/ |
H A D | keysock.c | 481 int size; in keysock_close() local 522 size = sizeof (keysock_consumer_t); in keysock_close() 536 size = sizeof (keysock_t); in keysock_close() 549 kmem_free(ptr, size); in keysock_close()
|
/illumos-gate/usr/src/lib/libipsecutil/common/ |
H A D | ipsec_util.c | 3456 do_inet_ntop(const void *addr, char *cp, size_t size) in do_inet_ntop() argument 3467 isv4 ? (void *)&inaddr : inaddr6, cp, size)); in do_inet_ntop()
|
/illumos-gate/usr/src/cmd/mdb/common/modules/ip/ |
H A D | ip.c | 188 size_t size; member 1697 size_t size = mi_osize(q); in ip_qinfo() local 1699 if (size == sizeof (ill_t)) in ip_qinfo() 1706 size_t size = mi_osize(q); in ip_rnext() local 1709 if (size == sizeof (ill_t) && mdb_vread(&ill, sizeof (ill), in ip_rnext() 1719 size_t size = mi_osize(q); in ip_wnext() local 1722 if (size == sizeof (ill_t) && mdb_vread(&ill, sizeof (ill), in ip_wnext()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/nc/ |
H A D | netcat.c | 742 atelnet(int nfd, unsigned char *buf, unsigned int size) in atelnet() argument 747 end = buf + size; in atelnet()
|
/illumos-gate/usr/src/cmd/latencytop/ |
H A D | util.c | 70 lt_malloc(size_t size) in lt_malloc() argument 72 void *ret = malloc(size); in lt_malloc() 85 lt_zalloc(size_t size) in lt_zalloc() argument 87 void *ret = calloc(size, 1); in lt_zalloc()
|
/illumos-gate/usr/src/lib/libc/ |
H A D | README | 104 require the caller to remember the size parameter passed 164 * lfree takes an argument to tell the size of the releasing 165 memory. If the function does not know the size at the
|
/illumos-gate/usr/src/cmd/sgs/rtld/common/ |
H A D | util.c | 307 pnavl_create(size_t size) in pnavl_create() argument 485 size_t size; in spavl_insert() local 494 size = 1; in spavl_insert() 496 size = str - name; in spavl_insert() 498 (void) strncpy(buffer, name, size); in spavl_insert() 499 buffer[size] = '\0'; in spavl_insert() 3133 errptr += (size + 1); in rtldexit() 3672 size_t size; in platform_name() local 3674 if ((scapset->sc_platsz = size = in platform_name() 3694 size_t size; in machine_name() local [all …]
|
/illumos-gate/usr/src/uts/common/fs/sockfs/ |
H A D | socktpi.c | 2780 t_scalar_t size; in so_unix_close() local 3468 int size; in sosend_dgramcmsg() local 3587 mp = fdbuf_allocmsg(size, fdbuf); in sosend_dgramcmsg() 3633 ASSERT(MBLKL(mp) <= (ssize_t)size); in sosend_dgramcmsg() 3660 int size; in sosend_svccmsg() local 3707 size = (int)sizeof (tdr) + optlen; in sosend_svccmsg() 3730 mp = fdbuf_allocmsg(size, fdbuf); in sosend_svccmsg() 3759 ASSERT(MBLKL(mp) <= (ssize_t)size); in sosend_svccmsg() 3918 ssize_t size; in sosend_dgram() local 5351 bcopy(option, optval, size); in sotpi_getsockopt() [all …]
|
H A D | socksyscalls.c | 2170 u_offset_t size; in snf_async_read() local 2182 size = sr->sr_file_size; in snf_async_read() 2247 size -= ret_size; in snf_async_read() 2301 u_offset_t fileoff, u_offset_t size) in create_thread() argument 2324 sr->sr_file_size = size; in create_thread() 2823 iosize = (int)MIN(maxpsz, size); in snf_cache() 2875 size -= iosize; in snf_cache() 2876 if (size == 0) in snf_cache() 2887 size = 0; in snf_cache() 2888 else if (size + fileoff > va.va_size) in snf_cache() [all …]
|
H A D | socksubr.c | 1411 size = MAX(size, 64); in soallocproto() 1467 if (size == 0) in soallocproto1() 1468 size = len; in soallocproto1() 1470 ASSERT(size >= len); in soallocproto1() 1472 size = MAX(size, 64); in soallocproto1() 1522 if (size == 0) in soallocproto2() 1523 size = len1 + len2; in soallocproto2() 1544 if (size == 0) in soallocproto3() 1952 aiov[0].iov_len = size; in soreadfile() 1954 cnt = (ssize_t)size; in soreadfile() [all …]
|
H A D | sockcommon_sops.c | 464 size_t size; in so_sendmblk_impl() local 473 size = msgdsize(mp); in so_sendmblk_impl() 476 size > so->so_proto_props.sopp_maxpsz && in so_sendmblk_impl()
|
H A D | sockcommon_subr.c | 741 size_t size = msgsize(mp); in so_dequeue_msg() local 743 error = strwaitbuf(size, BPRI_HI); in so_dequeue_msg() 884 size_t size = msgsize(savemp); in so_dequeue_msg() local 886 error = strwaitbuf(size, in so_dequeue_msg() 1177 ssize_t size; in sorecvoob() local 1179 size = MBLKL(mp); in sorecvoob() 1181 mp1->b_wptr += size; in sorecvoob() 1561 size_t size = 0; in so_strioc_nread() local 1593 size = msgdsize(so->so_rcv_q_head); in so_strioc_nread() 1601 size = msgdsize(so->so_rcv_head); in so_strioc_nread() [all …]
|
/illumos-gate/usr/src/uts/common/inet/ |
H A D | ipclassifier.h | 591 #define IPCL_PORT_HASH(port, size) \ argument 592 ((((port) >> 8) ^ (port)) & ((size) - 1))
|
/illumos-gate/usr/src/uts/common/io/mac/ |
H A D | mac.c | 4313 mac_init_group(mac_impl_t *mip, mac_group_t *group, int size, in mac_init_group() argument 4322 for (index = size - 1; index >= 0; index--) in mac_init_group()
|
/illumos-gate/usr/src/uts/intel/os/ |
H A D | cpuid.c | 5645 int i, max, shft, level, size; in cpuid_pass_dynamic() local 5701 cpi->cpi_cache_leaf_size = size = i; in cpuid_pass_dynamic() 5708 if (size > 0) { in cpuid_pass_dynamic() 5724 for (i = 1; i < size; i++) { in cpuid_pass_dynamic() 6402 size_t size, off; in cpuid_get_xsave_info() local 6407 sizep = &size; in cpuid_get_xsave_info() 7157 if (size == 0) in add_amd_tlb() 7167 if (size == 0 || line_size == 0) in add_amd_cache() 7210 if (size == 0 || assoc == 0) in add_amd_l2_tlb() 7671 uint_t size, assoc; in amd_l2cacheinfo() local [all …]
|
/illumos-gate/usr/src/cmd/smbios/ |
H A D | smbios.c | 990 print_bytes(const uint8_t *data, size_t size, FILE *fp) in print_bytes() argument 992 size_t row, rows = P2ROUNDUP(size, 16) / 16; in print_bytes() 1003 cols = MIN(size - row * 16, 16); in print_bytes()
|
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/emlxs/ |
H A D | emlxs_solaris.c | 2334 *size = -1; in emlxs_fca_get_cap() 10767 int size; in emlxs_swap_service_params() local 11930 size = 16; in emlxs_integrity_check() 11937 size = 8; in emlxs_integrity_check() 11944 size = 12; in emlxs_integrity_check() 11951 size = 16; in emlxs_integrity_check() 11958 size = 8; in emlxs_integrity_check() 11971 size = 4; in emlxs_integrity_check() 11978 size = 124; in emlxs_integrity_check() 11986 size = 128; in emlxs_integrity_check() [all …]
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | zfs_ioctl.c | 1408 if (size == 0) in get_nvlist() 1415 kmem_free(packed, size); in get_nvlist() 1420 kmem_free(packed, size); in get_nvlist() 1424 kmem_free(packed, size); in get_nvlist() 1439 size_t size; in nvlist_smush() local 1443 if (size > max) { in nvlist_smush() 1459 } while (size > max); in nvlist_smush() 1474 size_t size; in put_nvlist() local 1476 size = fnvlist_size(nvl); in put_nvlist() 1866 uint64_t size; in zfs_ioc_pool_get_history() local [all …]
|
H A D | arc.c | 1616 uint64_t size; in arc_hdr_size() local 1625 return (size); in arc_hdr_size() 2793 size, hdr); in arc_hdr_free_on_write() 3035 uint64_t size; in arc_hdr_alloc_pabd() local 3085 size, hdr); in arc_hdr_free_pabd() 5093 size, tag); in arc_free_data_impl() 5806 uint64_t size; in arc_read() local 7549 if (size == 0) { in l2arc_write_size() 7565 if ((size + l2arc_log_blk_overhead(size, dev)) >= dev_size) { in l2arc_write_size() 7578 return (size); in l2arc_write_size() [all …]
|
/illumos-gate/usr/src/cmd/mdb/common/modules/zfs/ |
H A D | zfs.c | 352 (void) strncpy(out, cp, size); in enum_lookup() 354 mdb_snprintf(out, size, "? (%d)", val); in enum_lookup() 1316 int minidx = size - 1; in dump_histogram() 1320 for (i = 0; i < size; i++) { in dump_histogram() 1942 char size[MDB_NICENUM_BUFLEN]; in metaslab_print_weight() local 1945 WEIGHT_GET_COUNT(weight), size); in metaslab_print_weight() 2742 if (mdb_vread(buf, size, addr) == -1) { in btree_leftmost_child() 2791 size_t size = sizeof (zfs_btree_core_t) + in btree_walk_step() local 2862 bwd->bwd_node = mdb_zalloc(size, UM_SLEEP); in btree_walk_init() 2872 mdb_free(bwd->bwd_node, size); in btree_walk_init() [all …]
|
/illumos-gate/usr/src/uts/intel/sys/amdzen/ |
H A D | smn.h | 365 SMN_MAKE_REG_SIZED(const uint32_t addr, const uint8_t size) in SMN_MAKE_REG_SIZED() argument 367 const uint8_t size_always = (size == 0) ? 4 : size; in SMN_MAKE_REG_SIZED() 387 #define SMN_REG_IS_ALIGNED(x, size) IS_P2ALIGNED(SMN_REG_ADDR(x), size) argument
|
/illumos-gate/usr/src/lib/fm/topo/modules/common/zen/ |
H A D | topo_zen_tn.c | 139 uint64_t sets, size, id; in topo_zen_build_cache() local 155 FM_CACHE_INFO_TOTAL_SIZE, DATA_TYPE_UINT64, &size, in topo_zen_build_cache() 190 TOPO_PGROUP_CACHE_SIZE, TOPO_TYPE_UINT64, size, in topo_zen_build_cache()
|
/illumos-gate/usr/src/boot/i386/libi386/ |
H A D | biosdisk.c | 799 uint64_t size; in bd_disk_get_sectors() local 811 size = bd->bd_sectors * bd->bd_sectorsize; in bd_disk_get_sectors() 816 return (size / bd->bd_sectorsize); in bd_disk_get_sectors() 975 if (size == 0 || (size % BIOSDISK_SECSIZE) != 0) { in bd_realstrategy() 977 size, BIOSDISK_SECSIZE); in bd_realstrategy() 993 if (size > INT_MAX) { in bd_realstrategy() 998 blks = size / bd->bd_sectorsize; in bd_realstrategy() 1033 size = blks * bd->bd_sectorsize; in bd_realstrategy() 1037 bio_size = min(BIO_BUFFER_SIZE, size); in bd_realstrategy() 1052 rest = size; in bd_realstrategy() [all …]
|