Home
last modified time | relevance | path

Searched refs:abd_t (Results 1 – 25 of 60) sorted by relevance

123

/freebsd/sys/contrib/openzfs/include/sys/
H A Dabd.h68 } abd_t; typedef
80 abd_t *abd_alloc(size_t, boolean_t);
82 abd_t *abd_alloc_linear(size_t, boolean_t);
84 abd_t *abd_alloc_gang(void);
86 abd_t *abd_alloc_for_io(size_t, boolean_t);
88 abd_t *abd_alloc_sametype(abd_t *, size_t);
90 void abd_gang_add(abd_t *, abd_t *, boolean_t);
91 void abd_free(abd_t *);
92 abd_t *abd_get_offset(abd_t *, size_t);
93 abd_t *abd_get_offset_size(abd_t *, size_t, size_t);
[all …]
H A Dzio_compress.h126 typedef size_t zio_compress_func_t(abd_t *src, abd_t *dst,
129 typedef int zio_decompress_func_t(abd_t *src, abd_t *dst,
132 typedef int zio_decompresslevel_func_t(abd_t *src, abd_t *dst,
157 extern size_t zfs_lzjb_compress(abd_t *src, abd_t *dst, size_t s_len,
159 extern int zfs_lzjb_decompress(abd_t *src, abd_t *dst, size_t s_len,
161 extern size_t zfs_gzip_compress(abd_t *src, abd_t *dst, size_t s_len,
163 extern int zfs_gzip_decompress(abd_t *src, abd_t *dst, size_t s_len,
165 extern size_t zfs_zle_compress(abd_t *src, abd_t *dst, size_t s_len,
167 extern int zfs_zle_decompress(abd_t *src, abd_t *dst, size_t s_len,
169 extern size_t zfs_lz4_compress(abd_t *src, abd_t *dst, size_t s_len,
[all …]
H A Dabd_impl.h72 abd_t *iter_abd; /* ABD being iterated through */
83 extern abd_t *abd_zero_scatter;
85 abd_t *abd_gang_get_offset(abd_t *, size_t *);
86 abd_t *abd_alloc_struct(size_t);
87 void abd_free_struct(abd_t *);
88 void abd_init_struct(abd_t *);
94 abd_t *abd_alloc_struct_impl(size_t);
95 abd_t *abd_get_offset_scatter(abd_t *, abd_t *, size_t, size_t);
96 void abd_free_struct_impl(abd_t *);
97 void abd_alloc_chunks(abd_t *, size_t);
[all …]
H A Ddmu_impl.h271 int dmu_write_direct(zio_t *, dmu_buf_impl_t *, abd_t *, dmu_tx_t *);
272 int dmu_read_abd(dnode_t *, uint64_t, uint64_t, abd_t *, uint32_t flags);
273 int dmu_write_abd(dnode_t *, uint64_t, uint64_t, abd_t *, uint32_t, dmu_tx_t *);
H A Dzio_crypt.h141 void zio_crypt_copy_dnode_bonus(abd_t *src_abd, uint8_t *dst, uint_t datalen);
145 int zio_crypt_do_indirect_mac_checksum_abd(boolean_t generate, abd_t *abd,
157 uint8_t *mac, uint_t datalen, abd_t *pabd, abd_t *cabd,
H A Ddsl_crypt.h219 abd_t *abd, uint_t datalen, uint8_t *mac);
221 abd_t *abd, uint_t datalen, boolean_t byteswap);
224 uint8_t *iv, uint8_t *mac, uint_t datalen, abd_t *pabd, abd_t *cabd,
H A Dvdev_raidz_impl.h112 abd_t rc_abdstruct; /* rc_abd probably points here */
113 abd_t *rc_abd; /* I/O data */
114 abd_t *rc_orig_data; /* pre-reconstruction */
133 abd_t *rr_abd_empty; /* dRAID empty sector buffer */
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dabd.c109 abd_verify(abd_t *abd) in abd_verify()
128 for (abd_t *cabd = list_head(&ABD_GANG(abd).abd_gang_chain); in abd_verify()
144 abd_init_struct(abd_t *abd) in abd_init_struct()
157 abd_fini_struct(abd_t *abd) in abd_fini_struct()
166 abd_t *
169 abd_t *abd = abd_alloc_struct_impl(size); in abd_alloc_struct()
176 abd_free_struct(abd_t *abd) in abd_free_struct()
186 abd_t *
194 abd_t *abd = abd_alloc_struct(size); in abd_alloc()
214 abd_t *
[all …]
H A Dvdev_raidz_math_impl.h364 abd_t *pabd = rr->rr_col[CODE_P].rc_abd; in raidz_generate_p_impl()
382 abd_t *dabd = rr->rr_col[c].rc_abd; in raidz_generate_p_impl()
438 abd_t *dabd; in raidz_generate_pq_impl()
439 abd_t *cabds[] = { in raidz_generate_pq_impl()
516 abd_t *dabd; in raidz_generate_pqr_impl()
517 abd_t *cabds[] = { in raidz_generate_pqr_impl()
615 abd_t *xabd = rr->rr_col[x].rc_abd; in raidz_reconstruct_p_impl()
638 abd_t *dabd = rr->rr_col[c].rc_abd; in raidz_reconstruct_p_impl()
694 abd_t *dabd; in raidz_reconstruct_q_impl()
698 abd_t *xabd = rr->rr_col[x].rc_abd; in raidz_reconstruct_q_impl()
[all …]
H A Ddmu_direct.c32 static abd_t *
33 make_abd_for_dbuf(dmu_buf_impl_t *db, abd_t *data, uint64_t offset, in make_abd_for_dbuf()
37 abd_t *pre_buf = NULL, *post_buf = NULL, *mbuf = NULL; in make_abd_for_dbuf()
59 abd_t *buf = abd_get_offset_size(data, buf_off, buf_size); in make_abd_for_dbuf()
131 dmu_write_direct(zio_t *pio, dmu_buf_impl_t *db, abd_t *data, dmu_tx_t *tx) in dmu_write_direct()
210 abd_t *data, uint32_t flags, dmu_tx_t *tx) in dmu_write_abd()
228 abd_t *abd = abd_get_offset_size(data, in dmu_write_abd()
249 abd_t *data, uint32_t flags) in dmu_read_abd()
267 abd_t *mbuf; in dmu_read_abd()
362 abd_t *data = abd_alloc_from_pages(&uio->uio_dio.pages[page_index], in dmu_read_uio_direct()
[all …]
H A Dzio_compress.c123 zio_compress_data(enum zio_compress c, abd_t *src, abd_t **dst, size_t s_len, in zio_compress_data()
160 zio_decompress_data(enum zio_compress c, abd_t *src, abd_t *dst, in zio_decompress_data()
H A Dzio_checksum.c95 abd_checksum_off(abd_t *abd, uint64_t size, in abd_checksum_off()
103 abd_fletcher_2_native(abd_t *abd, uint64_t size, in abd_fletcher_2_native()
113 abd_fletcher_2_byteswap(abd_t *abd, uint64_t size, in abd_fletcher_2_byteswap()
123 abd_fletcher_4_impl(abd_t *abd, uint64_t size, zio_abd_checksum_data_t *acdp) in abd_fletcher_4_impl()
131 abd_fletcher_4_native(abd_t *abd, uint64_t size, in abd_fletcher_4_native()
148 abd_fletcher_4_byteswap(abd_t *abd, uint64_t size, in abd_fletcher_4_byteswap()
347 abd_t *abd, uint64_t size) in zio_checksum_compute()
422 enum zio_checksum checksum, abd_t *abd, uint64_t size, uint64_t offset, in zio_checksum_error_impl()
550 abd_t *data = zio->io_abd; in zio_checksum_error()
H A Dsha2_zfs.c43 abd_checksum_sha256(abd_t *abd, uint64_t size, in abd_checksum_sha256()
80 abd_checksum_sha512_native(abd_t *abd, uint64_t size, in abd_checksum_sha512_native()
92 abd_checksum_sha512_byteswap(abd_t *abd, uint64_t size, in abd_checksum_sha512_byteswap()
H A Dskein_zfs.c45 abd_checksum_skein_native(abd_t *abd, uint64_t size, in abd_checksum_skein_native()
63 abd_checksum_skein_byteswap(abd_t *abd, uint64_t size, in abd_checksum_skein_byteswap()
H A Dblake3_zfs.c47 abd_checksum_blake3_native(abd_t *abd, uint64_t size, const void *ctx_template, in abd_checksum_blake3_native()
77 abd_checksum_blake3_byteswap(abd_t *abd, uint64_t size, in abd_checksum_blake3_byteswap()
H A Dedonr_zfs.c49 abd_checksum_edonr_native(abd_t *abd, uint64_t size, in abd_checksum_edonr_native()
66 abd_checksum_edonr_byteswap(abd_t *abd, uint64_t size, in abd_checksum_edonr_byteswap()
H A Dzfs_fm.c921 const abd_t *goodabd, const abd_t *badabd, size_t size, in annotate_ecksum()
966 good = (const uint64_t *) abd_borrow_buf_copy((abd_t *)goodabd, size); in annotate_ecksum()
967 bad = (const uint64_t *) abd_borrow_buf_copy((abd_t *)badabd, size); in annotate_ecksum()
998 abd_return_buf((abd_t *)goodabd, (void *)good, size); in annotate_ecksum()
999 abd_return_buf((abd_t *)badabd, (void *)bad, size); in annotate_ecksum()
1036 abd_return_buf((abd_t *)goodabd, (void *)good, size); in annotate_ecksum()
1037 abd_return_buf((abd_t *)badabd, (void *)bad, size); in annotate_ecksum()
1256 zfs_ereport_finish_checksum(zio_cksum_report_t *report, const abd_t *good_data, in zfs_ereport_finish_checksum()
1257 const abd_t *bad_data, boolean_t drop_if_identical) in zfs_ereport_finish_checksum()
1310 const abd_t *good_data, const abd_t *bad_data, zio_bad_cksum_t *zbc) in zfs_ereport_post_checksum()
H A Dvdev_initialize.c238 vdev_initialize_write(vdev_t *vd, uint64_t start, uint64_t size, abd_t *data) in vdev_initialize_write()
311 static abd_t *
315 abd_t *data = abd_alloc_for_io(zfs_initialize_chunk_size, B_FALSE); in vdev_initialize_block_alloc()
325 vdev_initialize_block_free(abd_t *data) in vdev_initialize_block_free()
331 vdev_initialize_ranges(vdev_t *vd, abd_t *data) in vdev_initialize_ranges()
541 abd_t *deadbeef = vdev_initialize_block_alloc(); in vdev_initialize_thread()
H A Dvdev_label.c188 vdev_label_read(zio_t *zio, vdev_t *vd, int l, abd_t *buf, uint64_t offset, in vdev_label_read()
203 vdev_label_write(zio_t *zio, vdev_t *vd, int l, abd_t *buf, uint64_t offset, in vdev_label_write()
794 abd_t *vp_abd[VDEV_LABELS]; in vdev_label_read_config()
1070 abd_t *vp_abd; in vdev_label_init()
1071 abd_t *bootenv; in vdev_label_init()
1073 abd_t *ub_abd; in vdev_label_init()
1286 abd_t **cbp = rio->io_private; in vdev_label_read_bootenv_done()
1331 abd_t *abd = NULL; in vdev_label_read_bootenv()
1432 abd_t *abd = abd_alloc_for_io(VDEV_PAD_SIZE, B_TRUE); in vdev_label_write_bootenv()
1677 abd_t *ub_abd; in vdev_copy_uberblocks()
[all …]
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dabd_os.c114 abd_t *abd_zero_scatter = NULL;
123 abd_scatter_chunkcnt(abd_t *abd) in abd_scatter_chunkcnt()
137 abd_update_scatter_stats(abd_t *abd, abd_stats_op_t op) in abd_update_scatter_stats()
158 abd_update_linear_stats(abd_t *abd, abd_stats_op_t op) in abd_update_linear_stats()
171 abd_verify_scatter(abd_t *abd) in abd_verify_scatter()
188 abd_alloc_chunks(abd_t *abd, size_t size) in abd_alloc_chunks()
200 abd_free_chunks(abd_t *abd) in abd_free_chunks()
217 abd_t *
228 size_t abd_size = MAX(sizeof (abd_t), in abd_alloc_struct_impl()
229 offsetof(abd_t, abd_u.abd_scatter.abd_chunks[chunkcnt])); in abd_alloc_struct_impl()
[all …]
H A Dvdev_label_os.c43 abd_t *pad2; in vdev_label_write_pad2()
100 abd_t *abd = abd_alloc_linear(size, B_FALSE); in vdev_check_boot_reserve()
/freebsd/sys/contrib/openzfs/lib/libzpool/
H A Dabd_os.c48 abd_t *abd_zero_scatter = NULL;
61 abd_t *
69 return (umem_alloc(sizeof (abd_t), UMEM_NOFAIL)); in abd_alloc_struct_impl()
82 abd_t *abd = umem_alloc(sizeof (abd_t) + (n-1) * sizeof (struct iovec), in abd_alloc_struct_impl()
90 abd_free_struct_impl(abd_t *abd) in abd_free_struct_impl()
96 umem_free(abd, sizeof (abd_t) + iovcnt * sizeof (struct iovec)); in abd_free_struct_impl()
100 abd_alloc_chunks(abd_t *abd, size_t size) in abd_alloc_chunks()
121 abd_free_chunks(abd_t *abd) in abd_free_chunks()
136 abd_update_scatter_stats(abd_t *abd, abd_stats_op_t op) in abd_update_scatter_stats()
148 abd_update_linear_stats(abd_t *abd, abd_stats_op_t op) in abd_update_linear_stats()
[all …]
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/
H A Dabd_os.c186 abd_t *abd_zero_scatter = NULL;
206 abd_t *
214 abd_t *abd = kmem_cache_alloc(abd_cache, KM_PUSHPAGE); in abd_alloc_struct_impl()
216 ABDSTAT_INCR(abdstat_struct_size, sizeof (abd_t)); in abd_alloc_struct_impl()
222 abd_free_struct_impl(abd_t *abd) in abd_free_struct_impl()
225 ABDSTAT_INCR(abdstat_struct_size, -(int)sizeof (abd_t)); in abd_free_struct_impl()
270 abd_alloc_chunks(abd_t *abd, size_t size) in abd_alloc_chunks()
393 abd_alloc_chunks(abd_t *abd, size_t size) in abd_alloc_chunks()
434 abd_free_sg_table(abd_t *abd) in abd_free_sg_table()
444 abd_free_chunks(abd_t *abd) in abd_free_chunks()
[all …]
/freebsd/sys/contrib/openzfs/include/sys/zstd/
H A Dzstd.h93 size_t zfs_zstd_compress(abd_t *src, abd_t *dst, size_t s_len,
96 int zfs_zstd_decompress_level(abd_t *src, abd_t *dst, size_t s_len,
98 int zfs_zstd_decompress(abd_t *src, abd_t *dst, size_t s_len,
/freebsd/sys/contrib/openzfs/cmd/zstream/
H A Dzstream_recompress.c262 abd_t cabd, dabd; in zstream_do_recompress()
285 abd_t dabd, abd; in zstream_do_recompress()
288 abd_t *pabd = in zstream_do_recompress()

123