/system/core/init/ |
H A D | parser.c | 55 int off; local 59 off = strlen(buf); 62 vsnprintf(buf + off, 128 - off, fmt, ap);
|
/system/extras/fatblock/ |
H A D | read.c | 29 offset_t off, offset_t len) 34 if (off >= buf_len) { 39 if (off + len > buf_len) { 40 memset(out + (buf_len - off), 0, len - (buf_len - off)); 41 len = buf_len - off; 44 assert(off < buf_len); 45 assert(off + len <= buf_len); 47 memcpy(out, buf + off, len); 72 static int file_read(struct file *f, char *buf, offset_t off, offset_ argument 28 buffer_read(char *buf, offset_t buf_len, char *out, offset_t off, offset_t len) argument 126 dir_read(struct dir *d, char *buf, offset_t off, offset_t len) argument 134 extent_read(struct fs *fs, struct extent *e, char *buf, offset_t off, offset_t len) argument [all...] |
/system/extras/libpagemap/ |
H A D | pm_kernel.c | 117 off_t off; local 122 off = lseek(ker->kpagecount_fd, pfn * sizeof(uint64_t), SEEK_SET); 123 if (off == (off_t)-1) 133 off_t off; local 138 off = lseek(ker->kpageflags_fd, pfn * sizeof(uint64_t), SEEK_SET); 139 if (off == (off_t)-1)
|
H A D | pm_process.c | 99 off_t off; local 112 off = lseek(proc->pagemap_fd, firstpage * sizeof(uint64_t), SEEK_SET); 113 if (off == (off_t)-1) {
|
/system/core/toolbox/ |
H A D | cat.c | 158 ssize_t nr, nw, off; local 174 for (off = 0; nr; nr -= nw, off += nw) 175 if ((nw = write(wfd, buf + off, (size_t)nr)) < 0)
|
/system/extras/tests/directiotest/ |
H A D | directiotest.c | 142 int off = i % 16; local 144 if (off == 0) 147 ascii_buf[off] = isprint(val) ? val : '.'; 148 if (off == 15)
|
/system/extras/ext4_utils/ |
H A D | ext4_utils.c | 88 void count_data_block(void *priv, u64 off, u8 *data, int len) argument 91 if (off > count_chunks->cur_ptr) 93 count_chunks->cur_ptr = off + ALIGN(len, info.block_size); 97 void count_fill_block(void *priv, u64 off, u32 fill_val, int len) argument 100 if (off > count_chunks->cur_ptr) 102 count_chunks->cur_ptr = off + ALIGN(len, info.block_size); 106 void count_file_block(void *priv, u64 off, const char *file, argument 110 if (off > count_chunks->cur_ptr) 112 count_chunks->cur_ptr = off + ALIGN(len, info.block_size); 128 static void ext4_write_data_block(void *priv, u64 off, u argument 133 ext4_write_fill_block(void *priv, u64 off, u32 fill_val, int len) argument 138 ext4_write_data_file(void *priv, u64 off, const char *file, off64_t offset, int len) argument [all...] |
H A D | output_file.c | 65 static int file_seek(struct output_file *out, off64_t off) argument 69 ret = lseek64(out->fd, off, SEEK_SET); 106 static int gz_file_seek(struct output_file *out, off64_t off) argument 110 ret = gzseek(out->gz_fd, off, SEEK_SET); 186 static int write_chunk_fill(struct output_file *out, u64 off, u32 fill_val, int len) argument 201 //DBG printf("write chunk: offset 0x%llx, length 0x%x bytes\n", off, len); 203 if (off < out->cur_out_ptr) { 205 off, out->cur_out_ptr); 209 if (off > out->cur_out_ptr) { 210 emit_skip_chunk(out, off 259 write_chunk_raw(struct output_file *out, u64 off, u8 *data, int len) argument 474 write_data_block(struct output_file *out, u64 off, u8 *data, int len) argument 498 write_fill_block(struct output_file *out, u64 off, u32 fill_val, int len) argument 536 write_data_file(struct output_file *out, u64 off, const char *file, off64_t offset, int len) argument [all...] |
H A D | ext4fixup.c | 284 off64_t off; local 287 off = block_num * info.block_size; 289 if (lseek64(fd, off, SEEK_SET) , 0) { 303 off64_t off; local 310 off = block_num * info.block_size; 312 if (lseek64(fd, off, SEEK_SET) < 0) {
|
/system/vold/ |
H A D | cryptfs.c | 148 off64_t off; local 172 off = ((off64_t)nr_sec * 512) - CRYPT_FOOTER_OFFSET; 174 if (lseek64(fd, off, SEEK_SET) == -1) { 209 off = KEY_TO_SALT_PADDING; 211 off += crypt_ftr->keysize; 213 if (lseek64(fd, off, SEEK_CUR) == -1) { 247 off64_t off; local 271 off = ((off64_t)nr_sec * 512) - CRYPT_FOOTER_OFFSET; 273 if (lseek64(fd, off, SEEK_SET) == -1) { 505 EVP_CIPHER_CTX_set_padding(&e_ctx, 0); /* Turn off paddin [all...] |
/system/core/libcutils/ |
H A D | tztime.c | 410 int off = -1; local 421 off = toint((unsigned char *) buf + NAMELEN); 429 if (off < 0) 438 if (lseek(fid, off, SEEK_SET) < 0) { 973 sp->leapcnt = 0; /* so, we're off a little */
|
/system/core/sdcard/ |
H A D | fuse.h | 555 __u64 off; member in struct:fuse_dirent 568 __s64 off; member in struct:fuse_notify_inval_inode_out
|