Lines Matching refs:abd_u
254 abd->abd_u.abd_scatter.abd_offset + abd->abd_size)); in abd_scatter_chunkcnt()
267 ASSERT3P(abd->abd_u.abd_linear.abd_buf, !=, NULL); in abd_verify()
269 ASSERT3U(abd->abd_u.abd_scatter.abd_offset, <, in abd_verify()
274 abd->abd_u.abd_scatter.abd_chunks[i], !=, NULL); in abd_verify()
282 size_t size = offsetof(abd_t, abd_u.abd_scatter.abd_chunks[chunkcnt]); in abd_alloc_struct()
294 int size = offsetof(abd_t, abd_u.abd_scatter.abd_chunks[chunkcnt]); in abd_free_struct()
323 abd->abd_u.abd_scatter.abd_offset = 0; in abd_alloc()
324 abd->abd_u.abd_scatter.abd_chunk_size = zfs_abd_chunk_size; in abd_alloc()
329 abd->abd_u.abd_scatter.abd_chunks[i] = c; in abd_alloc()
345 abd_free_chunk(abd->abd_u.abd_scatter.abd_chunks[i]); in abd_free_scatter()
378 abd->abd_u.abd_linear.abd_buf = zio_buf_alloc(size); in abd_alloc_linear()
380 abd->abd_u.abd_linear.abd_buf = zio_data_buf_alloc(size); in abd_alloc_linear()
393 zio_buf_free(abd->abd_u.abd_linear.abd_buf, abd->abd_size); in abd_free_linear()
395 zio_data_buf_free(abd->abd_u.abd_linear.abd_buf, abd->abd_size); in abd_free_linear()
476 abd->abd_u.abd_linear.abd_buf = in abd_get_offset_impl()
477 (char *)sabd->abd_u.abd_linear.abd_buf + off; in abd_get_offset_impl()
479 size_t new_offset = sabd->abd_u.abd_scatter.abd_offset + off; in abd_get_offset_impl()
492 abd->abd_u.abd_scatter.abd_offset = in abd_get_offset_impl()
494 abd->abd_u.abd_scatter.abd_chunk_size = zfs_abd_chunk_size; in abd_get_offset_impl()
497 (void) memcpy(&abd->abd_u.abd_scatter.abd_chunks, in abd_get_offset_impl()
498 &sabd->abd_u.abd_scatter.abd_chunks[new_offset / in abd_get_offset_impl()
551 abd->abd_u.abd_linear.abd_buf = buf; in abd_get_from_buf()
583 return (abd->abd_u.abd_linear.abd_buf); in abd_to_buf()
700 return ((aiter->iter_abd->abd_u.abd_scatter.abd_offset + in abd_iter_scatter_chunk_offset()
708 return ((aiter->iter_abd->abd_u.abd_scatter.abd_offset + in abd_iter_scatter_chunk_index()
758 aiter->iter_abd->abd_u.abd_scatter.abd_chunk_size); in abd_iter_map()
767 paddr = aiter->iter_abd->abd_u.abd_linear.abd_buf; in abd_iter_map()
773 paddr = aiter->iter_abd->abd_u.abd_scatter.abd_chunks[index]; in abd_iter_map()