Home
last modified time | relevance | path

Searched refs:nbytes (Results 1 – 25 of 28) sorted by relevance

12

/spdk/include/spdk/
H A Dioat.h110 void *dst, const void *src, uint64_t nbytes);
131 void *dst, const void *src, uint64_t nbytes);
152 void *dst, uint64_t fill_pattern, uint64_t nbytes);
173 void *dst, uint64_t fill_pattern, uint64_t nbytes);
/spdk/test/external_code/accel/
H A Ddriver.c16 size_t nbytes; in ex_accel_fill() local
24 nbytes = iovs[0].iov_len; in ex_accel_fill()
26 memset(dst, fill, nbytes); in ex_accel_fill()
H A Dmodule.c55 size_t nbytes; in ex_accel_fill() local
63 nbytes = iovs[0].iov_len; in ex_accel_fill()
65 memset(dst, fill, nbytes); in ex_accel_fill()
/spdk/test/unit/lib/bdev/raid/bdev_raid_sb.c/
H A Dbdev_raid_sb_ut.c105 void *buf, uint64_t offset, uint64_t nbytes, in spdk_bdev_read() argument
116 memset(buf, 0xab, nbytes); in spdk_bdev_read()
118 while (nbytes > 0) { in spdk_bdev_read()
122 nbytes -= bdev->blocklen; in spdk_bdev_read()
131 void *buf, uint64_t offset, uint64_t nbytes, in spdk_bdev_write() argument
142 CU_ASSERT(nbytes == spdk_divide_round_up(sb->length, data_block_size) * bdev->blocklen); in spdk_bdev_write()
144 while (nbytes > 0) { in spdk_bdev_write()
148 nbytes -= bdev->blocklen; in spdk_bdev_write()
/spdk/lib/ioat/
H A Dioat.c576 void *dst, const void *src, uint64_t nbytes) in spdk_ioat_build_copy() argument
593 remaining = nbytes; in spdk_ioat_build_copy()
621 if (nbytes == 0) { in spdk_ioat_build_copy()
642 void *dst, const void *src, uint64_t nbytes) in spdk_ioat_submit_copy() argument
646 rc = spdk_ioat_build_copy(ioat, cb_arg, cb_fn, dst, src, nbytes); in spdk_ioat_submit_copy()
657 void *dst, uint64_t fill_pattern, uint64_t nbytes) in spdk_ioat_build_fill() argument
677 remaining = nbytes; in spdk_ioat_build_fill()
715 void *dst, uint64_t fill_pattern, uint64_t nbytes) in spdk_ioat_submit_fill() argument
719 rc = spdk_ioat_build_fill(ioat, cb_arg, cb_fn, dst, fill_pattern, nbytes); in spdk_ioat_submit_fill()
/spdk/module/bdev/daos/
H A Dbdev_daos.c234 struct iovec *iov, int iovcnt, uint64_t nbytes, uint64_t offset) in bdev_daos_writev() argument
239 iovcnt, nbytes, offset); in bdev_daos_writev()
274 return nbytes; in bdev_daos_writev()
280 struct iovec *iov, int iovcnt, uint64_t nbytes, uint64_t offset) in bdev_daos_readv() argument
285 iovcnt, nbytes, offset); in bdev_daos_readv()
320 return nbytes; in bdev_daos_readv()
408 bdev_daos_unmap(struct bdev_daos_io_channel *ch, uint64_t nbytes, in bdev_daos_unmap() argument
413 SPDK_DEBUGLOG(bdev_daos, "unmap at %#lx with size %#lx\n", offset, nbytes); in bdev_daos_unmap()
414 if ((rc = dfs_punch(ch->dfs, ch->obj, offset, nbytes))) { in bdev_daos_unmap()
/spdk/module/bdev/uring/
H A Dbdev_uring.c178 struct iovec *iov, int iovcnt, uint64_t nbytes, uint64_t offset) in bdev_uring_readv()
192 uring_task->len = nbytes; in bdev_uring_readv()
196 iovcnt, nbytes, offset); in bdev_uring_readv()
199 return nbytes; in bdev_uring_readv()
205 struct iovec *iov, int iovcnt, size_t nbytes, uint64_t offset) in bdev_uring_writev()
219 uring_task->len = nbytes; in bdev_uring_writev()
223 iovcnt, nbytes, offset); in bdev_uring_writev()
226 return nbytes; in bdev_uring_writev()
177 bdev_uring_readv(struct bdev_uring * uring,struct spdk_io_channel * ch,struct bdev_uring_task * uring_task,struct iovec * iov,int iovcnt,uint64_t nbytes,uint64_t offset) bdev_uring_readv() argument
204 bdev_uring_writev(struct bdev_uring * uring,struct spdk_io_channel * ch,struct bdev_uring_task * uring_task,struct iovec * iov,int iovcnt,size_t nbytes,uint64_t offset) bdev_uring_writev() argument
/spdk/module/bdev/aio/
H A Dbdev_aio.c173 struct iovec *iov, int iovcnt, uint64_t nbytes, uint64_t offset) in bdev_aio_submit_io()
187 aio_task->len = nbytes; in bdev_aio_submit_io()
200 struct iovec *iov, int iovcnt, uint64_t nbytes, uint64_t offset) in bdev_aio_submit_io()
220 aio_task->len = nbytes; in bdev_aio_rw()
230 struct iovec *iov, int iovcnt, uint64_t nbytes, uint64_t offset) in bdev_aio_rw()
237 iovcnt, nbytes, offset);
240 iovcnt, nbytes, offset); in bdev_aio_flush()
243 rc = bdev_aio_submit_io(type, fdisk, ch, aio_task, iov, iovcnt, nbytes, offset); in bdev_aio_flush()
159 bdev_aio_submit_io(enum spdk_bdev_io_type type,struct file_disk * fdisk,struct spdk_io_channel * ch,struct bdev_aio_task * aio_task,struct iovec * iov,int iovcnt,uint64_t nbytes,uint64_t offset) bdev_aio_submit_io() argument
186 bdev_aio_submit_io(enum spdk_bdev_io_type type,struct file_disk * fdisk,struct spdk_io_channel * ch,struct bdev_aio_task * aio_task,struct iovec * iov,int iovcnt,uint64_t nbytes,uint64_t offset) bdev_aio_submit_io() argument
211 bdev_aio_rw(enum spdk_bdev_io_type type,struct file_disk * fdisk,struct spdk_io_channel * ch,struct bdev_aio_task * aio_task,struct iovec * iov,int iovcnt,uint64_t nbytes,uint64_t offset) bdev_aio_rw() argument
/spdk/module/bdev/nvme/
H A Dnvme_rpc.c144 void *buf, uint32_t nbytes, uint32_t timeout_ms) in nvme_rpc_admin_cmd_bdev_nvme() argument
150 nbytes, nvme_rpc_bdev_nvme_cb, ctx); in nvme_rpc_admin_cmd_bdev_nvme()
157 void *buf, uint32_t nbytes, void *md_buf, uint32_t md_len, in nvme_rpc_io_cmd_bdev_nvme() argument
168 cmd, buf, nbytes, md_buf, nvme_rpc_bdev_nvme_cb, ctx); in nvme_rpc_io_cmd_bdev_nvme()
H A Dbdev_nvme.c241 struct spdk_nvme_cmd *cmd, void *buf, size_t nbytes); in bdev_nvme_get_ctx_size()
243 void *buf, size_t nbytes);
245 void *buf, size_t nbytes, void *md_buf, size_t md_len);
247 struct iovec *iov, int iovcnt, size_t nbytes,
3372 bdev_io->u.nvme_passthru.nbytes); in bdev_nvme_destroy_ctrlr_channel_cb()
3379 bdev_io->u.nvme_passthru.nbytes); in bdev_nvme_get_accel_channel()
3385 bdev_io->u.nvme_passthru.nbytes, in bdev_nvme_get_accel_channel()
3394 bdev_io->u.nvme_passthru.nbytes, in bdev_nvme_submit_accel_crc32c()
8655 struct spdk_nvme_cmd *cmd, void *buf, size_t nbytes)
8675 if (nbytes > max_xfer_siz
8116 bdev_nvme_admin_passthru(struct nvme_bdev_channel * nbdev_ch,struct nvme_bdev_io * bio,struct spdk_nvme_cmd * cmd,void * buf,size_t nbytes) bdev_nvme_admin_passthru() argument
8155 bdev_nvme_io_passthru(struct nvme_bdev_io * bio,struct spdk_nvme_cmd * cmd,void * buf,size_t nbytes) bdev_nvme_io_passthru() argument
8179 bdev_nvme_io_passthru_md(struct nvme_bdev_io * bio,struct spdk_nvme_cmd * cmd,void * buf,size_t nbytes,void * md_buf,size_t md_len) bdev_nvme_io_passthru_md() argument
8210 bdev_nvme_iov_passthru_md(struct nvme_bdev_io * bio,struct spdk_nvme_cmd * cmd,struct iovec * iov,int iovcnt,size_t nbytes,void * md_buf,size_t md_len) bdev_nvme_iov_passthru_md() argument
[all...]
/spdk/lib/idxd/
H A Didxd.c725 const void *src, uint64_t nbytes, int flags, in spdk_idxd_submit_dualcast() argument
751 idxd_vtophys_iter_init(chan, &iter_outer, src, dst1, nbytes); in spdk_idxd_submit_dualcast()
755 while (nbytes > 0) { in spdk_idxd_submit_dualcast()
763 idxd_vtophys_iter_init(chan, &iter_inner, src, dst2, nbytes); in spdk_idxd_submit_dualcast()
766 nbytes -= outer_seg_len; in spdk_idxd_submit_dualcast()
1209 void *dst, uint64_t nbytes, in spdk_idxd_submit_compress() argument
1219 if (nbytes < siov[0].iov_len) { in spdk_idxd_submit_compress()
1224 nbytes, siov[0].iov_len, in spdk_idxd_submit_compress()
1233 uint64_t nbytes_dst, uint64_t nbytes, int flags, spdk_idxd_req_cb cb_fn, void *cb_arg) in _idxd_submit_decompress_single() argument
1246 rc = _vtophys(chan, src, &src_addr, nbytes); in _idxd_submit_decompress_single()
[all...]
/spdk/module/bdev/iscsi/
H A Dbdev_iscsi.c357 struct iovec *iov, int iovcnt, uint64_t nbytes, uint64_t lba) in bdev_iscsi_readv() argument
362 iovcnt, nbytes, lba); in bdev_iscsi_readv()
364 task = iscsi_read16_task(lun->context, lun->lun_id, lba, nbytes, lun->bdev.blocklen, 0, 0, 0, 0, 0, in bdev_iscsi_readv()
384 struct iovec *iov, int iovcnt, uint64_t nbytes, uint64_t lba) in bdev_iscsi_writev() argument
389 iovcnt, nbytes, lba); in bdev_iscsi_writev()
391 …task = iscsi_write16_task(lun->context, lun->lun_id, lba, NULL, nbytes, lun->bdev.blocklen, 0, 0, … in bdev_iscsi_writev()
/spdk/test/common/lib/
H A Dtest_sock.c27 DEFINE_STUB(spdk_sock_set_recvlowat, int, (struct spdk_sock *sock, int nbytes), 0);
/spdk/test/unit/lib/accel/accel.c/
H A Daccel_ut.c244 const uint64_t nbytes = TEST_SUBMIT_SIZE; in test_spdk_accel_submit_copy()
257 rc = spdk_accel_submit_copy(g_ch, src, dst, nbytes, NULL, cb_arg);
265 rc = spdk_accel_submit_copy(g_ch, dst, src, nbytes, NULL, cb_arg); in test_spdk_accel_submit_dualcast()
281 uint64_t nbytes = TEST_SUBMIT_SIZE; in test_spdk_accel_submit_dualcast()
301 rc = spdk_accel_submit_dualcast(g_ch, dst1, dst2, src, nbytes, NULL, cb_arg); in test_spdk_accel_submit_dualcast()
307 rc = spdk_accel_submit_dualcast(g_ch, dst1, dst2, src, nbytes, NULL, cb_arg); in test_spdk_accel_submit_dualcast()
314 rc = spdk_accel_submit_dualcast(g_ch, dst1, dst2, src, nbytes, NULL, cb_arg); in test_spdk_accel_submit_dualcast()
322 dst1 = spdk_dma_zmalloc(nbytes, align, NULL); in test_spdk_accel_submit_dualcast()
324 dst2 = spdk_dma_zmalloc(nbytes, align, NULL);
327 rc = spdk_accel_submit_dualcast(g_ch, dst1, dst2, src, nbytes, NUL in test_spdk_accel_submit_compare()
227 const uint64_t nbytes = TEST_SUBMIT_SIZE; test_spdk_accel_submit_copy() local
264 uint64_t nbytes = TEST_SUBMIT_SIZE; test_spdk_accel_submit_dualcast() local
329 uint64_t nbytes = TEST_SUBMIT_SIZE; test_spdk_accel_submit_compare() local
371 uint64_t nbytes = TEST_SUBMIT_SIZE; test_spdk_accel_submit_fill() local
413 const uint64_t nbytes = TEST_SUBMIT_SIZE; test_spdk_accel_submit_crc32c() local
491 const uint64_t nbytes = TEST_SUBMIT_SIZE; test_spdk_accel_submit_copy_crc32c() local
526 const uint64_t nbytes = TEST_SUBMIT_SIZE; test_spdk_accel_submit_xor() local
[all...]
/spdk/test/nvme/overhead/
H A Doverhead.c219 unsigned long nbytes, uint64_t offset, void *cb_ctx) in aio_submit() argument
225 iocb->u.c.nbytes = nbytes; in aio_submit()
/spdk/test/unit/lib/vhost/vhost.c/
H A Dvhost_ut.c92 uint64_t offset, uint64_t nbytes,
98 uint64_t offset, uint64_t nbytes,
121 struct iovec *iov, int iovcnt, uint64_t offset, uint64_t nbytes,
126 uint64_t offset, uint64_t nbytes,
/spdk/test/unit/lib/sock/sock.c/
H A Dsock_ut.c210 spdk_ut_sock_set_recvlowat(struct spdk_sock *_sock, int nbytes) in spdk_ut_sock_set_recvlowat() argument
349 int nbytes; in _sock() local
389 nbytes = 2048; in _sock()
392 rc = spdk_sock_set_recvlowat(client_sock, nbytes); in _sock()
396 rc = spdk_sock_set_recvbuf(client_sock, nbytes); in _sock()
400 rc = spdk_sock_set_sendbuf(client_sock, nbytes); in _sock()
/spdk/module/bdev/malloc/
H A Dbdev_malloc.c300 bdev_malloc_check_iov_len(struct iovec *iovs, int iovcnt, size_t nbytes) in malloc_sequence_fail()
305 if (nbytes < iovs[i].iov_len) { in malloc_sequence_fail()
309 nbytes -= iovs[i].iov_len; in malloc_sequence_done()
312 return nbytes != 0; in malloc_sequence_done()
257 bdev_malloc_check_iov_len(struct iovec * iovs,int iovcnt,size_t nbytes) bdev_malloc_check_iov_len() argument
/spdk/test/unit/lib/bdev/compress.c/
H A Dcompress_ut.c193 spdk_accel_submit_compress_ext(struct spdk_io_channel *ch, void *dst, uint64_t nbytes, in spdk_accel_submit_decompress()
180 spdk_accel_submit_compress(struct spdk_io_channel * ch,void * dst,uint64_t nbytes,struct iovec * src_iovs,size_t src_iovcnt,uint32_t * output_size,spdk_accel_completion_cb cb_fn,void * cb_arg) spdk_accel_submit_compress() argument
/spdk/lib/sock/
H A Dsock.c569 spdk_sock_set_recvlowat(struct spdk_sock *sock, int nbytes) in spdk_sock_is_ipv6()
571 return sock->net_impl->set_recvlowat(sock, nbytes);
549 spdk_sock_set_recvlowat(struct spdk_sock * sock,int nbytes) spdk_sock_set_recvlowat() argument
/spdk/lib/ublk/
H A Dublk.c1148 uint32_t nbytes; in ublk_queue_user_copy()
1150 nbytes = iod->nr_sectors * (1ULL << LINUX_SECTOR_SHIFT); in ublk_queue_user_copy()
1156 io_uring_prep_read(sqe, 0, io->payload, nbytes, pos); in ublk_user_copy_read_done()
1158 io_uring_prep_write(sqe, 0, io->payload, nbytes, pos); in ublk_user_copy_read_done()
1132 uint32_t nbytes; ublk_queue_user_copy() local
/spdk/module/bdev/xnvme/
H A Dbdev_xnvme.c444 block_size = xnvme_dev_get_geo(xnvme->dev)->nbytes; in delete_xnvme_bdev()
/spdk/test/unit/lib/bdev/raid/raid5f.c/
H A Draid5f_ut.c57 uint64_t nbytes, spdk_accel_completion_cb cb_fn, void *cb_arg) in spdk_accel_submit_xor() argument
65 SPDK_CU_ASSERT_FATAL(spdk_xor_gen(dst, sources, nsrcs, nbytes) == 0); in spdk_accel_submit_xor()
/spdk/test/unit/lib/nvmf/ctrlr_bdev.c/
H A Dctrlr_bdev_ut.c46 const struct spdk_nvme_cmd *cmd, void *buf, size_t nbytes,
250 size_t nbytes, void *md_buf, size_t md_len, in spdk_dif_ctx_init()
/spdk/lib/rocksdb/
H A Denv_spdk.cc296 __attribute__((unused)) uint64_t nbytes) override in RangeSync() argument

12