Searched refs:ndx (Results 1 - 23 of 23) sorted by relevance

/fuchsia/zircon/system/ulib/fzl/include/lib/fzl/
H A Dpinned-vmo.h45 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 Dusb-audio-units.h58 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 Dusb-audio-path.cpp31 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 Dusb-audio-stream-interface.h82 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 Dusb-audio-path.h71 void AddUnit(uint32_t ndx, fbl::RefPtr<AudioUnit> unit);
H A Dusb-audio-stream-interface.cpp345 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 Dusb-audio-units.cpp98 "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 Dpcie_upstream_node.cpp91 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 Dpcie_bus_driver.cpp223 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 Dbase_test_environments.h33 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 Dsequence_container_test_environment.h45 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 Dassociative_container_test_environment.h468 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 Dpcie_upstream_node.h38 fbl::RefPtr<PcieDevice> GetDownstream(uint ndx) { return bus_drv_.GetDownstream(*this, ndx); } argument
H A Dpcie_bus_driver.h155 fbl::RefPtr<PcieDevice> GetDownstream(PcieUpstreamNode& upstream, uint ndx);
/fuchsia/zircon/system/ulib/fbl/include/fbl/
H A Dintrusive_hash_table.h129 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 Dtftp-file-test.cpp50 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 Dusb-cdc-ecm.c472 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 Dcodec-commands.h184 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 Dintel_hda_codec.h49 zx_status_t ReadAmpState(uint16_t nid, bool is_input, uint8_t ndx,
H A Dintel_hda_codec.cpp779 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 Dintrusive_wavl_tree_tests.cpp320 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 Daudio.cpp93 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 Dethernet.c1050 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);

Completed in 126 milliseconds