Home
last modified time | relevance | path

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

12345678

/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/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/core/libsparse/
Dbacked_block.c27 unsigned int block; member
72 return bb->block; in backed_block_block()
181 if (!bb->next || bb->next->block > start->block) { in backed_block_list_move()
201 assert(a->block < b->block); in merge_bb()
210 if (a->block + block_len != b->block) { in merge_bb()
257 if (bbl->data_blocks->block > new_bb->block) { in queue_bb()
266 if (bbl->last_used && new_bb->block > bbl->last_used->block) in queue_bb()
272 for (; bb->next && bb->next->block < new_bb->block; bb = bb->next) in queue_bb()
293 unsigned int len, unsigned int block) in backed_block_add_fill() argument
300 bb->block = block; in backed_block_add_fill()
[all …]
Dsparse.c56 void *data, unsigned int len, unsigned int block) in sparse_file_add_data() argument
58 return backed_block_add_data(s->backed_block_list, data, len, block); in sparse_file_add_data()
62 uint32_t fill_val, unsigned int len, unsigned int block) in sparse_file_add_fill() argument
64 return backed_block_add_fill(s->backed_block_list, fill_val, len, block); in sparse_file_add_fill()
69 unsigned int block) in sparse_file_add_file() argument
72 len, block); in sparse_file_add_file()
76 int fd, int64_t file_offset, unsigned int len, unsigned int block) in sparse_file_add_fd() argument
79 len, block); in sparse_file_add_fd()
204 unsigned int block; member
206 int (*write)(void *priv, const void *data, int len, unsigned int block,
[all …]
Dbacked_block.h33 unsigned int len, unsigned int block);
35 unsigned int len, unsigned int block);
37 int64_t offset, unsigned int len, unsigned int block);
39 int64_t offset, unsigned int len, unsigned int block);
/system/update_engine/scripts/
Dtest_paycheck.sh85 block=$2
86 time ${paycheck} -B ${block} ${payload_file}
91 block=$2
92 time ${paycheck} -b ${block} ${payload_file}
139 block=$((RANDOM * 1024 / 32767))
140 log "Tracing a random block (${block}) in full/delta payloads..."
141 trace_kern_block "${new_full_payload}" ${block}
142 trace_root_block "${new_full_payload}" ${block}
143 trace_kern_block "${delta_payload}" ${block}
144 trace_root_block "${delta_payload}" ${block}
/system/update_engine/scripts/update_payload/
Dblock_tracer.py38 def _TraceBlock(block, skip, trace_out_file, operations, base_name): argument
65 if (block >= dst_ex.start_block
66 and block < dst_ex.start_block + dst_ex.num_blocks):
70 total_block_offset += block - dst_ex.start_block
73 (block, dst_ex_name, common.FormatExtent(dst_ex),
89 block = src_ex.start_block + total_block_offset
92 (src_ex_name, common.FormatExtent(src_ex), block))
97 def Run(self, block, skip, trace_out_file, is_kernel): argument
113 self._TraceBlock(block, skip, trace_out_file, operations, base_name)
/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/tools/hidl/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/nfc/src/nfc/tags/
Drw_t1t.cc811 tNFC_STATUS RW_T1tRead(uint8_t block, uint8_t byte) { in RW_T1tRead() argument
822 RW_T1T_BLD_ADD((addr), (block), (byte)); in RW_T1tRead()
840 tNFC_STATUS RW_T1tWriteErase(uint8_t block, uint8_t byte, uint8_t new_byte) { in RW_T1tWriteErase() argument
851 (block != T1T_CC_BLOCK) && (byte != T1T_CC_RWA_OFFSET)) { in RW_T1tWriteErase()
855 if ((block >= T1T_STATIC_BLOCKS) || (byte >= T1T_BLOCK_SIZE)) { in RW_T1tWriteErase()
857 block, byte); in RW_T1tWriteErase()
860 if ((block == T1T_UID_BLOCK) || (block == T1T_RES_BLOCK)) { in RW_T1tWriteErase()
862 "RW_T1tWriteErase - Cannot write to Locked block: %u", block); in RW_T1tWriteErase()
866 RW_T1T_BLD_ADD((addr), (block), (byte)); in RW_T1tWriteErase()
870 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()
796 uint16_t block; in rw_t2t_read_locks() local
816 block = (uint16_t)(offset / T2T_BLOCK_LEN); in rw_t2t_read_locks()
[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
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
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()); block++) { in ExpandExtents()
46 ret.push_back(block); in ExpandExtents()
/system/core/libsparse/include/sparse/
Dsparse.h73 void *data, unsigned int len, unsigned int block);
91 uint32_t fill_val, unsigned int len, unsigned int block);
115 unsigned int block);
141 int fd, int64_t file_offset, unsigned int len, unsigned int block);
221 int (*write)(void *priv, const void *data, int len, unsigned int block,
/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/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/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
/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
Ddevice.te73 # Partition layout block device
76 # factory reset protection block device
79 # System block device mounted on /system.
82 # Recovery block device.
85 # boot block device.
88 # Userdata block device mounted on /data.
91 # Cache block device mounted on /cache.
97 # Metadata block device used for encryption metadata.
/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}

12345678