Lines Matching refs:nents
25 int nents[MAX_NUM_OF_BUFFERS_IN_MLLI]; member
77 unsigned int nents = 0; in cc_get_sgl_nents() local
82 nents++; in cc_get_sgl_nents()
90 dev_dbg(dev, "nents %d last bytes %d\n", nents, *lbytes); in cc_get_sgl_nents()
91 return nents; in cc_get_sgl_nents()
109 u32 nents; in cc_copy_sg_portion() local
111 nents = sg_nents_for_len(sg, end); in cc_copy_sg_portion()
112 sg_copy_buffer(sg, nents, dest, (end - to_skip + 1), to_skip, in cc_copy_sg_portion()
236 unsigned int nents, struct scatterlist *sgl, in cc_add_sg_entry() argument
243 index, nents, sgl, data_len, is_last_table); in cc_add_sg_entry()
244 sgl_data->nents[index] = nents; in cc_add_sg_entry()
256 unsigned int nbytes, int direction, u32 *nents, in cc_map_sg() argument
264 *nents = 0; in cc_map_sg()
268 *nents = cc_get_sgl_nents(dev, sg, nbytes, lbytes); in cc_map_sg()
269 if (*nents > max_sg_nents) { in cc_map_sg()
270 *nents = 0; in cc_map_sg()
272 *nents, max_sg_nents); in cc_map_sg()
276 ret = dma_map_sg(dev, sg, *nents, direction); in cc_map_sg()
278 *nents = 0; in cc_map_sg()
518 sg_virt(req->src), areq_ctx->src.nents, areq_ctx->assoc.nents, in cc_unmap_aead_request()
601 areq_ctx->assoc.nents = 0; in cc_aead_chain_assoc()
605 areq_ctx->assoc.nents); in cc_aead_chain_assoc()
618 areq_ctx->assoc.nents = mapped_nents; in cc_aead_chain_assoc()
626 (areq_ctx->assoc.nents + 1), in cc_aead_chain_assoc()
641 areq_ctx->assoc.nents); in cc_aead_chain_assoc()
642 cc_add_sg_entry(dev, sg_data, areq_ctx->assoc.nents, req->src, in cc_aead_chain_assoc()
689 cc_add_sg_entry(dev, sg_data, areq_ctx->src.nents, in cc_prepare_aead_data_mlli()
695 cc_is_icv_frag(areq_ctx->src.nents, authsize, in cc_prepare_aead_data_mlli()
719 sg = &areq_ctx->src_sgl[areq_ctx->src.nents - 1]; in cc_prepare_aead_data_mlli()
729 cc_add_sg_entry(dev, sg_data, areq_ctx->src.nents, in cc_prepare_aead_data_mlli()
733 cc_add_sg_entry(dev, sg_data, areq_ctx->dst.nents, in cc_prepare_aead_data_mlli()
739 cc_is_icv_frag(areq_ctx->src.nents, authsize, in cc_prepare_aead_data_mlli()
751 sg = &areq_ctx->src_sgl[areq_ctx->src.nents - 1]; in cc_prepare_aead_data_mlli()
761 cc_add_sg_entry(dev, sg_data, areq_ctx->dst.nents, in cc_prepare_aead_data_mlli()
765 cc_add_sg_entry(dev, sg_data, areq_ctx->src.nents, in cc_prepare_aead_data_mlli()
771 cc_is_icv_frag(areq_ctx->dst.nents, authsize, in cc_prepare_aead_data_mlli()
775 sg = &areq_ctx->dst_sgl[areq_ctx->dst.nents - 1]; in cc_prepare_aead_data_mlli()
836 areq_ctx->src.nents = src_mapped_nents; in cc_aead_chain_data()
876 areq_ctx->dst.nents = dst_mapped_nents; in cc_aead_chain_data()