Lines Matching refs:qm_sg_bytes

154 		       int qm_sg_bytes)  in caam_unmap()  argument
168 if (qm_sg_bytes) in caam_unmap()
169 dma_unmap_single(dev, qm_sg_dma, qm_sg_bytes, DMA_TO_DEVICE); in caam_unmap()
370 int qm_sg_index = 0, qm_sg_nents = 0, qm_sg_bytes; in aead_edesc_alloc() local
473 qm_sg_bytes = qm_sg_nents * sizeof(*sg_table); in aead_edesc_alloc()
474 if (unlikely(offsetof(struct aead_edesc, sgt) + qm_sg_bytes + ivsize > in aead_edesc_alloc()
535 qm_sg_dma = dma_map_single(dev, sg_table, qm_sg_bytes, DMA_TO_DEVICE); in aead_edesc_alloc()
546 edesc->qm_sg_bytes = qm_sg_bytes; in aead_edesc_alloc()
1127 int dst_sg_idx, qm_sg_ents, qm_sg_bytes; in skcipher_edesc_alloc() local
1184 qm_sg_bytes = qm_sg_ents * sizeof(struct dpaa2_sg_entry); in skcipher_edesc_alloc()
1185 if (unlikely(offsetof(struct skcipher_edesc, sgt) + qm_sg_bytes + in skcipher_edesc_alloc()
1220 edesc->qm_sg_bytes = qm_sg_bytes; in skcipher_edesc_alloc()
1231 edesc->qm_sg_dma = dma_map_single(dev, sg_table, edesc->qm_sg_bytes, in skcipher_edesc_alloc()
1269 edesc->qm_sg_bytes); in aead_unmap()
1281 edesc->qm_sg_bytes); in skcipher_unmap()
1423 memcpy(req->iv, (u8 *)&edesc->sgt[0] + edesc->qm_sg_bytes, in skcipher_encrypt_done()
1461 memcpy(req->iv, (u8 *)&edesc->sgt[0] + edesc->qm_sg_bytes, in skcipher_decrypt_done()
3375 if (edesc->qm_sg_bytes) in ahash_unmap()
3376 dma_unmap_single(dev, edesc->qm_sg_dma, edesc->qm_sg_bytes, in ahash_unmap()
3543 int src_nents, mapped_nents, qm_sg_bytes, qm_sg_src_index; in ahash_update_ctx() local
3581 qm_sg_bytes = pad_sg_nents(qm_sg_src_index + mapped_nents) * in ahash_update_ctx()
3603 qm_sg_bytes, DMA_TO_DEVICE); in ahash_update_ctx()
3609 edesc->qm_sg_bytes = qm_sg_bytes; in ahash_update_ctx()
3659 int qm_sg_bytes; in ahash_final_ctx() local
3670 qm_sg_bytes = pad_sg_nents(1 + (buflen ? 1 : 0)) * sizeof(*sg_table); in ahash_final_ctx()
3684 edesc->qm_sg_dma = dma_map_single(ctx->dev, sg_table, qm_sg_bytes, in ahash_final_ctx()
3691 edesc->qm_sg_bytes = qm_sg_bytes; in ahash_final_ctx()
3730 int qm_sg_bytes, qm_sg_src_index; in ahash_finup_ctx() local
3763 qm_sg_bytes = pad_sg_nents(qm_sg_src_index + mapped_nents) * in ahash_finup_ctx()
3778 edesc->qm_sg_dma = dma_map_single(ctx->dev, sg_table, qm_sg_bytes, in ahash_finup_ctx()
3785 edesc->qm_sg_bytes = qm_sg_bytes; in ahash_finup_ctx()
3858 int qm_sg_bytes; in ahash_digest() local
3861 qm_sg_bytes = pad_sg_nents(mapped_nents) * sizeof(*sg_table); in ahash_digest()
3864 qm_sg_bytes, DMA_TO_DEVICE); in ahash_digest()
3869 edesc->qm_sg_bytes = qm_sg_bytes; in ahash_digest()
3995 int qm_sg_bytes, src_nents, mapped_nents; in ahash_update_no_ctx() local
4032 qm_sg_bytes = pad_sg_nents(1 + mapped_nents) * in ahash_update_no_ctx()
4043 qm_sg_bytes, DMA_TO_DEVICE); in ahash_update_no_ctx()
4049 edesc->qm_sg_bytes = qm_sg_bytes; in ahash_update_no_ctx()
4113 int qm_sg_bytes, src_nents, mapped_nents; in ahash_finup_no_ctx() local
4144 qm_sg_bytes = pad_sg_nents(2 + mapped_nents) * sizeof(*sg_table); in ahash_finup_no_ctx()
4153 edesc->qm_sg_dma = dma_map_single(ctx->dev, sg_table, qm_sg_bytes, in ahash_finup_no_ctx()
4160 edesc->qm_sg_bytes = qm_sg_bytes; in ahash_finup_no_ctx()
4257 int qm_sg_bytes; in ahash_update_first() local
4260 qm_sg_bytes = pad_sg_nents(mapped_nents) * in ahash_update_first()
4263 qm_sg_bytes, in ahash_update_first()
4270 edesc->qm_sg_bytes = qm_sg_bytes; in ahash_update_first()