Lines Matching refs:entry
231 eth_fifo_entry_t entry = {
237 status = rx_.write_one(entry);
245 auto entry = fbl::unique_ptr<FifoEntry>(new FifoEntry);
246 entry->e.offset = idx * bufsize_;
247 entry->e.length = bufsize_;
248 entry->e.flags = 0;
249 entry->e.cookie = reinterpret_cast<uint8_t*>(mapped_) + entry->e.offset;
250 tx_available_.push_front(fbl::move(entry));
319 eth_fifo_entry_t* entry = nullptr;
321 entry = &entry_ptr->e;
324 return entry;
327 void ReturnTxBuffer(eth_fifo_entry_t* entry) {
329 [entry](const FifoEntry& tx_entry) { return tx_entry.e.cookie == entry->cookie; });
782 // Grab an available TX fifo entry
783 auto entry = client.GetTxBuffer();
784 ASSERT_TRUE(entry != nullptr);
787 uint8_t* buf = static_cast<uint8_t*>(entry->cookie);
791 entry->length = 32;
794 ASSERT_EQ(ZX_OK, client.tx_fifo()->write_one(*entry));
798 // Now the TX completion entry should be available to read from the TX fifo
805 // Check the flags on the returned entry
809 // Verify the bytes from the rest of the entry match what we wrote
810 auto expected_entry = reinterpret_cast<uint8_t*>(entry);
848 eth_fifo_entry_t entry;
849 EXPECT_EQ(ZX_OK, client.rx_fifo()->read_one(&entry));
852 auto return_buf = client.GetRxBuffer(entry.offset);
853 EXPECT_BYTES_EQ(buf, return_buf, entry.length, "");
859 entry.length = 2048;
860 EXPECT_EQ(ZX_OK, client.rx_fifo()->write_one(entry));