Lines Matching refs:bei
3102 static struct resource *pci_ea_get_resource(struct pci_dev *dev, u8 bei, in pci_ea_get_resource() argument
3105 if (bei <= PCI_EA_BEI_BAR5 && prop <= PCI_EA_P_IO) in pci_ea_get_resource()
3106 return &dev->resource[bei]; in pci_ea_get_resource()
3108 else if (bei >= PCI_EA_BEI_VF_BAR0 && bei <= PCI_EA_BEI_VF_BAR5 && in pci_ea_get_resource()
3111 bei - PCI_EA_BEI_VF_BAR0]; in pci_ea_get_resource()
3113 else if (bei == PCI_EA_BEI_ROM) in pci_ea_get_resource()
3126 u32 dw0, bei, base, max_offset; in pci_ea_read() local
3139 bei = (dw0 & PCI_EA_BEI) >> 4; in pci_ea_read()
3151 res = pci_ea_get_resource(dev, bei, prop); in pci_ea_read()
3153 pci_err(dev, "Unsupported EA entry BEI: %u\n", bei); in pci_ea_read()
3224 if (bei <= PCI_EA_BEI_BAR5) in pci_ea_read()
3226 bei, res, prop); in pci_ea_read()
3227 else if (bei == PCI_EA_BEI_ROM) in pci_ea_read()
3230 else if (bei >= PCI_EA_BEI_VF_BAR0 && bei <= PCI_EA_BEI_VF_BAR5) in pci_ea_read()
3232 bei - PCI_EA_BEI_VF_BAR0, res, prop); in pci_ea_read()
3235 bei, res, prop); in pci_ea_read()