Lines Matching refs:buflen

140 	int buflen;  member
180 u8 *buf, int buflen) in buf_map_to_sec4_sg() argument
184 buf_dma = dma_map_single(jrdev, buf, buflen, DMA_TO_DEVICE); in buf_map_to_sec4_sg()
185 dma_to_sec4_sg_one(sec4_sg, buf_dma, buflen, 0); in buf_map_to_sec4_sg()
205 u8 *buf, dma_addr_t buf_dma, int buflen, in try_buf_map_to_sec4_sg() argument
210 if (buflen) in try_buf_map_to_sec4_sg()
211 buf_dma = buf_map_to_sec4_sg(jrdev, sec4_sg, buf, buflen); in try_buf_map_to_sec4_sg()
787 int *buflen = state->current_buf ? &state->buflen_1 : &state->buflen_0; in ahash_update_ctx() local
791 int in_len = *buflen + req->nbytes, to_hash; in ahash_update_ctx()
806 sec4_sg_src_index = 1 + (*buflen ? 1 : 0); in ahash_update_ctx()
835 *buflen, last_buflen); in ahash_update_ctx()
842 to_hash - *buflen, in ahash_update_ctx()
884 scatterwalk_map_and_copy(buf + *buflen, req->src, 0, in ahash_update_ctx()
886 *buflen = *next_buflen; in ahash_update_ctx()
891 DUMP_PREFIX_ADDRESS, 16, 4, buf, *buflen, 1); in ahash_update_ctx()
909 int buflen = state->current_buf ? state->buflen_1 : state->buflen_0; in ahash_final_ctx() local
920 sec4_sg_src_index = 1 + (buflen ? 1 : 0); in ahash_final_ctx()
946 buf, state->buf_dma, buflen, in ahash_final_ctx()
957 append_seq_in_ptr(desc, edesc->sec4_sg_dma, ctx->ctx_len + buflen, in ahash_final_ctx()
992 int buflen = state->current_buf ? state->buflen_1 : state->buflen_0; in ahash_finup_ctx() local
1005 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()
1157 int buflen = state->current_buf ? state->buflen_1 : state->buflen_0; in ahash_final_no_ctx() local
1177 state->buf_dma = dma_map_single(jrdev, buf, buflen, DMA_TO_DEVICE); in ahash_final_no_ctx()
1183 append_seq_in_ptr(desc, state->buf_dma, buflen, 0); in ahash_final_no_ctx()
1219 int *buflen = state->current_buf ? &state->buflen_1 : &state->buflen_0; in ahash_update_no_ctx() local
1223 int in_len = *buflen + req->nbytes, to_hash; in ahash_update_no_ctx()
1259 buf, *buflen); in ahash_update_no_ctx()
1264 to_hash - *buflen, in ahash_update_no_ctx()
1307 scatterwalk_map_and_copy(buf + *buflen, req->src, 0, in ahash_update_no_ctx()
1309 *buflen = *next_buflen; in ahash_update_no_ctx()
1314 DUMP_PREFIX_ADDRESS, 16, 4, buf, *buflen, 1); in ahash_update_no_ctx()
1333 int buflen = state->current_buf ? state->buflen_1 : state->buflen_0; in ahash_finup_no_ctx() local
1367 state->buf_dma, buflen, in ahash_finup_no_ctx()
1379 append_seq_in_ptr(desc, edesc->sec4_sg_dma, buflen + in ahash_finup_no_ctx()
1580 export->buflen = len; in ahash_export()
1594 memcpy(state->buf_0, export->buf, export->buflen); in ahash_import()
1596 state->buflen_0 = export->buflen; in ahash_import()