/illumos-gate/usr/src/common/ucode/ |
H A D | ucode_utils_intel.c | 53 uint32_t header_size, body_size, total_size; in ucode_header_validate_intel() local 65 total_size = UCODE_TOTAL_SIZE_INTEL(uhp->uh_total_size); in ucode_header_validate_intel() 75 (total_size < (header_size + body_size)) || in ucode_header_validate_intel() 76 (total_size % UCODE_KB(1))) in ucode_header_validate_intel() 83 if (total_size < UCODE_MIN_SIZE || total_size > UCODE_MAX_SIZE) in ucode_header_validate_intel() 94 if (total_size > (header_size + body_size)) { in ucode_header_validate_intel() 95 if ((total_size - body_size - header_size - in ucode_header_validate_intel() 155 uint32_t total_size, body_size, ext_size; in ucode_validate_intel() local 165 total_size = UCODE_TOTAL_SIZE_INTEL(uhp->uh_total_size); in ucode_validate_intel() 167 if (ucode_checksum_intel(0, total_size, curbuf) != 0) in ucode_validate_intel() [all …]
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_send/ |
H A D | zfs_send_006_pos.ksh | 59 typeset total_size=$(zfs send $option $snapshot 2>&1 | tail -1) 61 typeset total_size=$(zfs send $option $base_snapshot $snapshot \ 65 total_size=$(echo "$total_size" | awk '{print $2}') 67 total_size=$(echo "$total_size" | awk '{print $5}') 68 total_size=${total_size%M} 69 total_size=$(echo "$total_size * $block_count" | bc) 71 echo $total_size
|
/illumos-gate/usr/src/tools/smatch/src/ |
H A D | check_stack.c | 28 static int total_size; variable 38 total_size -= size; in scope_end() 50 total_size += type_bytes(base); in match_declarations() 51 if (total_size > max_size) { in match_declarations() 52 max_size = total_size; in match_declarations() 71 total_size = 0; in match_end_func()
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4v/mdesc/ |
H A D | cpu_prop_update.c | 82 int type_size, str_size, total_size, type_flag; in add_tlb_props() local 90 total_size = type_flag = 0; in add_tlb_props() 92 while (total_size < type_size) { in add_tlb_props() 93 str_size = strlen((char *)type + total_size) + 1; in add_tlb_props() 94 (void) strncpy(str, (char *)type + total_size, in add_tlb_props() 100 total_size += str_size; in add_tlb_props() 136 int type_size, str_size, total_size, type_flag; in add_cache_props() local 148 total_size = type_flag = 0; in add_cache_props() 150 while (total_size < type_size) { in add_cache_props() 151 str_size = strlen((char *)type + total_size) + 1; in add_cache_props() [all …]
|
/illumos-gate/usr/src/uts/intel/os/ |
H A D | microcode_intel.c | 82 int total_size, body_size; in ucode_file_reset_intel() local 87 total_size = UCODE_TOTAL_SIZE_INTEL(ucodefp->uf_header->uh_total_size); in ucode_file_reset_intel() 96 int size = total_size - body_size - UCODE_HEADER_SIZE_INTEL; in ucode_file_reset_intel() 221 int total_size, body_size, ext_size; in ucode_locate_intel() local 228 total_size = UCODE_TOTAL_SIZE_INTEL(uhp->uh_total_size); in ucode_locate_intel() 255 ext_size = total_size - offset; in ucode_locate_intel() 363 int total_size, body_size, ext_size; in ucode_extract_intel() local 369 total_size = UCODE_TOTAL_SIZE_INTEL(uhp->uh_total_size); in ucode_extract_intel() 371 ext_size = total_size - (header_size + body_size); in ucode_extract_intel() 401 remaining -= total_size; in ucode_extract_intel()
|
/illumos-gate/usr/src/uts/intel/io/pci/ |
H A D | pci_memlist.c | 226 uint64_t delta, total_size; in pci_memlist_find() local 235 total_size = size + align - delta; in pci_memlist_find() 237 total_size = size; /* the addr is already aligned */ in pci_memlist_find() 238 if (next->ml_size >= total_size) in pci_memlist_find() 263 uint64_t delta, total_size; in pci_memlist_find_with_startaddr() local 277 total_size = size + align - delta; in pci_memlist_find_with_startaddr() 279 total_size = size; /* the addr is already aligned */ in pci_memlist_find_with_startaddr() 280 if (next->ml_size < total_size) in pci_memlist_find_with_startaddr()
|
/illumos-gate/usr/src/uts/sun4/os/ |
H A D | iommutsb.c | 118 size_t total_size; in iommu_tsb_init() local 167 total_size = ntsbs * tsb_size; in iommu_tsb_init() 169 if (total_size == 0) in iommu_tsb_init() 176 total_size, MMU_PAGESIZE)) == NULL) in iommu_tsb_init() 185 return (base + total_size); in iommu_tsb_init()
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | sendfile.c | 394 int copy_cnt, ssize_t total_size, int maxblk, ssize_t *count) in sendvec_small_chunk() argument 417 size_t size = total_size; in sendvec_small_chunk() 429 if (total_size == 0) in sendvec_small_chunk() 445 buf_left = MIN(total_size, maxblk); in sendvec_small_chunk() 490 buf_left = MIN(total_size, maxblk); in sendvec_small_chunk() 515 total_size -= iov_len; in sendvec_small_chunk() 585 total_size -= (sfv_off + sfv_len - maxoff); in sendvec_small_chunk() 593 buf_left = MIN(total_size, maxblk); in sendvec_small_chunk() 657 total_size -= cnt; in sendvec_small_chunk() 668 ASSERT(total_size == 0); in sendvec_small_chunk() [all …]
|
/illumos-gate/usr/src/cmd/ucodeadm/ |
H A D | ucodeadm.c | 388 uint32_t total_size, body_size, offset; in ucode_gen_files_intel() local 398 total_size = UCODE_TOTAL_SIZE_INTEL(uhp->uh_total_size); in ucode_gen_files_intel() 401 remaining -= total_size; in ucode_gen_files_intel() 419 if (write(fd, curbuf, total_size) != total_size) { in ucode_gen_files_intel() 461 if (total_size == offset) in ucode_gen_files_intel() 548 uint32_t total_size, body_size, offset; in ucode_list_intel() local 554 total_size = UCODE_TOTAL_SIZE_INTEL(uhp->uh_total_size); in ucode_list_intel() 557 remaining -= total_size; in ucode_list_intel() 572 if (total_size == offset) in ucode_list_intel()
|
/illumos-gate/usr/src/lib/libc/port/rt/ |
H A D | mqueue.c | 383 uint64_t total_size; in mq_open() local 436 total_size = sizeof (mqhdr_t) + in mq_open() 440 if (total_size > SSIZE_MAX) { in mq_open() 460 if (ftruncate64(fd, (off64_t)total_size) < 0) in mq_open() 469 if (read(fd, &total_size, sizeof (total_size)) != in mq_open() 470 sizeof (total_size) || total_size == 0) { in mq_open() 476 if (total_size > SSIZE_MAX) { in mq_open() 488 if ((ptr = mmap64(NULL, total_size, PROT_READ|PROT_WRITE, in mq_open() 530 mqhp->mq_totsize = total_size; in mq_open() 560 (void) munmap((caddr_t)mqhp, (size_t)total_size); in mq_open()
|
/illumos-gate/usr/src/lib/libsqlite/tool/ |
H A D | space_used.tcl | 45 set total_size 0 82 incr total_size $size 91 puts "-- Total payload size: $total_size"
|
/illumos-gate/usr/src/cmd/bhyve/common/ |
H A D | bootrom.c | 200 off_t rom_size, var_size, total_size; in bootrom_loadrom() local 266 total_size = rom_size + var_size; in bootrom_loadrom() 268 if (total_size > BOOTROM_SIZE) { in bootrom_loadrom() 270 total_size); in bootrom_loadrom()
|
/illumos-gate/usr/src/lib/libresolv2/common/isc/ |
H A D | memcluster.c | 243 size_t total_size; in __memget_record() local 269 total_size = mem_target; in __memget_record() 274 total_size = mem_target_fudge; in __memget_record() 276 total_size = mem_target; in __memget_record() 277 new = malloc(total_size); in __memget_record() 284 frags = total_size / new_size; in __memget_record()
|
/illumos-gate/usr/src/uts/common/io/bnx/570x/driver/common/lmdev/ |
H A D | bnx_hw_nvram.c | 77 u32_t total_size; member 827 size = cfg_table[table_idx].total_size; in find_nvram_size() 863 pdev->hw_info.flash_spec.total_size = (1 << (val & 0x07)) * 1024 * 1024 / 8; in lm_nvram_init() 947 pdev->hw_info.flash_spec.total_size = (1 << (val & 0x07)) * 1024 * 1024 / 8; in lm_nvram_query() 1028 pdev->hw_info.flash_spec.total_size = 0; in lm_nvram_query() 1042 pdev->hw_info.flash_spec.total_size = cfg_table[ret_val].total_size; in lm_nvram_query() 1046 pdev->hw_info.flash_spec.total_size = find_nvram_size(pdev, idx); in lm_nvram_query() 1051 pdev->hw_info.flash_spec.total_size = 0; in lm_nvram_query() 1085 if(offset + buf_size > pdev->hw_info.flash_spec.total_size) in lm_nvram_read() 1188 if(offset + buf_size > pdev->hw_info.flash_spec.total_size) in lm_nvram_write()
|
/illumos-gate/usr/src/cmd/boot/scripts/ |
H A D | create_ramdisk.ksh | 217 (( total_size = size )) 221 [ $compress = yes ] && (( total_size = total_size / 2 )) 244 if [ $total_size -gt $tmp_free ] ; then 293 mkfile ${total_size}k "$rdfile" || \
|
/illumos-gate/usr/src/lib/libdwarf/common/ |
H A D | pro_reloc_stream.c | 178 unsigned long total_size = 0; in _dwarf_stream_relocs_to_disk() local 201 total_size = ct * len; in _dwarf_stream_relocs_to_disk() 234 GET_CHUNK(dbg, sec_index, data, total_size, &erri); in _dwarf_stream_relocs_to_disk()
|
/illumos-gate/usr/src/cmd/nscd/ |
H A D | nscd_admin.c | 113 _nscd_logit(me, "total_size = %d\n", set->total_size); in _nscd_server_setadmin() 269 if (admin_mod.total_size == 0) in _nscd_add_admin_mod() 270 admin_mod.total_size = sizeof (admin_mod) - in _nscd_add_admin_mod() 320 admin_mod.total_size += sizeof (admin_mod.cache_cfg[0]); in _nscd_add_admin_mod()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libsum/ |
H A D | sumlib.c | 31 uintmax_t total_size; \ 127 z = (flags & SUM_TOTAL) ? x->total_size : x->size; in long_print() 320 p->total_size += p->size; in sumdone()
|
/illumos-gate/usr/src/lib/libsasl/lib/ |
H A D | auxprop.c | 98 size_t total_size = sizeof(struct proppool) + size - 1; in alloc_proppool() local 100 ret = sasl_sun_ALLOC(total_size); in alloc_proppool() 102 ret = sasl_ALLOC(total_size); in alloc_proppool() 106 memset(ret, 0, total_size); in alloc_proppool() 187 size_t total_size = 0, values_size; in prop_dup() local 194 total_size += pool->size; in prop_dup() 199 retval = prop_new(total_size); in prop_dup()
|
/illumos-gate/usr/src/cmd/ptools/pmap/ |
H A D | pmap.c | 70 ulong_t total_size; member 544 printK(t.total_size, size_width); in main() 567 printK(t.total_size, size_width); in main() 601 size_width, t.total_size); in main() 771 t->total_size += size; in look_map() 813 t->total_size += ROUNDUP_KB(size); in look_map() 908 t->total_size += size; in look_smap() 952 t->total_size += ROUNDUP_KB(size); in look_smap() 997 t->total_size += ROUNDUP_KB(pmp->pr_size); in look_xmap() 1066 t->total_size += ROUNDUP_KB(pmp->pr_size); in look_xmap_nopgsz()
|
/illumos-gate/usr/src/uts/common/io/qede/579xx/drivers/ecore/ |
H A D | ecore_cxt.c | 183 u32 total_size; /* 0 means not active */ member 529 u32 total_size, in ecore_ilt_cli_blk_fill() argument 535 if (p_blk->total_size) in ecore_ilt_cli_blk_fill() 538 p_blk->total_size = total_size; in ecore_ilt_cli_blk_fill() 551 if (!p_blk->total_size) in ecore_ilt_cli_adv_line() 558 *p_line += DIV_ROUND_UP(p_blk->total_size, p_blk->real_size_in_page); in ecore_ilt_cli_adv_line() 564 p_blk->total_size, p_blk->real_size_in_page, in ecore_ilt_cli_adv_line() 602 p_blk->total_size = 0; in ecore_cxt_set_blk() 942 u32 conn_num, total_size, ent_per_page, psz, i; in ecore_cxt_src_t2_alloc() local 959 total_size = conn_num * sizeof(struct src_ent); in ecore_cxt_src_t2_alloc() [all …]
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/keytab/ |
H A D | kt_file.c | 1603 krb5_int32 total_size, i; in krb5_ktfileint_size_entry() local 1608 total_size = sizeof(count); in krb5_ktfileint_size_entry() 1609 total_size += krb5_princ_realm(context, entry->principal)->length + (sizeof(krb5_int16)); in krb5_ktfileint_size_entry() 1612 total_size += krb5_princ_component(context, entry->principal,i)->length in krb5_ktfileint_size_entry() 1616 total_size += sizeof(entry->principal->type); in krb5_ktfileint_size_entry() 1617 total_size += sizeof(entry->timestamp); in krb5_ktfileint_size_entry() 1618 total_size += sizeof(krb5_octet); in krb5_ktfileint_size_entry() 1619 total_size += sizeof(krb5_int16); in krb5_ktfileint_size_entry() 1620 total_size += sizeof(krb5_int16) + entry->key.length; in krb5_ktfileint_size_entry() 1622 *size_needed = total_size; in krb5_ktfileint_size_entry()
|
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/ |
H A D | lm_nvram.c | 424 if(offset + buf_size > pdev->hw_info.flash_spec.total_size) in lm_nvram_read() 500 if(offset + buf_size > pdev->hw_info.flash_spec.total_size) in lm_nvram_write() 502 …led ! buf_size %d larger than NVM total_size %d\n", buf_size, pdev->hw_info.flash_spec.total_size); in lm_nvram_write()
|
/illumos-gate/usr/src/cmd/ldmad/ |
H A D | mdesc_lib.c | 437 int total_size; in md_gen_bin() local 481 total_size = MD_HEADER_SIZE + offset * MD_ELEMENT_SIZE + in md_gen_bin() 488 bufferp = calloc(total_size, sizeof (uint8_t)); in md_gen_bin() 561 return (total_size); in md_gen_bin()
|
/illumos-gate/usr/src/uts/common/io/qede/579xx/hsi/mcp/ |
H A D | append.h | 121 u32 total_size; member
|