Lines Matching full:leader
471 -1 : Not leader, physically adjacent to previous.
472 -2 : Not leader, virtually adjacent to previous.
473 Write dma_length of each leader with the combined lengths of
484 struct scatterlist *leader; in sg_classify() local
488 leader = sg; in sg_classify()
490 leader_length = leader->length; in sg_classify()
491 next_paddr = SG_ENT_PHYS_ADDRESS(leader) + leader_length; in sg_classify()
512 leader->dma_address = leader_flag; in sg_classify()
513 leader->dma_length = leader_length; in sg_classify()
514 leader = sg; in sg_classify()
522 leader->dma_address = leader_flag; in sg_classify()
523 leader->dma_length = leader_length; in sg_classify()
526 /* Given a scatterlist leader, choose an allocation method and fill
530 sg_fill(struct device *dev, struct scatterlist *leader, struct scatterlist *end, in sg_fill() argument
534 unsigned long paddr = SG_ENT_PHYS_ADDRESS(leader); in sg_fill()
535 long size = leader->dma_length; in sg_fill()
543 if (leader->dma_address == 0 in sg_fill()
557 if (leader->dma_address == 0 && dac_allowed) { in sg_fill()
575 if (leader->dma_address == 0) in sg_fill()
580 sg_classify(dev, leader, end, 0); in sg_fill()
581 return sg_fill(dev, leader, end, out, arena, max_dma, dac_allowed); in sg_fill()
593 sg = leader; in sg_fill()
615 last_sg - leader, SG_ENT_VIRT_ADDRESS(last_sg), in sg_fill()
619 last_sg - leader, SG_ENT_VIRT_ADDRESS(last_sg), in sg_fill()