/system/core/include/utils/ |
H A D | Compat.h | 30 static inline off64_t lseek64(int fd, off64_t offset, int whence) { argument 31 return lseek(fd, offset, whence); 35 static inline ssize_t pread64(int fd, void* buf, size_t nbytes, off64_t offset) { argument 36 return pread(fd, buf, nbytes, offset);
|
/system/core/libcutils/ |
H A D | open_memstream.c | 73 size_t offset; /* current write offset */ member in struct:__anon157 81 * current offset. We also have to take into account the extra '\0' 88 DBUG(("+++ ensureCap off=%d size=%d\n", stream->offset, writeSize)); 90 size_t neededSize = stream->offset + writeSize + 1; 131 if (stream->eof < stream->offset) { 133 stream->eof, stream->offset-1)); 135 stream->offset - stream->eof); 139 memcpy(*stream->bufp + stream->offset, buf, size); 140 stream->offset 164 seek_memstream(void* cookie, fpos_t offset, int whence) argument [all...] |
H A D | ashmem-dev.c | 75 int ashmem_pin_region(int fd, size_t offset, size_t len) argument 77 struct ashmem_pin pin = { offset, len }; 81 int ashmem_unpin_region(int fd, size_t offset, size_t len) argument 83 struct ashmem_pin pin = { offset, len };
|
/system/core/libpixelflinger/codeflinger/ |
H A D | ARMAssemblerInterface.cpp | 54 uint32_t offset = abs(immed8); local 61 ((W&1)<<21) | (((offset&0xF0)<<4)|(offset&0xF)); 69 int Rn, uint32_t offset) 71 LDR(cc, Rd, Rn, offset); 74 int Rn, uint32_t offset) 76 STR(cc, Rd, Rn, offset); 68 ADDR_LDR(int cc, int Rd, int Rn, uint32_t offset) argument 73 ADDR_STR(int cc, int Rd, int Rn, uint32_t offset) argument
|
H A D | ARMAssembler.cpp | 176 int32_t offset = int32_t(target_pc - (bt.pc+2)); local 177 *bt.pc |= offset & 0xFFFFFF; 278 int32_t offset = int32_t(pc - (mPC+2)); local 279 *mPC++ = (cc<<28) | (0xA<<24) | (offset & 0xFFFFFF); 284 int32_t offset = int32_t(pc - (mPC+2)); local 285 *mPC++ = (cc<<28) | (0xB<<24) | (offset & 0xFFFFFF); 299 void ARMAssembler::LDR(int cc, int Rd, int Rn, uint32_t offset) { argument 300 *mPC++ = (cc<<28) | (1<<26) | (1<<20) | (Rn<<16) | (Rd<<12) | offset; 302 void ARMAssembler::LDRB(int cc, int Rd, int Rn, uint32_t offset) { argument 303 *mPC++ = (cc<<28) | (1<<26) | (1<<22) | (1<<20) | (Rn<<16) | (Rd<<12) | offset; 305 STR(int cc, int Rd, int Rn, uint32_t offset) argument 308 STRB(int cc, int Rd, int Rn, uint32_t offset) argument 312 LDRH(int cc, int Rd, int Rn, uint32_t offset) argument 315 LDRSB(int cc, int Rd, int Rn, uint32_t offset) argument 318 LDRSH(int cc, int Rd, int Rn, uint32_t offset) argument 321 STRH(int cc, int Rd, int Rn, uint32_t offset) argument 371 PLD(int Rn, uint32_t offset) argument 561 uint32_t offset = abs(immed8); local 573 uint32_t offset = abs(immed8); local [all...] |
H A D | ARMAssemblerProxy.cpp | 212 void ARMAssemblerProxy::LDR(int cc, int Rd, int Rn, uint32_t offset) { argument 213 mTarget->LDR(cc, Rd, Rn, offset); 215 void ARMAssemblerProxy::LDRB(int cc, int Rd, int Rn, uint32_t offset) { argument 216 mTarget->LDRB(cc, Rd, Rn, offset); 218 void ARMAssemblerProxy::STR(int cc, int Rd, int Rn, uint32_t offset) { argument 219 mTarget->STR(cc, Rd, Rn, offset); 221 void ARMAssemblerProxy::STRB(int cc, int Rd, int Rn, uint32_t offset) { argument 222 mTarget->STRB(cc, Rd, Rn, offset); 224 void ARMAssemblerProxy::LDRH(int cc, int Rd, int Rn, uint32_t offset) { argument 225 mTarget->LDRH(cc, Rd, Rn, offset); 227 LDRSB(int cc, int Rd, int Rn, uint32_t offset) argument 230 LDRSH(int cc, int Rd, int Rn, uint32_t offset) argument 233 STRH(int cc, int Rd, int Rn, uint32_t offset) argument 254 PLD(int Rn, uint32_t offset) argument 297 ADDR_LDR(int cc, int Rd, int Rn, uint32_t offset) argument 300 ADDR_STR(int cc, int Rd, int Rn, uint32_t offset) argument [all...] |
H A D | ARMAssemblerProxy.h | 105 int Rn, uint32_t offset = __immed12_pre(0)); 107 int Rn, uint32_t offset = __immed12_pre(0)); 109 int Rn, uint32_t offset = __immed12_pre(0)); 111 int Rn, uint32_t offset = __immed12_pre(0)); 113 int Rn, uint32_t offset = __immed8_pre(0)); 115 int Rn, uint32_t offset = __immed8_pre(0)); 117 int Rn, uint32_t offset = __immed8_pre(0)); 119 int Rn, uint32_t offset = __immed8_pre(0)); 129 virtual void PLD(int Rn, uint32_t offset); 150 int Rn, uint32_t offset [all...] |
H A D | ARMAssembler.h | 116 int Rn, uint32_t offset = __immed12_pre(0)); 118 int Rn, uint32_t offset = __immed12_pre(0)); 120 int Rn, uint32_t offset = __immed12_pre(0)); 122 int Rn, uint32_t offset = __immed12_pre(0)); 124 int Rn, uint32_t offset = __immed8_pre(0)); 126 int Rn, uint32_t offset = __immed8_pre(0)); 128 int Rn, uint32_t offset = __immed8_pre(0)); 130 int Rn, uint32_t offset = __immed8_pre(0)); 142 virtual void PLD(int Rn, uint32_t offset);
|
/system/core/include/cutils/ |
H A D | ashmem.h | 21 int ashmem_pin_region(int fd, size_t offset, size_t len); 22 int ashmem_unpin_region(int fd, size_t offset, size_t len);
|
/system/core/libdiskconfig/ |
H A D | diskutils.c | 34 write_raw_image(const char *dst, const char *src, loff_t offset, int test) argument 44 ALOGI("Writing RAW image '%s' to '%s' (offset=%llu)", src, dst, (unsigned long long)offset); 56 if (lseek64(dst_fd, offset, SEEK_SET) != offset) { 57 ALOGE("Could not seek to offset %lld in %s.", (long long)offset, dst); 105 ALOGI("Wrote %" PRIu64 " bytes to %s @ %lld", total, dst, (long long)offset);
|
H A D | write_lst.c | 73 if (lseek64(fd, lst->offset, SEEK_SET) != (loff_t)lst->offset) { 74 ALOGE("Cannot seek to the specified position (%lld).", (long long)lst->offset); 81 (long long)lst->offset); 85 ALOGI("Would write %d bytes @ offset %lld.", lst->len, (long long)lst->offset);
|
/system/extras/f2fs_utils/ |
H A D | f2fs_ioutils.c | 98 static int dev_write_fd(void *buf, __u64 offset, size_t len) argument 100 if (lseek64(config.fd, (off64_t)offset, SEEK_SET) < 0) 151 int dev_read(void *buf, __u64 offset, size_t len) argument 156 int dev_write(void *buf, __u64 offset, size_t len) argument 159 return dev_write_fd(buf, offset, len); 161 return dev_write_sparse(buf, offset, len); 166 int dev_fill(void *buf, __u64 offset, size_t len) argument 170 return dev_write_fd(buf, offset, len);
|
/system/core/libbacktrace/ |
H A D | UnwindPtrace.h | 33 virtual std::string GetFunctionNameRaw(uintptr_t pc, uintptr_t* offset);
|
H A D | UnwindCurrent.h | 34 virtual std::string GetFunctionNameRaw(uintptr_t pc, uintptr_t* offset);
|
H A D | BacktraceImpl.h | 33 virtual std::string GetFunctionNameRaw(uintptr_t pc, uintptr_t* offset) = 0; 43 inline std::string GetFunctionName(uintptr_t pc, uintptr_t* offset) { argument 44 return backtrace_obj_->GetFunctionName(pc, offset);
|
/system/core/libion/kernel-headers/linux/ |
H A D | ion_test.h | 26 __u64 offset; member in struct:ion_test_rw_data
|
/system/core/libion/original-kernel-headers/linux/ |
H A D | ion_test.h | 26 * @offset: offset into the ion buffer to start reading 32 __u64 offset; member in struct:ion_test_rw_data
|
/system/core/libsparse/ |
H A D | simg_dump.py | 94 print("chunk offset number offset number") 95 offset = 0 105 print("%4u %10u %10u %7u %7u" % (i, FH.tell(), data_sz, offset, chunk_sz), 153 offset += chunk_sz 155 print(" %10u %7u End" % (FH.tell(), offset)) 157 if total_blks != offset: 159 % (total_blks, offset))
|
H A D | output_file.h | 33 const char *file, int64_t offset); 35 int fd, int64_t offset);
|
H A D | backed_block.c | 36 int64_t offset; member in struct:backed_block::__anon213::__anon215 40 int64_t offset; member in struct:backed_block::__anon213::__anon216 97 return bb->file.offset; 99 return bb->fd.offset; 225 a->file.offset + a->len != b->file.offset) { 231 a->fd.offset + a->len != b->fd.offset) { 325 int64_t offset, unsigned int len, unsigned int block) 336 bb->file.offset 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 D | sparse_read.c | 101 int fd, int64_t offset, unsigned int blocks, unsigned int block, 116 ret = sparse_file_add_fd(s, fd, offset, len, block); 222 static int process_chunk(struct sparse_file *s, int fd, off64_t offset, argument 233 ret = process_raw_chunk(s, chunk_data_size, fd, offset, 236 verbose_error(s->verbose, ret, "data block at %lld", offset); 244 verbose_error(s->verbose, ret, "fill block at %lld", offset); 253 verbose_error(s->verbose, ret, "skip block at %lld", offset); 262 offset); 268 chunk_header->chunk_type, offset); 283 off64_t offset; local 100 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 362 int64_t offset = 0; local [all...] |
/system/core/toolbox/upstream-netbsd/bin/dd/ |
H A D | position.c | 74 (off_t)in.offset * (off_t)in.dbsz, SEEK_CUR) == -1) { 87 for (bcnt = in.dbsz, cnt = in.offset, warned = 0; cnt;) { 141 (off_t)out.offset * (off_t)out.dbsz, SEEK_SET) == -1) 150 t_op.mt_count = out.offset; 159 for (cnt = 0; cnt < out.offset; ++cnt) { 178 while (cnt++ < out.offset)
|
/system/core/libutils/ |
H A D | FileMap.cpp | 90 bool FileMap::create(const char* origFileName, int fd, off64_t offset, size_t length, argument 115 adjust = offset % mPageSize; 116 adjOffset = offset - adjust; 141 assert(offset >= 0); 158 adjust = offset % mPageSize; 160 adjOffset = offset - adjust; 170 // Cygwin does not seem to like file mapping files from an offset. 171 // So if we fail, try again with offset zero 173 adjust = offset; 186 mDataOffset = offset; [all...] |
/system/extras/tests/bionic/libstdc++/ |
H A D | test_cstddef.cpp | 42 // Dummy struct used to calculate offset of some of its fields. 81 volatile size_t offset = offsetof(struct Foo, field2); local 82 return offset == 1;
|
/system/vold/ |
H A D | vdc.c | 140 int offset = 0; local 148 strncpy(tmp, buffer + offset, 3); 152 printf("%s\n", buffer + offset); 157 offset = i + 1;
|