Home
last modified time | relevance | path

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

12345678910>>...12

/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.cpp63 Formatter& Formatter::block(const std::function<void(void)>& func) { in block() function in android::Formatter
81 Formatter& Formatter::sIf(const std::string& cond, const std::function<void(void)>& block) { in sIf() argument
83 return this->block(block); in sIf()
86 Formatter& Formatter::sElseIf(const std::string& cond, const std::function<void(void)>& block) { in sElseIf() argument
88 return this->block(block); in sElseIf()
91 Formatter& Formatter::sElse(const std::function<void(void)>& block) { in sElse() argument
93 return this->block(block); in sElse()
96 Formatter& Formatter::sFor(const std::string& stmts, const std::function<void(void)>& block) { in sFor() argument
98 return this->block(block); in sFor()
101 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.cpp488 void PrepareReadBlock(IoReadBlock* block, uint64_t id) { in PrepareReadBlock()
489 block->pending = false; in PrepareReadBlock()
490 if (block->payload.capacity() >= kUsbReadSize) { in PrepareReadBlock()
491 block->payload.resize(kUsbReadSize); in PrepareReadBlock()
493 block->payload = Block(kUsbReadSize); in PrepareReadBlock()
495 block->control.aio_data = static_cast<uint64_t>(TransferId::read(id)); in PrepareReadBlock()
496 block->control.aio_buf = reinterpret_cast<uintptr_t>(block->payload.data()); in PrepareReadBlock()
497 block->control.aio_nbytes = block->payload.size(); in PrepareReadBlock()
501 IoReadBlock block; in CreateReadBlock() local
502 PrepareReadBlock(&block, id); 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()
188 unsigned int block; member
190 …int (*write)(void* priv, const void* data, size_t len, unsigned int block, unsigned int nr_blocks);
[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/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()
102 nfa_nv_ci_read(actualReadData, NFA_NV_CO_OK, block); in nfa_nv_co_read()
105 nfa_nv_ci_read(0, NFA_NV_CO_FAIL, block); in nfa_nv_co_read()
110 nfa_nv_ci_read(0, NFA_NV_CO_FAIL, block); in nfa_nv_co_read()
134 uint8_t block) { in nfa_nv_co_write() argument
135 std::string filename = getFilenameForBlock(block); in nfa_nv_co_write()
226 for (auto block : verify_blocks) { in verify_stack_non_volatile_store() local
[all …]
/system/tools/hidl/host_utils/include/hidl-util/
DFormatter.h32 void group(const std::function<void(void)>& block);
104 Formatter& block(const std::function<void(void)>& func);
117 Formatter& sIf(const std::string& cond, const std::function<void(void)>& block);
118 Formatter& sElseIf(const std::string& cond, const std::function<void(void)>& block);
119 Formatter& sElse(const std::function<void(void)>& block);
124 Formatter& sFor(const std::string& stmts, const std::function<void(void)>& block);
134 Formatter& sTry(const std::function<void(void)>& block);
135 Formatter& sCatch(const std::string& exception, const std::function<void(void)>& block);
136 Formatter& sFinally(const std::function<void(void)>& block);
141 Formatter& sWhile(const std::string& cond, const std::function<void(void)>& block);
[all …]
/system/core/adb/
Dtypes_test.cpp27 auto block = 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 IOVector::block_type copy_block(const 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()
/system/keymaster/key_blob_utils/
Docb.c151 typedef __m128i block; typedef
160 static inline block swap_if_le(block b) { in swap_if_le()
161 block a = _mm_shuffle_epi32(b, _MM_SHUFFLE(0, 1, 2, 3)); in swap_if_le()
167 static inline block gen_offset(uint64_t KtopStr[3], unsigned bot) { in gen_offset()
168 block hi = _mm_load_si128((__m128i*)(KtopStr + 0)); /* hi = B A */ in gen_offset()
169 block lo = _mm_loadu_si128((__m128i*)(KtopStr + 1)); /* lo = C B */ in gen_offset()
179 static inline block double_block(block bl) { in double_block()
189 typedef vector unsigned block; typedef
195 block gen_offset(uint64_t KtopStr[3], unsigned bot) { in gen_offset()
198 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/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
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/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
/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/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/sepolicy/prebuilts/api/30.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/tools/hidl/
DCompoundType.cpp245 out.block([&] { in emitSafeUnionReaderWriterForInterfaces()
264 out.block([&] { in emitSafeUnionReaderWriterForInterfaces()
270 out.block([&] { in emitSafeUnionReaderWriterForInterfaces()
295 out.block([&] { in emitSafeUnionReaderWriterForInterfaces()
330 out.block([&] { in emitReaderWriter()
510 out.block([&] { in emitSafeUnionTypeDeclarations()
566 out.block([&] { in emitSafeUnionTypeDeclarations()
802 out.block([&] { in emitPackageTypeHeaderDefinitions()
821 out.block([&] { in emitPackageTypeHeaderDefinitions()
842 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/26.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
/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>>...12