/fuchsia/zircon/system/ulib/fzl/include/lib/fzl/ |
H A D | pinned-vmo.h | 45 const Region& region(uint32_t ndx) const { 46 ZX_DEBUG_ASSERT(ndx < region_count_); 48 return regions_[ndx];
|
/fuchsia/zircon/system/dev/audio/usb-audio/ |
H A D | usb-audio-units.h | 58 virtual uint32_t source_id(uint32_t ndx) const = 0; 136 uint32_t source_id(uint32_t ndx) const final { return kInvalidID; } 161 uint32_t source_id(uint32_t ndx) const final { 162 return (ndx == 0) ? output_desc()->bSourceID : kInvalidID; 187 uint32_t source_id(uint32_t ndx) const final { 188 return (ndx < source_count()) ? mixer_desc()->baSourceID[ndx] : kInvalidID; 227 uint32_t source_id(uint32_t ndx) const final { 228 return (ndx < source_count()) ? selector_desc()->baSourceID[ndx] [all...] |
H A D | usb-audio-path.cpp | 31 void AudioPath::AddUnit(uint32_t ndx, fbl::RefPtr<AudioUnit> unit) { argument 32 ZX_DEBUG_ASSERT(ndx < unit_count_); 34 units_[ndx] = fbl::move(unit); 51 GLOBAL_LOG(ERROR, "Empty unit slot %s (ndx %u)\n", __PRETTY_FUNCTION__, i);
|
H A D | usb-audio-stream-interface.h | 82 zx_status_t ActivateFormat(size_t ndx, uint32_t frames_per_second); 157 // Fetch discrete frame rate #ndx. Valid *only* after initilaize has 158 // been successfully called, and *only* if ndx < frame_rate_cnt() 159 uint32_t frame_rate(uint8_t ndx) const { 160 ZX_DEBUG_ASSERT(ndx < frame_rate_cnt()); 161 return UnpackFrameRate(fmt_desc_->tSamFreq[ndx]);
|
H A D | usb-audio-path.h | 71 void AddUnit(uint32_t ndx, fbl::RefPtr<AudioUnit> unit);
|
H A D | usb-audio-stream-interface.cpp | 345 zx_status_t UsbAudioStreamInterface::ActivateFormat(size_t ndx, uint32_t frames_per_second) { argument 346 if (ndx >= format_map_.size()) { 354 const auto& f = format_map_[ndx]; 359 "when configuring format ndx %zu (status %d)\n", 360 iid(), f.alt_id_, f.ep_addr_, ndx, status);
|
H A D | usb-audio-units.cpp | 98 "code 0x%02x val 0x%04hx, ndx 0x%04x [bytes expected %u, got %zu] (status %d)\n", 201 uint8_t ndx = 0; local 207 ndx = static_cast<uint8_t>(i + 1); 212 if (!ndx) { 217 return CtrlReq(proto, USB_AUDIO_SET_CUR, 0, &ndx);
|
/fuchsia/zircon/kernel/dev/pcie/ |
H A D | pcie_upstream_node.cpp | 91 uint ndx = (dev_id * PCIE_MAX_FUNCTIONS_PER_DEVICE) + func_id; local 92 DEBUG_ASSERT(ndx < fbl::count_of(downstream_)); 94 auto downstream_device = GetDownstream(ndx); 129 __UNUSED uint ndx = (dev_id * PCIE_MAX_FUNCTIONS_PER_DEVICE) + func_id; 130 DEBUG_ASSERT(ndx < fbl::count_of(downstream_)); 131 DEBUG_ASSERT(downstream_[ndx] == nullptr);
|
H A D | pcie_bus_driver.cpp | 223 uint ndx = (dev.dev_id() * PCIE_MAX_FUNCTIONS_PER_DEVICE) + dev.func_id(); local 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 < [all...] |
/fuchsia/zircon/system/utest/fbl/include/fbl/tests/intrusive_containers/ |
H A D | base_test_environments.h | 33 PtrType CreateTrackedObject(size_t ndx, size_t value, bool ref_held) { argument 34 if ((ndx >= OBJ_COUNT) ||objects_[ndx]) 41 objects_[ndx] = PtrTraits::GetRaw(ret); 71 void ReleaseObject(size_t ndx) { argument 72 if (HoldingObject(ndx)) { 73 delete this->objects_[ndx]; 74 this->objects_[ndx] = nullptr; 79 bool HoldingObject(size_t ndx) const { 80 return ((ndx < OBJ_COUN 83 CreateTrackedObject(size_t ndx, size_t value, bool hold_ref = false) argument 96 ReleaseObject(size_t ndx) argument 105 CreateTrackedObject(size_t ndx, size_t value, bool hold_ref = false) argument 118 CreateTrackedObject(size_t ndx, size_t value, bool hold_ref = false) argument 127 ReleaseObject(size_t ndx) argument 287 DoErase(TargetType&& target, size_t ndx, size_t remaining, bool check_ndx = true) argument 415 size_t ndx = OBJ_COUNT - i - 1; local 1224 ReleaseObject(size_t ndx) argument [all...] |
H A D | sequence_container_test_environment.h | 45 size_t ndx = OBJ_COUNT - i - 1; variable 64 PtrType new_object = this->CreateTrackedObject(ndx, ndx, hold_ref); 66 EXPECT_EQ(new_object->raw_ptr(), objects()[ndx], ""); 461 size_t ndx = START_INSERT_COUNT - i - 1; local 462 ASSERT_TRUE(DoInsert(container().begin(), ndx), ""); 472 size_t ndx = START_INSERT_COUNT + i; local 473 ASSERT_TRUE(DoInsert(iter, ndx), ""); 525 size_t ndx = START_INSERT_COUNT - i - 1; local 527 ASSERT_TRUE(DoInsert(*objects()[insert_before_ndx], ndx), ""); 534 size_t ndx = START_INSERT_COUNT + i; local 1112 ReleaseObject(size_t ndx) argument [all...] |
H A D | associative_container_test_environment.h | 468 void ReleaseObject(size_t ndx) { Sp::ReleaseObject(ndx); } argument 469 bool HoldingObject(size_t ndx) const { return Sp::HoldingObject(ndx); }
|
/fuchsia/zircon/kernel/dev/pcie/include/dev/ |
H A D | pcie_upstream_node.h | 38 fbl::RefPtr<PcieDevice> GetDownstream(uint ndx) { return bus_drv_.GetDownstream(*this, ndx); } argument
|
H A D | pcie_bus_driver.h | 155 fbl::RefPtr<PcieDevice> GetDownstream(PcieUpstreamNode& upstream, uint ndx);
|
/fuchsia/zircon/system/ulib/fbl/include/fbl/ |
H A D | intrusive_hash_table.h | 129 HashType ndx = GetHash(KeyTraits::GetKey(obj)); local 130 return iterator(this, ndx, buckets_[ndx].make_iterator(obj)); 168 HashType ndx = GetHash(key); local 169 auto& bucket = buckets_[ndx]; 173 if (iter) *iter = iterator(this, ndx, bucket_iter); 179 if (iter) *iter = iterator(this, ndx, bucket.begin()); 197 HashType ndx = GetHash(key); local 198 auto& bucket = buckets_[ndx]; 216 HashType ndx local 225 HashType ndx = GetHash(key); local 461 GetBucket(HashType ndx) argument [all...] |
/fuchsia/zircon/system/ulib/tftp/ |
H A D | tftp-file-test.cpp | 50 size_t ndx; local 52 for (ndx = 0; ndx < tp->filesz / sizeof(int); ndx++) { 53 src_as_ints[ndx] = rand(); 54 dst_as_ints[ndx] = rand(); 56 for (ndx = (tp->filesz / sizeof(int)) * sizeof(int); 57 ndx < tp->filesz; 58 ndx++) { 59 src_file[ndx] [all...] |
/fuchsia/zircon/system/dev/ethernet/usb-cdc-ecm/ |
H A D | usb-cdc-ecm.c | 472 size_t ndx; local 473 for (ndx = 0; ndx < ETH_MAC_SIZE * 4; ndx++) { 474 if (ndx % 2 == 1) { 475 if (str[ndx] != 0) { 482 if (str[ndx] >= '0' && str[ndx] <= '9') { 483 value = str[ndx] - '0'; 484 } else if (str[ndx] > [all...] |
/fuchsia/zircon/system/ulib/intel-hda/include/intel-hda/utils/ |
H A D | codec-commands.h | 184 static inline constexpr CodecVerb GET_AMPLIFIER_GAIN_MUTE(bool input, bool right, uint8_t ndx = 0) { 187 (ndx & 0xF))); 194 uint8_t ndx = 0, 202 (static_cast<uint16_t>(ndx & 0xF) << 8) | 208 uint8_t ndx = 0, 211 return SET_AMPLIFIER_GAIN_MUTE(mute, gain_steps, true, false, ndx, set_left, set_right); 216 uint8_t ndx = 0, 219 return SET_AMPLIFIER_GAIN_MUTE(mute, gain_steps, false, true, ndx, set_left, set_right);
|
/fuchsia/zircon/system/uapp/ihda/ |
H A D | intel_hda_codec.h | 49 zx_status_t ReadAmpState(uint16_t nid, bool is_input, uint8_t ndx,
|
H A D | intel_hda_codec.cpp | 779 printf("Failed to get connection list entry at ndx %zu for nid %hu (res %d)\n", 806 printf("Invalid connection widget.conn_list_ entry [nid, ndx] = [%hu, %zu]. " 845 zx_status_t IntelHDACodec::ReadAmpState(uint16_t nid, bool is_input, uint8_t ndx, argument 854 res = DoCodecCmd(nid, GET_AMPLIFIER_GAIN_MUTE(is_input, (i > 0), ndx), &resp); 860 ndx, res);
|
/fuchsia/zircon/system/utest/fbl/ |
H A D | intrusive_wavl_tree_tests.cpp | 320 size_t ndx = static_cast<size_t>(rng.GetNext()) % i; local 321 if (ndx != i) 322 objects[i].SwapEraseDeckPtr(objects[ndx]);
|
/fuchsia/zircon/system/uapp/audio/ |
H A D | audio.cpp | 93 void dump_format_range(size_t ndx, const audio_stream_format_range_t& range) { argument 94 printf("[%2zu] Sample Format :", ndx);
|
/fuchsia/zircon/system/dev/ethernet/ethernet/ |
H A D | ethernet.c | 1050 for (size_t ndx = 0; ndx < FIFO_DEPTH; ndx++) { 1051 edev->all_tx_bufs[ndx].edev = edev; 1052 list_add_tail(&edev->free_tx_bufs, &edev->all_tx_bufs[ndx].netbuf.node);
|