/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 | 107 off_t off; local 120 off = lseek(proc->pagemap_fd, firstpage * sizeof(uint64_t), SEEK_SET); 121 if (off == (off_t)-1) {
|
/system/core/toolbox/grep/ |
H A D | file.c | 144 size_t off; local 169 for (len = bufrem, off = 0; ; len += bufrem) { 173 memcpy(lnbuf + off, bufpos, len - off); 174 off = len; 188 memcpy(lnbuf + off, bufpos, diff);
|
H A D | queue.c | 68 item->data.off = x->off;
|
H A D | grep.h | 94 off_t off; member in struct:str
|
H A D | util.c | 226 ln.off = -1; 229 ln.off += ln.len + 1; 466 printf("%lld", (long long)line->off);
|
/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/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 | ext4fixup.c | 283 off64_t off; local 286 off = block_num * info.block_size; 288 if (lseek64(fd, off, SEEK_SET) , 0) { 302 off64_t off; local 309 off = block_num * info.block_size; 311 if (lseek64(fd, off, SEEK_SET) < 0) {
|
/system/extras/ksmutils/ |
H A D | ksminfo.c | 199 off_t off; local 248 off = lseek(fd, vaddr, SEEK_SET); 249 if (off == (off_t)-1) {
|
/system/core/libcutils/arch-x86/ |
H A D | sse2-memset32-atom.S | 37 # define cfi_rel_offset(reg, off) .cfi_rel_offset reg, off 45 # define cfi_adjust_cfa_offset(off) .cfi_adjust_cfa_offset off
|
H A D | sse2-memset16-atom.S | 37 # define cfi_rel_offset(reg, off) .cfi_rel_offset reg, off 45 # define cfi_adjust_cfa_offset(off) .cfi_adjust_cfa_offset off
|
/system/core/libsparse/ |
H A D | output_file.c | 280 static int callback_file_skip(struct output_file *out, int64_t off) argument 286 while (off > 0) { 287 to_write = min(off, (int64_t)INT_MAX); 292 off -= to_write;
|
/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
|
H A D | sdcard.c | 447 /* Assume masked off by default. */ 1380 fde->off = req->offset + 1;
|
/system/vold/ |
H A D | cryptfs.c | 184 static int get_crypt_ftr_info(char **metadata_fname, off64_t *off) argument 227 if (off) { 228 *off = cached_off; 904 EVP_CIPHER_CTX_set_padding(&e_ctx, 0); /* Turn off padding as our data is block aligned */ 941 EVP_CIPHER_CTX_set_padding(&d_ctx, 0); /* Turn off padding as our data is block aligned */ 1407 off64_t off; local 1420 if (get_crypt_ftr_info(NULL, &off) == 0) { 1421 ftr->persist_data_offset[0] = off + CRYPT_FOOTER_TO_PERSIST_OFFSET; 1422 ftr->persist_data_offset[1] = off + CRYPT_FOOTER_TO_PERSIST_OFFSET +
|
/system/extras/tests/sdcard/ |
H A D | sdcard_perf_test.cpp | 88 #define FADVISE(fd, off, len, advice) (void)0 142 " -z --no-new-fair-sleepers: Turn them off. You need to mount debugfs.\n" 143 " -Z --no-normalized-sleepers: Turn them off. You need to mount debugfs.\n"
|