Lines Matching refs:ah_tbl
480 ctx->ah_tbl.va = dma_alloc_coherent(&pdev->dev, map_len, in ocrdma_alloc_ucontext()
481 &ctx->ah_tbl.pa, GFP_KERNEL); in ocrdma_alloc_ucontext()
482 if (!ctx->ah_tbl.va) in ocrdma_alloc_ucontext()
485 ctx->ah_tbl.len = map_len; in ocrdma_alloc_ucontext()
487 resp.ah_tbl_len = ctx->ah_tbl.len; in ocrdma_alloc_ucontext()
488 resp.ah_tbl_page = virt_to_phys(ctx->ah_tbl.va); in ocrdma_alloc_ucontext()
513 ocrdma_del_mmap(ctx, ctx->ah_tbl.pa, ctx->ah_tbl.len); in ocrdma_alloc_ucontext()
515 dma_free_coherent(&pdev->dev, ctx->ah_tbl.len, ctx->ah_tbl.va, in ocrdma_alloc_ucontext()
516 ctx->ah_tbl.pa); in ocrdma_alloc_ucontext()
529 ocrdma_del_mmap(uctx, uctx->ah_tbl.pa, uctx->ah_tbl.len); in ocrdma_dealloc_ucontext()
530 dma_free_coherent(&pdev->dev, uctx->ah_tbl.len, uctx->ah_tbl.va, in ocrdma_dealloc_ucontext()
531 uctx->ah_tbl.pa); in ocrdma_dealloc_ucontext()