Searched refs:ioctx (Results 1 – 3 of 3) sorted by relevance
662 struct srpt_ioctx *ioctx; in srpt_alloc_ioctx() local664 ioctx = kmalloc(ioctx_size, GFP_KERNEL); in srpt_alloc_ioctx()665 if (!ioctx) in srpt_alloc_ioctx()668 ioctx->buf = kmalloc(dma_size, GFP_KERNEL); in srpt_alloc_ioctx()669 if (!ioctx->buf) in srpt_alloc_ioctx()672 ioctx->dma = ib_dma_map_single(sdev->device, ioctx->buf, dma_size, dir); in srpt_alloc_ioctx()673 if (ib_dma_mapping_error(sdev->device, ioctx->dma)) in srpt_alloc_ioctx()676 return ioctx; in srpt_alloc_ioctx()679 kfree(ioctx->buf); in srpt_alloc_ioctx()681 kfree(ioctx); in srpt_alloc_ioctx()[all …]
183 struct srpt_ioctx ioctx; member210 struct srpt_ioctx ioctx; member
1287 struct kioctx *ioctx = NULL; in SYSCALL_DEFINE2() local1302 ioctx = ioctx_alloc(nr_events); in SYSCALL_DEFINE2()1303 ret = PTR_ERR(ioctx); in SYSCALL_DEFINE2()1304 if (!IS_ERR(ioctx)) { in SYSCALL_DEFINE2()1305 ret = put_user(ioctx->user_id, ctxp); in SYSCALL_DEFINE2()1307 kill_ioctx(current->mm, ioctx, NULL); in SYSCALL_DEFINE2()1308 percpu_ref_put(&ioctx->users); in SYSCALL_DEFINE2()1318 struct kioctx *ioctx = NULL; in COMPAT_SYSCALL_DEFINE2() local1333 ioctx = ioctx_alloc(nr_events); in COMPAT_SYSCALL_DEFINE2()1334 ret = PTR_ERR(ioctx); in COMPAT_SYSCALL_DEFINE2()[all …]