Home
last modified time | relevance | path

Searched refs:count_sg (Results 1 – 2 of 2) sorted by relevance

/drivers/scsi/
Da100u2w.c847 int i, count_sg; in inia100_build_scb() local
867 count_sg = scsi_dma_map(cmd); in inia100_build_scb()
868 if (count_sg < 0) in inia100_build_scb()
869 return count_sg; in inia100_build_scb()
870 BUG_ON(count_sg > TOTAL_SG_ENTRY); in inia100_build_scb()
873 if (count_sg) { in inia100_build_scb()
874 scb->sg_len = cpu_to_le32((u32) (count_sg * 8)); in inia100_build_scb()
875 scsi_for_each_sg(cmd, sg, count_sg, i) { in inia100_build_scb()
/drivers/crypto/
Dixp4xx_crypto.c753 static int count_sg(struct scatterlist *sg, int nbytes) in count_sg() function
895 nents = count_sg(req->dst, nbytes); in ablk_perform()
912 nents = count_sg(req->src, nbytes); in ablk_perform()
1049 nents = count_sg(req->assoc, req->assoclen); in aead_perform()
1078 nents = count_sg(req->src, cryptlen + authsize); in aead_perform()