Searched refs:ioctx (Results 1 – 3 of 3) sorted by relevance
/linux-4.1.27/drivers/infiniband/ulp/srpt/ |
D | ib_srpt.c | 619 struct srpt_ioctx *ioctx; in srpt_alloc_ioctx() local 621 ioctx = kmalloc(ioctx_size, GFP_KERNEL); in srpt_alloc_ioctx() 622 if (!ioctx) in srpt_alloc_ioctx() 625 ioctx->buf = kmalloc(dma_size, GFP_KERNEL); in srpt_alloc_ioctx() 626 if (!ioctx->buf) in srpt_alloc_ioctx() 629 ioctx->dma = ib_dma_map_single(sdev->device, ioctx->buf, dma_size, dir); in srpt_alloc_ioctx() 630 if (ib_dma_mapping_error(sdev->device, ioctx->dma)) in srpt_alloc_ioctx() 633 return ioctx; in srpt_alloc_ioctx() 636 kfree(ioctx->buf); in srpt_alloc_ioctx() 638 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.1.27/fs/ |
D | aio.c | 1309 struct kioctx *ioctx = NULL; in SYSCALL_DEFINE2() local 1324 ioctx = ioctx_alloc(nr_events); in SYSCALL_DEFINE2() 1325 ret = PTR_ERR(ioctx); in SYSCALL_DEFINE2() 1326 if (!IS_ERR(ioctx)) { in SYSCALL_DEFINE2() 1327 ret = put_user(ioctx->user_id, ctxp); in SYSCALL_DEFINE2() 1329 kill_ioctx(current->mm, ioctx, NULL); in SYSCALL_DEFINE2() 1330 percpu_ref_put(&ioctx->users); in SYSCALL_DEFINE2() 1345 struct kioctx *ioctx = lookup_ioctx(ctx); in SYSCALL_DEFINE1() local 1346 if (likely(NULL != ioctx)) { in SYSCALL_DEFINE1() 1357 ret = kill_ioctx(current->mm, ioctx, &wait); in SYSCALL_DEFINE1() [all …]
|