Searched refs:ioctx (Results 1 – 3 of 3) sorted by relevance
/linux-4.4.14/drivers/infiniband/ulp/srpt/ |
D | ib_srpt.c | 618 struct srpt_ioctx *ioctx; in srpt_alloc_ioctx() local 620 ioctx = kmalloc(ioctx_size, GFP_KERNEL); in srpt_alloc_ioctx() 621 if (!ioctx) in srpt_alloc_ioctx() 624 ioctx->buf = kmalloc(dma_size, GFP_KERNEL); in srpt_alloc_ioctx() 625 if (!ioctx->buf) in srpt_alloc_ioctx() 628 ioctx->dma = ib_dma_map_single(sdev->device, ioctx->buf, dma_size, dir); in srpt_alloc_ioctx() 629 if (ib_dma_mapping_error(sdev->device, ioctx->dma)) in srpt_alloc_ioctx() 632 return ioctx; in srpt_alloc_ioctx() 635 kfree(ioctx->buf); in srpt_alloc_ioctx() 637 kfree(ioctx); in srpt_alloc_ioctx() [all …]
|
D | ib_srpt.h | 203 struct srpt_ioctx ioctx; member 229 struct srpt_ioctx ioctx; member
|
/linux-4.4.14/fs/ |
D | aio.c | 1318 struct kioctx *ioctx = NULL; in SYSCALL_DEFINE2() local 1333 ioctx = ioctx_alloc(nr_events); in SYSCALL_DEFINE2() 1334 ret = PTR_ERR(ioctx); in SYSCALL_DEFINE2() 1335 if (!IS_ERR(ioctx)) { in SYSCALL_DEFINE2() 1336 ret = put_user(ioctx->user_id, ctxp); in SYSCALL_DEFINE2() 1338 kill_ioctx(current->mm, ioctx, NULL); in SYSCALL_DEFINE2() 1339 percpu_ref_put(&ioctx->users); in SYSCALL_DEFINE2() 1354 struct kioctx *ioctx = lookup_ioctx(ctx); in SYSCALL_DEFINE1() local 1355 if (likely(NULL != ioctx)) { in SYSCALL_DEFINE1() 1366 ret = kill_ioctx(current->mm, ioctx, &wait); in SYSCALL_DEFINE1() [all …]
|