Lines Matching refs:buf
30 void *buf; member
138 struct raid_bdev_superblock *sb = ctx->buf; in raid_bdev_parse_superblock()
190 spdk_dma_free(ctx->buf); in raid_bdev_read_sb_ctx_free()
200 struct raid_bdev_superblock *sb = ctx->buf; in raid_bdev_read_sb_remainder()
203 void *buf; in raid_bdev_read_sb_remainder() local
209 buf = spdk_dma_realloc(ctx->buf, ctx->buf_size, spdk_bdev_get_buf_align(bdev), NULL); in raid_bdev_read_sb_remainder()
210 if (buf == NULL) { in raid_bdev_read_sb_remainder()
214 ctx->buf = buf; in raid_bdev_read_sb_remainder()
216 rc = spdk_bdev_read(ctx->desc, ctx->ch, ctx->buf + buf_size_prev, buf_size_prev, in raid_bdev_read_sb_remainder()
240 memmove(ctx->buf + (i * data_block_size), in raid_bdev_read_sb_cb()
241 ctx->buf + (i * bdev->blocklen), in raid_bdev_read_sb_cb()
263 sb = ctx->buf; in raid_bdev_read_sb_cb()
292 ctx->buf = spdk_dma_malloc(ctx->buf_size, spdk_bdev_get_buf_align(bdev), NULL); in raid_bdev_load_base_bdev_superblock()
293 if (!ctx->buf) { in raid_bdev_load_base_bdev_superblock()
298 rc = spdk_bdev_read(desc, ch, ctx->buf, 0, ctx->buf_size, raid_bdev_read_sb_cb, ctx); in raid_bdev_load_base_bdev_superblock()