Home
last modified time | relevance | path

Searched refs:sgd (Results 1 – 5 of 5) sorted by relevance

/drivers/crypto/rockchip/
Drk3288_crypto_skcipher.c21 struct scatterlist *sgs, *sgd; in rk_cipher_need_fallback() local
29 sgd = req->dst; in rk_cipher_need_fallback()
30 while (sgs && sgd) { in rk_cipher_need_fallback()
34 if (!IS_ALIGNED(sgd->offset, sizeof(u32))) { in rk_cipher_need_fallback()
41 dtodo = min(len, sgd->length); in rk_cipher_need_fallback()
50 sgd = sg_next(sgd); in rk_cipher_need_fallback()
303 struct scatterlist *sgd, unsigned int todo) in crypto_dma_start() argument
307 CRYPTO_WRITE(dev, RK_CRYPTO_BTDMAS, sg_dma_address(sgd)); in crypto_dma_start()
318 struct scatterlist *sgs, *sgd; in rk_cipher_run() local
338 sgd = areq->dst; in rk_cipher_run()
[all …]
/drivers/scsi/
Dmvumi.h183 #define GET_COMPACT_SGD_SIZE(sgd) \ argument
184 ((((struct mvumi_compact_sgl *)(sgd))->flags) & 0x3FFFFFL)
186 #define SET_COMPACT_SGD_SIZE(sgd, sz) do { \ argument
187 (((struct mvumi_compact_sgl *)(sgd))->flags) &= ~0x3FFFFFL; \
188 (((struct mvumi_compact_sgl *)(sgd))->flags) |= (sz); \
190 #define sgd_getsz(_mhba, sgd, sz) do { \ argument
192 (sz) = GET_COMPACT_SGD_SIZE(sgd); \
194 (sz) = (sgd)->size; \
197 #define sgd_setsz(_mhba, sgd, sz) do { \ argument
199 SET_COMPACT_SGD_SIZE(sgd, sz); \
[all …]
/drivers/scsi/snic/
Dsnic_disc.c48 struct snic_sg_desc *sgd = NULL; in snic_report_tgt_init() local
55 sgd = req_to_sgl(req); in snic_report_tgt_init()
56 sgd[0].addr = cpu_to_le64(rsp_buf_pa); in snic_report_tgt_init()
57 sgd[0].len = cpu_to_le32(len); in snic_report_tgt_init()
58 sgd[0]._resvd = 0; in snic_report_tgt_init()
59 req->u.rpt_tgts.sg_addr = cpu_to_le64((ulong)sgd); in snic_report_tgt_init()
Dsnic_io.c370 struct snic_sg_desc *sgd; in snic_pci_unmap_rsp_buf() local
372 sgd = req_to_sgl(rqi_to_req(rqi)); in snic_pci_unmap_rsp_buf()
373 SNIC_BUG_ON(sgd[0].addr == 0); in snic_pci_unmap_rsp_buf()
375 le64_to_cpu(sgd[0].addr), in snic_pci_unmap_rsp_buf()
376 le32_to_cpu(sgd[0].len), in snic_pci_unmap_rsp_buf()
Dsnic_scsi.c155 struct snic_sg_desc *sgd; in snic_queue_icmnd_req() local
164 sgd = (struct snic_sg_desc *) req_to_sgl(rqi->req); in snic_queue_icmnd_req()
167 sgd->addr = cpu_to_le64(sg_dma_address(sg)); in snic_queue_icmnd_req()
168 sgd->len = cpu_to_le32(sg_dma_len(sg)); in snic_queue_icmnd_req()
169 sgd->_resvd = 0; in snic_queue_icmnd_req()
170 sgd++; in snic_queue_icmnd_req()