Lines Matching refs:bei
3237 static struct resource *pci_ea_get_resource(struct pci_dev *dev, u8 bei, in pci_ea_get_resource() argument
3240 if (bei <= PCI_EA_BEI_BAR5 && prop <= PCI_EA_P_IO) in pci_ea_get_resource()
3241 return &dev->resource[bei]; in pci_ea_get_resource()
3243 else if (bei >= PCI_EA_BEI_VF_BAR0 && bei <= PCI_EA_BEI_VF_BAR5 && in pci_ea_get_resource()
3246 bei - PCI_EA_BEI_VF_BAR0]; in pci_ea_get_resource()
3248 else if (bei == PCI_EA_BEI_ROM) in pci_ea_get_resource()
3261 u32 dw0, bei, base, max_offset; in pci_ea_read() local
3274 bei = (dw0 & PCI_EA_BEI) >> 4; in pci_ea_read()
3286 res = pci_ea_get_resource(dev, bei, prop); in pci_ea_read()
3288 pci_err(dev, "Unsupported EA entry BEI: %u\n", bei); in pci_ea_read()
3359 if (bei <= PCI_EA_BEI_BAR5) in pci_ea_read()
3361 bei, res, prop); in pci_ea_read()
3362 else if (bei == PCI_EA_BEI_ROM) in pci_ea_read()
3365 else if (bei >= PCI_EA_BEI_VF_BAR0 && bei <= PCI_EA_BEI_VF_BAR5) in pci_ea_read()
3367 bei - PCI_EA_BEI_VF_BAR0, res, prop); in pci_ea_read()
3370 bei, res, prop); in pci_ea_read()