Lines Matching defs:ndx
223 uint ndx = (dev.dev_id() * PCIE_MAX_FUNCTIONS_PER_DEVICE) + dev.func_id();
224 DEBUG_ASSERT(ndx < fbl::count_of(upstream.downstream_));
225 DEBUG_ASSERT(upstream.downstream_[ndx] == nullptr);
226 upstream.downstream_[ndx] = fbl::WrapRefPtr(&dev);
233 uint ndx = (dev.dev_id() * PCIE_MAX_FUNCTIONS_PER_DEVICE) + dev.func_id();
234 DEBUG_ASSERT(ndx < fbl::count_of(dev.upstream_->downstream_));
235 DEBUG_ASSERT(&dev == dev.upstream_->downstream_[ndx].get());
238 dev.upstream_->downstream_[ndx] = nullptr;
251 fbl::RefPtr<PcieDevice> PcieBusDriver::GetDownstream(PcieUpstreamNode& upstream, uint ndx) {
252 DEBUG_ASSERT(ndx <= fbl::count_of(upstream.downstream_));
254 auto ret = upstream.downstream_[ndx];