Searched defs:off (Results 1 - 15 of 15) sorted by relevance

/system/core/toolbox/upstream-netbsd/usr.bin/grep/
H A Dfile.c146 size_t off; local
171 for (len = bufrem, off = 0; ; len += bufrem) {
175 memcpy(lnbuf + off, bufpos, len - off);
176 off = len;
190 memcpy(lnbuf + off, bufpos, diff);
H A Dgrep.h90 off_t off; member in struct:str
/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.c113 off64_t off; local
132 off = lseek64(proc->pagemap_fd, firstpage * sizeof(uint64_t), SEEK_SET);
133 if (off == (off_t)-1) {
/system/core/libcutils/tests/
H A DAshmemTest.cpp40 void TestMmap(const unique_fd& fd, size_t size, int prot, void** region, off_t off = 0) {
43 *region = mmap(nullptr, size, prot, MAP_SHARED, fd, off);
168 auto off = lseek(fd, cfg.offset, cfg.whence); local
169 ASSERT_EQ(cfg.ret, off) << "lseek(" << cfg.offset << ", " << cfg.whence << ") failed"
172 if (off >= dataStart && off < dataEnd) {
173 off_t dataOff = off - dataStart;
/system/core/libmemunreachable/
H A DThreadCapture.cpp134 ssize_t off = 0; local
135 while (off < nread) {
136 linux_dirent64* dirent = reinterpret_cast<linux_dirent64*>(dirent_buf + off);
137 off += dirent->d_reclen;
/system/core/trusty/storage/lib/
H A Dstorage.c191 static int _read_chunk(file_handle_t fh, storage_off_t off, void *buf, size_t size) argument
194 struct storage_file_read_req req = { .handle = _to_handle(fh), .size = size, .offset = off };
202 ssize_t storage_read(file_handle_t fh, storage_off_t off, void *buf, size_t size) argument
212 rc = _read_chunk(fh, off, ptr, chunk);
217 off += rc;
225 static int _write_req(file_handle_t fh, storage_off_t off, argument
229 struct storage_file_write_req req = { .handle = _to_handle(fh), .offset = off, };
238 ssize_t storage_write(file_handle_t fh, storage_off_t off, argument
253 rc = _write_req(fh, off, ptr, chunk, msg_flags);
260 off
[all...]
/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/libhwbinder/
H A DDebug.cpp37 ssize_t off = sizeof(indentStr)-1-(indentLevel*2); local
38 return indentStr + (off < 0 ? 0 : off);
/system/core/adb/
H A Dsysdeps.h632 int off = 1; local
633 adb_setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &off, sizeof(off));
/system/core/trusty/storage/tests/
H A Dmain.cpp36 static bool is_valid_offset(storage_off_t off) argument
38 return (off & 0x3) == 0ULL;
41 static void fill_pattern32(uint32_t *buf, size_t len, storage_off_t off) argument
44 uint32_t pattern = (uint32_t)(off / sizeof(uint32_t));
50 static bool check_pattern32(const uint32_t *buf, size_t len, storage_off_t off) argument
53 uint32_t pattern = (uint32_t)(off / sizeof(uint32_t));
104 void WriteZeroChunk(file_handle_t handle, storage_off_t off, size_t chunk_len, bool complete );
105 void WritePatternChunk(file_handle_t handle, storage_off_t off, size_t chunk_len, bool complete);
106 void WritePattern(file_handle_t handle, storage_off_t off, size_t data_len, size_t chunk_len, bool complete);
108 void ReadChunk(file_handle_t handle, storage_off_t off, size_
125 WriteZeroChunk(file_handle_t handle, storage_off_t off, size_t chunk_len, bool complete) argument
141 WritePatternChunk(file_handle_t handle, storage_off_t off, size_t chunk_len, bool complete) argument
157 WritePattern(file_handle_t handle, storage_off_t off, size_t data_len, size_t chunk_len, bool complete) argument
173 ReadChunk(file_handle_t handle, storage_off_t off, size_t chunk_len, size_t head_len, size_t pattern_len, size_t tail_len) argument
205 ReadPattern(file_handle_t handle, storage_off_t off, size_t data_len, size_t chunk_len) argument
226 ReadPatternEOF(file_handle_t handle, storage_off_t off, size_t chunk_len, size_t exp_len) argument
[all...]
/system/extras/ksmutils/
H A Dksminfo.c199 off_t off; local
248 off = lseek(fd, vaddr, SEEK_SET);
249 if (off == (off_t)-1) {
/system/core/libsparse/
H A Doutput_file.c280 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/chre/external/flatbuffers/include/flatbuffers/
H A Dflatbuffers.h832 template<typename T> uoffset_t PushElement(Offset<T> off) {
834 return PushElement(ReferTo(off.o));
839 void TrackField(voffset_t field, uoffset_t off) {
840 FieldLoc fl = { off, field };
848 auto off = PushElement(e);
849 TrackField(field, off);
852 template<typename T> void AddOffset(voffset_t field, Offset<T> off) {
853 if (!off.o) return; // An offset of 0 means NULL, don't store.
854 AddElement(field, ReferTo(off.o), static_cast<uoffset_t>(0));
864 void AddStructOffset(voffset_t field, uoffset_t off) {
1036 auto off = CreateString(str, len); local
1365 uoffset_t off; member in struct:flatbuffers::Vector::FieldLoc
[all...]
/system/vold/
H A Dcryptfs.cpp443 static int get_crypt_ftr_info(char **metadata_fname, off64_t *off) argument
487 if (off) {
488 *off = cached_off;
1296 EVP_CIPHER_CTX_set_padding(&e_ctx, 0); /* Turn off padding as our data is block aligned */
1361 EVP_CIPHER_CTX_set_padding(&d_ctx, 0); /* Turn off padding as our data is block aligned */
2052 off64_t off; local
2078 if (get_crypt_ftr_info(NULL, &off) == 0) {
2079 ftr->persist_data_offset[0] = off + CRYPT_FOOTER_TO_PERSIST_OFFSET;
2080 ftr->persist_data_offset[1] = off + CRYPT_FOOTER_TO_PERSIST_OFFSET +

Completed in 250 milliseconds