Lines Matching refs:fbl
14 #include <fbl/algorithm.h>
15 #include <fbl/alloc_checker.h>
16 #include <fbl/unique_ptr.h>
152 fbl::AllocChecker ac;
153 fbl::unique_ptr<SkipBlockDevice> device(new (&ac) SkipBlockDevice(parent, nand_proto,
169 zx_status_t SkipBlockDevice::GetBadBlockList(fbl::Array<uint32_t>* bad_blocks) {
180 fbl::unique_ptr<uint32_t[]> bad_block_list(new uint32_t[bad_block_count]);
188 *bad_blocks = fbl::move(fbl::Array<uint32_t>(bad_block_list.release(), bad_block_count));
195 fbl::AutoLock al(&lock_);
203 fbl::AllocChecker ac;
204 fbl::Array<uint8_t> nand_op(new (&ac) uint8_t[parent_op_size_], parent_op_size_);
208 nand_op_ = fbl::move(nand_op);
211 fbl::Array<uint32_t> bad_blocks;
217 block_map_ = fbl::move(LogicalToPhysicalMap(copy_count_, nand_info_.num_blocks,
218 fbl::move(bad_blocks)));
227 logical_block_count = fbl::min(logical_block_count, block_map_.LogicalBlockCount(copy));
346 fbl::Array<uint32_t> bad_blocks;
349 block_map_ = fbl::move(LogicalToPhysicalMap(copy_count_, nand_info_.num_blocks,
350 fbl::move(bad_blocks)));
364 fbl::AutoLock al(&lock_);
367 logical_block_count = fbl::min(logical_block_count, block_map_.LogicalBlockCount(copy));
374 fbl::AutoLock lock(&lock_);