Searched refs:sgd (Results 1 – 5 of 5) sorted by relevance
/drivers/scsi/ |
D | mvumi.h | 183 #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/crypto/rockchip/ |
D | rk3288_crypto_skcipher.c | 21 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/snic/ |
D | snic_disc.c | 62 struct snic_sg_desc *sgd = NULL; in snic_report_tgt_init() local 69 sgd = req_to_sgl(req); in snic_report_tgt_init() 70 sgd[0].addr = cpu_to_le64(rsp_buf_pa); in snic_report_tgt_init() 71 sgd[0].len = cpu_to_le32(len); in snic_report_tgt_init() 72 sgd[0]._resvd = 0; in snic_report_tgt_init() 73 req->u.rpt_tgts.sg_addr = cpu_to_le64((ulong)sgd); in snic_report_tgt_init()
|
D | snic_io.c | 384 struct snic_sg_desc *sgd; in snic_pci_unmap_rsp_buf() local 386 sgd = req_to_sgl(rqi_to_req(rqi)); in snic_pci_unmap_rsp_buf() 387 SNIC_BUG_ON(sgd[0].addr == 0); in snic_pci_unmap_rsp_buf() 389 le64_to_cpu(sgd[0].addr), in snic_pci_unmap_rsp_buf() 390 le32_to_cpu(sgd[0].len), in snic_pci_unmap_rsp_buf()
|
D | snic_scsi.c | 169 struct snic_sg_desc *sgd; in snic_queue_icmnd_req() local 178 sgd = (struct snic_sg_desc *) req_to_sgl(rqi->req); in snic_queue_icmnd_req() 181 sgd->addr = cpu_to_le64(sg_dma_address(sg)); in snic_queue_icmnd_req() 182 sgd->len = cpu_to_le32(sg_dma_len(sg)); in snic_queue_icmnd_req() 183 sgd->_resvd = 0; in snic_queue_icmnd_req() 184 sgd++; in snic_queue_icmnd_req()
|