Home
last modified time | relevance | path

Searched refs:cur_pos (Results 1 – 9 of 9) sorted by relevance

/netbsd/src/crypto/external/bsd/openssh/dist/
Dprogressmeter.c69 static off_t cur_pos; /* transfer position as of last refresh */ variable
149 transferred = *counter - (cur_pos ? cur_pos : start_pos); in refresh_progress_meter()
150 cur_pos = *counter; in refresh_progress_meter()
152 bytes_left = end_pos - cur_pos; in refresh_progress_meter()
154 delta_pos = cur_pos - last_pos; in refresh_progress_meter()
195 if (end_pos == 0 || cur_pos == end_pos) in refresh_progress_meter()
198 percent = ((float)cur_pos / end_pos) * 100; in refresh_progress_meter()
201 xextendf(&buf, NULL, " %3d%% %s %s/s ", percent, format_size(cur_pos), in refresh_progress_meter()
262 cur_pos = 0; in start_progress_meter()
284 if (cur_pos != end_pos) in stop_progress_meter()
/netbsd/src/sys/external/bsd/compiler_rt/dist/lib/profile/
DGCDAProfiling.c87 static uint64_t cur_pos = 0; variable
120 size += cur_pos; in resize_write_buffer()
130 memcpy(&write_buffer[cur_pos], s, len); in write_bytes()
131 cur_pos += len; in write_bytes()
159 val = *(uint32_t*)&write_buffer[cur_pos]; in read_32bit_value()
160 cur_pos += 4; in read_32bit_value()
170 val = *(uint64_t*)&write_buffer[cur_pos]; in read_64bit_value()
171 cur_pos += 8; in read_64bit_value()
300 cur_pos = 0; in llvm_gcda_start_file()
381 uint64_t save_cur_pos = cur_pos; in llvm_gcda_emit_arcs()
[all …]
/netbsd/src/lib/libc/cdb/
Dcdbw.c535 if (__predict_false(cur_pos + (n) >= sizeof(buf))) { \
536 ret = write(fd, buf, cur_pos); \
537 if (ret == -1 || (size_t)ret != cur_pos) \
539 cur_pos = 0; \
548 size_t i, size, size2, cur_pos; in print_hash() local
558 cur_pos = 40; in print_hash()
563 le32enc(buf + cur_pos, state->g[i]); in print_hash()
564 cur_pos += size; in print_hash()
571 le32enc(buf + cur_pos, 0); in print_hash()
572 cur_pos += size; in print_hash()
[all …]
/netbsd/src/sys/external/bsd/drm2/dist/drm/vmwgfx/
Dvmwgfx_cmdbuf.c129 size_t cur_pos; member
686 if (man->cur_pos == 0) { in __vmw_cmdbuf_cur_flush()
691 man->cur->cb_header->length = man->cur_pos; in __vmw_cmdbuf_cur_flush()
696 man->cur_pos = 0; in __vmw_cmdbuf_cur_flush()
1033 if (cur && (size + man->cur_pos > cur->size || in vmw_cmdbuf_reserve_cur()
1057 return (void *) (man->cur->cmd + man->cur_pos); in vmw_cmdbuf_reserve_cur()
1075 man->cur_pos += size; in vmw_cmdbuf_commit_cur()
1136 man->cur_pos = size; in vmw_cmdbuf_commit()
/netbsd/src/usr.bin/mail/
Dmime_attach.c292 off_t cur_pos; in content_encoding_by_fileno() local
294 cur_pos = lseek(fd, (off_t)0, SEEK_CUR); in content_encoding_by_fileno()
304 (void)lseek(fd, cur_pos, SEEK_SET); in content_encoding_by_fileno()
397 off_t cur_pos; in content_type_by_fileno() local
400 cur_pos = lseek(fd, (off_t)0, SEEK_CUR); in content_type_by_fileno()
412 (void)lseek(fd, cur_pos, SEEK_SET); in content_type_by_fileno()
Dmime_decode.c364 off_t cur_pos; in split_multipart() local
367 cur_pos = ftello(fp); in split_multipart()
370 end_pos = cur_pos - line_len; in split_multipart()
/netbsd/src/external/gpl3/gcc/dist/gcc/
Dgimple-fold.cc4669 HOST_WIDE_INT cur_pos; in clear_padding_type() local
4670 cur_pos = 0; in clear_padding_type()
4688 if (pos + end > cur_pos) in clear_padding_type()
4690 clear_padding_add_padding (buf, pos + end - cur_pos); in clear_padding_type()
4691 cur_pos = pos + end; in clear_padding_type()
4693 gcc_assert (cur_pos > pos in clear_padding_type()
4695 >= (unsigned HOST_WIDE_INT) cur_pos - pos)); in clear_padding_type()
4696 unsigned char *p = buf->buf + buf->size - (cur_pos - pos); in clear_padding_type()
4761 gcc_assert (pos >= 0 && fldsz >= 0 && pos >= cur_pos); in clear_padding_type()
4762 clear_padding_add_padding (buf, pos - cur_pos); in clear_padding_type()
[all …]
/netbsd/src/external/gpl3/gcc/dist/gcc/config/mips/
Dmips.cc9733 int cur_pos; in mips_output_ascii() local
9735 cur_pos = 17; in mips_output_ascii()
9747 cur_pos++; in mips_output_ascii()
9750 cur_pos++; in mips_output_ascii()
9755 cur_pos += 4; in mips_output_ascii()
9758 if (cur_pos > 72 && i+1 < len) in mips_output_ascii()
9760 cur_pos = 17; in mips_output_ascii()
/netbsd/src/external/gpl3/gcc/dist/gcc/cp/
DChangeLog-2002600 * cp/spew.c (feed_input): Change limit to last_pos and pos to cur_pos