• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/crypto/

Lines Matching refs:req_ctx

1583 	struct talitos_ahash_req_ctx *req_ctx = ahash_request_ctx(areq);
1596 talitos_sg_unmap(dev, edesc, req_ctx->psrc, NULL);
1611 struct talitos_ahash_req_ctx *req_ctx = ahash_request_ctx(areq);
1613 if (!req_ctx->last && req_ctx->to_hash_later) {
1615 memcpy(req_ctx->buf, req_ctx->bufnext, req_ctx->to_hash_later);
1616 req_ctx->nbuf = req_ctx->to_hash_later;
1633 struct talitos_ahash_req_ctx *req_ctx = ahash_request_ctx(areq);
1642 if (!req_ctx->first || req_ctx->swinit) {
1644 req_ctx->hw_context_size,
1645 (char *)req_ctx->hw_context, 0,
1647 req_ctx->swinit = 0;
1651 req_ctx->first = 0;
1667 sg_count = talitos_map_sg(dev, req_ctx->psrc,
1673 to_talitos_ptr(&desc->ptr[3], sg_dma_address(req_ctx->psrc));
1675 sg_count = sg_to_link_tbl(req_ctx->psrc, sg_count, length,
1687 sg_dma_address(req_ctx->psrc));
1695 if (req_ctx->last)
1701 req_ctx->hw_context_size,
1702 req_ctx->hw_context, 0, DMA_FROM_DEVICE);
1720 struct talitos_ahash_req_ctx *req_ctx = ahash_request_ctx(areq);
1722 return talitos_edesc_alloc(ctx->dev, req_ctx->psrc, NULL, 1,
1729 struct talitos_ahash_req_ctx *req_ctx = ahash_request_ctx(areq);
1732 req_ctx->nbuf = 0;
1733 req_ctx->first = 1; /* first indicates h/w must init its context */
1734 req_ctx->swinit = 0; /* assume h/w init of context */
1735 req_ctx->hw_context_size =
1749 struct talitos_ahash_req_ctx *req_ctx = ahash_request_ctx(areq);
1752 req_ctx->swinit = 1;/* prevent h/w initting context with sha256 values*/
1754 req_ctx->hw_context[0] = cpu_to_be32(SHA224_H0);
1755 req_ctx->hw_context[1] = cpu_to_be32(SHA224_H1);
1756 req_ctx->hw_context[2] = cpu_to_be32(SHA224_H2);
1757 req_ctx->hw_context[3] = cpu_to_be32(SHA224_H3);
1758 req_ctx->hw_context[4] = cpu_to_be32(SHA224_H4);
1759 req_ctx->hw_context[5] = cpu_to_be32(SHA224_H5);
1760 req_ctx->hw_context[6] = cpu_to_be32(SHA224_H6);
1761 req_ctx->hw_context[7] = cpu_to_be32(SHA224_H7);
1764 req_ctx->hw_context[8] = 0;
1765 req_ctx->hw_context[9] = 0;
1774 struct talitos_ahash_req_ctx *req_ctx = ahash_request_ctx(areq);
1783 if (!req_ctx->last && (nbytes + req_ctx->nbuf <= blocksize)) {
1787 req_ctx->buf + req_ctx->nbuf, nbytes);
1788 req_ctx->nbuf += nbytes;
1793 nbytes_to_hash = nbytes + req_ctx->nbuf;
1796 if (req_ctx->last)
1808 if (req_ctx->nbuf) {
1809 nsg = (req_ctx->nbuf < nbytes_to_hash) ? 2 : 1;
1810 sg_init_table(req_ctx->bufsl, nsg);
1811 sg_set_buf(req_ctx->bufsl, req_ctx->buf, req_ctx->nbuf);
1813 scatterwalk_sg_chain(req_ctx->bufsl, 2, areq->src);
1814 req_ctx->psrc = req_ctx->bufsl;
1816 req_ctx->psrc = areq->src;
1821 req_ctx->bufnext,
1825 req_ctx->to_hash_later = to_hash_later;
1835 if (req_ctx->last)
1841 if (req_ctx->first && !req_ctx->swinit)
1847 if (ctx->keylen && (req_ctx->first || req_ctx->last))
1856 struct talitos_ahash_req_ctx *req_ctx = ahash_request_ctx(areq);
1858 req_ctx->last = 0;
1865 struct talitos_ahash_req_ctx *req_ctx = ahash_request_ctx(areq);
1867 req_ctx->last = 1;
1874 struct talitos_ahash_req_ctx *req_ctx = ahash_request_ctx(areq);
1876 req_ctx->last = 1;
1883 struct talitos_ahash_req_ctx *req_ctx = ahash_request_ctx(areq);
1887 req_ctx->last = 1;