/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/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/bt/hci/src/ |
H A D | hci_hal_mct.c | 128 static size_t read_data(serial_data_type_t type, uint8_t *buffer, size_t max_size, bool block) { argument 130 return eager_reader_read(acl_stream, buffer, max_size, block); 132 return eager_reader_read(event_stream, buffer, max_size, block);
|
H A D | hci_hal_h4.c | 115 static size_t read_data(serial_data_type_t type, uint8_t *buffer, size_t max_size, bool block) { argument 127 return eager_reader_read(uart_stream, buffer, max_size, block);
|
/system/extras/ext4_utils/ |
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 | 26 u32 block; member in struct:region 130 reg->block, reg->block + reg->len - 1, reg->len) 149 fprintf(f, " %d", reg->block); 151 fprintf(f, " %d-%d", reg->block, reg->block + reg->len - 1); 158 u32 block, u32 len, int bg_num) 162 reg->block = block; 175 u32 block 157 append_region(struct block_allocation *alloc, u32 block, u32 len, int bg_num) argument 212 u32 block = start; local 247 u32 block = bg->first_free_block - 1; local 299 u32 block = bg->first_block; local 366 u32 block = ext4_allocate_blocks_from_block_group(1, i); local 394 u32 block = ext4_allocate_blocks_from_block_group(allocate_len, found_bg); local 485 get_block(struct block_allocation *alloc, u32 block) argument 498 get_oob_block(struct block_allocation *alloc, u32 block) argument 513 get_region(struct block_allocation *alloc, u32 *block, u32 *len) argument 671 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...] |
/system/bt/osi/src/ |
H A D | eager_reader.c | 168 size_t eager_reader_read(eager_reader_t *reader, uint8_t *buffer, size_t max_size, bool block) { argument 174 if (!block && !has_byte(reader))
|
/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) { 288 backed_block_add_fill(struct backed_block_list *bbl, unsigned int fill_val, unsigned int len, unsigned int block) argument 306 backed_block_add_data(struct backed_block_list *bbl, void *data, unsigned int len, unsigned int block) argument 324 backed_block_add_file(struct backed_block_list *bbl, const char *filename, int64_t offset, unsigned int len, unsigned int block) argument 343 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 | 101 int fd, int64_t offset, unsigned int blocks, unsigned int block, 116 ret = sparse_file_add_fd(s, fd, offset, len, block); 139 int fd, unsigned int blocks, unsigned int block, uint32_t *crc32) 157 ret = sparse_file_add_fill(s, fill_val, len, block); 181 unsigned int block __unused, uint32_t *crc32) 236 verbose_error(s->verbose, ret, "data block at %lld", offset); 244 verbose_error(s->verbose, ret, "fill block at %lld", offset); 253 verbose_error(s->verbose, ret, "skip block at %lld", offset); 261 verbose_error(s->verbose, -EINVAL, "crc block at %lld", 267 verbose_error(s->verbose, -EINVAL, "unknown block 100 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 138 process_fill_chunk(struct sparse_file *s, unsigned int chunk_size, int fd, unsigned int blocks, unsigned int block, uint32_t *crc32) argument 360 unsigned int block = 0; local [all...] |
/system/extras/verity/ |
H A D | build_verity_tree.cpp | 52 const unsigned char *block, size_t len, 64 ret &= EVP_DigestUpdate(mdctx, block, len); 51 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/core/gpttool/ |
H A D | gpttool.c | 81 u8 block[512]; member in union:ptable::__anon1321 165 fprintf(stderr,"ptn start block end block name\n"); 294 fprintf(stderr,"error: cannot query block device size\n");
|
/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/adb/ |
H A D | commandline.cpp | 201 " adb wait-for-device - block until device is online\n" 505 * file and a block size chosen by us. 507 * - The other side sends the desired block number as eight decimal 508 * digits (eg "00000023" for block 23). Blocks are numbered from 511 * - We send back the data of the requested block. The last block is 512 * likely to be partial; when the last block is requested we only 513 * send the part of the block that exists, it's not padded up to the 514 * block size. 516 * - When the other side sends "DONEDONE" instead of a block numbe 563 int block = strtol(buf, NULL, 10); local [all...] |
/system/core/init/ |
H A D | devices.cpp | 233 int block, int major, int minor, 242 mode = get_device_perm(path, links, &uid, &gid) | (block ? S_IFBLK : S_IFCHR); 494 snprintf(link_path, sizeof(link_path), "/dev/block/%s/%s", type, device); 525 const char *path, int block, int major, int minor, char **links) 530 make_device(devpath, path, block, major, minor, (const char **)links); 588 const char *base = "/dev/block/"; 742 if (!strncmp(uevent->subsystem, "block", 5)) { 997 coldboot("/sys/block"); 231 make_device(const char *path, const char * , int block, int major, int minor, const char **links) argument 524 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:__anon1554 [all...] |
/system/vold/ |
H A D | cryptfs.c | 562 SLOGE("Cannot open real block device %s\n", real_blkdev); 577 SLOGE("Cannot get size of block device %s\n", real_blkdev); 630 SLOGE("Cannot seek to real block device footer\n"); 635 SLOGE("Cannot write real block device footer\n"); 640 /* If the keys are kept on a raw block device, do not try to truncate it. */ 775 SLOGE("Cannot seek to real block device footer\n"); 780 SLOGE("Cannot read real block device footer\n"); 785 SLOGE("Bad magic for real block device %s\n", fname); 790 SLOGE("Cannot understand major version %d real block device footer; expected %d\n", 1182 snprintf(crypto_blk_name, MAXPATHLEN, "/dev/block/d 2339 unsigned int block; local 2513 log_progress_f2fs(u64 block, bool completed) argument 2821 char block[CRYPT_INPLACE_BUFSIZE]; local [all...] |