/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | abd.c | 128 for (abd_t *cabd = list_head(&ABD_GANG(abd).abd_gang_chain); in abd_verify() local 129 cabd != NULL; in abd_verify() 130 cabd = list_next(&ABD_GANG(abd).abd_gang_chain, cabd)) { in abd_verify() 131 ASSERT(list_link_active(&cabd->abd_gang_link)); in abd_verify() 132 child_sizes += cabd->abd_size; in abd_verify() 133 abd_verify(cabd); in abd_verify() 259 abd_t *cabd; in abd_free_gang() local 261 while ((cabd = list_head(&ABD_GANG(abd).abd_gang_chain)) != NULL) { in abd_free_gang() 268 mutex_enter(&cabd->abd_mtx); in abd_free_gang() 269 ASSERT(list_link_active(&cabd->abd_gang_link)); in abd_free_gang() [all …]
|
H A D | blkptr.c | 145 abd_t cabd, dabd; in decode_embedded_bp() local 146 abd_get_from_buf_struct(&cabd, dstbuf, psize); in decode_embedded_bp() 148 VERIFY0(zio_decompress_data(BP_GET_COMPRESS(bp), &cabd, in decode_embedded_bp() 151 abd_free(&cabd); in decode_embedded_bp()
|
H A D | dsl_crypt.c | 2827 uint8_t *iv, uint8_t *mac, uint_t datalen, abd_t *pabd, abd_t *cabd, in spa_do_crypt_abd() argument 2845 cipherbuf = abd_borrow_buf(cabd, datalen); in spa_do_crypt_abd() 2848 cipherbuf = abd_borrow_buf_copy(cabd, datalen); in spa_do_crypt_abd() 2892 abd_return_buf_copy(cabd, cipherbuf, datalen); in spa_do_crypt_abd() 2895 abd_return_buf(cabd, cipherbuf, datalen); in spa_do_crypt_abd() 2909 abd_return_buf_copy(cabd, cipherbuf, datalen); in spa_do_crypt_abd() 2912 abd_return_buf(cabd, cipherbuf, datalen); in spa_do_crypt_abd()
|
H A D | arc.c | 1855 abd_t *cabd = NULL; in arc_hdr_decrypt() local 1889 cabd = arc_get_data_abd(hdr, arc_hdr_size(hdr), hdr, 0); in arc_hdr_decrypt() 1892 hdr->b_l1hdr.b_pabd, cabd, HDR_GET_PSIZE(hdr), in arc_hdr_decrypt() 1900 hdr->b_l1hdr.b_pabd = cabd; in arc_hdr_decrypt() 1907 if (cabd != NULL) in arc_hdr_decrypt() 1908 arc_free_data_abd(hdr, cabd, arc_hdr_size(hdr), hdr); in arc_hdr_decrypt() 8691 abd_t *cabd = arc_get_data_abd(hdr, arc_hdr_size(hdr), hdr, in l2arc_untransform() local 8695 hdr->b_l1hdr.b_pabd, cabd, HDR_GET_PSIZE(hdr), in l2arc_untransform() 8698 arc_free_data_abd(hdr, cabd, arc_hdr_size(hdr), hdr); in l2arc_untransform() 8704 hdr->b_l1hdr.b_pabd = cabd; in l2arc_untransform() [all …]
|
H A D | zio.c | 1981 abd_t *cabd = NULL; in zio_write_compress() local 1987 psize = zio_compress_data(compress, zio->io_abd, &cabd, in zio_write_compress() 1996 if (cabd != NULL) in zio_write_compress() 1997 abd_free(cabd); in zio_write_compress() 2002 void *cbuf = abd_borrow_buf_copy(cabd, lsize); in zio_write_compress() 2008 abd_return_buf(cabd, cbuf, lsize); in zio_write_compress() 2009 abd_free(cabd); in zio_write_compress() 2028 abd_free(cabd); in zio_write_compress() 2031 abd_zero_off(cabd, psize, rounded - psize); in zio_write_compress() 2033 zio_push_transform(zio, cabd, in zio_write_compress()
|
H A D | dmu_recv.c | 1446 abd_t *cabd = abd_alloc_linear(BP_GET_PSIZE(bp), in do_corrective_recv() local 1449 abd, &cabd, abd_get_size(abd), BP_GET_PSIZE(bp), in do_corrective_recv() 1451 abd_zero_off(cabd, csize, BP_GET_PSIZE(bp) - csize); in do_corrective_recv() 1454 abd = cabd; in do_corrective_recv()
|
H A D | dsl_dataset.c | 2462 abd_t pabd, cabd; in get_receive_resume_token_impl() local 2464 abd_get_from_buf_struct(&cabd, compressed, packed_size); in get_receive_resume_token_impl() 2465 compressed_size = zfs_gzip_compress(&pabd, &cabd, in get_receive_resume_token_impl() 2467 abd_free(&cabd); in get_receive_resume_token_impl()
|
H A D | vdev_raidz.c | 4080 abd_t *cabd = abd_get_offset_size( in raidz_reflow_impl() local 4084 abd_gang_add(abd, cabd, B_TRUE); in raidz_reflow_impl()
|
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/ |
H A D | abd_os.c | 1039 for (abd_t *cabd = list_head(&ABD_GANG(abd).abd_gang_chain); in abd_return_buf() local 1040 cabd != NULL; in abd_return_buf() 1041 cabd = list_next(&ABD_GANG(abd).abd_gang_chain, cabd)) { in abd_return_buf() 1042 if (!abd_is_from_pages(cabd)) { in abd_return_buf() 1043 ASSERT0(abd_cmp_buf(cabd, cmp_buf, in abd_return_buf() 1044 cabd->abd_size)); in abd_return_buf() 1046 cmp_buf = (char *)cmp_buf + cabd->abd_size; in abd_return_buf() 1211 for (abd_t *cabd = abd_gang_get_offset(abd, &off); in abd_nr_pages_off() local 1212 cabd != NULL && size != 0; in abd_nr_pages_off() 1213 cabd = list_next(&ABD_GANG(abd).abd_gang_chain, cabd)) { in abd_nr_pages_off() [all …]
|
H A D | zio_crypt.c | 2035 uint_t datalen, abd_t *pabd, abd_t *cabd, boolean_t *no_crypt) in zio_do_crypt_abd() argument 2042 ctmp = abd_borrow_buf(cabd, datalen); in zio_do_crypt_abd() 2045 ctmp = abd_borrow_buf_copy(cabd, datalen); in zio_do_crypt_abd() 2055 abd_return_buf_copy(cabd, ctmp, datalen); in zio_do_crypt_abd() 2058 abd_return_buf(cabd, ctmp, datalen); in zio_do_crypt_abd() 2066 abd_return_buf_copy(cabd, ctmp, datalen); in zio_do_crypt_abd() 2069 abd_return_buf(cabd, ctmp, datalen); in zio_do_crypt_abd()
|
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/ |
H A D | abd_os.c | 659 for (abd_t *cabd = list_head(&ABD_GANG(abd).abd_gang_chain); in abd_return_buf() local 660 cabd != NULL; in abd_return_buf() 661 cabd = list_next(&ABD_GANG(abd).abd_gang_chain, cabd)) { in abd_return_buf() 662 if (!abd_is_from_pages(cabd)) { in abd_return_buf() 663 ASSERT0(abd_cmp_buf(cabd, cmp_buf, in abd_return_buf() 664 cabd->abd_size)); in abd_return_buf() 666 cmp_buf = (char *)cmp_buf + cabd->abd_size; in abd_return_buf()
|
H A D | zio_crypt.c | 1785 uint_t datalen, abd_t *pabd, abd_t *cabd, boolean_t *no_crypt) in zio_do_crypt_abd() argument 1792 ctmp = abd_borrow_buf(cabd, datalen); in zio_do_crypt_abd() 1795 ctmp = abd_borrow_buf_copy(cabd, datalen); in zio_do_crypt_abd() 1805 abd_return_buf_copy(cabd, ctmp, datalen); in zio_do_crypt_abd() 1808 abd_return_buf(cabd, ctmp, datalen); in zio_do_crypt_abd() 1816 abd_return_buf_copy(cabd, ctmp, datalen); in zio_do_crypt_abd() 1819 abd_return_buf(cabd, ctmp, datalen); in zio_do_crypt_abd()
|
/freebsd/sys/contrib/openzfs/cmd/zstream/ |
H A D | zstream_recompress.c | 262 abd_t cabd, dabd; in zstream_do_recompress() local 263 abd_get_from_buf_struct(&cabd, in zstream_do_recompress() 267 if (zio_decompress_data(dtype, &cabd, &dabd, in zstream_do_recompress() 279 abd_free(&cabd); in zstream_do_recompress()
|
/freebsd/sys/contrib/openzfs/include/sys/ |
H A D | zio_crypt.h | 157 uint8_t *mac, uint_t datalen, abd_t *pabd, abd_t *cabd,
|
H A D | dsl_crypt.h | 224 uint8_t *iv, uint8_t *mac, uint_t datalen, abd_t *pabd, abd_t *cabd,
|