Lines Matching refs:buff_sg
321 sg_init_one(areq_ctx->buff_sg, curr_buff, curr_buff_cnt); in cc_set_hash_buf()
322 if (dma_map_sg(dev, areq_ctx->buff_sg, 1, DMA_TO_DEVICE) != 1) { in cc_set_hash_buf()
327 &sg_dma_address(areq_ctx->buff_sg), sg_page(areq_ctx->buff_sg), in cc_set_hash_buf()
328 sg_virt(areq_ctx->buff_sg), areq_ctx->buff_sg->offset, in cc_set_hash_buf()
329 areq_ctx->buff_sg->length); in cc_set_hash_buf()
331 areq_ctx->curr_sg = areq_ctx->buff_sg; in cc_set_hash_buf()
334 cc_add_sg_entry(dev, sg_data, 1, areq_ctx->buff_sg, curr_buff_cnt, 0, in cc_set_hash_buf()
1184 memcpy(areq_ctx->buff_sg, src, in cc_map_hash_request_final()
1186 areq_ctx->buff_sg->length = nbytes; in cc_map_hash_request_final()
1187 areq_ctx->curr_sg = areq_ctx->buff_sg; in cc_map_hash_request_final()
1215 dma_unmap_sg(dev, areq_ctx->buff_sg, 1, DMA_TO_DEVICE); in cc_map_hash_request_final()
1297 memcpy(areq_ctx->buff_sg, src, in cc_map_hash_request_update()
1299 areq_ctx->buff_sg->length = update_data_len; in cc_map_hash_request_update()
1301 areq_ctx->curr_sg = areq_ctx->buff_sg; in cc_map_hash_request_update()
1326 dma_unmap_sg(dev, areq_ctx->buff_sg, 1, DMA_TO_DEVICE); in cc_map_hash_request_update()
1358 sg_virt(areq_ctx->buff_sg), in cc_unmap_hash_request()
1359 &sg_dma_address(areq_ctx->buff_sg), in cc_unmap_hash_request()
1360 sg_dma_len(areq_ctx->buff_sg)); in cc_unmap_hash_request()
1361 dma_unmap_sg(dev, areq_ctx->buff_sg, 1, DMA_TO_DEVICE); in cc_unmap_hash_request()