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

/system/core/init/
H A Dsignal_handler.c44 static int wait_for_one_process(int block) argument
54 while ( (pid = waitpid(-1, &status, block ? 0 : WNOHANG)) == -1 && errno == EINTR );
H A Ddevices.c190 int block, int major, int minor)
200 mode = get_device_perm(path, &uid, &gid) | (block ? S_IFBLK : S_IFCHR);
438 snprintf(link_path, sizeof(link_path), "/dev/block/platform/%s", device);
471 const char *path, int block, int major, int minor, char **links)
476 make_device(devpath, path, block, major, minor);
531 const char *base = "/dev/block/";
645 if (!strncmp(uevent->subsystem, "block", 5)) {
902 coldboot("/sys/block");
188 make_device(const char *path, const char *upath, int block, int major, int minor) argument
470 handle_device(const char *action, const char *devpath, const char *path, int block, int major, int minor, char **links) argument
/system/extras/ext4_utils/
H A Dext2simg.c48 fprintf(stderr, "%s [ options ] <image or block device> <output image>\n", path);
50 fprintf(stderr, " -c include CRC block\n");
80 critical_error_errno("failed to seek to block group descriptors");
84 critical_error_errno("failed to read block group descriptors");
86 critical_error("failed to read all of block group descriptors");
98 printf(" Reserved block group size: %d\n", info.bg_desc_reserve_blocks);
120 unsigned int block; local
127 critical_error("failed to allocate block bitmap");
140 critical_error_errno("failed to seek to block group bitmap %d", i);
144 critical_error_errno("failed to read block grou
[all...]
H A Dsha1.c42 # 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 Dallocate.c39 u32 block; member in struct:region
115 reg->bg * info.blocks_per_group + reg->block,
116 reg->bg * info.blocks_per_group + reg->block + reg->len - 1,
132 u32 block, u32 len, int bg_num)
136 reg->block = block;
149 u32 block = bg->first_block + 2;
152 block += aux_info.bg_desc_blocks + info.bg_desc_reserve_blocks + 1;
159 aux_info.inode_table_blocks * info.block_size, block);
165 u32 block; local
131 append_region(struct block_allocation *alloc, u32 block, u32 len, int bg_num) argument
202 u32 block = start; local
237 u32 block = bg->first_free_block - 1; local
289 u32 block = bg->first_block; local
355 u32 block = ext4_allocate_blocks_from_block_group(len, i); local
376 u32 block = ext4_allocate_blocks_from_block_group(1, i); local
393 u32 block; local
506 get_block(struct block_allocation *alloc, u32 block) argument
519 get_oob_block(struct block_allocation *alloc, u32 block) argument
534 get_region(struct block_allocation *alloc, u32 *block, u32 *len) argument
[all...]
H A Dext4fixup.c39 /* The inode block count for a file/directory is in units of 512 byte blocks,
40 * _NOT_ the filesystem block size!
229 critical_error_errno("failed to seek to block group descriptors");
233 critical_error_errno("failed to read block group descriptors");
235 critical_error("failed to read all of block group descriptors");
247 printf(" Reserved block group size: %d\n", info.bg_desc_reserve_blocks);
282 static int read_block(int fd, unsigned long long block_num, void *block) argument
290 critical_error_errno("failed to seek to block %lld\n", block_num);
293 len=read(fd, block, info.block_size);
295 critical_error_errno("failed to read block
301 write_block(int fd, unsigned long long block_num, void *block) argument
342 unsigned char block[MAX_EXT4_BLOCK_SIZE]; local
545 unsigned char block[MAX_EXT4_BLOCK_SIZE]; local
[all...]
/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) {
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 Dsparse.c55 void *data, unsigned int len, unsigned int block)
57 return backed_block_add_data(s->backed_block_list, data, len, block);
61 uint32_t fill_val, unsigned int len, unsigned int block)
63 return backed_block_add_fill(s->backed_block_list, fill_val, len, block);
68 unsigned int block)
71 len, block);
75 int fd, int64_t file_offset, unsigned int len, unsigned int block)
78 len, block);
54 sparse_file_add_data(struct sparse_file *s, void *data, unsigned int len, unsigned int block) argument
60 sparse_file_add_fill(struct sparse_file *s, uint32_t fill_val, unsigned int len, unsigned int block) argument
66 sparse_file_add_file(struct sparse_file *s, const char *filename, int64_t file_offset, unsigned int len, unsigned int block) argument
74 sparse_file_add_fd(struct sparse_file *s, int fd, int64_t file_offset, unsigned int len, unsigned int block) argument
H A Dsparse_read.c99 int fd, int64_t offset, unsigned int blocks, unsigned int block,
114 ret = sparse_file_add_fd(s, fd, offset, len, block);
137 int fd, unsigned int blocks, unsigned int block, uint32_t *crc32)
155 ret = sparse_file_add_fill(s, fill_val, len, block);
178 int fd, unsigned int blocks, unsigned int block, uint32_t *crc32)
239 verbose_error(s->verbose, ret, "data block at %lld", offset);
247 verbose_error(s->verbose, ret, "fill block at %lld", offset);
256 verbose_error(s->verbose, ret, "skip block at %lld", offset);
264 verbose_error(s->verbose, -EINVAL, "crc block at %lld",
270 verbose_error(s->verbose, -EINVAL, "unknown block
98 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
136 process_fill_chunk(struct sparse_file *s, unsigned int chunk_size, int fd, unsigned int blocks, unsigned int block, uint32_t *crc32) argument
177 process_skip_chunk(struct sparse_file *s, unsigned int chunk_size, int fd, unsigned int blocks, unsigned int block, uint32_t *crc32) argument
363 unsigned int block = 0; local
[all...]
/system/core/sh/
H A Doutput.c73 #define BLOCK_OUT -2 /* output to a fixed block of memory */
109 open_mem(char *block, int length, struct output *file) argument
111 file->nextc = block;
H A Djobs.c1042 dowait(int block, struct job *job) argument
1053 TRACE(("dowait(%d) called\n", block));
1055 pid = waitproc(block, job, &status);
1116 * stopped processes. If block is zero, we return a value of zero
1125 * system call would not block if the two counters were different.
1153 waitproc(int block, struct job *jp, int *status) argument
1162 if (block == 0)
1169 if (block == 0) {
1178 if (block == 0)
/system/core/gpttool/
H A Dgpttool.c82 u8 block[512]; member in union:ptable::__anon292
166 fprintf(stderr,"ptn start block end block name\n");
297 fprintf(stderr,"error: cannot query block device size\n");
/system/core/toolbox/
H A Ddd.c70 void block(void);
113 uint64_t cbsz; /* conversion block size */
309 * If doing block operations use spaces. This will
311 * last partial input block which should be padded
353 /* If sync not specified, omit block and continue. */
368 /* If sync, use the entire block. */
378 * than noerror, notrunc or sync are specified, the block
411 else if (cfunc == block)
420 * to write out the final block un-sparse
459 * output block i
774 void block(void) { fprintf(stderr, "%s", no_block + 2); exit(1); } function
788 block(void) function
[all...]
/system/core/sdcard/
H A Dfuse.h495 __u64 block; member in struct:fuse_bmap_in
501 __u64 block; member in struct:fuse_bmap_out

Completed in 162 milliseconds