Home
last modified time | relevance | path

Searched refs:todo (Results 1 – 25 of 84) sorted by relevance

1234

/freebsd/sys/crypto/openssl/
H A Dossl_chacha20.c65 size_t resid, todo, inlen, outlen; in ossl_chacha20() local
103 todo = rounddown(MIN(resid, MIN(inlen, outlen)), in ossl_chacha20()
108 todo = (uint32_t)todo; in ossl_chacha20()
112 next_counter = counter[0] + todo / CHACHA_BLK_SIZE; in ossl_chacha20()
114 todo -= next_counter * CHACHA_BLK_SIZE; in ossl_chacha20()
118 ChaCha20_ctr32(out, in, todo, key, counter); in ossl_chacha20()
128 crypto_cursor_advance(&cc_out, todo); in ossl_chacha20()
129 outseg += todo; in ossl_chacha20()
130 outlen -= todo; in ossl_chacha20()
135 crypto_cursor_advance(&cc_in, todo); in ossl_chacha20()
[all …]
/freebsd/sys/crypto/
H A Dchacha20_poly1305.c44 size_t resid, todo; in chacha20_poly1305_encrypt() local
58 todo = rounddown2(resid, CHACHA20_NATIVE_BLOCK_LEN); in chacha20_poly1305_encrypt()
59 if (todo > 0) { in chacha20_poly1305_encrypt()
60 exf->encrypt_multi(ctx, src, dst, todo); in chacha20_poly1305_encrypt()
61 exf->update(ctx, dst, todo); in chacha20_poly1305_encrypt()
62 src += todo; in chacha20_poly1305_encrypt()
63 dst += todo; in chacha20_poly1305_encrypt()
64 resid -= todo; in chacha20_poly1305_encrypt()
91 size_t resid, todo; in chacha20_poly1305_decrypt() local
124 todo = rounddown2(resid, CHACHA20_NATIVE_BLOCK_LEN); in chacha20_poly1305_decrypt()
[all …]
/freebsd/sys/kern/
H A Dsubr_memdesc.c49 int todo; in phys_copyback() local
58 todo = min(PAGE_SIZE - page_off, size); in phys_copyback()
60 memcpy(p, cp, todo); in phys_copyback()
61 size -= todo; in phys_copyback()
62 cp += todo; in phys_copyback()
63 pa += todo; in phys_copyback()
73 int todo; in vlist_copyback() local
87 todo = size; in vlist_copyback()
88 if (todo > vlist->ds_len - off) in vlist_copyback()
89 todo = vlist->ds_len - off; in vlist_copyback()
[all …]
/freebsd/sys/opencrypto/
H A Dcriov.c456 size_t remain, todo; in crypto_cursor_copyback() local
476 todo = MIN(remain, size); in crypto_cursor_copyback()
477 m_copyback(cc->cc_mbuf, cc->cc_offset, todo, src); in crypto_cursor_copyback()
478 src += todo; in crypto_cursor_copyback()
479 if (todo < remain) { in crypto_cursor_copyback()
480 cc->cc_offset += todo; in crypto_cursor_copyback()
483 size -= todo; in crypto_cursor_copyback()
500 todo = MIN(remain, size); in crypto_cursor_copyback()
501 memcpy(dst, src, todo); in crypto_cursor_copyback()
502 src += todo; in crypto_cursor_copyback()
[all …]
H A Dcryptosoft.c105 size_t inlen, outlen, todo; in swcr_encdec() local
161 for (resid = crp->crp_payload_length; resid >= blksz; resid -= todo) { in swcr_encdec()
182 todo = rounddown2(MIN(resid, MIN(inlen, outlen)), blksz); in swcr_encdec()
185 exf->encrypt_multi(ctx, inblk, outblk, todo); in swcr_encdec()
187 exf->decrypt_multi(ctx, inblk, outblk, todo); in swcr_encdec()
192 crypto_cursor_advance(&cc_in, todo); in swcr_encdec()
193 inlen -= todo; in swcr_encdec()
194 inblk += todo; in swcr_encdec()
201 crypto_cursor_advance(&cc_out, todo); in swcr_encdec()
202 outlen -= todo; in swcr_encdec()
[all …]
/freebsd/contrib/netbsd-tests/lib/libc/sys/
H A Dt_pipe.c79 ssize_t sz, todo, done; in ATF_TC_BODY() local
92 todo = 2 * 1024 * 1024; in ATF_TC_BODY()
93 REQUIRE_LIBC(f = malloc(todo), NULL); in ATF_TC_BODY()
126 printf("Expected: %#zx\n", (size_t)todo); in ATF_TC_BODY()
128 exit(done != todo); in ATF_TC_BODY()
145 while(todo > 0 && ((sz = write(pp[1], f, todo)) > 0)) in ATF_TC_BODY()
146 todo -= sz; in ATF_TC_BODY()
/freebsd/crypto/openssl/apps/
H A Dlist.c1554 } todo = { 0, }; in list_main()
1573 todo.commands = 1; in list_main()
1576 todo.digest_commands = 1; in list_main()
1579 todo.digest_algorithms = 1; in list_main()
1582 todo.kdf_algorithms = 1; in list_main()
1585 todo.random_instances = 1; in list_main()
1588 todo.random_generators = 1; in list_main()
1591 todo.mac_algorithms = 1; in list_main()
1594 todo.cipher_commands = 1; in list_main()
1597 todo in list_main()
1553 } todo = { 0, }; list_main() local
[all...]
/freebsd/sys/dev/nvmf/controller/
H A Dnvmft_controller.c498 u_int todo; in m_zero() local
508 todo = m->m_len - offset; in m_zero()
509 if (todo > len) in m_zero()
510 todo = len; in m_zero()
511 memset(mtodo(m, offset), 0, todo); in m_zero()
513 len -= todo; in m_zero()
516 todo = m->m_len; in m_zero()
517 if (todo > len) in m_zero()
518 todo = len; in m_zero()
519 memset(mtod(m, void *), 0, todo); in m_zero()
[all …]
/freebsd/crypto/openssl/crypto/chacha/
H A Dchacha_enc.c77 size_t todo, i; in ChaCha20_ctr32() local
108 todo = sizeof(buf); in ChaCha20_ctr32()
109 if (len < todo) in ChaCha20_ctr32()
110 todo = len; in ChaCha20_ctr32()
114 for (i = 0; i < todo; i++) in ChaCha20_ctr32()
116 out += todo; in ChaCha20_ctr32()
117 inp += todo; in ChaCha20_ctr32()
118 len -= todo; in ChaCha20_ctr32()
/freebsd/contrib/pjdfstest/tests/rename/
H A D06.t34 …[ "${flag}" = "SF_APPEND" ] && todo FreeBSD:ZFS "Renaming a file protected by SF_APPEND should ret…
36 …[ "${flag}" = "SF_APPEND" ] && todo FreeBSD:ZFS "Renaming a file protected by SF_APPEND should ret…
51 …[ "${flag}" = "SF_APPEND" ] && todo FreeBSD:ZFS "Renaming a file protected by SF_APPEND should ret…
53 …[ "${flag}" = "SF_APPEND" ] && todo FreeBSD:ZFS "Renaming a file protected by SF_APPEND should ret…
/freebsd/contrib/pjdfstest/tests/open/
H A D11.t31 todo FreeBSD:ZFS "When fle is protected by SF_APPEND, open(O_TRUNC) should return EPERM."
33 todo FreeBSD:ZFS "When fle is protected by SF_APPEND, open(O_TRUNC) should return EPERM."
35 todo FreeBSD:ZFS "When fle is protected by SF_APPEND, open(O_TRUNC) should return EPERM."
37 todo FreeBSD:ZFS "When fle is protected by SF_APPEND, open(O_TRUNC) should return EPERM."
/freebsd/usr.bin/gprof/
H A Dprintgprof.c534 nltype *todo; in sortmembers() local
542 todo = cyclep -> cnext; in sortmembers()
544 for ( (doing = todo)&&(todo = doing -> cnext); in sortmembers()
546 (doing = todo )&&(todo = doing -> cnext )){ in sortmembers()
700 int idx, nnames, todo, i, j; in printindex() local
716 for ( idx = 1 , todo = nnames ; idx <= ncycle ; idx++ ) { in printindex()
717 namesortnlp[todo++] = &cyclenl[idx]; in printindex()
720 idx = ( todo + 2 ) / 3; in printindex()
722 for ( j = i; j < todo ; j += idx ) { in printindex()
/freebsd/contrib/libarchive/libarchive/
H A Darchive_write_disk_posix.c259 int todo; member
643 a->todo = TODO_MODE_BASE; in _archive_write_disk_header()
645 a->todo |= TODO_MODE_FORCE; /* Be pushy about permissions. */ in _archive_write_disk_header()
661 a->todo |= TODO_SGID | TODO_SGID_CHECK; in _archive_write_disk_header()
667 a->todo |= TODO_SUID | TODO_SUID_CHECK; in _archive_write_disk_header()
679 a->todo |= TODO_OWNER; in _archive_write_disk_header()
681 a->todo |= TODO_TIMES; in _archive_write_disk_header()
728 a->todo |= TODO_ACLS; in _archive_write_disk_header()
737 a->todo |= TODO_MAC_METADATA; in _archive_write_disk_header()
744 a->todo |= TODO_HFS_COMPRESSION; in _archive_write_disk_header()
[all …]
/freebsd/contrib/netbsd-tests/lib/libc/locale/
H A Dt_io.c118 size_t todo = MIN((size_t)len, ib->buflen - ib->off); in readfn() local
120 memcpy(buf, ib->buf + ib->off, todo); in readfn()
121 ib->off += todo; in readfn()
122 return todo; in readfn()
/freebsd/usr.bin/bmake/tests/
H A Dcommon.sh329 todo=
335 eval todo=\${TEST_${N}_TODO}
344 if [ ! -z "$fail" -o ! -z "$todo" -o ! -z "$skip" ]; then
350 if [ ! -z "$todo" ] ; then
351 msg="${msg}TODO ${todo}; "
/freebsd/lib/libiscsiutil/
H A Dtext.c289 size_t todo; in text_send_response() local
292 todo = keys_len - keys_offset; in text_send_response()
293 if (todo > (size_t)conn->conn_max_send_data_segment_length) { in text_send_response()
295 todo = conn->conn_max_send_data_segment_length; in text_send_response()
303 response->pdu_data_len = todo; in text_send_response()
304 keys_offset += todo; in text_send_response()
/freebsd/crypto/openssl/crypto/bn/
H A Dbn_rand.c308 unsigned done, todo; in BN_generate_dsa_nonce()
362 todo = num_k_bytes - done;
363 if (todo > SHA512_DIGEST_LENGTH)
364 todo = SHA512_DIGEST_LENGTH;
365 memcpy(k_bytes + done, digest, todo);
366 done += todo;
262 unsigned done, todo; BN_generate_dsa_nonce() local
/freebsd/sys/netipsec/
H A Dipsec_mbuf.c91 int todo, len, done; in m_makespace() local
96 todo = remain; in m_makespace()
97 while (todo > 0) { in m_makespace()
98 if (todo > MHLEN) { in m_makespace()
112 len = min(todo, len); in m_makespace()
116 todo -= len; in m_makespace()
/freebsd/usr.sbin/bhyve/
H A Dgdb.c1245 size_t resid, todo, bytes; in gdb_read_mem() local
1287 todo = getpagesize() - gpa % getpagesize(); in gdb_read_mem()
1288 if (todo > resid) in gdb_read_mem()
1289 todo = resid; in gdb_read_mem()
1291 cp = paddr_guest2host(ctx, gpa, todo); in gdb_read_mem()
1301 while (todo > 0) { in gdb_read_mem()
1307 todo--; in gdb_read_mem()
1315 while (todo > 0) { in gdb_read_mem()
1316 if (gpa & 1 || todo == 1) in gdb_read_mem()
1318 else if (gpa & 2 || todo == 2) in gdb_read_mem()
[all …]
/freebsd/contrib/pjdfstest/tests/chown/
H A D00.t238 [ -n "${_todo_msg}" ] && todo "Linux" "${_todo_msg}"
243 [ -n "${_todo_msg}" ] && todo "Linux" "${_todo_msg}"
256 [ -n "${_todo_msg}" ] && todo "Linux" "${_todo_msg}"
258 [ -n "${_todo_msg}" ] && todo "Linux" "${_todo_msg}"
264 [ -n "${_todo_msg}" ] && todo "Linux" "${_todo_msg}"
266 [ -n "${_todo_msg}" ] && todo "Linux" "${_todo_msg}"
294 [ -n "${_todo_msg}" ] && todo "Linux" "${_todo_msg}"
303 [ -n "${_todo_msg}" ] && todo "Linux" "${_todo_msg}"
392 todo Linux "According to POSIX: If both owner and group are -1, the times need not be updated."
401 todo Linux "According to POSIX: If both owner and group are -1, the times need not be updated."
[all …]
/freebsd/contrib/pjdfstest/tests/unlink/
H A D09.t39 todo FreeBSD:ZFS "Removing a file protected by SF_APPEND should return EPERM."
41 todo FreeBSD:ZFS "Removing a file protected by SF_APPEND should return EPERM."
43 todo FreeBSD:ZFS "Removing a file protected by SF_APPEND should return EPERM."
/freebsd/contrib/pjdfstest/tests/rmdir/
H A D09.t39 todo FreeBSD:ZFS "Removing a directory protected by SF_APPEND should return EPERM."
41 todo FreeBSD:ZFS "Removing a directory protected by SF_APPEND should return EPERM."
43 todo FreeBSD:ZFS "Removing a directory protected by SF_APPEND should return EPERM."
/freebsd/usr.bin/vmstat/
H A Dvmstat.c203 int bufsize, c, reps, todo; in main() local
209 interval = reps = todo = 0; in main()
230 todo |= FORKSTAT; in main()
239 todo |= INTRSTAT; in main()
245 todo |= MEMSTAT; in main()
258 todo |= OBJSTAT; in main()
266 todo |= SUMSTAT; in main()
274 todo |= ZMEMSTAT; in main()
288 if (todo == 0) in main()
289 todo = VMSTAT; in main()
[all …]
/freebsd/sys/dev/iscsi/
H A Dicl_soft.c1116 size_t mtodo, page_offset, todo; in icl_soft_conn_pdu_append_bio() local
1150 todo = MIN(len, PAGE_SIZE - page_offset); in icl_soft_conn_pdu_append_bio()
1155 m->m_epg_last_len = todo; in icl_soft_conn_pdu_append_bio()
1156 m->m_len += todo; in icl_soft_conn_pdu_append_bio()
1171 len -= todo; in icl_soft_conn_pdu_append_bio()
1198 todo = MIN(len, PAGE_SIZE - page_offset); in icl_soft_conn_pdu_append_bio()
1202 mtodo = min(todo, M_SIZE(m) - m->m_len); in icl_soft_conn_pdu_append_bio()
1209 todo -= mtodo; in icl_soft_conn_pdu_append_bio()
1210 } while (todo > 0); in icl_soft_conn_pdu_append_bio()
1213 len -= todo; in icl_soft_conn_pdu_append_bio()
[all …]
/freebsd/lib/libnvmf/
H A Dnvmf_tcp.c685 size_t todo; in tcp_send_h2c_pdus() local
688 todo = len; in tcp_send_h2c_pdus()
689 if (todo > qp->maxh2cdata) in tcp_send_h2c_pdus()
690 todo = qp->maxh2cdata; in tcp_send_h2c_pdus()
691 error = tcp_send_h2c_pdu(qp, cid, ttag, data_offset, p, todo, in tcp_send_h2c_pdus()
692 last_pdu && todo == len); in tcp_send_h2c_pdus()
695 p += todo; in tcp_send_h2c_pdus()
696 len -= todo; in tcp_send_h2c_pdus()
1432 size_t todo; in tcp_send_controller_data() local
1463 todo = 256 * 1024; in tcp_send_controller_data()
[all …]

1234