Lines Matching refs:sg
16 struct scatterlist *sg = sg_pp ? *sg_pp : NULL; in cxgbit_set_one_ppod() local
24 if (sg) { in cxgbit_set_one_ppod()
25 addr = sg_dma_address(sg); in cxgbit_set_one_ppod()
26 len = sg_dma_len(sg); in cxgbit_set_one_ppod()
30 if (sg) { in cxgbit_set_one_ppod()
33 if (offset == (len + sg->offset)) { in cxgbit_set_one_ppod()
35 sg = sg_next(sg); in cxgbit_set_one_ppod()
36 if (sg) { in cxgbit_set_one_ppod()
37 addr = sg_dma_address(sg); in cxgbit_set_one_ppod()
38 len = sg_dma_len(sg); in cxgbit_set_one_ppod()
51 *sg_pp = sg; in cxgbit_set_one_ppod()
57 if (sg) { in cxgbit_set_one_ppod()
58 sg = sg_next(sg); in cxgbit_set_one_ppod()
59 if (sg) in cxgbit_set_one_ppod()
60 addr = sg_dma_address(sg); in cxgbit_set_one_ppod()
63 ppod->addr[i] = sg ? cpu_to_be64(addr + offset) : 0ULL; in cxgbit_set_one_ppod()
136 struct scatterlist *sg = ttinfo->sgl; in cxgbit_ddp_set_map() local
147 &sg, &offset); in cxgbit_ddp_set_map()
155 static int cxgbit_ddp_sgl_check(struct scatterlist *sg, in cxgbit_ddp_sgl_check() argument
161 for (i = 0; i < nents; i++, sg = sg_next(sg)) { in cxgbit_ddp_sgl_check()
162 unsigned int len = sg->length + sg->offset; in cxgbit_ddp_sgl_check()
164 if ((sg->offset & 0x3) || (i && sg->offset) || in cxgbit_ddp_sgl_check()
283 put_page(sg_page(&ccmd->sg)); in cxgbit_release_cmd()