Home
last modified time | relevance | path

Searched refs:todo (Results 1 – 25 of 97) 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.c454 size_t remain, todo; in crypto_cursor_copyback() local
474 todo = MIN(remain, size); in crypto_cursor_copyback()
475 m_copyback(cc->cc_mbuf, cc->cc_offset, todo, src); in crypto_cursor_copyback()
476 src += todo; in crypto_cursor_copyback()
477 if (todo < remain) { in crypto_cursor_copyback()
478 cc->cc_offset += todo; in crypto_cursor_copyback()
481 size -= todo; in crypto_cursor_copyback()
498 todo = MIN(remain, size); in crypto_cursor_copyback()
499 memcpy(dst, src, todo); in crypto_cursor_copyback()
500 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.c1784 } todo = { in list_main() local
1805 todo.all_algorithms = 1; in list_main()
1808 todo.commands = 1; in list_main()
1811 todo.digest_commands = 1; in list_main()
1814 todo.digest_algorithms = 1; in list_main()
1817 todo.kdf_algorithms = 1; in list_main()
1820 todo.random_instances = 1; in list_main()
1823 todo.random_generators = 1; in list_main()
1826 todo.mac_algorithms = 1; in list_main()
1829 todo.cipher_commands = 1; in list_main()
[all …]
/freebsd/sys/dev/nvmf/controller/
H A Dnvmft_controller.c522 u_int todo; in m_zero() local
532 todo = m->m_len - offset; in m_zero()
533 if (todo > len) in m_zero()
534 todo = len; in m_zero()
535 memset(mtodo(m, offset), 0, todo); in m_zero()
537 len -= todo; in m_zero()
540 todo = m->m_len; in m_zero()
541 if (todo > len) in m_zero()
542 todo = len; in m_zero()
543 memset(mtod(m, void *), 0, todo); in m_zero()
[all …]
/freebsd/crypto/openssl/crypto/chacha/
H A Dchacha_enc.c103 size_t todo, i; in ChaCha20_ctr32_c() local
134 todo = sizeof(buf); in ChaCha20_ctr32_c()
135 if (len < todo) in ChaCha20_ctr32_c()
136 todo = len; in ChaCha20_ctr32_c()
140 for (i = 0; i < todo; i++) in ChaCha20_ctr32_c()
142 out += todo; in ChaCha20_ctr32_c()
143 inp += todo; in ChaCha20_ctr32_c()
144 len -= todo; in ChaCha20_ctr32_c()
/freebsd/sys/dev/coreboot/
H A Dcoreboot_console.c55 size_t todo; in coreboot_console_read() local
95 todo = MIN(uio->uio_resid, seg_len); in coreboot_console_read()
96 error = uiomove(cons->body + seg_start, todo, uio); in coreboot_console_read()
99 offset += todo; in coreboot_console_read()
112 todo = MIN(uio->uio_resid, data_len - offset); in coreboot_console_read()
113 error = uiomove(cons->body + data_start + offset, todo, uio); in coreboot_console_read()
/freebsd/tools/tools/nvmf/nvmfdd/
H A Dnvmfdd.c299 u_int todo; in nvmf_io() local
312 todo = length; in nvmf_io()
313 if (todo > block_size) in nvmf_io()
314 todo = block_size; in nvmf_io()
317 rv = read(STDIN_FILENO, buf, todo); in nvmf_io()
322 if (rv != todo) { in nvmf_io()
328 if (todo < block_size) in nvmf_io()
329 memset(buf + todo, 0, block_size - todo); in nvmf_io()
340 (void)write(STDOUT_FILENO, buf, todo); in nvmf_io()
343 length -= todo; in nvmf_io()
/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/contrib/libarchive/libarchive/
H A Darchive_write_disk_posix.c259 int todo; member
652 a->todo = TODO_MODE_BASE; in _archive_write_disk_header()
654 a->todo |= TODO_MODE_FORCE; /* Be pushy about permissions. */ in _archive_write_disk_header()
670 a->todo |= TODO_SGID | TODO_SGID_CHECK; in _archive_write_disk_header()
676 a->todo |= TODO_SUID | TODO_SUID_CHECK; in _archive_write_disk_header()
688 a->todo |= TODO_OWNER; in _archive_write_disk_header()
690 a->todo |= TODO_TIMES; in _archive_write_disk_header()
737 a->todo |= TODO_ACLS; in _archive_write_disk_header()
746 a->todo |= TODO_MAC_METADATA; in _archive_write_disk_header()
753 a->todo |= TODO_HFS_COMPRESSION; in _archive_write_disk_header()
[all …]
/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/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/sys/compat/linuxkpi/common/src/
H A Dlinux_seq_file.c49 size_t todo; in seq_read() local
106 todo = sbuf_len(sbuf); in seq_read()
107 if (todo > size) in seq_read()
108 todo = size; in seq_read()
110 rc = copy_to_user(ubuf, sbuf_data(sbuf), todo); in seq_read()
114 return (todo); in seq_read()
/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/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/crypto/openssl/crypto/bn/
H A Dbn_rand.c305 unsigned done, todo; in ossl_bn_gen_dsa_nonce_fixed_top() local
360 todo = num_k_bytes - done; in ossl_bn_gen_dsa_nonce_fixed_top()
361 if (todo > SHA512_DIGEST_LENGTH) in ossl_bn_gen_dsa_nonce_fixed_top()
362 todo = SHA512_DIGEST_LENGTH; in ossl_bn_gen_dsa_nonce_fixed_top()
363 memcpy(k_bytes + done, digest, todo); in ossl_bn_gen_dsa_nonce_fixed_top()
364 done += todo; in ossl_bn_gen_dsa_nonce_fixed_top()
/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."

1234