/freebsd/contrib/llvm-project/llvm/lib/CodeGen/MIRParser/ |
H A D | MILexer.cpp | 48 StringRef remaining() const { return StringRef(Ptr, End - Ptr); } in remaining() function in __anon2f5552ae0111::Cursor 131 Str.reserve(C.remaining().size()); in unescapeQuotedString() 180 Token.reset(MIToken::Error, Range.remaining()); in lexName() 307 bool IsReference = C.remaining().starts_with("%bb."); in maybeLexMachineBasicBlock() 308 if (!IsReference && !C.remaining().starts_with("bb.")) in maybeLexMachineBasicBlock() 314 Token.reset(MIToken::Error, C.remaining()); in maybeLexMachineBasicBlock() 342 if (!C.remaining().starts_with(Rule) || !isdigit(C.peek(Rule.size()))) in maybeLexIndex() 355 if (!C.remaining().starts_with(Rule) || !isdigit(C.peek(Rule.size()))) in maybeLexIndexAndName() 395 if (!C.remaining().starts_with(Rule)) in maybeLexSubRegisterIndex() 404 if (!C.remaining().starts_with(Rule)) in maybeLexIRBlock() [all …]
|
/freebsd/contrib/xz/src/xz/ |
H A D | message.c | 65 /// and estimate remaining time. 403 /// Return a string containing estimated remaining time when 408 // Don't show the estimated remaining time when it wouldn't in progress_remaining() 423 uint32_t remaining = (uint32_t)((double)(expected_in_size - in_pos) in progress_remaining() local 425 if (remaining < 1) in progress_remaining() 426 remaining = 1; in progress_remaining() 430 // Select appropriate precision for the estimated remaining time. in progress_remaining() 431 if (remaining <= 10) { in progress_remaining() 432 // A maximum of 10 seconds remaining. in progress_remaining() 434 snprintf(buf, sizeof(buf), "%" PRIu32 " s", remaining); in progress_remaining() [all …]
|
/freebsd/contrib/openpam/lib/libpam/ |
H A D | openpam_ttyconv.c | 87 struct timeval now, target, remaining; in prompt_tty() local 128 remaining.tv_sec = openpam_ttyconv_timeout; in prompt_tty() 129 remaining.tv_usec = 0; in prompt_tty() 130 timeradd(&now, &remaining, &target); in prompt_tty() 134 remaining.tv_sec = remaining.tv_usec = 0; in prompt_tty() 150 timersub(&target, &now, &remaining); in prompt_tty() 151 remaining_ms = remaining.tv_sec * 1000 + in prompt_tty() 152 remaining.tv_usec / 1000; in prompt_tty() 216 struct timeval now, target, remaining; in prompt_notty() local 228 remaining.tv_sec = openpam_ttyconv_timeout; in prompt_notty() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | DebugCounter.cpp | 35 StringRef Remaining = Str; in parseChunks() local 39 Remaining.take_until([](char c) { return c < '0' || c > '9'; }); in parseChunks() 42 errs() << "Failed to parse int at : " << Remaining << "\n"; in parseChunks() 45 Remaining = Remaining.drop_front(Number.size()); in parseChunks() 58 if (Remaining.starts_with("-")) { in parseChunks() 59 Remaining = Remaining.drop_front(); in parseChunks() 73 if (Remaining.starts_with(":")) { in parseChunks() 74 Remaining = Remaining.drop_front(); in parseChunks() 77 if (Remaining.empty()) in parseChunks() 79 errs() << "Failed to parse at : " << Remaining; in parseChunks()
|
/freebsd/sys/contrib/edk2/Include/Library/ |
H A D | MemoryAllocationLib.h | 22 is returned. If there is not enough memory remaining to satisfy the request, then NULL is 41 is returned. If there is not enough memory remaining to satisfy the request, then NULL is 60 is returned. If there is not enough memory remaining to satisfy the request, then NULL is 103 returned. If there is not enough memory at the specified alignment remaining to satisfy the 128 returned. If there is not enough memory at the specified alignment remaining to satisfy the 153 returned. If there is not enough memory at the specified alignment remaining to satisfy the 202 returned. If there is not enough memory remaining to satisfy the request, then NULL is returned. 220 returned. If there is not enough memory remaining to satisfy the request, then NULL is returned. 238 returned. If there is not enough memory remaining to satisfy the request, then NULL is returned. 256 valid buffer of 0 size is returned. If there is not enough memory remaining to satisfy the [all …]
|
/freebsd/contrib/tnftp/src/ |
H A D | progressbar.c | 141 int ratio, i, remaining, barlength; local 275 remaining = (int) 278 if (remaining >= 100 * SECSPERHOUR) 282 i = remaining / SECSPERHOUR; 289 i = remaining % SECSPERHOUR; 317 int remaining, hh, i; local 337 remaining = (int)elapsed; 338 if (remaining > SECSPERDAY) { 341 days = remaining / SECSPERDAY; 342 remaining %= SECSPERDAY; [all …]
|
/freebsd/sys/amd64/vmm/io/ |
H A D | iommu.c | 305 uint64_t mapped, remaining; in iommu_create_mapping() local 308 for (remaining = len; remaining > 0; gpa += mapped, hpa += mapped, in iommu_create_mapping() 309 remaining -= mapped) { in iommu_create_mapping() 310 error = IOMMU_CREATE_MAPPING(dom, gpa, hpa, remaining, in iommu_create_mapping() 323 uint64_t unmapped, remaining; in iommu_remove_mapping() local 326 for (remaining = len; remaining > 0; gpa += unmapped, in iommu_remove_mapping() 327 remaining -= unmapped) { in iommu_remove_mapping() 328 error = IOMMU_REMOVE_MAPPING(dom, gpa, remaining, &unmapped); in iommu_remove_mapping()
|
/freebsd/tools/tools/dmardump/ |
H A D | dmardump.c | 202 acpi_handle_dmar_remapping_structure(void *addr, int remaining) in acpi_handle_dmar_remapping_structure() argument 206 if (remaining < (int)sizeof(ACPI_DMAR_HEADER)) in acpi_handle_dmar_remapping_structure() 209 if (remaining < hdr->Length) in acpi_handle_dmar_remapping_structure() 224 int remaining, consumed; in acpi_handle_dmar() local 228 remaining = sdp->Length - sizeof(ACPI_TABLE_DMAR); in acpi_handle_dmar() 229 while (remaining > 0) { in acpi_handle_dmar() 230 cp = (char *)sdp + sdp->Length - remaining; in acpi_handle_dmar() 231 consumed = acpi_handle_dmar_remapping_structure(cp, remaining); in acpi_handle_dmar() 235 remaining -= consumed; in acpi_handle_dmar()
|
/freebsd/crypto/krb5/src/util/support/ |
H A D | k5buf.c | 165 size_t remaining; in k5_buf_add_vfmt() local 170 remaining = buf->space - buf->len; in k5_buf_add_vfmt() 174 r = vsnprintf(endptr(buf), remaining, fmt, ap); in k5_buf_add_vfmt() 175 if (SNPRINTF_OVERFLOW(r, remaining)) in k5_buf_add_vfmt() 185 r = vsnprintf(endptr(buf), remaining, fmt, apcopy); in k5_buf_add_vfmt() 187 if (!SNPRINTF_OVERFLOW(r, remaining)) { in k5_buf_add_vfmt() 196 remaining = buf->space - buf->len; in k5_buf_add_vfmt() 197 r = vsnprintf(endptr(buf), remaining, fmt, ap); in k5_buf_add_vfmt() 198 if (SNPRINTF_OVERFLOW(r, remaining)) /* Shouldn't ever happen. */ in k5_buf_add_vfmt()
|
/freebsd/sys/contrib/zstd/examples/ |
H A D | streaming_memory_usage.c | 92 size_t const remaining = ZSTD_endStream(cctx, &outBuff); in main() local 93 CHECK_ZSTD(remaining); in main() 94 CHECK(remaining == 0, "Frame not flushed!"); in main() 110 size_t const remaining = ZSTD_decompressStream(dctx, &outBuff, &inBuff); in main() local 111 CHECK_ZSTD(remaining); in main() 112 CHECK(remaining == 0, "Frame not complete!"); in main()
|
/freebsd/sys/contrib/xz-embedded/linux/lib/xz/ |
H A D | xz_dec_test.c | 105 size_t remaining; in xz_dec_test_write() local 119 remaining = size; in xz_dec_test_write() 120 while ((remaining > 0 || buffers.out_pos == buffers.out_size) in xz_dec_test_write() 124 buffers.in_size = min(remaining, sizeof(buffer_in)); in xz_dec_test_write() 129 remaining -= buffers.in_size; in xz_dec_test_write() 145 return size - remaining - (buffers.in_size - buffers.in_pos); in xz_dec_test_write()
|
/freebsd/contrib/tcpdump/ |
H A D | print-rip.c | 188 unsigned remaining) in rip_entry_print_v1() argument 195 if (remaining < RIP_ROUTELEN) in rip_entry_print_v1() 227 unsigned remaining) in rip_entry_print_v2() argument 233 if (remaining < sizeof(*eh)) in rip_entry_print_v2() 241 remaining -= sizeof(*eh); in rip_entry_print_v2() 250 if (remaining < sizeof(*ch)) in rip_entry_print_v2() 263 print_unknown_data(ndo, p, "\n\t ", remaining); in rip_entry_print_v2() 264 return (sizeof(*eh) + remaining); /* AT spans till the packet end */ in rip_entry_print_v2() 268 print_unknown_data(ndo, p, "\n\t ", remaining); in rip_entry_print_v2() 269 … return (sizeof(*eh) + remaining); /* we don't know how long this is, so we go to the packet end */ in rip_entry_print_v2() [all …]
|
/freebsd/usr.sbin/acpi/acpidump/ |
H A D | acpi.c | 727 acpi_handle_hest_structure(void *addr, int remaining) in acpi_handle_hest_structure() argument 732 if (remaining < (int)sizeof(ACPI_HEST_HEADER)) in acpi_handle_hest_structure() 856 int remaining, consumed; in acpi_handle_hest() local 864 remaining = sdp->Length - sizeof(ACPI_TABLE_HEST); in acpi_handle_hest() 865 while (remaining > 0) { in acpi_handle_hest() 866 cp = (char *)sdp + sdp->Length - remaining; in acpi_handle_hest() 867 consumed = acpi_handle_hest_structure(cp, remaining); in acpi_handle_hest() 871 remaining -= consumed; in acpi_handle_hest() 1435 acpi_handle_dmar_devscope(void *addr, int remaining) in acpi_handle_dmar_devscope() argument 1442 if (remaining < (int)sizeof(ACPI_DMAR_DEVICE_SCOPE)) in acpi_handle_dmar_devscope() [all …]
|
/freebsd/lib/libpam/pam.d/ |
H A D | README | 33 required: success is required; on failure all remaining 35 requisite: success is required, and on failure no remaining 38 module failed, no remaining modules are run. 39 binding: success is sufficient; on failure all remaining
|
/freebsd/sys/contrib/openzfs/module/zstd/lib/common/ |
H A D | entropy_common.c | 49 int remaining; in FSE_readNCount() local 77 remaining = (1<<nbBits)+1; in FSE_readNCount() 81 while ((remaining>1) & (charnum<=*maxSVPtr)) { in FSE_readNCount() 110 { int const max = (2*threshold-1) - remaining; in FSE_readNCount() 123 remaining -= count < 0 ? -count : count; /* -1 means +1 */ in FSE_readNCount() 126 while (remaining < threshold) { in FSE_readNCount() 139 } } /* while ((remaining>1) & (charnum<=*maxSVPtr)) */ in FSE_readNCount() 140 if (remaining != 1) return ERROR(corruption_detected); in FSE_readNCount()
|
/freebsd/crypto/krb5/src/plugins/preauth/pkinit/ |
H A D | pkinit_matching.c | 256 int *remaining, in parse_rule_component() argument 276 *remaining -= kw->length; in parse_rule_component() 323 len = (*remaining); in parse_rule_component() 338 *remaining -= len; in parse_rule_component() 381 int remaining; in parse_rule_set() local 390 remaining = strlen(rule); in parse_rule_set() 399 if (remaining > 1) { in parse_rule_set() 403 remaining -= 2; in parse_rule_set() 407 remaining -= 2; in parse_rule_set() 411 while (remaining > 0) { in parse_rule_set() [all …]
|
/freebsd/sys/dev/acpica/ |
H A D | acpi_battery.c | 148 * calculate percent capacity remaining, and sum all the current in acpi_battery_get_battinfo() 220 /* Calculate percent capacity remaining. */ in acpi_battery_get_battinfo() 232 * in use. For the remaining batteries, bst.rate will be zero, in acpi_battery_get_battinfo() 233 * which makes it impossible to calculate the total remaining time. in acpi_battery_get_battinfo() 235 * state and use the sum to calculate the total remaining time. in acpi_battery_get_battinfo() 248 /* Pass 2: calculate capacity and remaining time for all batteries. */ in acpi_battery_get_battinfo() 254 * time remaining for this battery until we go offline. in acpi_battery_get_battinfo() 264 * Return total battery percent and time remaining. If there are in acpi_battery_get_battinfo() 289 * report that we don't know the remaining time. in acpi_battery_get_battinfo() 504 "percent capacity remaining"); in acpi_battery_init() [all...] |
/freebsd/contrib/llvm-project/compiler-rt/lib/orc/ |
H A D | simple_packed_serialization.h | 56 SPSOutputBuffer(char *Buffer, size_t Remaining) in SPSOutputBuffer() argument 57 : Buffer(Buffer), Remaining(Remaining) {} in SPSOutputBuffer() 59 if (Size > Remaining) in write() 63 Remaining -= Size; in write() 69 size_t Remaining = 0; variable 76 SPSInputBuffer(const char *Buffer, size_t Remaining) in SPSInputBuffer() argument 77 : Buffer(Buffer), Remaining(Remaining) {} in SPSInputBuffer() 79 if (Size > Remaining) in read() 98 size_t Remaining = 0; global() variable [all...] |
/freebsd/sys/contrib/dev/iwlwifi/fw/ |
H A D | paging.c | 174 int remaining = image->sec[sec_idx].len - offset; in iwl_fill_paging_mem() local 178 * For the last block, we copy all that is remaining, in iwl_fill_paging_mem() 182 len = remaining; in iwl_fill_paging_mem() 183 if (remaining != in iwl_fill_paging_mem() 187 remaining); in iwl_fill_paging_mem() 191 } else if (block->fw_paging_size > remaining) { in iwl_fill_paging_mem() 194 idx, remaining); in iwl_fill_paging_mem()
|
/freebsd/crypto/heimdal/appl/telnet/telnetd/ |
H A D | global.c | 96 int remaining, ret; in output_data() local 99 remaining = BUFSIZ - (nfrontp - netobuf); in output_data() 101 remaining, in output_data() 104 nfrontp += min(ret, remaining-1); in output_data()
|
/freebsd/contrib/wpa/wpa_supplicant/examples/ |
H A D | udhcpd-p2p.conf | 20 # If remaining is true (default), udhcpd will store the time 21 # remaining for each lease in the udhcpd leases file. This is 23 # If you set remaining to no, the absolute time that the lease 26 #remaining yes #default: yes
|
/freebsd/contrib/wpa/src/utils/ |
H A D | eloop_win.c | 316 struct os_reltime *remaining) in eloop_cancel_timeout_one() argument 323 remaining->sec = remaining->usec = 0; in eloop_cancel_timeout_one() 332 os_reltime_sub(&timeout->time, &now, remaining); in eloop_cancel_timeout_one() 361 struct os_reltime now, requested, remaining; in eloop_deplete_timeout() local 371 os_reltime_sub(&tmp->time, &now, &remaining); in eloop_deplete_timeout() 372 if (os_reltime_before(&requested, &remaining)) { in eloop_deplete_timeout() 393 struct os_reltime now, requested, remaining; in eloop_replenish_timeout() local 403 os_reltime_sub(&tmp->time, &now, &remaining); in eloop_replenish_timeout() 404 if (os_reltime_before(&remaining, &requested)) { in eloop_replenish_timeout()
|
/freebsd/contrib/libarchive/libarchive/ |
H A D | archive_write.c | 404 ssize_t remaining, to_copy; in archive_write_client_write() local 407 remaining = length; in archive_write_client_write() 416 while (remaining > 0) { in archive_write_client_write() 418 a->client_data, buff, remaining); in archive_write_client_write() 421 remaining -= bytes_written; in archive_write_client_write() 431 to_copy = ((size_t)remaining > state->avail) ? in archive_write_client_write() 432 state->avail : (size_t)remaining; in archive_write_client_write() 437 remaining -= to_copy; in archive_write_client_write() 460 while ((size_t)remaining >= state->buffer_size) { in archive_write_client_write() 467 remaining -= bytes_written; in archive_write_client_write() [all …]
|
/freebsd/crypto/openssl/include/internal/ |
H A D | packet.h | 25 /* Number of bytes remaining */ 26 size_t remaining; member 33 pkt->remaining -= len; in packet_forward() 37 * Returns the number of bytes remaining to be read in the PACKET 41 return pkt->remaining; in PACKET_remaining() 52 return pkt->curr + pkt->remaining; in PACKET_end() 78 pkt->remaining = len; in PACKET_buf_init() 86 pkt->remaining = 0; in PACKET_null_init() 435 *len = pkt->remaining; in PACKET_copy_all() 436 memcpy(dest, pkt->curr, pkt->remaining); in PACKET_copy_all() [all …]
|
/freebsd/sys/contrib/zstd/lib/common/ |
H A D | entropy_common.c | 77 int remaining; in FSE_readNCount_body() local 105 remaining = (1<<nbBits)+1; in FSE_readNCount_body() 160 int const max = (2*threshold-1) - remaining; in FSE_readNCount_body() 177 remaining -= count; in FSE_readNCount_body() 180 remaining += count; in FSE_readNCount_body() 186 if (remaining < threshold) { in FSE_readNCount_body() 191 if (remaining <= 1) break; in FSE_readNCount_body() 192 nbBits = BIT_highbit32(remaining) + 1; in FSE_readNCount_body() 207 if (remaining != 1) return ERROR(corruption_detected); in FSE_readNCount_body()
|