Lines Matching refs:nbytes
1165 void *priv, unsigned int nbytes) in hifn_setup_cmd_desc() argument
1190 buf_pos += hifn_setup_base_command(dev, buf_pos, nbytes, in hifn_setup_cmd_desc()
1191 nbytes, mask, dev->snum); in hifn_setup_cmd_desc()
1252 nbytes, nbytes, ctx->key, ctx->keysize, in hifn_setup_cmd_desc()
1371 unsigned int nbytes, void *priv) in hifn_setup_dma() argument
1378 n = nbytes; in hifn_setup_dma()
1391 n = nbytes; in hifn_setup_dma()
1413 hifn_setup_cmd_desc(dev, ctx, rctx, priv, nbytes); in hifn_setup_dma()
1461 unsigned int copy, drest = *drestp, nbytes = *nbytesp; in ablkcipher_add() local
1464 if (drest < size || size > nbytes) in ablkcipher_add()
1472 nbytes -= copy; in ablkcipher_add()
1475 __func__, copy, size, drest, nbytes); in ablkcipher_add()
1481 *nbytesp = nbytes; in ablkcipher_add()
1491 unsigned int nbytes = req->nbytes, offset, copy, diff; in hifn_cipher_walk() local
1496 while (nbytes) { in hifn_cipher_walk()
1503 __func__, dst->length, dst->offset, offset, nbytes); in hifn_cipher_walk()
1508 unsigned slen = min(dst->length - offset, nbytes); in hifn_cipher_walk()
1513 err = ablkcipher_add(&dlen, dst, slen, &nbytes); in hifn_cipher_walk()
1522 if (dlen < nbytes) { in hifn_cipher_walk()
1533 nbytes += diff; in hifn_cipher_walk()
1541 __func__, dlen, nbytes, slen, offset); in hifn_cipher_walk()
1549 copy += diff + nbytes; in hifn_cipher_walk()
1553 err = ablkcipher_add(&dlen, dst, nbytes, &nbytes); in hifn_cipher_walk()
1563 nbytes -= min(dst->length, nbytes); in hifn_cipher_walk()
1579 unsigned int nbytes = req->nbytes, idx = 0; in hifn_setup_session() local
1588 while (nbytes) { in hifn_setup_session()
1590 dlen = min(dst->length, nbytes); in hifn_setup_session()
1596 nbytes -= dlen; in hifn_setup_session()
1618 err = hifn_setup_dma(dev, ctx, rctx, req->src, req->dst, req->nbytes, req); in hifn_setup_session()
1722 unsigned int srest = *srestp, nbytes = *nbytesp, copy; in ablkcipher_get() local
1726 if (srest < size || size > nbytes) in ablkcipher_get()
1736 nbytes -= copy; in ablkcipher_get()
1743 __func__, copy, size, srest, nbytes); in ablkcipher_get()
1749 *nbytesp = nbytes; in ablkcipher_get()
1773 unsigned int nbytes = req->nbytes; in hifn_process_ready() local
1778 while (nbytes) { in hifn_process_ready()
1786 sg_page(dst), dst->length, nbytes); in hifn_process_ready()
1789 nbytes -= min(dst->length, nbytes); in hifn_process_ready()
1797 dst, nbytes, &nbytes); in hifn_process_ready()
2081 if (dev->started + DIV_ROUND_UP(req->nbytes, PAGE_SIZE) <= HIFN_QUEUE_LENGTH) in hifn_handle_req()