Lines Matching refs:qm_sg_bytes
152 int qm_sg_bytes) in caam_unmap() argument
166 if (qm_sg_bytes) in caam_unmap()
167 dma_unmap_single(dev, qm_sg_dma, qm_sg_bytes, DMA_TO_DEVICE); in caam_unmap()
368 int qm_sg_index = 0, qm_sg_nents = 0, qm_sg_bytes; in aead_edesc_alloc() local
471 qm_sg_bytes = qm_sg_nents * sizeof(*sg_table); in aead_edesc_alloc()
472 if (unlikely(offsetof(struct aead_edesc, sgt) + qm_sg_bytes + ivsize > in aead_edesc_alloc()
533 qm_sg_dma = dma_map_single(dev, sg_table, qm_sg_bytes, DMA_TO_DEVICE); in aead_edesc_alloc()
544 edesc->qm_sg_bytes = qm_sg_bytes; in aead_edesc_alloc()
1124 int dst_sg_idx, qm_sg_ents, qm_sg_bytes; in skcipher_edesc_alloc() local
1181 qm_sg_bytes = qm_sg_ents * sizeof(struct dpaa2_sg_entry); in skcipher_edesc_alloc()
1182 if (unlikely(offsetof(struct skcipher_edesc, sgt) + qm_sg_bytes + in skcipher_edesc_alloc()
1217 edesc->qm_sg_bytes = qm_sg_bytes; in skcipher_edesc_alloc()
1228 edesc->qm_sg_dma = dma_map_single(dev, sg_table, edesc->qm_sg_bytes, in skcipher_edesc_alloc()
1266 edesc->qm_sg_bytes); in aead_unmap()
1278 edesc->qm_sg_bytes); in skcipher_unmap()
1420 memcpy(req->iv, (u8 *)&edesc->sgt[0] + edesc->qm_sg_bytes, in skcipher_encrypt_done()
1458 memcpy(req->iv, (u8 *)&edesc->sgt[0] + edesc->qm_sg_bytes, in skcipher_decrypt_done()
3364 if (edesc->qm_sg_bytes) in ahash_unmap()
3365 dma_unmap_single(dev, edesc->qm_sg_dma, edesc->qm_sg_bytes, in ahash_unmap()
3532 int src_nents, mapped_nents, qm_sg_bytes, qm_sg_src_index; in ahash_update_ctx() local
3570 qm_sg_bytes = pad_sg_nents(qm_sg_src_index + mapped_nents) * in ahash_update_ctx()
3592 qm_sg_bytes, DMA_TO_DEVICE); in ahash_update_ctx()
3598 edesc->qm_sg_bytes = qm_sg_bytes; in ahash_update_ctx()
3648 int qm_sg_bytes; in ahash_final_ctx() local
3659 qm_sg_bytes = pad_sg_nents(1 + (buflen ? 1 : 0)) * sizeof(*sg_table); in ahash_final_ctx()
3673 edesc->qm_sg_dma = dma_map_single(ctx->dev, sg_table, qm_sg_bytes, in ahash_final_ctx()
3680 edesc->qm_sg_bytes = qm_sg_bytes; in ahash_final_ctx()
3719 int qm_sg_bytes, qm_sg_src_index; in ahash_finup_ctx() local
3752 qm_sg_bytes = pad_sg_nents(qm_sg_src_index + mapped_nents) * in ahash_finup_ctx()
3767 edesc->qm_sg_dma = dma_map_single(ctx->dev, sg_table, qm_sg_bytes, in ahash_finup_ctx()
3774 edesc->qm_sg_bytes = qm_sg_bytes; in ahash_finup_ctx()
3847 int qm_sg_bytes; in ahash_digest() local
3850 qm_sg_bytes = pad_sg_nents(mapped_nents) * sizeof(*sg_table); in ahash_digest()
3853 qm_sg_bytes, DMA_TO_DEVICE); in ahash_digest()
3858 edesc->qm_sg_bytes = qm_sg_bytes; in ahash_digest()
3984 int qm_sg_bytes, src_nents, mapped_nents; in ahash_update_no_ctx() local
4021 qm_sg_bytes = pad_sg_nents(1 + mapped_nents) * in ahash_update_no_ctx()
4032 qm_sg_bytes, DMA_TO_DEVICE); in ahash_update_no_ctx()
4038 edesc->qm_sg_bytes = qm_sg_bytes; in ahash_update_no_ctx()
4102 int qm_sg_bytes, src_nents, mapped_nents; in ahash_finup_no_ctx() local
4133 qm_sg_bytes = pad_sg_nents(2 + mapped_nents) * sizeof(*sg_table); in ahash_finup_no_ctx()
4142 edesc->qm_sg_dma = dma_map_single(ctx->dev, sg_table, qm_sg_bytes, in ahash_finup_no_ctx()
4149 edesc->qm_sg_bytes = qm_sg_bytes; in ahash_finup_no_ctx()
4246 int qm_sg_bytes; in ahash_update_first() local
4249 qm_sg_bytes = pad_sg_nents(mapped_nents) * in ahash_update_first()
4252 qm_sg_bytes, in ahash_update_first()
4259 edesc->qm_sg_bytes = qm_sg_bytes; in ahash_update_first()