Lines Matching refs:nbytes
1167 void *priv, unsigned int nbytes) in hifn_setup_cmd_desc() argument
1192 buf_pos += hifn_setup_base_command(dev, buf_pos, nbytes, in hifn_setup_cmd_desc()
1193 nbytes, mask, dev->snum); in hifn_setup_cmd_desc()
1254 nbytes, nbytes, ctx->key, ctx->keysize, in hifn_setup_cmd_desc()
1373 unsigned int nbytes, void *priv) in hifn_setup_dma() argument
1380 n = nbytes; in hifn_setup_dma()
1393 n = nbytes; in hifn_setup_dma()
1415 hifn_setup_cmd_desc(dev, ctx, rctx, priv, nbytes); in hifn_setup_dma()
1463 unsigned int copy, drest = *drestp, nbytes = *nbytesp; in ablkcipher_add() local
1466 if (drest < size || size > nbytes) in ablkcipher_add()
1474 nbytes -= copy; in ablkcipher_add()
1477 __func__, copy, size, drest, nbytes); in ablkcipher_add()
1483 *nbytesp = nbytes; in ablkcipher_add()
1493 unsigned int nbytes = req->nbytes, offset, copy, diff; in hifn_cipher_walk() local
1498 while (nbytes) { in hifn_cipher_walk()
1505 __func__, dst->length, dst->offset, offset, nbytes); in hifn_cipher_walk()
1510 unsigned slen = min(dst->length - offset, nbytes); in hifn_cipher_walk()
1515 err = ablkcipher_add(&dlen, dst, slen, &nbytes); in hifn_cipher_walk()
1524 if (dlen < nbytes) { in hifn_cipher_walk()
1535 nbytes += diff; in hifn_cipher_walk()
1543 __func__, dlen, nbytes, slen, offset); in hifn_cipher_walk()
1551 copy += diff + nbytes; in hifn_cipher_walk()
1555 err = ablkcipher_add(&dlen, dst, nbytes, &nbytes); in hifn_cipher_walk()
1565 nbytes -= min(dst->length, nbytes); in hifn_cipher_walk()
1581 unsigned int nbytes = req->nbytes, idx = 0; in hifn_setup_session() local
1590 while (nbytes) { in hifn_setup_session()
1592 dlen = min(dst->length, nbytes); in hifn_setup_session()
1598 nbytes -= dlen; in hifn_setup_session()
1620 err = hifn_setup_dma(dev, ctx, rctx, req->src, req->dst, req->nbytes, req); in hifn_setup_session()
1724 unsigned int srest = *srestp, nbytes = *nbytesp, copy; in ablkcipher_get() local
1728 if (srest < size || size > nbytes) in ablkcipher_get()
1738 nbytes -= copy; in ablkcipher_get()
1745 __func__, copy, size, srest, nbytes); in ablkcipher_get()
1751 *nbytesp = nbytes; in ablkcipher_get()
1775 unsigned int nbytes = req->nbytes; in hifn_process_ready() local
1780 while (nbytes) { in hifn_process_ready()
1788 sg_page(dst), dst->length, nbytes); in hifn_process_ready()
1791 nbytes -= min(dst->length, nbytes); in hifn_process_ready()
1799 dst, nbytes, &nbytes); in hifn_process_ready()
2083 if (dev->started + DIV_ROUND_UP(req->nbytes, PAGE_SIZE) <= HIFN_QUEUE_LENGTH) in hifn_handle_req()