Lines Matching refs:chunksize
136 unsigned int chunksize, u32 stat_pad_len) in spu_skcipher_rx_sg_create() argument
161 rctx->dst_nents, chunksize); in spu_skcipher_rx_sg_create()
162 if (datalen < chunksize) { in spu_skcipher_rx_sg_create()
164 __func__, chunksize, datalen); in spu_skcipher_rx_sg_create()
199 u8 tx_frag_num, unsigned int chunksize, u32 pad_len) in spu_skcipher_tx_sg_create() argument
225 rctx->src_nents, chunksize); in spu_skcipher_tx_sg_create()
226 if (unlikely(datalen < chunksize)) { in spu_skcipher_tx_sg_create()
308 unsigned int chunksize; /* Num bytes of request to submit */ in handle_skcipher_req() local
339 chunksize = ctx->max_payload; in handle_skcipher_req()
341 chunksize = remaining; in handle_skcipher_req()
343 rctx->src_sent += chunksize; in handle_skcipher_req()
347 rctx->src_nents = spu_sg_count(rctx->src_sg, rctx->src_skip, chunksize); in handle_skcipher_req()
348 rctx->dst_nents = spu_sg_count(rctx->dst_sg, rctx->dst_skip, chunksize); in handle_skcipher_req()
385 add_to_ctr(rctx->msg_buf.iv_ctr, chunksize >> 4); in handle_skcipher_req()
395 rctx->src_sent, chunk_start, remaining, chunksize); in handle_skcipher_req()
403 &cipher_parms, chunksize); in handle_skcipher_req()
405 atomic64_add(chunksize, &iproc_priv.bytes_out); in handle_skcipher_req()
407 stat_pad_len = spu->spu_wordalign_padlen(chunksize); in handle_skcipher_req()
421 dump_sg(rctx->src_sg, rctx->src_skip, chunksize); in handle_skcipher_req()
439 err = spu_skcipher_rx_sg_create(mssg, rctx, rx_frag_num, chunksize, in handle_skcipher_req()
453 err = spu_skcipher_tx_sg_create(mssg, rctx, tx_frag_num, chunksize, in handle_skcipher_req()
667 unsigned int chunksize = 0; /* length of hash carry + new data */ in handle_ahash_req() local
728 chunksize = nbytes_to_hash; in handle_ahash_req()
730 (chunksize > ctx->max_payload)) in handle_ahash_req()
731 chunksize = ctx->max_payload; in handle_ahash_req()
742 rem = chunksize % blocksize; /* remainder */ in handle_ahash_req()
745 chunksize -= rem; in handle_ahash_req()
746 if (chunksize == 0) { in handle_ahash_req()
767 new_data_len = chunksize - local_nbuf; in handle_ahash_req()
784 rctx->total_sent += chunksize; in handle_ahash_req()
791 chunksize, in handle_ahash_req()
804 atomic64_add(chunksize, &iproc_priv.bytes_out); in handle_ahash_req()
814 flow_log("chunk_start: %u chunk_size: %u\n", chunk_start, chunksize); in handle_ahash_req()
835 data_pad_len = spu->spu_gcm_ccm_pad_len(ctx->cipher.mode, chunksize); in handle_ahash_req()
1172 unsigned int chunksize, in spu_aead_tx_sg_create() argument
1214 datalen = chunksize; in spu_aead_tx_sg_create()
1215 if ((chunksize > ctx->digestsize) && incl_icv) in spu_aead_tx_sg_create()
1269 unsigned int chunksize; in handle_aead_req() local
1290 chunksize = rctx->total_todo; in handle_aead_req()
1292 flow_log("%s: chunksize %u\n", __func__, chunksize); in handle_aead_req()
1346 rctx->src_nents = spu_sg_count(rctx->src_sg, rctx->src_skip, chunksize); in handle_aead_req()
1347 rctx->dst_nents = spu_sg_count(rctx->dst_sg, rctx->dst_skip, chunksize); in handle_aead_req()
1354 rctx->total_sent = chunksize; in handle_aead_req()
1355 rctx->src_sent = chunksize; in handle_aead_req()
1374 chunksize); in handle_aead_req()
1392 chunksize - digestsize); in handle_aead_req()
1396 chunksize, rctx->is_encrypt, in handle_aead_req()
1409 aead_parms.assoc_size + chunksize - in handle_aead_req()
1414 aead_parms.assoc_size + chunksize); in handle_aead_req()
1428 atomic64_add(chunksize, &iproc_priv.bytes_out); in handle_aead_req()
1430 flow_log("%s()-sent chunksize:%u\n", __func__, chunksize); in handle_aead_req()
1438 &aead_parms, chunksize); in handle_aead_req()
1442 chunksize, aead_parms.aad_pad_len, in handle_aead_req()
1463 dump_sg(rctx->src_sg, rctx->src_skip, chunksize); in handle_aead_req()
1476 resp_len = chunksize; in handle_aead_req()
1515 assoc_nents, aead_parms.iv_len, chunksize, in handle_aead_req()