Lines Matching defs:weight
1266 /* PEs with a DMA weight of zero won't have a group */
1611 unsigned int *weight = (unsigned int *)data;
1613 /* This is quite simplistic. The "base" weight of a device
1622 *weight += 3;
1624 *weight += 15;
1626 *weight += 10;
1633 unsigned int weight = 0;
1635 /* SRIOV VF has same DMA32 weight as its PF */
1638 pnv_pci_ioda_dev_dma_weight(pe->parent_dev, &weight);
1639 return weight;
1644 pnv_pci_ioda_dev_dma_weight(pe->pdev, &weight);
1649 pnv_pci_ioda_dev_dma_weight(pdev, &weight);
1651 pci_walk_bus(pe->pbus, pnv_pci_ioda_dev_dma_weight, &weight);
1654 return weight;
1663 unsigned int weight, total_weight = 0;
1671 weight = pnv_pci_ioda_pe_dma_weight(pe);
1672 if (!weight)
1677 segs = (weight * phb->ioda.dma32_count) / total_weight;
1715 pe_info(pe, "DMA weight %d (%d), assigned (%d) %d DMA32 segments\n",
1716 weight, total_weight, base, segs);