Home
last modified time | relevance | path

Searched refs:block (Results 1 – 25 of 236) sorted by relevance

12345678910

/system/libufdt/
Dufdt_node_pool.c73 struct ufdt_node_pool_block_header *block = pool->first_block; in ufdt_node_pool_destruct() local
74 while (block != NULL) { in ufdt_node_pool_destruct()
75 if (block->alloc_entry_cnt != 0) is_leak = 1; in ufdt_node_pool_destruct()
77 struct ufdt_node_pool_block_header *next_block = block->next_block; in ufdt_node_pool_destruct()
78 dto_free(block); in ufdt_node_pool_destruct()
79 block = next_block; in ufdt_node_pool_destruct()
95 struct ufdt_node_pool_block_header *block = in _ufdt_node_pool_create_block() local
99 struct ufdt_node_pool_entry_header **next_ptr = &block->first_free_entry; in _ufdt_node_pool_create_block()
111 block->next_block = NULL; in _ufdt_node_pool_create_block()
112 block->alloc_entry_cnt = 0; in _ufdt_node_pool_create_block()
[all …]
/system/tools/hidl/host_utils/
DFormatter.cpp60 Formatter& Formatter::block(const std::function<void(void)>& func) { in block() function in android::Formatter
78 Formatter& Formatter::sIf(const std::string& cond, const std::function<void(void)>& block) { in sIf() argument
80 return this->block(block); in sIf()
83 Formatter& Formatter::sElseIf(const std::string& cond, const std::function<void(void)>& block) { in sElseIf() argument
85 return this->block(block); in sElseIf()
88 Formatter& Formatter::sElse(const std::function<void(void)>& block) { in sElse() argument
90 return this->block(block); in sElse()
93 Formatter& Formatter::sFor(const std::string& stmts, const std::function<void(void)>& block) { in sFor() argument
95 return this->block(block); in sFor()
98 Formatter& Formatter::sTry(const std::function<void(void)>& block) { in sTry() argument
[all …]
/system/nfc/src/nfc/tags/
Drw_mfc.cc91 static tNFC_STATUS rw_mfc_readBlock(int block);
104 static tNFC_STATUS rw_mfc_formatBlock(int block);
107 static tNFC_STATUS rw_mfc_writeBlock(int block);
140 p_mfc->last_block_accessed.block = 1; in RW_MfcFormatNDef()
141 p_mfc->next_block.block = 1; in RW_MfcFormatNDef()
143 status = rw_mfc_formatBlock(p_mfc->next_block.block); in RW_MfcFormatNDef()
162 static tNFC_STATUS rw_mfc_formatBlock(int block) { in rw_mfc_formatBlock() argument
166 int sectorlength = block / 4; in rw_mfc_formatBlock()
169 DLOG_IF(INFO, nfc_debug_enabled) << __func__ << ": block : " << block; in rw_mfc_formatBlock()
171 if (block > 128) { in rw_mfc_formatBlock()
[all …]
Drw_t1t.cc812 tNFC_STATUS RW_T1tRead(uint8_t block, uint8_t byte) { in RW_T1tRead() argument
823 RW_T1T_BLD_ADD((addr), (block), (byte)); in RW_T1tRead()
841 tNFC_STATUS RW_T1tWriteErase(uint8_t block, uint8_t byte, uint8_t new_byte) { in RW_T1tWriteErase() argument
852 (block != T1T_CC_BLOCK) && (byte != T1T_CC_RWA_OFFSET)) { in RW_T1tWriteErase()
856 if ((block >= T1T_STATIC_BLOCKS) || (byte >= T1T_BLOCK_SIZE)) { in RW_T1tWriteErase()
858 block, byte); in RW_T1tWriteErase()
861 if ((block == T1T_UID_BLOCK) || (block == T1T_RES_BLOCK)) { in RW_T1tWriteErase()
863 "RW_T1tWriteErase - Cannot write to Locked block: %u", block); in RW_T1tWriteErase()
867 RW_T1T_BLD_ADD((addr), (block), (byte)); in RW_T1tWriteErase()
871 if (block < T1T_BLOCKS_PER_SEGMENT) { in RW_T1tWriteErase()
[all …]
Drw_t2t_ndef.cc54 static void rw_t2t_update_cb(uint16_t block, uint8_t* p_write_block,
66 static tNFC_STATUS rw_t2t_write_ndef_next_block(uint16_t block,
69 static tNFC_STATUS rw_t2t_read_ndef_next_block(uint16_t block);
71 static bool rw_t2t_is_read_before_write_block(uint16_t block,
321 uint16_t block; in rw_t2t_handle_lock_read_rsp() local
359 block = (uint16_t)(lock_offset / T2T_BLOCK_LEN); in rw_t2t_handle_lock_read_rsp()
360 block -= block % T2T_READ_BLOCKS; in rw_t2t_handle_lock_read_rsp()
362 if (NFC_STATUS_OK != rw_t2t_read((uint16_t)block)) { in rw_t2t_handle_lock_read_rsp()
795 uint16_t block; in rw_t2t_read_locks() local
815 block = (uint16_t)(offset / T2T_BLOCK_LEN); in rw_t2t_read_locks()
[all …]
/system/core/adb/daemon/
Dusb.cpp467 void PrepareReadBlock(IoBlock* block, uint64_t id) { in PrepareReadBlock()
468 block->pending = false; in PrepareReadBlock()
469 block->payload = std::make_shared<Block>(kUsbReadSize); in PrepareReadBlock()
470 block->control.aio_data = static_cast<uint64_t>(TransferId::read(id)); in PrepareReadBlock()
471 block->control.aio_buf = reinterpret_cast<uintptr_t>(block->payload->data()); in PrepareReadBlock()
472 block->control.aio_nbytes = block->payload->size(); in PrepareReadBlock()
476 IoBlock block; in CreateReadBlock() local
477 PrepareReadBlock(&block, id); in CreateReadBlock()
478 block.control.aio_rw_flags = 0; in CreateReadBlock()
479 block.control.aio_lio_opcode = IOCB_CMD_PREAD; in CreateReadBlock()
[all …]
/system/core/libsparse/
Dbacked_block.cpp27 unsigned int block; member
68 return bb->block; in backed_block_block()
167 if (!bb->next || bb->next->block > start->block) { in backed_block_list_move()
185 assert(a->block < b->block); in merge_bb()
194 if (a->block + block_len != b->block) { in merge_bb()
238 if (bbl->data_blocks->block > new_bb->block) { in queue_bb()
247 if (bbl->last_used && new_bb->block > bbl->last_used->block) in queue_bb()
253 for (; bb->next && bb->next->block < new_bb->block; bb = bb->next) in queue_bb()
274 unsigned int block) { in backed_block_add_fill() argument
280 bb->block = block; in backed_block_add_fill()
[all …]
Dsparse.cpp53 int sparse_file_add_data(struct sparse_file* s, void* data, unsigned int len, unsigned int block) { in sparse_file_add_data() argument
54 return backed_block_add_data(s->backed_block_list, data, len, block); in sparse_file_add_data()
58 unsigned int block) { in sparse_file_add_fill() argument
59 return backed_block_add_fill(s->backed_block_list, fill_val, len, block); in sparse_file_add_fill()
63 unsigned int len, unsigned int block) { in sparse_file_add_file() argument
64 return backed_block_add_file(s->backed_block_list, filename, file_offset, len, block); in sparse_file_add_file()
68 unsigned int block) { in sparse_file_add_fd() argument
69 return backed_block_add_fd(s->backed_block_list, fd, file_offset, len, block); in sparse_file_add_fd()
176 unsigned int block; member
178 …int (*write)(void* priv, const void* data, size_t len, unsigned int block, unsigned int nr_blocks);
[all …]
/system/nfc/src/adaptation/
Dlibmain.cc33 std::string getFilenameForBlock(const unsigned block) { in getFilenameForBlock() argument
35 return StringPrintf("%s/%s%u", nfc_storage_path.c_str(), bin.c_str(), block); in getFilenameForBlock()
84 extern void nfa_nv_co_read(uint8_t* pBuffer, uint16_t nbytes, uint8_t block) { in nfa_nv_co_read() argument
85 std::string filename = getFilenameForBlock(block); in nfa_nv_co_read()
98 nfa_nv_ci_read(actualReadData, NFA_NV_CO_OK, block); in nfa_nv_co_read()
101 nfa_nv_ci_read(0, NFA_NV_CO_FAIL, block); in nfa_nv_co_read()
106 nfa_nv_ci_read(0, NFA_NV_CO_FAIL, block); in nfa_nv_co_read()
130 uint8_t block) { in nfa_nv_co_write() argument
131 std::string filename = getFilenameForBlock(block); in nfa_nv_co_write()
203 for (auto block : verify_blocks) { in verify_stack_non_volatile_store() local
[all …]
/system/netd/libnetdutils/
DMemBlockTest.cpp49 void checkArbitraryMemBlock(const MemBlock& block, size_t expectedSize) { in checkArbitraryMemBlock() argument
50 Slice slice = block.get(); in checkArbitraryMemBlock()
93 MemBlock block(makeArbitraryMemBlock(DNS_PACKET_SIZE)); in TEST() local
94 ASSERT_NO_FATAL_FAILURE(checkArbitraryMemBlock(block, DNS_PACKET_SIZE)); in TEST()
98 MemBlock block = makeArbitraryMemBlock(DNS_PACKET_SIZE); in TEST() local
99 ASSERT_NO_FATAL_FAILURE(checkArbitraryMemBlock(block, DNS_PACKET_SIZE)); in TEST()
105 MemBlock block; in TEST() local
106 EXPECT_TRUE(block.get().empty()); in TEST()
107 EXPECT_EQ(nullptr, block.get().base()); in TEST()
116 block = std::move(block2); in TEST()
[all …]
/system/core/adb/
Dtypes_test.cpp27 auto block = std::make_unique<IOVector::block_type>(); in create_block() local
28 block->resize(len); in create_block()
29 memset(&(*block)[0], value, len); in create_block()
30 return block; in create_block()
34 static std::unique_ptr<IOVector::block_type> copy_block(T&& block) { in copy_block() argument
36 copy->assign(block->begin(), block->end()); in copy_block()
48 auto block = create_block('x', 100); in TEST() local
50 bc.append(copy_block(block)); in TEST()
53 ASSERT_EQ(*block, coalesced); in TEST()
Dtypes.h147 explicit IOVector(std::unique_ptr<block_type> block) { in IOVector()
148 append(std::move(block)); in IOVector()
218 void append(std::unique_ptr<const block_type> block) { in append()
219 if (block->size() == 0) { in append()
224 chain_length_ += block->size(); in append()
225 chain_.emplace_back(std::move(block)); in append()
228 void append(block_type&& block) { append(std::make_unique<block_type>(std::move(block))); } in append()
247 void append_shared(std::shared_ptr<const block_type> block) { in append_shared()
248 CHECK_NE(0ULL, block->size()); in append_shared()
250 chain_length_ += block->size(); in append_shared()
[all …]
/system/tools/hidl/host_utils/include/hidl-util/
DFormatter.h66 Formatter& block(const std::function<void(void)>& func);
79 Formatter& sIf(const std::string& cond, const std::function<void(void)>& block);
80 Formatter& sElseIf(const std::string& cond, const std::function<void(void)>& block);
81 Formatter& sElse(const std::function<void(void)>& block);
86 Formatter& sFor(const std::string& stmts, const std::function<void(void)>& block);
96 Formatter& sTry(const std::function<void(void)>& block);
97 Formatter& sCatch(const std::string& exception, const std::function<void(void)>& block);
98 Formatter& sFinally(const std::function<void(void)>& block);
103 Formatter& sWhile(const std::string& cond, const std::function<void(void)>& block);
/system/keymaster/key_blob_utils/
Docb.c150 typedef __m128i block; typedef
159 static inline block swap_if_le(block b) { in swap_if_le()
160 block a = _mm_shuffle_epi32(b, _MM_SHUFFLE(0, 1, 2, 3)); in swap_if_le()
166 static inline block gen_offset(uint64_t KtopStr[3], unsigned bot) { in gen_offset()
167 block hi = _mm_load_si128((__m128i*)(KtopStr + 0)); /* hi = B A */ in gen_offset()
168 block lo = _mm_loadu_si128((__m128i*)(KtopStr + 1)); /* lo = C B */ in gen_offset()
178 static inline block double_block(block bl) { in double_block()
188 typedef vector unsigned block; typedef
194 block gen_offset(uint64_t KtopStr[3], unsigned bot) { in gen_offset()
197 block bl; in gen_offset()
[all …]
/system/sepolicy/prebuilts/api/28.0/public/
Dupdate_verifier.te5 # Allow update_verifier to reach block devices in /dev/block.
12 # Read /sys/block to find all the DM directories like (/sys/block/dm-X).
15 # Read /sys/block/dm-X/dm/name (which is a symlink to
16 # /sys/devices/virtual/block/dm-X/dm/name) to identify the mapping between
/system/libhidl/libhidlcache/
Dmapping.cpp29 using android::hidl::memory::block::V1_0::MemoryBlock;
36 sp<IMemory> mapMemory(const ::android::hidl::memory::block::V1_0::MemoryBlock& block) { in mapMemory() argument
38 return c->map(block); in mapMemory()
/system/update_engine/payload_generator/
Dextent_utils.h33 void AppendBlockToExtents(std::vector<Extent>* extents, uint64_t block);
44 for (uint64_t block = extent.start_block(); in ExpandExtents() local
45 block < (extent.start_block() + extent.num_blocks()); in ExpandExtents()
46 block++) { in ExpandExtents()
47 ret.push_back(block); in ExpandExtents()
/system/sepolicy/prebuilts/api/29.0/public/
Dupdate_verifier.te5 # Allow update_verifier to reach block devices in /dev/block.
12 # Read /sys/block to find all the DM directories like (/sys/block/dm-X).
15 # Read /sys/block/dm-X/dm/name (which is a symlink to
16 # /sys/devices/virtual/block/dm-X/dm/name) to identify the mapping between
Dfsck_untrusted.te1 # Any fsck program run on untrusted block devices
11 # Run fsck on vold block devices
20 # block devices. With that information, it runs stat() on each block
24 # Allow stat access to all block devices so that fsck can compare
32 # Untrusted fsck should never be run on block devices holding sensitive data
/system/sepolicy/public/
Dupdate_verifier.te5 # Allow update_verifier to reach block devices in /dev/block.
12 # Read /sys/block to find all the DM directories like (/sys/block/dm-X).
15 # Read /sys/block/dm-X/dm/name (which is a symlink to
16 # /sys/devices/virtual/block/dm-X/dm/name) to identify the mapping between
/system/keymaster/km_openssl/
Diso18033kdf.cpp44 for (size_t block = 0; block < num_blocks; block++) { in GenerateKey() local
57 !Uint32ToBigEndianByteArray(block + start_counter_, counter.get()) || in GenerateKey()
71 size_t block_start = digest_size_ * block; in GenerateKey()
/system/core/libsparse/include/sparse/
Dsparse.h79 void *data, unsigned int len, unsigned int block);
97 uint32_t fill_val, unsigned int len, unsigned int block);
121 unsigned int block);
147 int fd, int64_t file_offset, unsigned int len, unsigned int block);
227 int (*write)(void *priv, const void *data, size_t len, unsigned int block,
/system/tools/hidl/
DCompoundType.cpp238 out.block([&] { in emitSafeUnionReaderWriterForInterfaces()
257 out.block([&] { in emitSafeUnionReaderWriterForInterfaces()
266 out.block([&] { in emitSafeUnionReaderWriterForInterfaces()
302 out.block([&] { in emitSafeUnionReaderWriterForInterfaces()
338 out.block([&] { in emitReaderWriter()
597 out.block([&] { in emitSafeUnionTypeDeclarations()
655 out.block([&] { in emitSafeUnionTypeDeclarations()
832 out.block([&] { in emitPackageTypeHeaderDefinitions()
851 out.block([&] { in emitPackageTypeHeaderDefinitions()
872 out.block([&] { in emitPackageTypeHeaderDefinitions()
[all …]
/system/core/rootdir/
Dinit-debug.rc2 write /sys/block/mmcblk0/max_read_speed ${persist.mmc.max_read_speed}
5 write /sys/block/mmcblk0/max_write_speed ${persist.mmc.max_write_speed}
8 write /sys/block/mmcblk0/cache_size ${persist.mmc.cache_size}
/system/sepolicy/prebuilts/api/27.0/public/
Dfsck_untrusted.te1 # Any fsck program run on untrusted block devices
11 # Run fsck on vold block devices
20 # block devices. With that information, it runs stat() on each block
24 # Allow stat access to all block devices so that fsck can compare
32 # Untrusted fsck should never be run on block devices holding sensitive data

12345678910