/illumos-gate/usr/src/tools/smatch/src/ |
H A D | smatch_parse_call_math.c | 289 static int format_name_sym_helper(char *buf, int remaining, char *name, struct symbol *sym) in format_name_sym_helper() argument 308 ret = snprintf(buf, remaining, "$%d", arg); in format_name_sym_helper() 310 ret = snprintf(buf, remaining, "$%d%s", arg, name + name_len); in format_name_sym_helper() 314 remaining -= ret; in format_name_sym_helper() 315 if (remaining <= 0) in format_name_sym_helper() 325 static int format_variable_helper(char *buf, int remaining, struct expression *expr) in format_variable_helper() argument 333 return format_name_sym_helper(buf, remaining, name, sym); in format_variable_helper() 336 static int format_call_to_param_mapping(char *buf, int remaining, struct expression *expr) in format_call_to_param_mapping() argument 344 return format_name_sym_helper(buf, remaining, name, sym); in format_call_to_param_mapping() 357 static int format_expr_helper(char *buf, int remaining, struct expression *expr) in format_expr_helper() argument [all …]
|
H A D | check_return_efault.c | 30 STATE(remaining); 43 set_state_expr(my_id, expr->left, &remaining); in match_copy() 70 if (!slist_has_state(sm->possible, &remaining)) in match_return_var()
|
/illumos-gate/usr/src/lib/auditd_plugins/syslog/ |
H A D | sysplugin.c | 514 size_t used, remaining; in filter() local 658 remaining = out_len; in filter() 664 used = snprintf(bp, remaining, "%hu", in filter() 667 used = strlcpy(bp, event->ae_desc, remaining); in filter() 669 remaining -= used; in filter() 673 used = strlcpy(bp, " failed", remaining); in filter() 675 used = strlcpy(bp, " ok", remaining); in filter() 677 remaining -= used; in filter() 680 used = snprintf(bp, remaining, " session %u", in filter() 682 remaining -= used; in filter() [all …]
|
/illumos-gate/usr/src/uts/intel/io/vmm/io/ |
H A D | iommu.c | 229 uint64_t remaining = len; in iommu_create_mapping() local 233 while (remaining > 0) { in iommu_create_mapping() 236 mapped = ops->create_mapping(domain, gpa, hpa, remaining); in iommu_create_mapping() 239 remaining -= mapped; in iommu_create_mapping() 246 uint64_t remaining = len; in iommu_remove_mapping() local 250 while (remaining > 0) { in iommu_remove_mapping() 253 unmapped = ops->remove_mapping(domain, gpa, remaining); in iommu_remove_mapping() 255 remaining -= unmapped; in iommu_remove_mapping()
|
/illumos-gate/usr/src/lib/libdwarf/common/ |
H A D | dwarfstring.c | 479 dwarfstring_i remaining = v; in dwarfstring_append_printf_i() local 499 remaining = -v; in dwarfstring_append_printf_i() 509 remaining = -v; in dwarfstring_append_printf_i() 521 dig = remaining % divisor; in dwarfstring_append_printf_i() 522 remaining /= divisor; in dwarfstring_append_printf_i() 525 if (!remaining) { in dwarfstring_append_printf_i() 730 dwarfstring_u remaining = v; in dwarfstring_append_printf_u() local 736 dig = remaining & 0xf; in dwarfstring_append_printf_u() 737 remaining = remaining >> 4; in dwarfstring_append_printf_u() 740 if (!remaining) { in dwarfstring_append_printf_u() [all …]
|
H A D | pro_alloc.c | 166 memory_list_t * remaining = lp->next; in _dwarf_p_dealloc() local 167 remaining->next = remaining; in _dwarf_p_dealloc() 168 remaining->prev = remaining; in _dwarf_p_dealloc()
|
/illumos-gate/usr/src/common/ucode/ |
H A D | ucode_utils_intel.c | 149 int remaining; in ucode_validate_intel() local 154 for (remaining = size; remaining > 0; ) { in ucode_validate_intel() 157 uint8_t *curbuf = &ucodep[size - remaining]; in ucode_validate_intel() 192 remaining -= total_size; in ucode_validate_intel()
|
/illumos-gate/usr/src/uts/intel/io/vmm/intel/ |
H A D | vtd.c | 194 int i, remaining, pathrem; in vtd_device_scope() local 216 remaining = drhd->Header.Length - in vtd_device_scope() 218 while (remaining > sizeof (ACPI_DMAR_DEVICE_SCOPE)) { in vtd_device_scope() 220 (ACPI_DMAR_DEVICE_SCOPE *)(end - remaining); in vtd_device_scope() 221 remaining -= device_scope->Length; in vtd_device_scope() 421 int i, units, remaining, tmp; in vtd_init() local 463 remaining = dmar->Header.Length - sizeof (ACPI_TABLE_DMAR); in vtd_init() 464 while (remaining > sizeof (ACPI_DMAR_HEADER)) { in vtd_init() 465 hdr = (ACPI_DMAR_HEADER *)(end - remaining); in vtd_init() 466 if (hdr->Length > remaining) in vtd_init() [all …]
|
/illumos-gate/usr/src/lib/krb5/plugins/preauth/pkinit/ |
H A D | pkinit_matching.c | 267 int *remaining, in parse_rule_component() argument 287 *remaining -= kw->length; in parse_rule_component() 334 len = (*remaining); in parse_rule_component() 349 *remaining -= len; in parse_rule_component() 395 int remaining; in parse_rule_set() local 405 remaining = strlen(rule); in parse_rule_set() 414 if (remaining > 1) { in parse_rule_set() 418 remaining -= 2; in parse_rule_set() 422 remaining -= 2; in parse_rule_set() 426 while (remaining > 0) { in parse_rule_set() [all …]
|
/illumos-gate/usr/src/boot/i386/isoboot/ |
H A D | cd9660read.c | 325 size_t size, remaining, n; in cd9660_fsread() local 345 remaining = nbytes; in cd9660_fsread() 348 while (remaining > 0) { in cd9660_fsread() 357 if (remaining < ISO_DEFAULT_BLOCK_SIZE - byte_off) { in cd9660_fsread() 358 n = remaining; in cd9660_fsread() 363 remaining -= n; in cd9660_fsread()
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/data/ |
H A D | bash_pre_rc.sh | 98 typeset prefix remaining=${.sh.value} var= n= k= 99 while [[ $remaining ]] 100 do prefix=${remaining%%'\'*}
|
/illumos-gate/usr/src/uts/common/io/cxgbe/t4nex/ |
H A D | fastlz_api.c | 380 unsigned long remaining; in decompress_buffer() local 468 remaining = chunk_size; in decompress_buffer() 472 r = (CUDBG_BLOCK_SIZE < remaining) ? in decompress_buffer() 473 CUDBG_BLOCK_SIZE : remaining; in decompress_buffer() 490 remaining -= bytes_read; in decompress_buffer() 521 remaining = in decompress_buffer() 527 if (remaining != chunk_extra) { in decompress_buffer()
|
H A D | t4_ioctl.c | 1917 uint32_t addr, off, remaining, i, n; in read_card_mem() local 1940 remaining = mr.len; in read_card_mem() 1943 while (remaining) { in read_card_mem() 1947 n = min(remaining, mw_aperture - off); in read_card_mem() 1959 remaining -= n; in read_card_mem()
|
/illumos-gate/usr/src/uts/common/io/sfxge/common/ |
H A D | efx_bootcfg.c | 253 size_t remaining; in efx_bootcfg_write() local 297 for (offset = 0; offset < sector_length; offset += remaining) { in efx_bootcfg_write() 298 remaining = MIN(chunk_length, sector_length - offset); in efx_bootcfg_write() 304 MIN(remaining, used_bytes - offset)); in efx_bootcfg_write() 311 offset, (caddr_t)chunk, remaining)) != 0) in efx_bootcfg_write()
|
/illumos-gate/usr/src/cmd/ucodeadm/ |
H A D | ucodeadm.c | 374 int remaining; in ucode_gen_files_intel() local 387 for (remaining = size; remaining > 0; ) { in ucode_gen_files_intel() 392 uint8_t *curbuf = &buf[size - remaining]; in ucode_gen_files_intel() 401 remaining -= total_size; in ucode_gen_files_intel() 542 int remaining; in ucode_list_intel() local 545 for (remaining = size; remaining > 0; ) { in ucode_list_intel() 546 uint8_t *curbuf = &buf[size - remaining]; in ucode_list_intel() 557 remaining -= total_size; in ucode_list_intel()
|
/illumos-gate/usr/src/uts/intel/os/ |
H A D | microcode_intel.c | 353 int remaining; in ucode_extract_intel() local 362 for (remaining = size; remaining > 0; ) { in ucode_extract_intel() 364 uint8_t *curbuf = &ucodep[size - remaining]; in ucode_extract_intel() 401 remaining -= total_size; in ucode_extract_intel()
|
/illumos-gate/usr/src/uts/common/inet/sctp/ |
H A D | sctp_common.c | 1193 sctp_next_parm(sctp_parm_hdr_t *current, ssize_t *remaining) in sctp_next_parm() argument 1199 *remaining -= len; in sctp_next_parm() 1200 if (*remaining < sizeof (*current) || len < sizeof (*current)) { in sctp_next_parm() 1205 *remaining -= pad; in sctp_next_parm() 1265 ssize_t remaining; in sctp_get_addrparams() local 1346 remaining = ntohs(ich->sch_len) - sizeof (*ich) - in sctp_get_addrparams() 1348 if (remaining < sizeof (*ph)) { in sctp_get_addrparams() 1386 if (remaining >= PARM_ADDR4_LEN) { in sctp_get_addrparams() 1424 if (remaining >= PARM_ADDR6_LEN) { in sctp_get_addrparams() 1456 ph = sctp_next_parm(ph, &remaining); in sctp_get_addrparams() [all …]
|
H A D | sctp_cookie.c | 163 ssize_t remaining; in validate_init_params() local 192 remaining = ntohs(ch->sch_len) - sizeof (*ch); in validate_init_params() 194 remaining -= sizeof (*ic); in validate_init_params() 195 if (remaining < sizeof (*cph)) { in validate_init_params() 331 cph = sctp_next_parm(cph, &remaining); in validate_init_params() 1448 ssize_t remaining; in sctp_addrlist2sctp() local 1470 remaining = ntohs(ich->sch_len) - sizeof (*ich) - sizeof (*iack); in sctp_addrlist2sctp() 1471 if (remaining < sizeof (*ph)) { in sctp_addrlist2sctp() 1521 ph = sctp_next_parm(ph, &remaining); in sctp_addrlist2sctp()
|
H A D | sctp_hash.c | 358 ssize_t mlen, remaining; in sctp_lookup_by_faddrs() local 400 remaining = ntohs(ich->sch_len) - sizeof (*ich) - in sctp_lookup_by_faddrs() 402 if (remaining < sizeof (*ph)) { in sctp_lookup_by_faddrs() 409 totaddr = remaining/addr_len; in sctp_lookup_by_faddrs() 457 ph = sctp_next_parm(ph, &remaining); in sctp_lookup_by_faddrs()
|
/illumos-gate/usr/src/uts/common/io/e1000api/ |
H A D | e1000_manage.c | 229 u16 remaining, i, j, prev_bytes; in e1000_mng_host_if_write_generic() local 253 remaining = length & 0x3; in e1000_mng_host_if_write_generic() 254 length -= remaining; in e1000_mng_host_if_write_generic() 271 if (remaining) { in e1000_mng_host_if_write_generic() 273 if (j < remaining) in e1000_mng_host_if_write_generic()
|
/illumos-gate/usr/src/cmd/latencytop/ |
H A D | display.c | 789 int remaining; in lt_display_loop() local 830 remaining = duration - (int)(lt_millisecond() - start); in lt_display_loop() 832 if (remaining <= 0) { in lt_display_loop() 846 if (next_snap > 0 && remaining > next_snap) { in lt_display_loop() 847 remaining = next_snap; in lt_display_loop() 850 timeout.tv_sec = remaining / 1000; in lt_display_loop() 851 timeout.tv_usec = (remaining % 1000) * 1000; in lt_display_loop()
|
/illumos-gate/usr/src/uts/common/io/usb/usba/ |
H A D | usba.c | 1037 int remaining; in usba_add_to_list() local 1042 remaining = head->count; in usba_add_to_list() 1067 remaining--; in usba_add_to_list() 1073 if ((next->next && (remaining == 0)) || in usba_add_to_list() 1074 ((next->next == NULL) && remaining)) { in usba_add_to_list() 1111 int remaining; in usba_rm_from_list() local 1120 remaining = head->count; in usba_rm_from_list() 1130 remaining--; in usba_rm_from_list() 1133 if ((e && (remaining == 0)) || in usba_rm_from_list() 1134 ((e == NULL) && (remaining))) { in usba_rm_from_list() [all …]
|
/illumos-gate/usr/src/lib/libc/capabilities/sun4u-opl/common/ |
H A D | memcpy.S | 177 addcc %o2, 16, %o2 ! adjust remaining count 232 cmp %o2, 64 ! do we have < 64 bytes remaining 270 cmp %o2, 32 ! do we have < 32 bytes remaining 279 cmp %o2, 8 ! do we have < 8 bytes remaining 288 cmp %o2, 8 ! do we have < 8 bytes remaining 568 addcc %o2, 16, %o2 ! adjust remaining count 620 ! Currently, o2 is the actual count remaining 868 bne %ncc, 2f ! exactly 1 block remaining? 883 ! This is when there is exactly 1 block remaining and SRC is aligned 982 bne %ncc, 2f ! exactly 1 block remaining? [all …]
|
/illumos-gate/usr/src/lib/libc/capabilities/sun4u-us3/common/ |
H A D | memcpy.S | 201 addcc %o2, 16, %o2 ! adjust remaining count 256 cmp %o2, 64 ! do we have < 64 bytes remaining 293 cmp %o2, 32 ! do we have < 32 bytes remaining 302 cmp %o2, 8 ! do we have < 8 bytes remaining 311 cmp %o2, 8 ! do we have < 8 bytes remaining 586 addcc %o2, 16, %o2 ! adjust remaining count 637 ! Currently, o2 is the actual count remaining 894 bne %ncc, 2f ! exactly 1 block remaining? 909 ! This is when there is exactly 1 block remaining and SRC is aligned 1016 bne %ncc, 2f ! exactly 1 block remaining? [all …]
|
/illumos-gate/usr/src/grub/grub-0.97/ |
H A D | compile | 42 Remove `-o dest.o' from ARGS, run PROGRAM with the remaining
|