Lines Matching refs:sg
13 struct scatterlist *sg = sg_pp ? *sg_pp : NULL; in cxgbit_set_one_ppod() local
21 if (sg) { in cxgbit_set_one_ppod()
22 addr = sg_dma_address(sg); in cxgbit_set_one_ppod()
23 len = sg_dma_len(sg); in cxgbit_set_one_ppod()
27 if (sg) { in cxgbit_set_one_ppod()
30 if (offset == (len + sg->offset)) { in cxgbit_set_one_ppod()
32 sg = sg_next(sg); in cxgbit_set_one_ppod()
33 if (sg) { in cxgbit_set_one_ppod()
34 addr = sg_dma_address(sg); in cxgbit_set_one_ppod()
35 len = sg_dma_len(sg); in cxgbit_set_one_ppod()
48 *sg_pp = sg; in cxgbit_set_one_ppod()
54 if (sg) { in cxgbit_set_one_ppod()
55 sg = sg_next(sg); in cxgbit_set_one_ppod()
56 if (sg) in cxgbit_set_one_ppod()
57 addr = sg_dma_address(sg); in cxgbit_set_one_ppod()
60 ppod->addr[i] = sg ? cpu_to_be64(addr + offset) : 0ULL; in cxgbit_set_one_ppod()
133 struct scatterlist *sg = ttinfo->sgl; in cxgbit_ddp_set_map() local
144 &sg, &offset); in cxgbit_ddp_set_map()
152 static int cxgbit_ddp_sgl_check(struct scatterlist *sg, in cxgbit_ddp_sgl_check() argument
158 for (i = 0; i < nents; i++, sg = sg_next(sg)) { in cxgbit_ddp_sgl_check()
159 unsigned int len = sg->length + sg->offset; in cxgbit_ddp_sgl_check()
161 if ((sg->offset & 0x3) || (i && sg->offset) || in cxgbit_ddp_sgl_check()
269 put_page(sg_page(&ccmd->sg)); in cxgbit_unmap_cmd()