Lines Matching refs:leader
489 struct scatterlist *leader; in sg_classify() local
493 leader = sg; in sg_classify()
495 leader_length = leader->length; in sg_classify()
496 next_paddr = SG_ENT_PHYS_ADDRESS(leader) + leader_length; in sg_classify()
517 leader->dma_address = leader_flag; in sg_classify()
518 leader->dma_length = leader_length; in sg_classify()
519 leader = sg; in sg_classify()
527 leader->dma_address = leader_flag; in sg_classify()
528 leader->dma_length = leader_length; in sg_classify()
535 sg_fill(struct device *dev, struct scatterlist *leader, struct scatterlist *end, in sg_fill() argument
539 unsigned long paddr = SG_ENT_PHYS_ADDRESS(leader); in sg_fill()
540 long size = leader->dma_length; in sg_fill()
548 if (leader->dma_address == 0 in sg_fill()
562 if (leader->dma_address == 0 && dac_allowed) { in sg_fill()
580 if (leader->dma_address == 0) in sg_fill()
585 sg_classify(dev, leader, end, 0); in sg_fill()
586 return sg_fill(dev, leader, end, out, arena, max_dma, dac_allowed); in sg_fill()
598 sg = leader; in sg_fill()
620 last_sg - leader, SG_ENT_VIRT_ADDRESS(last_sg), in sg_fill()
624 last_sg - leader, SG_ENT_VIRT_ADDRESS(last_sg), in sg_fill()