Lines Matching refs:buflen

171 					    u8 *buf, int buflen)  in buf_map_to_sec4_sg()  argument
175 buf_dma = dma_map_single(jrdev, buf, buflen, DMA_TO_DEVICE); in buf_map_to_sec4_sg()
176 dma_to_sec4_sg_one(sec4_sg, buf_dma, buflen, 0); in buf_map_to_sec4_sg()
197 u8 *buf, dma_addr_t buf_dma, int buflen, in try_buf_map_to_sec4_sg() argument
202 if (buflen) in try_buf_map_to_sec4_sg()
203 buf_dma = buf_map_to_sec4_sg(jrdev, sec4_sg, buf, buflen); in try_buf_map_to_sec4_sg()
782 int *buflen = state->current_buf ? &state->buflen_1 : &state->buflen_0; in ahash_update_ctx() local
786 int in_len = *buflen + req->nbytes, to_hash; in ahash_update_ctx()
802 sec4_sg_src_index = 1 + (*buflen ? 1 : 0); in ahash_update_ctx()
832 *buflen, last_buflen); in ahash_update_ctx()
840 to_hash - *buflen, in ahash_update_ctx()
882 scatterwalk_map_and_copy(buf + *buflen, req->src, 0, in ahash_update_ctx()
884 *buflen = *next_buflen; in ahash_update_ctx()
889 DUMP_PREFIX_ADDRESS, 16, 4, buf, *buflen, 1); in ahash_update_ctx()
907 int buflen = state->current_buf ? state->buflen_1 : state->buflen_0; in ahash_final_ctx() local
918 sec4_sg_src_index = 1 + (buflen ? 1 : 0); in ahash_final_ctx()
944 buf, state->buf_dma, buflen, in ahash_final_ctx()
955 append_seq_in_ptr(desc, edesc->sec4_sg_dma, ctx->ctx_len + buflen, in ahash_final_ctx()
990 int buflen = state->current_buf ? state->buflen_1 : state->buflen_0; in ahash_finup_ctx() local
1004 sec4_sg_src_index = 1 + (buflen ? 1 : 0); in ahash_finup_ctx()
1032 buf, state->buf_dma, buflen, in ahash_finup_ctx()
1046 buflen + req->nbytes, LDST_SGF); in ahash_finup_ctx()
1160 int buflen = state->current_buf ? state->buflen_1 : state->buflen_0; in ahash_final_no_ctx() local
1181 state->buf_dma = dma_map_single(jrdev, buf, buflen, DMA_TO_DEVICE); in ahash_final_no_ctx()
1187 append_seq_in_ptr(desc, state->buf_dma, buflen, 0); in ahash_final_no_ctx()
1223 int *buflen = state->current_buf ? &state->buflen_1 : &state->buflen_0; in ahash_update_no_ctx() local
1227 int in_len = *buflen + req->nbytes, to_hash; in ahash_update_no_ctx()
1265 buf, *buflen); in ahash_update_no_ctx()
1270 to_hash - *buflen, in ahash_update_no_ctx()
1312 scatterwalk_map_and_copy(buf + *buflen, req->src, 0, in ahash_update_no_ctx()
1314 *buflen = *next_buflen; in ahash_update_no_ctx()
1319 DUMP_PREFIX_ADDRESS, 16, 4, buf, *buflen, 1); in ahash_update_no_ctx()
1338 int buflen = state->current_buf ? state->buflen_1 : state->buflen_0; in ahash_finup_no_ctx() local
1374 state->buf_dma, buflen, in ahash_finup_no_ctx()
1387 append_seq_in_ptr(desc, edesc->sec4_sg_dma, buflen + in ahash_finup_no_ctx()