Home
last modified time | relevance | path

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

/freebsd/sys/contrib/openzfs/module/zfs/
H A Dabd.c128 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 Dblkptr.c145 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 Ddsl_crypt.c2824 uint8_t *iv, uint8_t *mac, uint_t datalen, abd_t *pabd, abd_t *cabd, in spa_do_crypt_abd() argument
2842 cipherbuf = abd_borrow_buf(cabd, datalen); in spa_do_crypt_abd()
2845 cipherbuf = abd_borrow_buf_copy(cabd, datalen); in spa_do_crypt_abd()
2889 abd_return_buf_copy(cabd, cipherbuf, datalen); in spa_do_crypt_abd()
2892 abd_return_buf(cabd, cipherbuf, datalen); in spa_do_crypt_abd()
2906 abd_return_buf_copy(cabd, cipherbuf, datalen); in spa_do_crypt_abd()
2909 abd_return_buf(cabd, cipherbuf, datalen); in spa_do_crypt_abd()
H A Darc.c1836 abd_t *cabd = NULL; in arc_hdr_decrypt() local
1870 cabd = arc_get_data_abd(hdr, arc_hdr_size(hdr), hdr, 0); in arc_hdr_decrypt()
1873 hdr->b_l1hdr.b_pabd, cabd, HDR_GET_PSIZE(hdr), in arc_hdr_decrypt()
1881 hdr->b_l1hdr.b_pabd = cabd; in arc_hdr_decrypt()
1888 if (cabd != NULL) in arc_hdr_decrypt()
1889 arc_free_data_buf(hdr, cabd, arc_hdr_size(hdr), hdr); in arc_hdr_decrypt()
8531 abd_t *cabd = arc_get_data_abd(hdr, arc_hdr_size(hdr), hdr, in l2arc_untransform() local
8535 hdr->b_l1hdr.b_pabd, cabd, HDR_GET_PSIZE(hdr), in l2arc_untransform()
8538 arc_free_data_abd(hdr, cabd, arc_hdr_size(hdr), hdr); in l2arc_untransform()
8544 hdr->b_l1hdr.b_pabd = cabd; in l2arc_untransform()
[all …]
H A Dzio.c1910 abd_t *cabd = NULL; in zio_write_compress() local
1916 psize = zio_compress_data(compress, zio->io_abd, &cabd, in zio_write_compress()
1925 if (cabd != NULL) in zio_write_compress()
1926 abd_free(cabd); in zio_write_compress()
1931 void *cbuf = abd_borrow_buf_copy(cabd, lsize); in zio_write_compress()
1937 abd_return_buf(cabd, cbuf, lsize); in zio_write_compress()
1938 abd_free(cabd); in zio_write_compress()
1957 abd_free(cabd); in zio_write_compress()
1960 abd_zero_off(cabd, psize, rounded - psize); in zio_write_compress()
1962 zio_push_transform(zio, cabd, in zio_write_compress()
H A Ddmu_recv.c1446 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 Ddsl_dataset.c2433 abd_t pabd, cabd; in get_receive_resume_token_impl() local
2435 abd_get_from_buf_struct(&cabd, compressed, packed_size); in get_receive_resume_token_impl()
2436 compressed_size = zfs_gzip_compress(&pabd, &cabd, in get_receive_resume_token_impl()
2438 abd_free(&cabd); in get_receive_resume_token_impl()
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/
H A Dabd_os.c1039 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 Dzio_crypt.c2035 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 Dabd_os.c659 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 Dzio_crypt.c1785 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 Dzstream_recompress.c262 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 Dzio_crypt.h157 uint8_t *mac, uint_t datalen, abd_t *pabd, abd_t *cabd,
H A Ddsl_crypt.h224 uint8_t *iv, uint8_t *mac, uint_t datalen, abd_t *pabd, abd_t *cabd,