Searched refs:off (Results 1 - 18 of 18) sorted by relevance

/system/extras/libpagemap/
H A Dpm_kernel.c117 off64_t off; local
122 off = lseek64(ker->kpagecount_fd, pfn * sizeof(uint64_t), SEEK_SET);
123 if (off == (off_t)-1)
133 off64_t off; local
138 off = lseek64(ker->kpageflags_fd, pfn * sizeof(uint64_t), SEEK_SET);
139 if (off == (off_t)-1)
H A Dpm_process.c109 off64_t off; local
128 off = lseek64(proc->pagemap_fd, firstpage * sizeof(uint64_t), SEEK_SET);
129 if (off == (off_t)-1) {
/system/core/toolbox/upstream-netbsd/usr.bin/grep/
H A Dfile.c144 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 Dqueue.c68 item->data.off = x->off;
H A Dgrep.h90 off_t off; member in struct:str
H A Dutil.c227 ln.off = -1;
230 ln.off += ln.len + 1;
467 printf("%lld", (long long)line->off);
/system/core/init/
H A Dparser.c55 int off; local
59 off = strlen(buf);
62 vsnprintf(buf + off, 128 - off, fmt, ap);
/system/core/toolbox/upstream-netbsd/bin/cat/
H A Dcat.c297 ssize_t nr, nw, off; local
322 for (off = 0; nr; nr -= nw, off += nw)
323 if ((nw = write(wfd, buf + off, (size_t)nr)) < 0)
/system/extras/tests/directiotest/
H A Ddirectiotest.c143 int off = i % 16; local
145 if (off == 0)
148 ascii_buf[off] = isprint(val) ? val : '.';
149 if (off == 15)
/system/extras/ext4_utils/
H A Dext4fixup.c192 off64_t off; local
195 off = block_num * info.block_size;
197 if (lseek64(fd, off, SEEK_SET) , 0) {
211 off64_t off; local
218 off = block_num * info.block_size;
220 if (lseek64(fd, off, SEEK_SET) < 0) {
/system/extras/ksmutils/
H A Dksminfo.c200 off_t off; local
249 off = lseek(fd, vaddr, SEEK_SET);
250 if (off == (off_t)-1) {
/system/core/libcutils/arch-x86/
H A Dsse2-memset32-atom.S37 # 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 Dsse2-memset16-atom.S37 # 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 Doutput_file.c273 static int callback_file_skip(struct output_file *out, int64_t off) argument
279 while (off > 0) {
280 to_write = min(off, (int64_t)INT_MAX);
285 off -= to_write;
/system/core/libziparchive/
H A Dzip_archive.cc606 * low as 50% after we round off to a power of 2. There must be at
628 ALOGW("Zip: ran off the end (at %" PRIu16 ")", i);
734 // Attempts to read |len| bytes into |buf| at offset |off|.
741 off64_t off) {
743 return TEMP_FAILURE_RETRY(pread64(fd, buf, len, off));
748 if (lseek64(fd, off, SEEK_SET) != off) {
749 ALOGW("Zip: failed seek to offset %" PRId64, off);
740 ReadAtOffset(int fd, uint8_t* buf, size_t len, off64_t off) argument
/system/vold/
H A Dcryptfs.c424 static int get_crypt_ftr_info(char **metadata_fname, off64_t *off) argument
467 if (off) {
468 *off = cached_off;
1309 EVP_CIPHER_CTX_set_padding(&e_ctx, 0); /* Turn off padding as our data is block aligned */
1370 EVP_CIPHER_CTX_set_padding(&d_ctx, 0); /* Turn off padding as our data is block aligned */
2129 off64_t off; local
2155 if (get_crypt_ftr_info(NULL, &off) == 0) {
2156 ftr->persist_data_offset[0] = off + CRYPT_FOOTER_TO_PERSIST_OFFSET;
2157 ftr->persist_data_offset[1] = off + CRYPT_FOOTER_TO_PERSIST_OFFSET +
/system/extras/tests/sdcard/
H A Dsdcard_perf_test.cpp88 #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"
/system/core/sdcard/
H A Dsdcard.c476 /* Assume masked off by default. */
1439 fde->off = req->offset + 1;

Completed in 7509 milliseconds