Searched defs:byteswap (Results 1 - 12 of 12) sorted by relevance

/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dzio_checksum.c394 int byteswap; local
447 byteswap = (eck.zec_magic == BSWAP_64(ZEC_MAGIC));
449 if (byteswap)
457 ci->ci_func[byteswap](abd, size,
463 if (byteswap) {
468 byteswap = BP_SHOULD_BYTESWAP(bp);
470 ci->ci_func[byteswap](abd, size,
498 info->zbc_byteswapped = byteswap;
H A Dzfs_replay.c72 zfs_replay_error(void *arg1, void *arg2, boolean_t byteswap) argument
276 zfs_replay_create_acl(void *arg1, void *arg2, boolean_t byteswap) argument
297 if (byteswap) {
425 zfs_replay_create(void *arg1, void *arg2, boolean_t byteswap) argument
443 if (byteswap) {
557 zfs_replay_remove(void *arg1, void *arg2, boolean_t byteswap) argument
566 if (byteswap)
592 zfs_replay_link(void *arg1, void *arg2, boolean_t byteswap) argument
601 if (byteswap)
624 zfs_replay_rename(void *arg1, void *arg2, boolean_t byteswap) argument
658 zfs_replay_write(void *arg1, void *arg2, boolean_t byteswap) argument
726 zfs_replay_write2(void *arg1, void *arg2, boolean_t byteswap) argument
773 zfs_replay_truncate(void *arg1, void *arg2, boolean_t byteswap) argument
802 zfs_replay_setattr(void *arg1, void *arg2, boolean_t byteswap) argument
856 zfs_replay_acl_v0(void *arg1, void *arg2, boolean_t byteswap) argument
902 zfs_replay_acl(void *arg1, void *arg2, boolean_t byteswap) argument
[all...]
H A Dzio_crypt.c752 * byteswapped by lower layers and so we must "undo" that byteswap here upon
1132 * and le_bswap indicates whether a byteswap is needed to get this block
1305 uint_t datalen, uint64_t version, boolean_t byteswap, uint8_t *cksum)
1316 byteswap, bp);
1333 uint_t datalen, boolean_t byteswap, uint8_t *cksum)
1346 datalen, ZIO_CRYPT_KEY_CURRENT_VERSION, byteswap, cksum);
1350 buf, datalen, 0, byteswap, cksum);
1358 uint_t datalen, boolean_t byteswap, uint8_t *cksum)
1365 byteswap, cksum);
1382 uint8_t *cipherbuf, uint_t datalen, boolean_t byteswap, uio_
1304 zio_crypt_do_indirect_mac_checksum_impl(boolean_t generate, void *buf, uint_t datalen, uint64_t version, boolean_t byteswap, uint8_t *cksum) argument
1332 zio_crypt_do_indirect_mac_checksum(boolean_t generate, void *buf, uint_t datalen, boolean_t byteswap, uint8_t *cksum) argument
1357 zio_crypt_do_indirect_mac_checksum_abd(boolean_t generate, abd_t *abd, uint_t datalen, boolean_t byteswap, uint8_t *cksum) argument
1381 zio_crypt_init_uios_zil(boolean_t encrypt, uint8_t *plainbuf, uint8_t *cipherbuf, uint_t datalen, boolean_t byteswap, uio_t *puio, uio_t *cuio, uint_t *enc_len, uint8_t **authbuf, uint_t *auth_len, boolean_t *no_crypt) argument
1579 zio_crypt_init_uios_dnode(boolean_t encrypt, uint64_t version, uint8_t *plainbuf, uint8_t *cipherbuf, uint_t datalen, boolean_t byteswap, uio_t *puio, uio_t *cuio, uint_t *enc_len, uint8_t **authbuf, uint_t *auth_len, boolean_t *no_crypt) argument
1822 zio_crypt_init_uios(boolean_t encrypt, uint64_t version, dmu_object_type_t ot, uint8_t *plainbuf, uint8_t *cipherbuf, uint_t datalen, boolean_t byteswap, uint8_t *mac, uio_t *puio, uio_t *cuio, uint_t *enc_len, uint8_t **authbuf, uint_t *auth_len, boolean_t *no_crypt) argument
1874 zio_do_crypt_data(boolean_t encrypt, zio_crypt_key_t *key, dmu_object_type_t ot, boolean_t byteswap, uint8_t *salt, uint8_t *iv, uint8_t *mac, uint_t datalen, uint8_t *plainbuf, uint8_t *cipherbuf, boolean_t *no_crypt) argument
1974 zio_do_crypt_abd(boolean_t encrypt, zio_crypt_key_t *key, dmu_object_type_t ot, boolean_t byteswap, uint8_t *salt, uint8_t *iv, uint8_t *mac, uint_t datalen, abd_t *pabd, abd_t *cabd, boolean_t *no_crypt) argument
[all...]
H A Ddsl_crypt.c2667 abd_t *abd, uint_t datalen, boolean_t byteswap)
2683 byteswap, portable_mac, local_mac);
2666 spa_do_crypt_objset_mac_abd(boolean_t generate, spa_t *spa, uint64_t dsobj, abd_t *abd, uint_t datalen, boolean_t byteswap) argument
H A Ddmu_recv.c808 boolean_t byteswap; member in struct:receive_writer_arg
869 boolean_t byteswap; member in struct:receive_arg
1427 if (rwa->byteswap && !rwa->raw) {
1428 dmu_object_byteswap_t byteswap = local
1430 dmu_ot_byteswap[byteswap].ob_func(db->db_data,
1516 if (rwa->byteswap && !arc_is_encrypted(abuf) &&
1518 dmu_object_byteswap_t byteswap = local
1520 dmu_ot_byteswap[byteswap].ob_func(abuf->b_data,
1657 rwa->byteswap ^ ZFS_HOST_BYTEORDER, tx);
1734 if (rwa->byteswap
1736 dmu_object_byteswap_t byteswap = local
[all...]
H A Ddnode.c360 dmu_object_byteswap_t byteswap = local
362 dmu_ot_byteswap[byteswap].ob_func(dnp->dn_bonus + off, len);
H A Dzvol.c378 zvol_replay_truncate(void *arg1, void *arg2, boolean_t byteswap) argument
384 if (byteswap)
399 zvol_replay_write(void *arg1, void *arg2, boolean_t byteswap) argument
409 if (byteswap)
439 zvol_replay_err(void *arg1, void *arg2, boolean_t byteswap) argument
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dfsys_zfs.c167 int byteswap = BP_SHOULD_BYTESWAP(bp); local
172 if (byteswap) {
173 grub_printf("byteswap not supported\n");
189 ci->ci_func[byteswap](data, size, &actual_cksum);
/illumos-gate/usr/src/boot/sys/cddl/boot/zfs/
H A Dzfssubr.c274 int byteswap; local
306 byteswap = (eck->zec_magic == BSWAP_64(ZEC_MAGIC));
308 if (byteswap)
313 ci->ci_func[byteswap](data, size, ctx, &actual_cksum);
316 if (byteswap)
320 byteswap = BP_SHOULD_BYTESWAP(bp);
322 ci->ci_func[byteswap](data, size, ctx, &actual_cksum);
/illumos-gate/usr/src/lib/libzfs/common/
H A Dlibzfs.h732 /* byteswap flag is used internally; callers need not specify */
733 boolean_t byteswap; member in struct:recvflags
H A Dlibzfs_sendrecv.c2195 boolean_t byteswap, zio_cksum_t *zc)
2217 if (byteswap)
2227 boolean_t byteswap, zio_cksum_t *zc)
2236 err = recv_read(hdl, fd, buf, len, byteswap, zc);
3083 &stream_nv, flags->byteswap, zc);
3105 flags->byteswap, NULL)))
3107 if (flags->byteswap) {
3277 recv_skip(libzfs_handle_t *hdl, int fd, boolean_t byteswap) argument
3290 byteswap, NULL) == 0) {
3291 if (byteswap)
2194 recv_read(libzfs_handle_t *hdl, int fd, void *buf, int ilen, boolean_t byteswap, zio_cksum_t *zc) argument
2226 recv_read_nvlist(libzfs_handle_t *hdl, int fd, int len, nvlist_t **nvp, boolean_t byteswap, zio_cksum_t *zc) argument
[all...]
/illumos-gate/usr/src/cmd/ztest/
H A Dztest.c1644 ztest_replay_create(void *arg1, void *arg2, boolean_t byteswap) argument
1657 if (byteswap)
1734 ztest_replay_remove(void *arg1, void *arg2, boolean_t byteswap) argument
1744 if (byteswap)
1787 ztest_replay_write(void *arg1, void *arg2, boolean_t byteswap) argument
1803 if (byteswap)
1915 ztest_replay_truncate(void *arg1, void *arg2, boolean_t byteswap) argument
1924 if (byteswap)
1956 ztest_replay_setattr(void *arg1, void *arg2, boolean_t byteswap) argument
1966 if (byteswap)
[all...]

Completed in 220 milliseconds