Searched refs:offset (Results 1 - 25 of 60) sorted by relevance

123

/system/core/libcutils/
H A Dopen_memstream.c73 size_t offset; /* current write offset */ member in struct:__anon392
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 Dashmem-dev.c75 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/include/cutils/
H A Dashmem.h21 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/extras/libublock/include/ublock/
H A Dublock.h28 int (*read)(char *buf, uint64_t length, uint64_t offset);
29 int (*write)(const char *buf, uint64_t length, uint64_t offset);
/system/core/libdiskconfig/
H A Ddiskutils.c33 write_raw_image(const char *dst, const char *src, loff_t offset, int test) argument
43 ALOGI("Writing RAW image '%s' to '%s' (offset=%llu)", src, dst, offset);
55 if (lseek64(dst_fd, offset, SEEK_SET) != offset) {
56 ALOGE("Could not seek to offset %lld in %s.", offset, dst);
104 ALOGI("Wrote %llu bytes to %s @ %lld", total, dst, offset);
H A Dwrite_lst.c73 if (lseek64(fd, lst->offset, SEEK_SET) != (loff_t)lst->offset) {
74 ALOGE("Cannot seek to the specified position (%lld).", lst->offset);
81 lst->offset);
85 ALOGI("Would write %d bytes @ offset %lld.", lst->len, lst->offset);
/system/security/keystore/
H A Dkeystore_cli.cpp78 int offset; local
84 for (offset = 0; offset < length; offset += i) {
85 i = recv(sock, &bytes[offset], length - offset, 0);
H A Dkeystore_get.h58 int offset = 0; local
60 while (offset < length) {
61 int n = recv(sock, &value[offset], length - offset, 0);
66 offset += n;
H A Dkeystore_client.cpp77 int offset = 0; local
79 while (offset < length) {
80 int n = TEMP_FAILURE_RETRY(recv(sock, &data[offset], length - offset, 0));
86 offset += n;
/system/extras/ext4_utils/
H A Dbacked_block.h26 const char *file, off64_t offset,
31 void queue_data_file(const char *filename, off64_t offset, u32 len,
H A Dsimg_dump.py94 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 Dcontents.c55 static struct ext4_dir_entry_2 *add_dentry(u8 *data, u32 *offset, argument
63 u32 start_block = *offset / info.block_size;
64 u32 end_block = (*offset + rec_len - 1) / info.block_size;
70 prev->rec_len += end_block * info.block_size - *offset;
71 *offset = end_block * info.block_size;
74 dentry = (struct ext4_dir_entry_2 *)(data + *offset);
81 *offset += rec_len;
97 u32 offset = 0; local
138 dentry = add_dentry(data, &offset, NULL, inode_num, ".", EXT4_FT_DIR);
144 dentry = add_dentry(data, &offset, dentr
[all...]
H A Doutput_file.h29 off64_t offset, int len);
H A Dbacked_block.c27 off64_t offset; member in struct:data_block
109 void queue_data_file(const char *filename, off64_t offset, u32 len, argument
119 db->offset = offset;
142 file_func(priv, (u64)db->block * info.block_size, db->filename, db->offset, db->len);
/system/core/libpixelflinger/codeflinger/
H A DARMAssembler.cpp171 int32_t offset = int32_t(target_pc - (bt.pc+2)); local
172 *bt.pc |= offset & 0xFFFFFF;
273 int32_t offset = int32_t(pc - (mPC+2)); local
274 *mPC++ = (cc<<28) | (0xA<<24) | (offset & 0xFFFFFF);
279 int32_t offset = int32_t(pc - (mPC+2)); local
280 *mPC++ = (cc<<28) | (0xB<<24) | (offset & 0xFFFFFF);
294 void ARMAssembler::LDR(int cc, int Rd, int Rn, uint32_t offset) { argument
295 *mPC++ = (cc<<28) | (1<<26) | (1<<20) | (Rn<<16) | (Rd<<12) | offset;
297 void ARMAssembler::LDRB(int cc, int Rd, int Rn, uint32_t offset) { argument
298 *mPC++ = (cc<<28) | (1<<26) | (1<<22) | (1<<20) | (Rn<<16) | (Rd<<12) | offset;
300 STR(int cc, int Rd, int Rn, uint32_t offset) argument
303 STRB(int cc, int Rd, int Rn, uint32_t offset) argument
307 LDRH(int cc, int Rd, int Rn, uint32_t offset) argument
310 LDRSB(int cc, int Rd, int Rn, uint32_t offset) argument
313 LDRSH(int cc, int Rd, int Rn, uint32_t offset) argument
316 STRH(int cc, int Rd, int Rn, uint32_t offset) argument
366 PLD(int Rn, uint32_t offset) argument
[all...]
H A DARMAssemblerProxy.h76 int Rn, uint32_t offset = immed12_pre(0));
78 int Rn, uint32_t offset = immed12_pre(0));
80 int Rn, uint32_t offset = immed12_pre(0));
82 int Rn, uint32_t offset = immed12_pre(0));
84 int Rn, uint32_t offset = immed8_pre(0));
86 int Rn, uint32_t offset = immed8_pre(0));
88 int Rn, uint32_t offset = immed8_pre(0));
90 int Rn, uint32_t offset = immed8_pre(0));
100 virtual void PLD(int Rn, uint32_t offset);
H A DARMAssemblerProxy.cpp121 void ARMAssemblerProxy::LDR(int cc, int Rd, int Rn, uint32_t offset) { argument
122 mTarget->LDR(cc, Rd, Rn, offset);
124 void ARMAssemblerProxy::LDRB(int cc, int Rd, int Rn, uint32_t offset) { argument
125 mTarget->LDRB(cc, Rd, Rn, offset);
127 void ARMAssemblerProxy::STR(int cc, int Rd, int Rn, uint32_t offset) { argument
128 mTarget->STR(cc, Rd, Rn, offset);
130 void ARMAssemblerProxy::STRB(int cc, int Rd, int Rn, uint32_t offset) { argument
131 mTarget->STRB(cc, Rd, Rn, offset);
133 void ARMAssemblerProxy::LDRH(int cc, int Rd, int Rn, uint32_t offset) { argument
134 mTarget->LDRH(cc, Rd, Rn, offset);
136 LDRSB(int cc, int Rd, int Rn, uint32_t offset) argument
139 LDRSH(int cc, int Rd, int Rn, uint32_t offset) argument
142 STRH(int cc, int Rd, int Rn, uint32_t offset) argument
163 PLD(int Rn, uint32_t offset) argument
[all...]
H A DARMAssemblerInterface.cpp139 uint32_t offset = abs(immed8); local
146 ((W&1)<<21) | (((offset&0xF0)<<4)|(offset&0xF));
151 uint32_t offset = abs(immed8); local
158 (((offset&0xF0)<<4) | (offset&0xF));
H A DARMAssembler.h86 int Rn, uint32_t offset = immed12_pre(0));
88 int Rn, uint32_t offset = immed12_pre(0));
90 int Rn, uint32_t offset = immed12_pre(0));
92 int Rn, uint32_t offset = immed12_pre(0));
94 int Rn, uint32_t offset = immed8_pre(0));
96 int Rn, uint32_t offset = immed8_pre(0));
98 int Rn, uint32_t offset = immed8_pre(0));
100 int Rn, uint32_t offset = immed8_pre(0));
110 virtual void PLD(int Rn, uint32_t offset);
/system/extras/tests/bionic/libstdc++/
H A Dtest_cstddef.cpp42 // 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/core/include/ion/
H A Dion.h34 int flags, off_t offset, unsigned char **ptr, int *map_fd);
/system/extras/fatblock/
H A Dfatblock.c52 static int read_callback(char *buf, uint64_t length, uint64_t offset) argument
57 result = fs_read(&fs, buf, offset, length);
66 static int write_callback(const char *buf, uint64_t length, uint64_t offset) argument
68 DEBUG("writing to (%llu, %llu): we are read-only\n", offset, length);
/system/extras/libpagemap/include/pagemap/
H A Dpagemap.h72 unsigned long offset; member in struct:pm_map
132 #define _BITS(x, offset, bits) (((x) >> offset) & ((1LL << (bits)) - 1))
150 /* Get the name, flags, start/end address, or offset of a map. */
158 #define pm_map_offset(map) ((map)->offset)
/system/netd/
H A Dndc.c129 int offset = 0; local
137 strncpy(tmp, buffer + offset, 3);
141 printf("%s\n", buffer + offset);
146 offset = i + 1;
/system/vold/
H A Dvdc.c122 int offset = 0; local
130 strncpy(tmp, buffer + offset, 3);
134 printf("%s\n", buffer + offset);
139 offset = i + 1;

Completed in 185 milliseconds

123