Lines Matching refs:qm_sg_bytes

155 		       int qm_sg_bytes)  in caam_unmap()  argument
169 if (qm_sg_bytes) in caam_unmap()
170 dma_unmap_single(dev, qm_sg_dma, qm_sg_bytes, DMA_TO_DEVICE); in caam_unmap()
371 int qm_sg_index = 0, qm_sg_nents = 0, qm_sg_bytes; in aead_edesc_alloc() local
474 qm_sg_bytes = qm_sg_nents * sizeof(*sg_table); in aead_edesc_alloc()
475 if (unlikely(offsetof(struct aead_edesc, sgt) + qm_sg_bytes + ivsize > in aead_edesc_alloc()
536 qm_sg_dma = dma_map_single(dev, sg_table, qm_sg_bytes, DMA_TO_DEVICE); in aead_edesc_alloc()
547 edesc->qm_sg_bytes = qm_sg_bytes; in aead_edesc_alloc()
1128 int dst_sg_idx, qm_sg_ents, qm_sg_bytes; in skcipher_edesc_alloc() local
1185 qm_sg_bytes = qm_sg_ents * sizeof(struct dpaa2_sg_entry); in skcipher_edesc_alloc()
1186 if (unlikely(offsetof(struct skcipher_edesc, sgt) + qm_sg_bytes + in skcipher_edesc_alloc()
1221 edesc->qm_sg_bytes = qm_sg_bytes; in skcipher_edesc_alloc()
1232 edesc->qm_sg_dma = dma_map_single(dev, sg_table, edesc->qm_sg_bytes, in skcipher_edesc_alloc()
1270 edesc->qm_sg_bytes); in aead_unmap()
1282 edesc->qm_sg_bytes); in skcipher_unmap()
1424 memcpy(req->iv, (u8 *)&edesc->sgt[0] + edesc->qm_sg_bytes, in skcipher_encrypt_done()
1462 memcpy(req->iv, (u8 *)&edesc->sgt[0] + edesc->qm_sg_bytes, in skcipher_decrypt_done()
3376 if (edesc->qm_sg_bytes) in ahash_unmap()
3377 dma_unmap_single(dev, edesc->qm_sg_dma, edesc->qm_sg_bytes, in ahash_unmap()
3544 int src_nents, mapped_nents, qm_sg_bytes, qm_sg_src_index; in ahash_update_ctx() local
3582 qm_sg_bytes = pad_sg_nents(qm_sg_src_index + mapped_nents) * in ahash_update_ctx()
3604 qm_sg_bytes, DMA_TO_DEVICE); in ahash_update_ctx()
3610 edesc->qm_sg_bytes = qm_sg_bytes; in ahash_update_ctx()
3660 int qm_sg_bytes; in ahash_final_ctx() local
3671 qm_sg_bytes = pad_sg_nents(1 + (buflen ? 1 : 0)) * sizeof(*sg_table); in ahash_final_ctx()
3685 edesc->qm_sg_dma = dma_map_single(ctx->dev, sg_table, qm_sg_bytes, in ahash_final_ctx()
3692 edesc->qm_sg_bytes = qm_sg_bytes; in ahash_final_ctx()
3731 int qm_sg_bytes, qm_sg_src_index; in ahash_finup_ctx() local
3764 qm_sg_bytes = pad_sg_nents(qm_sg_src_index + mapped_nents) * in ahash_finup_ctx()
3779 edesc->qm_sg_dma = dma_map_single(ctx->dev, sg_table, qm_sg_bytes, in ahash_finup_ctx()
3786 edesc->qm_sg_bytes = qm_sg_bytes; in ahash_finup_ctx()
3859 int qm_sg_bytes; in ahash_digest() local
3862 qm_sg_bytes = pad_sg_nents(mapped_nents) * sizeof(*sg_table); in ahash_digest()
3865 qm_sg_bytes, DMA_TO_DEVICE); in ahash_digest()
3870 edesc->qm_sg_bytes = qm_sg_bytes; in ahash_digest()
3996 int qm_sg_bytes, src_nents, mapped_nents; in ahash_update_no_ctx() local
4033 qm_sg_bytes = pad_sg_nents(1 + mapped_nents) * in ahash_update_no_ctx()
4044 qm_sg_bytes, DMA_TO_DEVICE); in ahash_update_no_ctx()
4050 edesc->qm_sg_bytes = qm_sg_bytes; in ahash_update_no_ctx()
4114 int qm_sg_bytes, src_nents, mapped_nents; in ahash_finup_no_ctx() local
4145 qm_sg_bytes = pad_sg_nents(2 + mapped_nents) * sizeof(*sg_table); in ahash_finup_no_ctx()
4154 edesc->qm_sg_dma = dma_map_single(ctx->dev, sg_table, qm_sg_bytes, in ahash_finup_no_ctx()
4161 edesc->qm_sg_bytes = qm_sg_bytes; in ahash_finup_no_ctx()
4258 int qm_sg_bytes; in ahash_update_first() local
4261 qm_sg_bytes = pad_sg_nents(mapped_nents) * in ahash_update_first()
4264 qm_sg_bytes, in ahash_update_first()
4271 edesc->qm_sg_bytes = qm_sg_bytes; in ahash_update_first()