Lines Matching refs:sg_ptr

216 	struct otx2_cpt_sglist_component *sg_ptr;
237 sg_ptr = (struct otx2_cpt_sglist_component *)buffer;
239 sg_ptr->len0 = cpu_to_be16(list[i * SG_COMPS_MAX + 0].size);
240 sg_ptr->len1 = cpu_to_be16(list[i * SG_COMPS_MAX + 1].size);
241 sg_ptr->len2 = cpu_to_be16(list[i * SG_COMPS_MAX + 2].size);
242 sg_ptr->len3 = cpu_to_be16(list[i * SG_COMPS_MAX + 3].size);
243 sg_ptr->ptr0 = cpu_to_be64(list[i * SG_COMPS_MAX + 0].dma_addr);
244 sg_ptr->ptr1 = cpu_to_be64(list[i * SG_COMPS_MAX + 1].dma_addr);
245 sg_ptr->ptr2 = cpu_to_be64(list[i * SG_COMPS_MAX + 2].dma_addr);
246 sg_ptr->ptr3 = cpu_to_be64(list[i * SG_COMPS_MAX + 3].dma_addr);
247 sg_ptr++;
253 sg_ptr->len2 = cpu_to_be16(list[i * SG_COMPS_MAX + 2].size);
254 sg_ptr->ptr2 = cpu_to_be64(list[i * SG_COMPS_MAX + 2].dma_addr);
257 sg_ptr->len1 = cpu_to_be16(list[i * SG_COMPS_MAX + 1].size);
258 sg_ptr->ptr1 = cpu_to_be64(list[i * SG_COMPS_MAX + 1].dma_addr);
261 sg_ptr->len0 = cpu_to_be16(list[i * SG_COMPS_MAX + 0].size);
262 sg_ptr->ptr0 = cpu_to_be64(list[i * SG_COMPS_MAX + 0].dma_addr);
285 struct cn10kb_cpt_sglist_component *sg_ptr;
306 sg_ptr = (struct cn10kb_cpt_sglist_component *)buffer;
308 sg_ptr->len0 = list[i * SGV2_COMPS_MAX + 0].size;
309 sg_ptr->len1 = list[i * SGV2_COMPS_MAX + 1].size;
310 sg_ptr->len2 = list[i * SGV2_COMPS_MAX + 2].size;
311 sg_ptr->ptr0 = list[i * SGV2_COMPS_MAX + 0].dma_addr;
312 sg_ptr->ptr1 = list[i * SGV2_COMPS_MAX + 1].dma_addr;
313 sg_ptr->ptr2 = list[i * SGV2_COMPS_MAX + 2].dma_addr;
314 sg_ptr->valid_segs = SGV2_COMPS_MAX;
315 sg_ptr++;
319 sg_ptr->valid_segs = components;
322 sg_ptr->len1 = list[i * SGV2_COMPS_MAX + 1].size;
323 sg_ptr->ptr1 = list[i * SGV2_COMPS_MAX + 1].dma_addr;
326 sg_ptr->len0 = list[i * SGV2_COMPS_MAX + 0].size;
327 sg_ptr->ptr0 = list[i * SGV2_COMPS_MAX + 0].dma_addr;