Lines Matching defs:root
63 ForeachRoot([](const fbl::RefPtr<PcieRoot>& root, void* ctx) -> bool {
64 root->UnplugDownstream();
76 zx_status_t PcieBusDriver::AddRoot(fbl::RefPtr<PcieRoot>&& root) {
77 if (root == nullptr)
89 if (!roots_.insert_or_find(fbl::move(root))) {
90 TRACEF("Failed to add PCIe root for bus %u, root already exists!\n",
91 root->managed_bus_id());
107 // Scan each root looking for for devices and other bridges.
108 ForeachRoot([](const fbl::RefPtr<PcieRoot>& root, void* ctx) -> bool {
109 root->ScanDownstream();
114 ForeachRoot([](const fbl::RefPtr<PcieRoot>& root, void* ctx) -> bool {
115 root->AllocateDownstreamBars();
155 // Scan each root looking for for devices and other bridges.
156 ForeachRoot([](const fbl::RefPtr<PcieRoot>& root, void* ctx) -> bool {
157 root->ScanDownstream();
178 ForeachRoot([](const fbl::RefPtr<PcieRoot>& root, void* ctx) -> bool {
179 root->AllocateDownstreamBars();
294 // Hold a reference to each root while we do this, but do not hold the
296 // when it comes to advancing the iterator as the root we are holding the
313 // If the root is still in the collection, simply advance the iterator.
314 // Otherwise, find the root (if any) with the next higher managed bus
341 ForeachRoot([](const fbl::RefPtr<PcieRoot>& root, void* ctx_) -> bool {
344 root, 0, ctx->dev_cbk, ctx->dev_ctx);