Lines Matching refs:sgd
21 struct scatterlist *sgs, *sgd;
29 sgd = req->dst;
30 while (sgs && sgd) {
34 if (!IS_ALIGNED(sgd->offset, sizeof(u32))) {
41 dtodo = min(len, sgd->length);
50 sgd = sg_next(sgd);
303 struct scatterlist *sgd, unsigned int todo)
307 CRYPTO_WRITE(dev, RK_CRYPTO_BTDMAS, sg_dma_address(sgd));
318 struct scatterlist *sgs, *sgd;
338 sgd = areq->dst;
340 while (sgs && sgd && len) {
343 sgd = sg_next(sgd);
351 if (sgs == sgd) {
363 err = dma_map_sg(ctx->dev->dev, sgd, 1, DMA_FROM_DEVICE);
382 crypto_dma_start(ctx->dev, sgs, sgd, todo / 4);
390 if (sgs == sgd) {
394 dma_unmap_sg(ctx->dev->dev, sgd, 1, DMA_FROM_DEVICE);
400 offset = sgd->length - ivsize;
401 scatterwalk_map_and_copy(iv, sgd, offset, ivsize, 0);
405 sgd = sg_next(sgd);
426 if (sgs == sgd) {
430 dma_unmap_sg(ctx->dev->dev, sgd, 1, DMA_FROM_DEVICE);