Lines Matching refs:steps
549 int *steps, gfp_t gfp) in sec_alg_alloc_and_calc_split_sizes() argument
555 *steps = roundup(length, SEC_REQ_LIMIT) / SEC_REQ_LIMIT; in sec_alg_alloc_and_calc_split_sizes()
556 sizes = kcalloc(*steps, sizeof(*sizes), gfp); in sec_alg_alloc_and_calc_split_sizes()
560 for (i = 0; i < *steps - 1; i++) in sec_alg_alloc_and_calc_split_sizes()
562 sizes[*steps - 1] = length - SEC_REQ_LIMIT * (*steps - 1); in sec_alg_alloc_and_calc_split_sizes()
569 int steps, struct scatterlist ***splits, in sec_map_and_split_sg() argument
580 *splits = kcalloc(steps, sizeof(struct scatterlist *), gfp); in sec_map_and_split_sg()
585 *splits_nents = kcalloc(steps, sizeof(int), gfp); in sec_map_and_split_sg()
592 ret = sg_split(sgl, count, 0, steps, split_sizes, in sec_map_and_split_sg()
615 static void sec_unmap_sg_on_err(struct scatterlist *sgl, int steps, in sec_unmap_sg_on_err() argument
621 for (i = 0; i < steps; i++) in sec_unmap_sg_on_err()
716 int i, ret, steps; in sec_alg_skcipher_crypto() local
733 &steps, gfp); in sec_alg_skcipher_crypto()
736 sec_req->num_elements = steps; in sec_alg_skcipher_crypto()
737 ret = sec_map_and_split_sg(skreq->src, split_sizes, steps, &splits_in, in sec_alg_skcipher_crypto()
745 ret = sec_map_and_split_sg(skreq->dst, split_sizes, steps, in sec_alg_skcipher_crypto()
772 for (i = 0; i < steps; i++) { in sec_alg_skcipher_crypto()
810 if ((!sec_queue_can_enqueue(queue, steps) && in sec_alg_skcipher_crypto()
812 kfifo_avail(&queue->softqueue) > steps)) || in sec_alg_skcipher_crypto()
850 sec_unmap_sg_on_err(skreq->dst, steps, splits_out, in sec_alg_skcipher_crypto()
854 sec_unmap_sg_on_err(skreq->src, steps, splits_in, splits_in_nents, in sec_alg_skcipher_crypto()