Home
last modified time | relevance | path

Searched refs:ioctx (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/drivers/infiniband/ulp/srpt/
H A Dib_srpt.c725 struct srpt_ioctx *ioctx; in srpt_alloc_ioctx() local
727 ioctx = kzalloc(ioctx_size, GFP_KERNEL); in srpt_alloc_ioctx()
728 if (!ioctx) in srpt_alloc_ioctx()
731 ioctx->buf = kmem_cache_alloc(buf_cache, GFP_KERNEL); in srpt_alloc_ioctx()
732 if (!ioctx->buf) in srpt_alloc_ioctx()
735 ioctx->dma = ib_dma_map_single(sdev->device, ioctx->buf, in srpt_alloc_ioctx()
737 if (ib_dma_mapping_error(sdev->device, ioctx->dma)) in srpt_alloc_ioctx()
740 return ioctx; in srpt_alloc_ioctx()
743 kmem_cache_free(buf_cache, ioctx->buf); in srpt_alloc_ioctx()
745 kfree(ioctx); in srpt_alloc_ioctx()
[all …]
H A Dib_srpt.h184 struct srpt_ioctx ioctx; member
214 struct srpt_ioctx ioctx; member
/openbmc/linux/fs/
H A Daio.c1344 struct kioctx *ioctx = NULL; in SYSCALL_DEFINE2() local
1359 ioctx = ioctx_alloc(nr_events); in SYSCALL_DEFINE2()
1360 ret = PTR_ERR(ioctx); in SYSCALL_DEFINE2()
1361 if (!IS_ERR(ioctx)) { in SYSCALL_DEFINE2()
1362 ret = put_user(ioctx->user_id, ctxp); in SYSCALL_DEFINE2()
1364 kill_ioctx(current->mm, ioctx, NULL); in SYSCALL_DEFINE2()
1365 percpu_ref_put(&ioctx->users); in SYSCALL_DEFINE2()
1375 struct kioctx *ioctx = NULL; in COMPAT_SYSCALL_DEFINE2() local
1390 ioctx = ioctx_alloc(nr_events); in COMPAT_SYSCALL_DEFINE2()
1391 ret = PTR_ERR(ioctx); in COMPAT_SYSCALL_DEFINE2()
[all …]