Lines Matching full:bar
105 * @brief Get the BAR at a specific BAR index
108 * @param bar_index 0-based BAR index
109 * @param bar Pointer to struct pcie_bar
111 * @return true if the BAR was found and is valid, false otherwise
115 struct pcie_bar *bar, in pcie_get_bar() argument
153 /* IO/memory decode should be disabled before sizing/update BAR. */ in pcie_get_bar()
201 &bar->phys_addr)) { in pcie_get_bar()
205 bar->phys_addr = PCIE_CONF_BAR_ADDR(phys_addr); in pcie_get_bar()
207 bar->size = size & ~(size-1); in pcie_get_bar()
217 * @brief Probe the nth BAR assigned to an endpoint.
223 * will return the lowest-numbered BAR on the endpoint.
227 * @param bar Pointer to struct pcie_bar
229 * @return true if the BAR was found and is valid, false otherwise
233 struct pcie_bar *bar, in pcie_probe_bar() argument
251 return pcie_get_bar(bdf, reg - PCIE_CONF_BAR0, bar, io); in pcie_probe_bar()