| /freebsd/sys/contrib/openzfs/module/zfs/ |
| H A D | abd.c | 110 abd_verify(abd_t *abd) in abd_verify() argument 113 if (abd_is_from_pages(abd)) { in abd_verify() 114 ASSERT3U(abd->abd_size, <=, DMU_MAX_ACCESS); in abd_verify() 116 ASSERT3U(abd->abd_size, <=, SPA_MAXBLOCKSIZE); in abd_verify() 118 ASSERT3U(abd->abd_flags, ==, abd->abd_flags & (ABD_FLAG_LINEAR | in abd_verify() 122 IMPLY(abd->abd_parent != NULL, !(abd->abd_flags & ABD_FLAG_OWNER)); in abd_verify() 123 IMPLY(abd->abd_flags & ABD_FLAG_META, abd->abd_flags & ABD_FLAG_OWNER); in abd_verify() 124 if (abd_is_linear(abd)) { in abd_verify() 125 ASSERT3U(abd->abd_size, >, 0); in abd_verify() 126 ASSERT3P(ABD_LINEAR_BUF(abd), !=, NULL); in abd_verify() [all …]
|
| H A D | zio_checksum.c | 96 abd_checksum_off(abd_t *abd, uint64_t size, in abd_checksum_off() argument 99 (void) abd, (void) size, (void) ctx_template; in abd_checksum_off() 104 abd_fletcher_2_native(abd_t *abd, uint64_t size, in abd_fletcher_2_native() argument 109 (void) abd_iterate_func(abd, 0, size, in abd_fletcher_2_native() 114 abd_fletcher_2_byteswap(abd_t *abd, uint64_t size, in abd_fletcher_2_byteswap() argument 119 (void) abd_iterate_func(abd, 0, size, in abd_fletcher_2_byteswap() 124 abd_fletcher_4_impl(abd_t *abd, uint64_t size, zio_abd_checksum_data_t *acdp) in abd_fletcher_4_impl() argument 127 abd_iterate_func(abd, 0, size, fletcher_4_abd_ops.acf_iter, acdp); in abd_fletcher_4_impl() 132 abd_fletcher_4_native(abd_t *abd, uint64_t size, in abd_fletcher_4_native() argument 144 abd_fletcher_4_impl(abd, size, &acd); in abd_fletcher_4_native() [all …]
|
| H A D | sha2_zfs.c | 44 abd_checksum_sha256(abd_t *abd, uint64_t size, in abd_checksum_sha256() argument 53 uint8_t *buf = abd_borrow_buf_copy(abd, size); in abd_checksum_sha256() 55 abd_return_buf(abd, buf, size); in abd_checksum_sha256() 63 (void) abd_iterate_func(abd, 0, size, sha_incremental, &ctx); in abd_checksum_sha256() 81 abd_checksum_sha512_native(abd_t *abd, uint64_t size, in abd_checksum_sha512_native() argument 88 (void) abd_iterate_func(abd, 0, size, sha_incremental, &ctx); in abd_checksum_sha512_native() 93 abd_checksum_sha512_byteswap(abd_t *abd, uint64_t size, in abd_checksum_sha512_byteswap() argument 98 abd_checksum_sha512_native(abd, size, ctx_template, &tmp); in abd_checksum_sha512_byteswap()
|
| H A D | zfs_chksum.c | 147 chksum_run(chksum_stat_t *cs, abd_t *abd, void *ctx, int round, in chksum_run() argument 178 cs->func(abd, size, ctx, &zcp); in chksum_run() 192 abd_t *abd; in chksum_benchit() local 202 abd = abd_alloc_linear(1<<18, B_FALSE); in chksum_benchit() 203 chksum_run(cs, abd, ctx, 5, &cs->bs256k); in chksum_benchit() 208 abd = abd_alloc_linear(1<<20, B_FALSE); in chksum_benchit() 211 chksum_run(cs, abd, ctx, 1, &cs->bs1k); in chksum_benchit() 212 chksum_run(cs, abd, ctx, 2, &cs->bs4k); in chksum_benchit() 213 chksum_run(cs, abd, ctx, 3, &cs->bs16k); in chksum_benchit() 214 chksum_run(cs, abd, ctx, 4, &cs->bs64k); in chksum_benchit() [all …]
|
| H A D | skein_zfs.c | 46 abd_checksum_skein_native(abd_t *abd, uint64_t size, in abd_checksum_skein_native() argument 53 (void) abd_iterate_func(abd, 0, size, skein_incremental, &ctx); in abd_checksum_skein_native() 64 abd_checksum_skein_byteswap(abd_t *abd, uint64_t size, in abd_checksum_skein_byteswap() argument 69 abd_checksum_skein_native(abd, size, ctx_template, &tmp); in abd_checksum_skein_byteswap()
|
| H A D | blake3_zfs.c | 48 abd_checksum_blake3_native(abd_t *abd, uint64_t size, const void *ctx_template, in abd_checksum_blake3_native() argument 61 (void) abd_iterate_func(abd, 0, size, blake3_incremental, ctx); in abd_checksum_blake3_native() 78 abd_checksum_blake3_byteswap(abd_t *abd, uint64_t size, in abd_checksum_blake3_byteswap() argument 85 abd_checksum_blake3_native(abd, size, ctx_template, &tmp); in abd_checksum_blake3_byteswap()
|
| H A D | edonr_zfs.c | 50 abd_checksum_edonr_native(abd_t *abd, uint64_t size, in abd_checksum_edonr_native() argument 58 (void) abd_iterate_func(abd, 0, size, edonr_incremental, &ctx); in abd_checksum_edonr_native() 67 abd_checksum_edonr_byteswap(abd_t *abd, uint64_t size, in abd_checksum_edonr_byteswap() argument 72 abd_checksum_edonr_native(abd, size, ctx_template, &tmp); in abd_checksum_edonr_byteswap()
|
| H A D | dmu_recv.c | 98 abd_t *abd; member 1423 abd_t *abd = rrd->abd; in do_corrective_recv() local 1443 abd, dabd, abd_get_size(abd), in do_corrective_recv() 1451 abd_free(abd); in do_corrective_recv() 1452 abd = dabd; in do_corrective_recv() 1460 abd, &cabd, abd_get_size(abd), BP_GET_PSIZE(bp), in do_corrective_recv() 1464 abd_free(abd); in do_corrective_recv() 1465 abd = cabd; in do_corrective_recv() 1510 mac, abd_get_size(abd), abd, eabd, &no_crypt); in do_corrective_recv() 1522 abd_free(abd); in do_corrective_recv() [all …]
|
| H A D | vdev_queue.c | 604 abd_t *abd; in vdev_queue_aggregate() local 747 abd = abd_alloc_gang(); in vdev_queue_aggregate() 748 if (abd == NULL) in vdev_queue_aggregate() 752 abd, size, first->io_type, zio->io_priority, in vdev_queue_aggregate() 769 abd = abd_alloc_for_io( in vdev_queue_aggregate() 771 abd_gang_add(aio->io_abd, abd, B_TRUE); in vdev_queue_aggregate() 777 abd = abd_get_offset_size(dio->io_abd, 0, dio->io_size); in vdev_queue_aggregate() 778 abd_gang_add(aio->io_abd, abd, B_TRUE); in vdev_queue_aggregate()
|
| /freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/ |
| H A D | abd_os.c | 124 abd_scatter_chunkcnt(abd_t *abd) in abd_scatter_chunkcnt() argument 126 ASSERT(!abd_is_linear(abd)); in abd_scatter_chunkcnt() 128 ABD_SCATTER(abd).abd_offset + abd->abd_size)); in abd_scatter_chunkcnt() 138 abd_update_scatter_stats(abd_t *abd, abd_stats_op_t op) in abd_update_scatter_stats() argument 142 n = abd_scatter_chunkcnt(abd); in abd_update_scatter_stats() 144 int waste = (n << PAGE_SHIFT) - abd->abd_size; in abd_update_scatter_stats() 147 ABDSTAT_INCR(abdstat_scatter_data_size, abd->abd_size); in abd_update_scatter_stats() 152 ABDSTAT_INCR(abdstat_scatter_data_size, -(int)abd->abd_size); in abd_update_scatter_stats() 159 abd_update_linear_stats(abd_t *abd, abd_stats_op_t op) in abd_update_linear_stats() argument 164 ABDSTAT_INCR(abdstat_linear_data_size, abd->abd_size); in abd_update_linear_stats() [all …]
|
| H A D | vdev_label_os.c | 97 abd_t *abd = abd_alloc_linear(size, B_FALSE); in vdev_check_boot_reserve() local 106 VDEV_BOOT_OFFSET - VDEV_LABEL_START_SIZE, abd, size, ZIO_TYPE_READ, in vdev_check_boot_reserve() 110 unsigned char *buf = abd_to_buf(abd); in vdev_check_boot_reserve() 124 abd_free(abd); in vdev_check_boot_reserve() 128 abd_free(abd); in vdev_check_boot_reserve()
|
| /freebsd/sys/contrib/openzfs/lib/libzpool/ |
| H A D | abd_os.c | 83 abd_t *abd = umem_alloc(sizeof (abd_t) + (n-1) * sizeof (struct iovec), in abd_alloc_struct_impl() local 85 ABD_SCATTER(abd).abd_offset = 0; in abd_alloc_struct_impl() 86 ABD_SCATTER(abd).abd_iovcnt = n; in abd_alloc_struct_impl() 87 return (abd); in abd_alloc_struct_impl() 91 abd_free_struct_impl(abd_t *abd) in abd_free_struct_impl() argument 95 abd_is_linear(abd) || abd_is_gang(abd) ? in abd_free_struct_impl() 96 0 : (ABD_SCATTER(abd).abd_iovcnt - 1); in abd_free_struct_impl() 97 umem_free(abd, sizeof (abd_t) + iovcnt * sizeof (struct iovec)); in abd_free_struct_impl() 101 abd_alloc_chunks(abd_t *abd, size_t size) in abd_alloc_chunks() argument 107 uint_t n = ABD_SCATTER(abd).abd_iovcnt; in abd_alloc_chunks() [all …]
|
| /freebsd/sys/contrib/openzfs/module/os/linux/zfs/ |
| H A D | abd_os.c | 156 #define abd_for_each_sg(abd, sg, n, i) \ argument 157 for_each_sg(ABD_SCATTER(abd).abd_sgl, sg, n, i) 216 abd_t *abd = kmem_cache_alloc(abd_cache, KM_PUSHPAGE); in abd_alloc_struct_impl() local 217 ASSERT3P(abd, !=, NULL); in abd_alloc_struct_impl() 220 return (abd); in abd_alloc_struct_impl() 224 abd_free_struct_impl(abd_t *abd) in abd_free_struct_impl() argument 226 kmem_cache_free(abd_cache, abd); in abd_free_struct_impl() 268 abd_alloc_chunks(abd_t *abd, size_t size) in abd_alloc_chunks() argument 342 ASSERT0(ABD_SCATTER(abd).abd_offset); in abd_alloc_chunks() 366 abd->abd_flags |= ABD_FLAG_LINEAR; in abd_alloc_chunks() [all …]
|
| H A D | vdev_disk.c | 759 vbio_submit(vbio_t *vbio, abd_t *abd, uint64_t size) in vbio_submit() argument 772 (void) abd_iterate_page_func(abd, 0, size, vbio_fill_cb, vbio); in vbio_submit() 894 vdev_disk_check_alignment(abd_t *abd, uint64_t size, struct block_device *bdev) in vdev_disk_check_alignment() argument 900 if (abd_iterate_page_func(abd, 0, size, in vdev_disk_check_alignment() 943 abd_t *abd = zio->io_abd; in vdev_disk_io_rw() local 944 if (!vdev_disk_check_alignment(abd, zio->io_size, bdev)) { in vdev_disk_io_rw() 946 abd = abd_alloc_for_io(zio->io_size, in vdev_disk_io_rw() 951 abd_copy(abd, zio->io_abd, zio->io_size); in vdev_disk_io_rw() 960 VERIFY(vdev_disk_check_alignment(abd, zio->io_size, bdev)); in vdev_disk_io_rw() 965 if (abd != zio->io_abd) in vdev_disk_io_rw() [all …]
|
| /freebsd/sys/contrib/openzfs/include/sys/ |
| H A D | abd.h | 53 typedef struct abd { struct 58 struct abd *abd_parent; argument 149 abd_copy_from_buf(abd_t *abd, const void *buf, size_t size) in abd_copy_from_buf() argument 151 abd_copy_from_buf_off(abd, buf, 0, size); in abd_copy_from_buf() 155 abd_copy_to_buf(void* buf, abd_t *abd, size_t size) in abd_copy_to_buf() argument 157 abd_copy_to_buf_off(buf, abd, 0, size); in abd_copy_to_buf() 161 abd_cmp_buf(abd_t *abd, const void *buf, size_t size) in abd_cmp_buf() argument 163 return (abd_cmp_buf_off(abd, buf, 0, size)); in abd_cmp_buf() 167 abd_zero(abd_t *abd, size_t size) in abd_zero() argument 169 abd_zero_off(abd, 0, size); in abd_zero() [all …]
|
| H A D | abd_impl.h | 120 #define ABD_SCATTER(abd) ((abd)->abd_u.abd_scatter) argument 121 #define ABD_LINEAR_BUF(abd) ((abd)->abd_u.abd_linear.abd_buf) argument 122 #define ABD_GANG(abd) ((abd)->abd_u.abd_gang) argument
|
| H A D | zio_checksum.h | 40 struct abd; 45 typedef void zio_checksum_t(struct abd *abd, uint64_t size, 142 struct abd *, uint64_t); 144 struct abd *, uint64_t, uint64_t, zio_bad_cksum_t *);
|
| H A D | zio.h | 394 struct abd; 424 zio_gang_node_t *gn, struct abd *data, uint64_t offset); 426 typedef void zio_transform_func_t(zio_t *zio, struct abd *data, uint64_t size); 429 struct abd *zt_orig_abd; 507 struct abd *io_abd; 508 struct abd *io_orig_abd; 586 struct abd *data, uint64_t lsize, zio_done_func_t *done, void *priv, 590 struct abd *data, uint64_t size, uint64_t psize, const zio_prop_t *zp, 596 struct abd *data, uint64_t size, zio_done_func_t *done, void *priv, 613 uint64_t size, struct abd *data, int checksum, [all …]
|
| /freebsd/contrib/netbsd-tests/lib/libc/regex/data/ |
| H A D | subexp.in | 4 a(b|(c))d - abd abd b,- 35 a(b|c)+d - abd abd b 41 a(b|c){0,1}d - abd abd b 46 a(b|c){1,1}d - abd abd b 48 a(b|c){1,2}d - abd abd b 50 a(b|c){1,}d - abd abd b 59 a(b+|((c)*))+d - abd abd @d,@d,-
|
| H A D | subtle.in | 14 [abc]b[abd] - abd abd 18 a[bc]d - xyzaaabcaababdacd abd
|
| H A D | meta.in | 3 a[bc]d & abd abd
|
| H A D | complex.in | 3 a(b|(c))d - abd abd
|
| /freebsd/sys/contrib/openzfs/include/os/linux/zfs/sys/ |
| H A D | abd_os.h | 34 struct abd; 48 int abd_iterate_page_func(struct abd *, size_t, size_t, abd_iter_page_func_t *, 56 unsigned int abd_bio_map_off(struct bio *, struct abd *, unsigned int, size_t); 57 unsigned long abd_nr_pages_off(struct abd *, unsigned int, size_t); 60 struct abd *abd_alloc_from_pages(struct page **, unsigned long, uint64_t);
|
| /freebsd/lib/libc/regex/grot/ |
| H A D | tests | 128 a[bc]d & abd abd 330 a(b|(c))d - abd abd 365 [abc]b[abd] - abd abd 369 a[bc]d - xyzaaabcaababdacd abd 376 a(b|(c))d - abd abd b,- 404 a(b|c)+d - abd abd b 410 a(b|c){0,1}d - abd abd b 415 a(b|c){1,1}d - abd abd b 417 a(b|c){1,2}d - abd abd b 419 a(b|c){1,}d - abd abd b [all …]
|
| /freebsd/sys/contrib/openzfs/include/os/freebsd/zfs/sys/ |
| H A D | abd_os.h | 39 struct abd; 55 struct abd *abd_alloc_from_pages(vm_page_t *, unsigned long, uint64_t);
|