Lines Matching full:bar
76 * @bar: the BAR number corresponding to the register space
80 void pci_epf_free_space(struct pci_epf *epf, void *addr, enum pci_barno bar) in pci_epf_free_space() argument
87 dma_free_coherent(dev, epf->bar[bar].size, addr, in pci_epf_free_space()
88 epf->bar[bar].phys_addr); in pci_epf_free_space()
90 epf->bar[bar].phys_addr = 0; in pci_epf_free_space()
91 epf->bar[bar].addr = NULL; in pci_epf_free_space()
92 epf->bar[bar].size = 0; in pci_epf_free_space()
93 epf->bar[bar].barno = 0; in pci_epf_free_space()
94 epf->bar[bar].flags = 0; in pci_epf_free_space()
102 * @bar: the BAR number corresponding to the allocated register space
107 void *pci_epf_alloc_space(struct pci_epf *epf, size_t size, enum pci_barno bar, in pci_epf_alloc_space() argument
128 epf->bar[bar].phys_addr = phys_addr; in pci_epf_alloc_space()
129 epf->bar[bar].addr = space; in pci_epf_alloc_space()
130 epf->bar[bar].size = size; in pci_epf_alloc_space()
131 epf->bar[bar].barno = bar; in pci_epf_alloc_space()
132 epf->bar[bar].flags |= upper_32_bits(size) ? in pci_epf_alloc_space()