/system/core/toolbox/upstream-netbsd/bin/dd/ |
H A D | conv.c | 103 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 D | terminator.h | 36 // 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 D | libaudit.c | 209 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/tools/aidl/ |
H A D | ast_cpp_unittest.cpp | 177 StatementBlock block; local 178 block.AddStatement(unique_ptr<AstNode>(new Statement("foo"))); 179 block.AddStatement(unique_ptr<AstNode>(new Statement("bar"))); 180 CompareGeneratedCode(block, "{\nfoo;\nbar;\n}\n");
|
/system/update_engine/payload_generator/ |
H A D | graph_utils.cc | 52 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 D | extent_utils.cc | 38 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 D | extent_ranges.cc | 57 void ExtentRanges::AddBlock(uint64_t block) { argument 58 AddExtent(ExtentForRange(block, 1)); 61 void ExtentRanges::SubtractBlock(uint64_t block) { argument 62 SubtractExtent(ExtentForRange(block, 1)); 195 bool ExtentRanges::ContainsBlock(uint64_t block) const { 196 auto lower = extent_set_.lower_bound(ExtentForRange(block, 1)); 197 // The block could be on the extent before the one in |lower|. 200 // Any extent starting at block+1 or later is not interesting, so this is the 202 auto upper = extent_set_.lower_bound(ExtentForRange(block + 1, 0)); 204 if (iter->start_block() <= block [all...] |
H A D | inplace_generator_unittest.cc | 145 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/core/adb/ |
H A D | adb_utils.cpp | 227 bool set_file_block_mode(int fd, bool block) { argument 233 flags = block ? (flags & ~O_NONBLOCK) : (flags | O_NONBLOCK);
|
H A D | commandline.cpp | 686 // Now block SIGWINCH in this thread (the main thread) and all threads spawned 873 * file and a block size chosen by us. 875 * - The other side sends the desired block number as eight decimal 876 * digits (eg "00000023" for block 23). Blocks are numbered from 879 * - We send back the data of the requested block. The last block is 880 * likely to be partial; when the last block is requested we only 881 * send the part of the block that exists, it's not padded up to the 882 * block size. 884 * - When the other side sends "DONEDONE" instead of a block numbe 931 int block = strtol(buf, NULL, 10); local [all...] |
/system/extras/ext4_utils/ |
H A D | allocate.h | 25 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 D | ext2simg.c | 48 fprintf(stderr, "%s [ options ] <image or block device> <output image>\n", path); 50 fprintf(stderr, " -c include CRC block\n"); 59 unsigned int block; local 66 critical_error("failed to allocate block bitmap"); 79 critical_error_errno("failed to seek to block group bitmap %d", i); 83 critical_error_errno("failed to read block group bitmap %d", i); 85 critical_error("failed to read all of block group bitmap %d", i); 88 for (block = 0; block < last_block; block [all...] |
H A D | sha1.c | 42 # define blk0(i) (block->l[i] = (rol(block->l[i],24)&0xFF00FF00) \ 43 |(rol(block->l[i],8)&0x00FF00FF)) 45 # define blk0(i) block->l[i] 47 #define blk(i) (block->l[i&15] = rol(block->l[(i+13)&15]^block->l[(i+8)&15] \ 48 ^block->l[(i+2)&15]^block->l[i&15],1)) 83 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 93 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 103 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 113 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 131 CHAR64LONG16 *block; local [all...] |
H A D | allocate.c | 119 reg->block, reg->block + reg->len - 1, reg->len) 139 fprintf(f, "%d", reg->block); 141 fprintf(f, "%d-%d", reg->block, reg->block + reg->len - 1); 149 u32 block, u32 len, int bg_num) 153 reg->block = block; 166 u32 block = bg->first_block + 2; 169 block 148 append_region(struct block_allocation *alloc, u32 block, u32 len, int bg_num) argument 203 u32 block = start; local 230 free_blocks(struct block_group_info *bg, u32 block, u32 num_blocks) argument 284 u32 block = bg->first_block; local 342 u32 block; local 489 get_block(struct block_allocation *alloc, u32 block) argument 502 get_oob_block(struct block_allocation *alloc, u32 block) argument 517 get_region(struct block_allocation *alloc, u32 *block, u32 *len) argument 675 struct ext4_xattr_header *block = xattr_list_find(inode); local [all...] |
H A D | ext4fixup.c | 39 /* The inode block count for a file/directory is in units of 512 byte blocks, 40 * _NOT_ the filesystem block size! 190 static int read_block(int fd, unsigned long long block_num, void *block) argument 198 critical_error_errno("failed to seek to block %lld\n", block_num); 201 len=read(fd, block, info.block_size); 203 critical_error_errno("failed to read block %lld\n", block_num); 209 static int write_block(int fd, unsigned long long block_num, void *block) argument 221 critical_error_errno("failed to seek to block %lld\n", block_num); 224 len=write(fd, block, info.block_size); 226 critical_error_errno("failed to write block 235 unsigned char block[MAX_EXT4_BLOCK_SIZE]; local 444 unsigned char block[MAX_EXT4_BLOCK_SIZE]; local [all...] |
H A D | make_ext4fs.c | 90 Allocating blocks in the same block group as the file inode 532 return c1->block - c2->block; 535 static int get_block_group(u32 block) { argument 538 if (block >= aux_info.bgs[i].first_block) 620 // Assummption is that allocations are within the same block group 623 critical_error("base file allocation's end block is in a different " 624 "block group than start block. did you change fs params?"); 628 int min_bg_bound = bgs[block_group].chunks[0].block [all...] |
/system/core/libsparse/ |
H A D | backed_block.c | 27 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 D | sparse.c | 56 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); 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
|
H A D | sparse_read.c | 102 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 D | fec_verity.cpp | 93 /* 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 D | build_verity_tree.cpp | 54 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/bt/vendor_libs/linux/ |
H A D | bt_vendor_linux.c | 276 static int bt_vendor_rfkill(int block) argument 292 event.hard = block; 293 event.soft = block;
|
/system/extras/f2fs_utils/ |
H A D | f2fs_sparseblock.c | 37 SLOGD("| Super block |\n"); 191 SLOGE("Not a valid F2FS super block. Magic:%#08x != %#08x", 222 /* Read the 1st cp block in this CP pack */ 235 /* Read the 2nd cp block in this CP pack */ 329 SLOGD("Reading cache block starting at block %"PRIu64, address); 331 SLOGE("Could not read sit block at block %"PRIu64, address); 489 u64 block; local 492 block [all...] |
/system/core/init/ |
H A D | devices.cpp | 234 int block, int major, int minor, 243 mode = get_device_perm(path, links, &uid, &gid) | (block ? S_IFBLK : S_IFCHR); 502 snprintf(link_path, sizeof(link_path), "/dev/block/%s/%s", type, device); 533 const char *path, int block, int major, int minor, char **links) 538 make_device(devpath, path, block, major, minor, (const char **)links); 596 const char *base = "/dev/block/"; 750 if (!strncmp(uevent->subsystem, "block", 5)) { 994 coldboot("/sys/block"); 232 make_device(const char *path, const char * , int block, int major, int minor, const char **links) argument 532 handle_device(const char *action, const char *devpath, const char *path, int block, int major, int minor, char **links) argument
|
/system/keymaster/ |
H A D | ocb.c | 150 typedef __m128i block; typedef 159 static inline block swap_if_le(block b) { 160 block a = _mm_shuffle_epi32(b, _MM_SHUFFLE(0, 1, 2, 3)); 166 static inline block gen_offset(uint64_t KtopStr[3], unsigned bot) { 167 block hi = _mm_load_si128((__m128i*)(KtopStr + 0)); /* hi = B A */ 168 block lo = _mm_loadu_si128((__m128i*)(KtopStr + 1)); /* lo = C B */ 178 static inline block double_block(block bl) { 188 typedef vector unsigned block; typedef 242 typedef int8x16_t block; /* Yay! Endian-neutral reads! */ typedef 275 typedef struct { uint64_t l, r; } block; typedef in typeref:struct:__anon1786 [all...] |