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

123

/system/core/libcutils/
H A Dopen_memstream.c73 size_t offset; /* current write offset */ member in struct:__anon402
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/libpixelflinger/codeflinger/
H A DARMAssemblerInterface.cpp54 uint32_t offset = abs(immed8); local
61 ((W&1)<<21) | (((offset&0xF0)<<4)|(offset&0xF));
H A DARMAssembler.cpp176 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 DARMAssemblerProxy.cpp212 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
[all...]
H A DARMAssembler.h117 int Rn, uint32_t offset = __immed12_pre(0));
119 int Rn, uint32_t offset = __immed12_pre(0));
121 int Rn, uint32_t offset = __immed12_pre(0));
123 int Rn, uint32_t offset = __immed12_pre(0));
125 int Rn, uint32_t offset = __immed8_pre(0));
127 int Rn, uint32_t offset = __immed8_pre(0));
129 int Rn, uint32_t offset = __immed8_pre(0));
131 int Rn, uint32_t offset = __immed8_pre(0));
143 virtual void PLD(int Rn, uint32_t offset);
H A DARMAssemblerProxy.h105 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);
/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/core/libsparse/
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 Doutput_file.h33 const char *file, int64_t offset);
35 int fd, int64_t offset);
H A Dbacked_block.c36 int64_t offset; member in struct:backed_block::__anon460::__anon462
40 int64_t offset; member in struct:backed_block::__anon460::__anon463
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 Dsparse_read.c99 int fd, int64_t offset, unsigned int blocks, unsigned int block,
114 ret = sparse_file_add_fd(s, fd, offset, len, block);
225 static int process_chunk(struct sparse_file *s, int fd, off64_t offset, argument
236 ret = process_raw_chunk(s, chunk_data_size, fd, offset,
239 verbose_error(s->verbose, ret, "data block at %lld", offset);
247 verbose_error(s->verbose, ret, "fill block at %lld", offset);
256 verbose_error(s->verbose, ret, "skip block at %lld", offset);
265 offset);
271 chunk_header->chunk_type, offset);
286 off64_t offset; local
98 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
365 int64_t offset = 0; local
[all...]
H A Dbacked_block.h37 int64_t offset, unsigned int len, unsigned int block);
39 int64_t offset, unsigned int len, unsigned int block);
/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/extras/ext4_utils/
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...]
/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/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;
/system/media/camera/src/
H A Dcamera_metadata.c30 * data.offset.
36 size_t offset; member in union:camera_metadata_buffer_entry::__anon568
45 * its values stored at an offset in data.
266 entry->data.offset += dst->data_count;
331 entry->data.offset = dst->data_count;
332 memcpy(dst->data + entry->data.offset, data, data_bytes);
392 entry->data.u8 = src->data + buffer_entry->data.offset;
450 uint8_t *start = dst->data + entry->data.offset;
452 size_t length = dst->data_count - entry->data.offset - data_bytes;
461 e->data.offset > entr
[all...]

Completed in 31 milliseconds

123