Searched defs:block (Results 1 - 25 of 41) sorted by relevance

12

/system/nfc/halimpl/bcm2079x/hal/hal/
H A Dnfc_hal_hci_ci.c43 uint8_t block) {
60 p_msg->nv_read.block = block;
42 nfc_hal_nv_ci_read(uint16_t num_bytes_read, tNFC_HAL_NV_CO_STATUS status, uint8_t block) argument
H A Dnfc_hal_hci.c70 static void nfc_hal_hci_set_next_hci_netwk_config(uint8_t block);
72 static void nfc_hal_hci_handle_nv_read(uint8_t block, tHAL_NFC_STATUS status,
93 (p_evt_data->nv_read.block == HC_F3_NV_BLOCK ||
94 p_evt_data->nv_read.block == HC_F4_NV_BLOCK ||
95 p_evt_data->nv_read.block == HC_F5_NV_BLOCK)) ||
97 p_evt_data->nv_read.block == HC_F2_NV_BLOCK)) {
98 nfc_hal_hci_handle_nv_read(p_evt_data->nv_read.block,
102 /* Invalid block or no buffer, Ignore */
104 "nfc_hal_hci_evt_hdlr: No buffer for handling read NV block: "
106 p_evt_data->nv_read.block);
244 uint8_t block = 0; local
435 uint8_t block = 0; local
506 nfc_hal_hci_handle_nv_read(uint8_t block, tHAL_NFC_STATUS status, uint16_t size) argument
703 nfc_hal_hci_set_next_hci_netwk_config(uint8_t block) argument
[all...]
/system/nfc/src/nfa/hci/
H A Dnfa_hci_ci.c40 uint8_t block) {
53 p_msg->nv_read.block = block;
39 nfa_nv_ci_read(uint16_t num_bytes_read, tNFA_NV_CO_STATUS status, uint8_t block) argument
H A Dnfa_hci_main.c66 static void nfa_hci_handle_nv_read(uint8_t block, tNFA_STATUS status);
179 /* initialize control block */
192 ** Description Validate hci control block config parameters
219 * block */
236 /* Validate Gate Control block */
248 * block */
298 /* Validate Gate Control block */
330 /* Check if the same pipe is present more than once in the control block
341 /* The local gate should be one of the element in gate control block */
386 ** Description Configure default values for hci control block
802 nfa_hci_handle_nv_read(uint8_t block, tNFA_STATUS status) argument
[all...]
/system/core/toolbox/upstream-netbsd/bin/dd/
H A Dconv.c103 void block(void) { errx(EXIT_FAILURE, "%s", no_block + 2); } function
117 block(void) function
126 * Record truncation can cross block boundaries. If currently in a
161 * input block.
179 * block, it's a truncation.
/system/update_engine/common/
H A Dterminator.h36 // Set to true if the terminator should block termination requests in an
37 // attempt to block exiting.
38 static void set_exit_blocked(bool block) { exit_blocked_ = block ? 1 : 0; } argument
/system/core/logd/
H A Dlibaudit.c210 int audit_get_reply(int fd, struct audit_message* rep, reply_t block, int peek) { argument
223 flags = (block == GET_REPLY_NONBLOCKING) ? MSG_DONTWAIT : 0;
239 if (block == GET_REPLY_NONBLOCKING && rc == -EAGAIN) {
/system/nfc/halimpl/bcm2079x/adaptation/
H A DNonVolatileStore.cpp65 void nfc_hal_nv_co_read(uint8_t* p_buf, uint16_t nbytes, uint8_t block) { argument
74 snprintf(filename, sizeof(filename), "%s%u", fn.c_str(), block);
85 nfc_hal_nv_ci_read(actualReadData, NFC_HAL_NV_CO_OK, block);
88 nfc_hal_nv_ci_read(0, NFC_HAL_NV_CO_FAIL, block);
92 nfc_hal_nv_ci_read(0, NFC_HAL_NV_CO_FAIL, block);
117 void nfc_hal_nv_co_write(const uint8_t* p_buf, uint16_t nbytes, uint8_t block) { argument
127 snprintf(filename, sizeof(filename), "%s%u", fn.c_str(), block);
/system/nfc/src/adaptation/
H A Dlibmain.c80 extern void nfa_nv_co_read(uint8_t* pBuffer, uint16_t nbytes, uint8_t block) { argument
91 sprintf(filename, "%s%u", filename2, block);
102 nfa_nv_ci_read(actualReadData, NFA_NV_CO_OK, block);
105 nfa_nv_ci_read(0, NFA_NV_CO_FAIL, block);
109 nfa_nv_ci_read(0, NFA_NV_CO_FAIL, block);
133 uint8_t block) {
144 sprintf(filename, "%s%u", filename2, block);
132 nfa_nv_co_write(const uint8_t* pBuffer, uint16_t nbytes, uint8_t block) argument
/system/tools/aidl/
H A Dast_cpp_unittest.cpp178 StatementBlock block; local
179 block.AddStatement(unique_ptr<AstNode>(new Statement("foo")));
180 block.AddStatement(unique_ptr<AstNode>(new Statement("bar")));
181 CompareGeneratedCode(block, "{\nfoo;\nbar;\n}\n");
/system/update_engine/payload_generator/
H A Dgraph_utils.cc52 uint64_t block) {
61 AppendBlockToExtents(&edge_it->second.extents, block);
67 // TODO(adlr): Be more efficient than adding each block individually.
71 for (uint64_t block = extent.start_block(),
73 block != block_end; ++block) {
74 AddReadBeforeDep(src, dst, block);
50 AddReadBeforeDep(Vertex* src, Vertex::Index dst, uint64_t block) argument
H A Dextent_utils.cc38 void AppendBlockToExtents(vector<Extent>* extents, uint64_t block) { argument
44 if (next_block == block) {
49 // If unable to extend the last extent, append a new single-block extent.
51 new_extent.set_start_block(block);
H A Dextent_ranges.cc58 void ExtentRanges::AddBlock(uint64_t block) { argument
59 AddExtent(ExtentForRange(block, 1));
62 void ExtentRanges::SubtractBlock(uint64_t block) { argument
63 SubtractExtent(ExtentForRange(block, 1));
196 bool ExtentRanges::ContainsBlock(uint64_t block) const {
197 auto lower = extent_set_.lower_bound(ExtentForRange(block, 1));
198 // The block could be on the extent before the one in |lower|.
201 // Any extent starting at block+1 or later is not interesting, so this is the
203 auto upper = extent_set_.lower_bound(ExtentForRange(block + 1, 0));
205 if (iter->start_block() <= block
[all...]
H A Dinplace_generator_unittest.cc145 Block block; local
146 EXPECT_EQ(Vertex::kInvalidIndex, block.reader);
147 EXPECT_EQ(Vertex::kInvalidIndex, block.writer);
369 // Supplier of temp block:
596 // We can't produce MOVE operations with a source or destination in the block 0.
604 // Create a REPLACE_BZ for block 0, and a circular dependency among all other
606 // the only available block is 0.
608 aops.back().name = base::StringPrintf("<bz-block-0>");
630 // one extra block in the partition that can be used for the move operation.
676 // block
[all...]
/system/extras/ext4_utils/
H A Dallocate.h25 u32 block; member in struct:region
74 u32 get_block(struct block_allocation *alloc, u32 block);
75 u32 get_oob_block(struct block_allocation *alloc, u32 block);
77 void get_region(struct block_allocation *alloc, u32 *block, u32 *len);
93 u32 block, u32 len, int bg);
H A Dsha1.c39 # define blk0(i) (block->l[i] = (rol(block->l[i],24)&0xFF00FF00) \
40 |(rol(block->l[i],8)&0x00FF00FF))
42 # define blk0(i) block->l[i]
44 #define blk(i) (block->l[(i)&15] = rol(block->l[((i)+13)&15]^block->l[((i)+8)&15] \
45 ^block->l[((i)+2)&15]^block->l[(i)&15],1))
80 do_R01(u_int32_t *a, u_int32_t *b, u_int32_t *c, u_int32_t *d, u_int32_t *e, CHAR64LONG16 *block) argument
90 do_R2(u_int32_t *a, u_int32_t *b, u_int32_t *c, u_int32_t *d, u_int32_t *e, CHAR64LONG16 *block) argument
100 do_R3(u_int32_t *a, u_int32_t *b, u_int32_t *c, u_int32_t *d, u_int32_t *e, CHAR64LONG16 *block) argument
110 do_R4(u_int32_t *a, u_int32_t *b, u_int32_t *c, u_int32_t *d, u_int32_t *e, CHAR64LONG16 *block) argument
128 CHAR64LONG16 *block; local
[all...]
/system/tools/hidl/utils/
H A DFormatter.cpp56 Formatter &Formatter::block(std::function<void(void)> func) { function in class:android::Formatter
74 Formatter &Formatter::sIf(const std::string &cond, std::function<void(void)> block) { argument
76 return this->block(block);
79 Formatter &Formatter::sElseIf(const std::string &cond, std::function<void(void)> block) { argument
81 return this->block(block);
84 Formatter &Formatter::sElse(std::function<void(void)> block) { argument
86 return this->block(block);
89 sFor(const std::string &stmts, std::function<void(void)> block) argument
94 sTry(std::function<void(void)> block) argument
99 sCatch(const std::string &exception, std::function<void(void)> block) argument
104 sFinally(std::function<void(void)> block) argument
109 sWhile(const std::string &cond, std::function<void(void)> block) argument
[all...]
/system/core/adb/
H A Dadb_utils.cpp184 bool set_file_block_mode(int fd, bool block) { argument
190 flags = block ? (flags & ~O_NONBLOCK) : (flags | O_NONBLOCK);
/system/core/libsparse/
H A Dbacked_block.c27 unsigned int block; member in struct:backed_block
72 return bb->block;
181 if (!bb->next || bb->next->block > start->block) {
196 /* Block doesn't exist (possible if one block is the last block) */
201 assert(a->block < b->block);
210 if (a->block + block_len != b->block) {
292 backed_block_add_fill(struct backed_block_list *bbl, unsigned int fill_val, unsigned int len, unsigned int block) argument
310 backed_block_add_data(struct backed_block_list *bbl, void *data, unsigned int len, unsigned int block) argument
328 backed_block_add_file(struct backed_block_list *bbl, const char *filename, int64_t offset, unsigned int len, unsigned int block) argument
347 backed_block_add_fd(struct backed_block_list *bbl, int fd, int64_t offset, unsigned int len, unsigned int block) argument
[all...]
H A Dsparse.c56 void *data, unsigned int len, unsigned int block)
58 return backed_block_add_data(s->backed_block_list, data, len, block);
62 uint32_t fill_val, unsigned int len, unsigned int block)
64 return backed_block_add_fill(s->backed_block_list, fill_val, len, block);
69 unsigned int block)
72 len, block);
76 int fd, int64_t file_offset, unsigned int len, unsigned int block)
79 len, block);
204 unsigned int block; member in struct:chunk_data
206 int (*write)(void *priv, const void *data, int len, unsigned int block,
55 sparse_file_add_data(struct sparse_file *s, void *data, unsigned int len, unsigned int block) argument
61 sparse_file_add_fill(struct sparse_file *s, uint32_t fill_val, unsigned int len, unsigned int block) argument
67 sparse_file_add_file(struct sparse_file *s, const char *filename, int64_t file_offset, unsigned int len, unsigned int block) argument
75 sparse_file_add_fd(struct sparse_file *s, int fd, int64_t file_offset, unsigned int len, unsigned int block) argument
217 sparse_file_foreach_chunk(struct sparse_file *s, bool sparse, bool crc, int (*write)(void *priv, const void *data, int len, unsigned int block, unsigned int nr_blocks), void *priv) argument
[all...]
H A Dsparse_read.c102 int fd, int64_t offset, unsigned int blocks, unsigned int block,
117 ret = sparse_file_add_fd(s, fd, offset, len, block);
140 int fd, unsigned int blocks, unsigned int block, uint32_t *crc32)
158 ret = sparse_file_add_fill(s, fill_val, len, block);
182 unsigned int block __unused, uint32_t *crc32)
237 verbose_error(s->verbose, ret, "data block at %" PRId64, offset);
245 verbose_error(s->verbose, ret, "fill block at %" PRId64, offset);
254 verbose_error(s->verbose, ret, "skip block at %" PRId64, offset);
262 verbose_error(s->verbose, -EINVAL, "crc block at %" PRId64,
268 verbose_error(s->verbose, -EINVAL, "unknown block
101 process_raw_chunk(struct sparse_file *s, unsigned int chunk_size, int fd, int64_t offset, unsigned int blocks, unsigned int block, uint32_t *crc32) argument
139 process_fill_chunk(struct sparse_file *s, unsigned int chunk_size, int fd, unsigned int blocks, unsigned int block, uint32_t *crc32) argument
361 unsigned int block = 0; local
[all...]
/system/extras/libfec/
H A Dfec_verity.cpp93 /* we assume a known metadata size, 4 KiB block size, and SHA-256 to avoid
119 buffer `block', and copies the hash to `hash' */
120 static inline int verity_hash(fec_handle *f, const uint8_t *block, argument
130 check(block);
131 SHA256_Update(&ctx, block, FEC_BLOCKSIZE);
138 /* computes a verity hash for FEC_BLOCKSIZE bytes from buffer `block' and
141 const uint8_t *block)
144 check(block);
148 if (unlikely(verity_hash(f, block, hash) == -1)) {
157 /* reads a verity hash and the corresponding data block usin
140 verity_check_block(fec_handle *f, const uint8_t *expected, const uint8_t *block) argument
[all...]
/system/extras/verity/
H A Dbuild_verity_tree.cpp54 const unsigned char *block, size_t len,
66 ret &= EVP_DigestUpdate(mdctx, block, len);
53 hash_block(const EVP_MD *md, const unsigned char *block, size_t len, const unsigned char *salt, size_t salt_len, unsigned char *out, size_t *out_size) argument
/system/nfc/src/nfc/tags/
H A Drw_t1t.c812 tNFC_STATUS RW_T1tRead(uint8_t block, uint8_t byte) { argument
823 RW_T1T_BLD_ADD((addr), (block), (byte));
841 tNFC_STATUS RW_T1tWriteErase(uint8_t block, uint8_t byte, uint8_t new_byte) { argument
851 (block != T1T_CC_BLOCK) && (byte != T1T_CC_RWA_OFFSET)) {
855 if ((block >= T1T_STATIC_BLOCKS) || (byte >= T1T_BLOCK_SIZE)) {
856 RW_TRACE_ERROR2("RW_T1tWriteErase - Invalid Block/byte: %u / %u", block,
860 if ((block == T1T_UID_BLOCK) || (block == T1T_RES_BLOCK)) {
861 RW_TRACE_WARNING1("RW_T1tWriteErase - Cannot write to Locked block: %u",
862 block);
888 RW_T1tWriteNoErase(uint8_t block, uint8_t byte, uint8_t new_byte) argument
967 RW_T1tRead8(uint8_t block) argument
997 RW_T1tWriteErase8(uint8_t block, uint8_t* p_new_dat) argument
1043 RW_T1tWriteNoErase8(uint8_t block, uint8_t* p_new_dat) argument
[all...]
H A Drw_t2t.c693 ** specified block. If the specified block is in different
696 ** command for the block.
701 tNFC_STATUS rw_t2t_read(uint16_t block) { argument
708 read_cmd[0] = block % T2T_BLOCKS_PER_SECTOR;
709 if (p_t2t->sector != block / T2T_BLOCKS_PER_SECTOR) {
716 p_t2t->select_sector = (uint8_t)(block / T2T_BLOCKS_PER_SECTOR);
723 p_t2t->block_read = block;
737 p_t2t->block_read = block;
738 RW_TRACE_EVENT1("rw_t2t_read Sent Command for Block: %u", block);
757 rw_t2t_write(uint16_t block, uint8_t* p_write_data) argument
923 RW_T2tRead(uint16_t block) argument
955 RW_T2tWrite(uint16_t block, uint8_t* p_write_data) argument
[all...]

Completed in 1332 milliseconds

12