Lines Matching refs:fbl
16 #include <fbl/algorithm.h>
17 #include <fbl/alloc_checker.h>
18 #include <fbl/auto_call.h>
19 #include <fbl/auto_lock.h>
20 #include <fbl/unique_ptr.h>
51 const size_t kNumIoBufs = fbl::round_up(kBacklog * 2, kFramesInBuf) / kFramesInBuf;
66 fbl::unique_ptr<virtio::EthernetDevice> eth(static_cast<virtio::EthernetDevice*>(ctx));
123 zx_status_t InitBuffers(const zx::bti& bti, fbl::unique_ptr<io_buffer_t[]>* out) {
125 fbl::AllocChecker ac;
126 fbl::unique_ptr<io_buffer_t[]> bufs(new (&ac) io_buffer_t[kNumIoBufs]);
140 *out = fbl::move(bufs);
144 void ReleaseBuffers(fbl::unique_ptr<io_buffer_t[]> bufs) {
184 EthernetDevice::EthernetDevice(zx_device_t* bus_device, zx::bti bti, fbl::unique_ptr<Backend> backend)
185 : Device(bus_device, fbl::move(bti), fbl::move(backend)), rx_(this), tx_(this), bufs_(nullptr),
200 fbl::AutoLock lock(&state_lock_);
233 auto cleanup = fbl::MakeAutoCall([this]() { Release(); });
294 fbl::AutoLock lock(&state_lock_);
300 ReleaseBuffers(fbl::move(bufs_));
308 fbl::AutoLock lock(&state_lock_);
354 fbl::AutoLock lock(&state_lock_);
369 fbl::AutoLock lock(&state_lock_);
380 fbl::AutoLock lock(&state_lock_);
389 fbl::AutoLock lock(&state_lock_);
409 fbl::AutoLock lock(&tx_lock_);