/kernel/linux/linux-5.10/drivers/infiniband/ulp/srpt/ |
H A D | ib_srpt.c | 660 struct srpt_ioctx *ioctx; in srpt_alloc_ioctx() local 662 ioctx = kzalloc(ioctx_size, GFP_KERNEL); in srpt_alloc_ioctx() 663 if (!ioctx) in srpt_alloc_ioctx() 666 ioctx->buf = kmem_cache_alloc(buf_cache, GFP_KERNEL); in srpt_alloc_ioctx() 667 if (!ioctx->buf) in srpt_alloc_ioctx() 670 ioctx->dma = ib_dma_map_single(sdev->device, ioctx->buf, in srpt_alloc_ioctx() 672 if (ib_dma_mapping_error(sdev->device, ioctx->dma)) in srpt_alloc_ioctx() 675 return ioctx; in srpt_alloc_ioctx() 678 kmem_cache_free(buf_cache, ioctx in srpt_alloc_ioctx() 692 srpt_free_ioctx(struct srpt_device *sdev, struct srpt_ioctx *ioctx, struct kmem_cache *buf_cache, enum dma_data_direction dir) srpt_free_ioctx() argument 779 srpt_set_cmd_state(struct srpt_send_ioctx *ioctx, enum srpt_command_state new) srpt_set_cmd_state() argument 799 srpt_test_and_set_cmd_state(struct srpt_send_ioctx *ioctx, enum srpt_command_state old, enum srpt_command_state new) srpt_test_and_set_cmd_state() argument 822 srpt_post_recv(struct srpt_device *sdev, struct srpt_rdma_ch *ch, struct srpt_recv_ioctx *ioctx) srpt_post_recv() argument 889 srpt_alloc_rw_ctxs(struct srpt_send_ioctx *ioctx, struct srp_direct_buf *db, int nbufs, struct scatterlist **sg, unsigned *sg_cnt) srpt_alloc_rw_ctxs() argument 957 srpt_free_rw_ctxs(struct srpt_rdma_ch *ch, struct srpt_send_ioctx *ioctx) srpt_free_rw_ctxs() argument 1012 srpt_get_desc_tbl(struct srpt_recv_ioctx *recv_ioctx, struct srpt_send_ioctx *ioctx, struct srp_cmd *srp_cmd, enum dma_data_direction *dir, struct scatterlist **sg, unsigned int *sg_cnt, u64 *data_len, u16 imm_data_offset) srpt_get_desc_tbl() argument 1220 struct srpt_send_ioctx *ioctx; srpt_get_send_ioctx() local 1252 srpt_abort_cmd(struct srpt_send_ioctx *ioctx) srpt_abort_cmd() argument 1327 struct srpt_send_ioctx *ioctx = srpt_rdma_read_done() local 1364 srpt_build_cmd_rsp(struct srpt_rdma_ch *ch, struct srpt_send_ioctx *ioctx, u64 tag, int status) srpt_build_cmd_rsp() argument 1446 srpt_build_tskmgmt_rsp(struct srpt_rdma_ch *ch, struct srpt_send_ioctx *ioctx, u8 rsp_code, u64 tag) srpt_build_tskmgmt_rsp() argument 1475 struct srpt_send_ioctx *ioctx = container_of(cmd, srpt_check_stop_free() local 1688 struct srpt_recv_ioctx *ioctx = srpt_recv_done() local 1749 struct srpt_send_ioctx *ioctx = srpt_send_done() local 2738 struct srpt_send_ioctx *ioctx = srpt_write_pending() local 2805 struct srpt_send_ioctx *ioctx = srpt_queue_response() local 2915 struct srpt_send_ioctx *ioctx = container_of(cmd, srpt_aborted_task() local 2924 struct srpt_send_ioctx *ioctx; srpt_queue_status() local 3342 struct srpt_send_ioctx *ioctx = container_of(se_cmd, srpt_release_cmd() local 3400 struct srpt_send_ioctx *ioctx; srpt_get_tcm_cmd_state() local [all...] |
H A D | ib_srpt.h | 179 * @ioctx: See above. 181 * @byte_len: Number of bytes in @ioctx.buf. 184 struct srpt_ioctx ioctx; member 197 * @ioctx: See above. 208 * @n_rdma: Number of work requests needed to transfer this ioctx. 214 struct srpt_ioctx ioctx; member
|
/kernel/linux/linux-6.6/drivers/infiniband/ulp/srpt/ |
H A D | ib_srpt.c | 666 struct srpt_ioctx *ioctx; in srpt_alloc_ioctx() local 668 ioctx = kzalloc(ioctx_size, GFP_KERNEL); in srpt_alloc_ioctx() 669 if (!ioctx) in srpt_alloc_ioctx() 672 ioctx->buf = kmem_cache_alloc(buf_cache, GFP_KERNEL); in srpt_alloc_ioctx() 673 if (!ioctx->buf) in srpt_alloc_ioctx() 676 ioctx->dma = ib_dma_map_single(sdev->device, ioctx->buf, in srpt_alloc_ioctx() 678 if (ib_dma_mapping_error(sdev->device, ioctx->dma)) in srpt_alloc_ioctx() 681 return ioctx; in srpt_alloc_ioctx() 684 kmem_cache_free(buf_cache, ioctx in srpt_alloc_ioctx() 698 srpt_free_ioctx(struct srpt_device *sdev, struct srpt_ioctx *ioctx, struct kmem_cache *buf_cache, enum dma_data_direction dir) srpt_free_ioctx() argument 785 srpt_set_cmd_state(struct srpt_send_ioctx *ioctx, enum srpt_command_state new) srpt_set_cmd_state() argument 805 srpt_test_and_set_cmd_state(struct srpt_send_ioctx *ioctx, enum srpt_command_state old, enum srpt_command_state new) srpt_test_and_set_cmd_state() argument 828 srpt_post_recv(struct srpt_device *sdev, struct srpt_rdma_ch *ch, struct srpt_recv_ioctx *ioctx) srpt_post_recv() argument 895 srpt_alloc_rw_ctxs(struct srpt_send_ioctx *ioctx, struct srp_direct_buf *db, int nbufs, struct scatterlist **sg, unsigned *sg_cnt) srpt_alloc_rw_ctxs() argument 963 srpt_free_rw_ctxs(struct srpt_rdma_ch *ch, struct srpt_send_ioctx *ioctx) srpt_free_rw_ctxs() argument 1018 srpt_get_desc_tbl(struct srpt_recv_ioctx *recv_ioctx, struct srpt_send_ioctx *ioctx, struct srp_cmd *srp_cmd, enum dma_data_direction *dir, struct scatterlist **sg, unsigned int *sg_cnt, u64 *data_len, u16 imm_data_offset) srpt_get_desc_tbl() argument 1226 struct srpt_send_ioctx *ioctx; srpt_get_send_ioctx() local 1258 srpt_abort_cmd(struct srpt_send_ioctx *ioctx) srpt_abort_cmd() argument 1333 struct srpt_send_ioctx *ioctx = srpt_rdma_read_done() local 1370 srpt_build_cmd_rsp(struct srpt_rdma_ch *ch, struct srpt_send_ioctx *ioctx, u64 tag, int status) srpt_build_cmd_rsp() argument 1452 srpt_build_tskmgmt_rsp(struct srpt_rdma_ch *ch, struct srpt_send_ioctx *ioctx, u8 rsp_code, u64 tag) srpt_build_tskmgmt_rsp() argument 1481 struct srpt_send_ioctx *ioctx = container_of(cmd, srpt_check_stop_free() local 1698 struct srpt_recv_ioctx *ioctx = srpt_recv_done() local 1759 struct srpt_send_ioctx *ioctx = srpt_send_done() local 2747 struct srpt_send_ioctx *ioctx = srpt_write_pending() local 2814 struct srpt_send_ioctx *ioctx = srpt_queue_response() local 2923 struct srpt_send_ioctx *ioctx = container_of(cmd, srpt_aborted_task() local 2932 struct srpt_send_ioctx *ioctx; srpt_queue_status() local 3341 struct srpt_send_ioctx *ioctx = container_of(se_cmd, srpt_release_cmd() local 3381 struct srpt_send_ioctx *ioctx; srpt_get_tcm_cmd_state() local [all...] |
H A D | ib_srpt.h | 179 * @ioctx: See above. 181 * @byte_len: Number of bytes in @ioctx.buf. 184 struct srpt_ioctx ioctx; member 197 * @ioctx: See above. 208 * @n_rdma: Number of work requests needed to transfer this ioctx. 214 struct srpt_ioctx ioctx; member
|
/kernel/linux/linux-5.10/fs/ |
H A D | aio.c | 715 * Allocates and initializes an ioctx. Returns an ERR_PTR if it failed. 806 pr_debug("allocated ioctx %p[%ld]: mm=%p mask=0x%x\n", in ioctx_alloc() 823 pr_debug("error allocating ioctx %d\n", err); in ioctx_alloc() 1186 * Pull an event off of the ioctx's event ring. Returns the number of 1330 struct kioctx *ioctx = NULL; in SYSCALL_DEFINE2() local 1345 ioctx = ioctx_alloc(nr_events); in SYSCALL_DEFINE2() 1346 ret = PTR_ERR(ioctx); in SYSCALL_DEFINE2() 1347 if (!IS_ERR(ioctx)) { in SYSCALL_DEFINE2() 1348 ret = put_user(ioctx->user_id, ctxp); in SYSCALL_DEFINE2() 1350 kill_ioctx(current->mm, ioctx, NUL in SYSCALL_DEFINE2() 1361 struct kioctx *ioctx = NULL; COMPAT_SYSCALL_DEFINE2() local 1399 struct kioctx *ioctx = lookup_ioctx(ctx); SYSCALL_DEFINE1() local 2187 struct kioctx *ioctx = NULL; do_io_getevents() local [all...] |
/kernel/linux/linux-6.6/fs/ |
H A D | aio.c | 734 * Allocates and initializes an ioctx. Returns an ERR_PTR if it failed. 825 pr_debug("allocated ioctx %p[%ld]: mm=%p mask=0x%x\n", in ioctx_alloc() 842 pr_debug("error allocating ioctx %d\n", err); in ioctx_alloc() 1199 * Pull an event off of the ioctx's event ring. Returns the number of 1340 struct kioctx *ioctx = NULL; in SYSCALL_DEFINE2() local 1355 ioctx = ioctx_alloc(nr_events); in SYSCALL_DEFINE2() 1356 ret = PTR_ERR(ioctx); in SYSCALL_DEFINE2() 1357 if (!IS_ERR(ioctx)) { in SYSCALL_DEFINE2() 1358 ret = put_user(ioctx->user_id, ctxp); in SYSCALL_DEFINE2() 1360 kill_ioctx(current->mm, ioctx, NUL in SYSCALL_DEFINE2() 1371 struct kioctx *ioctx = NULL; COMPAT_SYSCALL_DEFINE2() local 1409 struct kioctx *ioctx = lookup_ioctx(ctx); SYSCALL_DEFINE1() local 2181 struct kioctx *ioctx = lookup_ioctx(ctx_id); do_io_getevents() local [all...] |