Home
last modified time | relevance | path

Searched refs:cabd (Results 1 – 15 of 15) sorted by relevance

/src/sys/contrib/openzfs/module/zfs/
H A Dabd.c129 for (abd_t *cabd = list_head(&ABD_GANG(abd).abd_gang_chain); in abd_verify() local
130 cabd != NULL; in abd_verify()
131 cabd = list_next(&ABD_GANG(abd).abd_gang_chain, cabd)) { in abd_verify()
132 ASSERT(list_link_active(&cabd->abd_gang_link)); in abd_verify()
133 child_sizes += cabd->abd_size; in abd_verify()
134 abd_verify(cabd); in abd_verify()
260 abd_t *cabd; in abd_free_gang() local
262 while ((cabd = list_head(&ABD_GANG(abd).abd_gang_chain)) != NULL) { in abd_free_gang()
269 mutex_enter(&cabd->abd_mtx); in abd_free_gang()
270 ASSERT(list_link_active(&cabd->abd_gang_link)); in abd_free_gang()
[all …]
H A Dblkptr.c146 abd_t cabd, dabd; in decode_embedded_bp() local
147 abd_get_from_buf_struct(&cabd, dstbuf, psize); in decode_embedded_bp()
149 VERIFY0(zio_decompress_data(BP_GET_COMPRESS(bp), &cabd, in decode_embedded_bp()
152 abd_free(&cabd); in decode_embedded_bp()
H A Ddsl_crypt.c2828 uint8_t *iv, uint8_t *mac, uint_t datalen, abd_t *pabd, abd_t *cabd, in spa_do_crypt_abd() argument
2846 cipherbuf = abd_borrow_buf(cabd, datalen); in spa_do_crypt_abd()
2849 cipherbuf = abd_borrow_buf_copy(cabd, datalen); in spa_do_crypt_abd()
2893 abd_return_buf_copy(cabd, cipherbuf, datalen); in spa_do_crypt_abd()
2896 abd_return_buf(cabd, cipherbuf, datalen); in spa_do_crypt_abd()
2910 abd_return_buf_copy(cabd, cipherbuf, datalen); in spa_do_crypt_abd()
2913 abd_return_buf(cabd, cipherbuf, datalen); in spa_do_crypt_abd()
H A Darc.c1880 abd_t *cabd = NULL; in arc_hdr_decrypt() local
1914 cabd = arc_get_data_abd(hdr, arc_hdr_size(hdr), hdr, 0); in arc_hdr_decrypt()
1917 hdr->b_l1hdr.b_pabd, cabd, HDR_GET_PSIZE(hdr), in arc_hdr_decrypt()
1925 hdr->b_l1hdr.b_pabd = cabd; in arc_hdr_decrypt()
1932 if (cabd != NULL) in arc_hdr_decrypt()
1933 arc_free_data_abd(hdr, cabd, arc_hdr_size(hdr), hdr); in arc_hdr_decrypt()
8827 abd_t *cabd = arc_get_data_abd(hdr, arc_hdr_size(hdr), hdr, in l2arc_untransform() local
8831 hdr->b_l1hdr.b_pabd, cabd, HDR_GET_PSIZE(hdr), in l2arc_untransform()
8834 arc_free_data_abd(hdr, cabd, arc_hdr_size(hdr), hdr); in l2arc_untransform()
8840 hdr->b_l1hdr.b_pabd = cabd; in l2arc_untransform()
[all …]
H A Dzio.c1974 abd_t *cabd = NULL; in zio_write_compress() local
1980 psize = zio_compress_data(compress, zio->io_abd, &cabd, in zio_write_compress()
1989 if (cabd != NULL) in zio_write_compress()
1990 abd_free(cabd); in zio_write_compress()
1994 void *cbuf = abd_borrow_buf_copy(cabd, lsize); in zio_write_compress()
2000 abd_return_buf(cabd, cbuf, lsize); in zio_write_compress()
2001 abd_free(cabd); in zio_write_compress()
2020 abd_free(cabd); in zio_write_compress()
2023 abd_zero_off(cabd, psize, rounded - psize); in zio_write_compress()
2025 zio_push_transform(zio, cabd, in zio_write_compress()
H A Ddmu_recv.c1475 abd_t *cabd = abd_alloc_linear(BP_GET_PSIZE(bp), in do_corrective_recv() local
1478 abd, &cabd, abd_get_size(abd), BP_GET_PSIZE(bp), in do_corrective_recv()
1480 abd_zero_off(cabd, csize, BP_GET_PSIZE(bp) - csize); in do_corrective_recv()
1483 abd = cabd; in do_corrective_recv()
H A Ddsl_dataset.c2470 abd_t pabd, cabd; in get_receive_resume_token_impl() local
2472 abd_get_from_buf_struct(&cabd, compressed, packed_size); in get_receive_resume_token_impl()
2473 compressed_size = zfs_gzip_compress(&pabd, &cabd, in get_receive_resume_token_impl()
2475 abd_free(&cabd); in get_receive_resume_token_impl()
H A Dvdev_raidz.c4432 abd_t *cabd = abd_get_offset_size( in raidz_reflow_impl() local
4436 abd_gang_add(abd, cabd, B_TRUE); in raidz_reflow_impl()
/src/sys/contrib/openzfs/module/os/linux/zfs/
H A Dabd_os.c1058 for (abd_t *cabd = list_head(&ABD_GANG(abd).abd_gang_chain); in abd_return_buf() local
1059 cabd != NULL; in abd_return_buf()
1060 cabd = list_next(&ABD_GANG(abd).abd_gang_chain, cabd)) { in abd_return_buf()
1061 if (!abd_is_from_pages(cabd)) { in abd_return_buf()
1062 ASSERT0(abd_cmp_buf(cabd, cmp_buf, in abd_return_buf()
1063 cabd->abd_size)); in abd_return_buf()
1065 cmp_buf = (char *)cmp_buf + cabd->abd_size; in abd_return_buf()
1230 for (abd_t *cabd = abd_gang_get_offset(abd, &off); in abd_nr_pages_off() local
1231 cabd != NULL && size != 0; in abd_nr_pages_off()
1232 cabd = list_next(&ABD_GANG(abd).abd_gang_chain, cabd)) { in abd_nr_pages_off()
[all …]
H A Dzio_crypt.c2036 uint_t datalen, abd_t *pabd, abd_t *cabd, boolean_t *no_crypt) in zio_do_crypt_abd() argument
2043 ctmp = abd_borrow_buf(cabd, datalen); in zio_do_crypt_abd()
2046 ctmp = abd_borrow_buf_copy(cabd, datalen); in zio_do_crypt_abd()
2056 abd_return_buf_copy(cabd, ctmp, datalen); in zio_do_crypt_abd()
2059 abd_return_buf(cabd, ctmp, datalen); in zio_do_crypt_abd()
2067 abd_return_buf_copy(cabd, ctmp, datalen); in zio_do_crypt_abd()
2070 abd_return_buf(cabd, ctmp, datalen); in zio_do_crypt_abd()
/src/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dabd_os.c660 for (abd_t *cabd = list_head(&ABD_GANG(abd).abd_gang_chain); in abd_return_buf() local
661 cabd != NULL; in abd_return_buf()
662 cabd = list_next(&ABD_GANG(abd).abd_gang_chain, cabd)) { in abd_return_buf()
663 if (!abd_is_from_pages(cabd)) { in abd_return_buf()
664 ASSERT0(abd_cmp_buf(cabd, cmp_buf, in abd_return_buf()
665 cabd->abd_size)); in abd_return_buf()
667 cmp_buf = (char *)cmp_buf + cabd->abd_size; in abd_return_buf()
H A Dzio_crypt.c1775 uint_t datalen, abd_t *pabd, abd_t *cabd, boolean_t *no_crypt) in zio_do_crypt_abd() argument
1782 ctmp = abd_borrow_buf(cabd, datalen); in zio_do_crypt_abd()
1785 ctmp = abd_borrow_buf_copy(cabd, datalen); in zio_do_crypt_abd()
1795 abd_return_buf_copy(cabd, ctmp, datalen); in zio_do_crypt_abd()
1798 abd_return_buf(cabd, ctmp, datalen); in zio_do_crypt_abd()
1806 abd_return_buf_copy(cabd, ctmp, datalen); in zio_do_crypt_abd()
1809 abd_return_buf(cabd, ctmp, datalen); in zio_do_crypt_abd()
/src/sys/contrib/openzfs/cmd/zstream/
H A Dzstream_recompress.c263 abd_t cabd, dabd; in zstream_do_recompress() local
264 abd_get_from_buf_struct(&cabd, in zstream_do_recompress()
268 if (zio_decompress_data(dtype, &cabd, &dabd, in zstream_do_recompress()
280 abd_free(&cabd); in zstream_do_recompress()
/src/sys/contrib/openzfs/include/sys/
H A Dzio_crypt.h158 uint8_t *mac, uint_t datalen, abd_t *pabd, abd_t *cabd,
H A Ddsl_crypt.h225 uint8_t *iv, uint8_t *mac, uint_t datalen, abd_t *pabd, abd_t *cabd,