Lines Matching refs:out_ctx
465 pdev->out_ctx.type = CDNSP_CTX_TYPE_DEVICE; in cdnsp_init_device_ctx()
466 pdev->out_ctx.size = size; in cdnsp_init_device_ctx()
467 pdev->out_ctx.ctx_size = CTX_SIZE(pdev->hcc_params); in cdnsp_init_device_ctx()
468 pdev->out_ctx.bytes = dma_pool_zalloc(pdev->device_pool, GFP_ATOMIC, in cdnsp_init_device_ctx()
469 &pdev->out_ctx.dma); in cdnsp_init_device_ctx()
471 if (!pdev->out_ctx.bytes) in cdnsp_init_device_ctx()
475 pdev->in_ctx.ctx_size = pdev->out_ctx.ctx_size; in cdnsp_init_device_ctx()
476 pdev->in_ctx.size = size + pdev->out_ctx.ctx_size; in cdnsp_init_device_ctx()
481 dma_pool_free(pdev->device_pool, pdev->out_ctx.bytes, in cdnsp_init_device_ctx()
482 pdev->out_ctx.dma); in cdnsp_init_device_ctx()
679 if (pdev->out_ctx.bytes) in cdnsp_free_priv_device()
680 dma_pool_free(pdev->device_pool, pdev->out_ctx.bytes, in cdnsp_free_priv_device()
681 pdev->out_ctx.dma); in cdnsp_free_priv_device()
684 pdev->out_ctx.bytes = NULL; in cdnsp_free_priv_device()
701 pdev->dcbaa->dev_context_ptrs[1] = cpu_to_le64(pdev->out_ctx.dma); in cdnsp_alloc_priv_device()
707 dma_pool_free(pdev->device_pool, pdev->out_ctx.bytes, in cdnsp_alloc_priv_device()
708 pdev->out_ctx.dma); in cdnsp_alloc_priv_device()