Lines Matching refs:buflout
64 struct qat_alg_buf_list *buflout = NULL; in __qat_bl_sgl_to_bufl() local
132 sz_out = struct_size(buflout, buffers, n); in __qat_bl_sgl_to_bufl()
138 buflout = kzalloc_node(sz_out, flags, node); in __qat_bl_sgl_to_bufl()
139 if (unlikely(!buflout)) in __qat_bl_sgl_to_bufl()
142 buflout = &buf->sgl_dst.sgl_hdr; in __qat_bl_sgl_to_bufl()
143 memset(buflout, 0, sizeof(struct qat_alg_buf_list)); in __qat_bl_sgl_to_bufl()
147 buffers = buflout->buffers; in __qat_bl_sgl_to_bufl()
178 buflout->num_bufs = sg_nctr; in __qat_bl_sgl_to_bufl()
179 buflout->num_bufs += extra_buff; in __qat_bl_sgl_to_bufl()
180 buflout->num_mapped_bufs = sg_nctr; in __qat_bl_sgl_to_bufl()
181 bloutp = dma_map_single(dev, buflout, sz_out, DMA_TO_DEVICE); in __qat_bl_sgl_to_bufl()
184 buf->blout = buflout; in __qat_bl_sgl_to_bufl()
200 if (buflout->buffers[i].addr == extra_dst_buff) in __qat_bl_sgl_to_bufl()
202 if (!dma_mapping_error(dev, buflout->buffers[i].addr)) in __qat_bl_sgl_to_bufl()
203 dma_unmap_single(dev, buflout->buffers[i].addr, in __qat_bl_sgl_to_bufl()
204 buflout->buffers[i].len, in __qat_bl_sgl_to_bufl()
209 kfree(buflout); in __qat_bl_sgl_to_bufl()