Lines Matching refs:buflen
165 u8 *buf, int buflen) in buf_map_to_sec4_sg() argument
169 buf_dma = dma_map_single(jrdev, buf, buflen, DMA_TO_DEVICE); in buf_map_to_sec4_sg()
170 dma_to_sec4_sg_one(sec4_sg, buf_dma, buflen, 0); in buf_map_to_sec4_sg()
191 u8 *buf, dma_addr_t buf_dma, int buflen, in try_buf_map_to_sec4_sg() argument
196 if (buflen) in try_buf_map_to_sec4_sg()
197 buf_dma = buf_map_to_sec4_sg(jrdev, sec4_sg, buf, buflen); in try_buf_map_to_sec4_sg()
777 int *buflen = state->current_buf ? &state->buflen_1 : &state->buflen_0; in ahash_update_ctx() local
781 int in_len = *buflen + req->nbytes, to_hash; in ahash_update_ctx()
797 sec4_sg_src_index = 1 + (*buflen ? 1 : 0); in ahash_update_ctx()
828 *buflen, last_buflen); in ahash_update_ctx()
836 *buflen, req->nbytes); in ahash_update_ctx()
869 sg_copy(buf + *buflen, req->src, req->nbytes); in ahash_update_ctx()
870 *buflen = *next_buflen; in ahash_update_ctx()
875 DUMP_PREFIX_ADDRESS, 16, 4, buf, *buflen, 1); in ahash_update_ctx()
893 int buflen = state->current_buf ? state->buflen_1 : state->buflen_0; in ahash_final_ctx() local
904 sec4_sg_bytes = (1 + (buflen ? 1 : 0)) * sizeof(struct sec4_sg_entry); in ahash_final_ctx()
929 buf, state->buf_dma, buflen, in ahash_final_ctx()
933 append_seq_in_ptr(desc, edesc->sec4_sg_dma, ctx->ctx_len + buflen, in ahash_final_ctx()
964 int buflen = state->current_buf ? state->buflen_1 : state->buflen_0; in ahash_finup_ctx() local
978 sec4_sg_src_index = 1 + (buflen ? 1 : 0); in ahash_finup_ctx()
1006 buf, state->buf_dma, buflen, in ahash_finup_ctx()
1013 buflen + req->nbytes, LDST_SGF); in ahash_finup_ctx()
1114 int buflen = state->current_buf ? state->buflen_1 : state->buflen_0; in ahash_final_no_ctx() local
1134 state->buf_dma = dma_map_single(jrdev, buf, buflen, DMA_TO_DEVICE); in ahash_final_no_ctx()
1136 append_seq_in_ptr(desc, state->buf_dma, buflen, 0); in ahash_final_no_ctx()
1168 int *buflen = state->current_buf ? &state->buflen_1 : &state->buflen_0; in ahash_update_no_ctx() local
1172 int in_len = *buflen + req->nbytes, to_hash; in ahash_update_no_ctx()
1212 buf, *buflen); in ahash_update_no_ctx()
1216 sg_copy_part(next_buf, req->src, to_hash - *buflen, in ahash_update_no_ctx()
1248 sg_copy(buf + *buflen, req->src, req->nbytes); in ahash_update_no_ctx()
1249 *buflen = *next_buflen; in ahash_update_no_ctx()
1254 DUMP_PREFIX_ADDRESS, 16, 4, buf, *buflen, 1); in ahash_update_no_ctx()
1273 int buflen = state->current_buf ? state->buflen_1 : state->buflen_0; in ahash_finup_no_ctx() local
1311 state->buf_dma, buflen, in ahash_finup_no_ctx()
1317 append_seq_in_ptr(desc, edesc->sec4_sg_dma, buflen + in ahash_finup_no_ctx()