Lines Matching refs:bufers
682 dma_unmap_single(dev, bl->bufers[i].addr, in qat_alg_free_bufl()
683 bl->bufers[i].len, bl_dma_dir); in qat_alg_free_bufl()
695 dma_unmap_single(dev, blout->bufers[i].addr, in qat_alg_free_bufl()
696 blout->bufers[i].len, in qat_alg_free_bufl()
720 size_t sz_out, sz = struct_size(bufl, bufers, n); in qat_alg_sgl_to_bufl()
743 bufl->bufers[i].addr = DMA_MAPPING_ERROR; in qat_alg_sgl_to_bufl()
751 bufl->bufers[y].addr = dma_map_single(dev, sg_virt(sg), in qat_alg_sgl_to_bufl()
754 bufl->bufers[y].len = sg->length; in qat_alg_sgl_to_bufl()
755 if (unlikely(dma_mapping_error(dev, bufl->bufers[y].addr))) in qat_alg_sgl_to_bufl()
768 struct qat_alg_buf *bufers; in qat_alg_sgl_to_bufl() local
771 sz_out = struct_size(buflout, bufers, n); in qat_alg_sgl_to_bufl()
784 bufers = buflout->bufers; in qat_alg_sgl_to_bufl()
786 bufers[i].addr = DMA_MAPPING_ERROR; in qat_alg_sgl_to_bufl()
794 bufers[y].addr = dma_map_single(dev, sg_virt(sg), in qat_alg_sgl_to_bufl()
797 if (unlikely(dma_mapping_error(dev, bufers[y].addr))) in qat_alg_sgl_to_bufl()
799 bufers[y].len = sg->length; in qat_alg_sgl_to_bufl()
823 if (!dma_mapping_error(dev, buflout->bufers[i].addr)) in qat_alg_sgl_to_bufl()
824 dma_unmap_single(dev, buflout->bufers[i].addr, in qat_alg_sgl_to_bufl()
825 buflout->bufers[i].len, in qat_alg_sgl_to_bufl()
837 if (!dma_mapping_error(dev, bufl->bufers[i].addr)) in qat_alg_sgl_to_bufl()
838 dma_unmap_single(dev, bufl->bufers[i].addr, in qat_alg_sgl_to_bufl()
839 bufl->bufers[i].len, in qat_alg_sgl_to_bufl()