Lines Matching refs:sg

83 	struct scatterlist	*sg; /* sg list head for this update*/  member
105 struct scatterlist *sg = sg_list; in sg_count() local
111 while (!sg_is_last(sg)) { in sg_count()
113 sg = sg_next(sg); in sg_count()
125 struct scatterlist *sg = NULL; in sg_get() local
128 for_each_sg(sg_list, sg, nents, i) in sg_get()
132 return sg; in sg_get()
187 struct scatterlist *sg; in bfin_crypto_crc_config_dma() local
196 dma_map_sg(crc->dev, ctx->sg, ctx->sg_nents, DMA_TO_DEVICE); in bfin_crypto_crc_config_dma()
198 for_each_sg(ctx->sg, sg, ctx->sg_nents, j) { in bfin_crypto_crc_config_dma()
199 dma_addr = sg_dma_address(sg); in bfin_crypto_crc_config_dma()
201 if (sg_is_last(sg)) in bfin_crypto_crc_config_dma()
202 dma_count = sg_dma_len(sg) - ctx->bufnext_len; in bfin_crypto_crc_config_dma()
204 dma_count = sg_dma_len(sg); in bfin_crypto_crc_config_dma()
212 sg_virt(sg), in bfin_crypto_crc_config_dma()
265 (u8*)sg_virt(sg) + (dma_count << 2), in bfin_crypto_crc_config_dma()
304 struct scatterlist *sg; in bfin_crypto_crc_handle_queue() local
333 ctx->sg = NULL; in bfin_crypto_crc_handle_queue()
375 ctx->sg = ctx->bufsl; in bfin_crypto_crc_handle_queue()
377 ctx->sg = req->src; in bfin_crypto_crc_handle_queue()
380 nsg = ctx->sg_nents = sg_count(ctx->sg); in bfin_crypto_crc_handle_queue()
390 sg = sg_get(ctx->sg, nsg, i); in bfin_crypto_crc_handle_queue()
391 j = min(nextlen, sg_dma_len(sg)); in bfin_crypto_crc_handle_queue()
393 sg_virt(sg) + sg_dma_len(sg) - j, j); in bfin_crypto_crc_handle_queue()
394 if (j == sg_dma_len(sg)) in bfin_crypto_crc_handle_queue()