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()
665 unsigned int chunksize = 0; /* length of hash carry + new data */ in handle_ahash_req() local
726 chunksize = nbytes_to_hash; in handle_ahash_req()
728 (chunksize > ctx->max_payload)) in handle_ahash_req()
729 chunksize = ctx->max_payload; in handle_ahash_req()
740 rem = chunksize % blocksize; /* remainder */ in handle_ahash_req()
743 chunksize -= rem; in handle_ahash_req()
744 if (chunksize == 0) { in handle_ahash_req()
765 new_data_len = chunksize - local_nbuf; in handle_ahash_req()
782 rctx->total_sent += chunksize; in handle_ahash_req()
789 chunksize, in handle_ahash_req()
802 atomic64_add(chunksize, &iproc_priv.bytes_out); in handle_ahash_req()
812 flow_log("chunk_start: %u chunk_size: %u\n", chunk_start, chunksize); in handle_ahash_req()
833 data_pad_len = spu->spu_gcm_ccm_pad_len(ctx->cipher.mode, chunksize); in handle_ahash_req()
1169 unsigned int chunksize, in spu_aead_tx_sg_create() argument
1211 datalen = chunksize; in spu_aead_tx_sg_create()
1212 if ((chunksize > ctx->digestsize) && incl_icv) in spu_aead_tx_sg_create()
1266 unsigned int chunksize; in handle_aead_req() local
1287 chunksize = rctx->total_todo; in handle_aead_req()
1289 flow_log("%s: chunksize %u\n", __func__, chunksize); in handle_aead_req()
1343 rctx->src_nents = spu_sg_count(rctx->src_sg, rctx->src_skip, chunksize); in handle_aead_req()
1344 rctx->dst_nents = spu_sg_count(rctx->dst_sg, rctx->dst_skip, chunksize); in handle_aead_req()
1351 rctx->total_sent = chunksize; in handle_aead_req()
1352 rctx->src_sent = chunksize; in handle_aead_req()
1371 chunksize); in handle_aead_req()
1389 chunksize - digestsize); in handle_aead_req()
1393 chunksize, rctx->is_encrypt, in handle_aead_req()
1406 aead_parms.assoc_size + chunksize - in handle_aead_req()
1411 aead_parms.assoc_size + chunksize); in handle_aead_req()
1425 atomic64_add(chunksize, &iproc_priv.bytes_out); in handle_aead_req()
1427 flow_log("%s()-sent chunksize:%u\n", __func__, chunksize); in handle_aead_req()
1435 &aead_parms, chunksize); in handle_aead_req()
1439 chunksize, aead_parms.aad_pad_len, in handle_aead_req()
1460 dump_sg(rctx->src_sg, rctx->src_skip, chunksize); in handle_aead_req()
1473 resp_len = chunksize; in handle_aead_req()
1512 assoc_nents, aead_parms.iv_len, chunksize, in handle_aead_req()