Searched defs:offset (Results 26 - 42 of 42) sorted by relevance

12

/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...]
H A Dext4_utils.h50 int fd, off64_t offset)
52 return __mmap2(addr, length, prot, flags, fd, offset >> 12);
49 mmap64(void *addr, size_t length, int prot, int flags, int fd, off64_t offset) argument
H A Dext4fixup.c78 unsigned int group, offset; local
81 offset = (old_inum -1) % info.inodes_per_group;
83 return (group * new_inodes_per_group) + offset + 1;
102 /* Function to write a primary or backup superblock at a given offset */
103 static void write_sb(int fd, unsigned long long offset, struct ext4_super_block *sb) argument
111 ret = lseek64(fd, offset, SEEK_SET);
415 /* The first superblock is offset by 1K to leave room for boot sectors */
/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/extras/tests/lib/testUtil/
H A DtestUtil.c313 * to offset the displayed address by an amount set by calling
369 // Set the hex dump address offset amount
371 testXDumpSetOffset(uint64_t offset) argument
373 xDumpOffset = offset;
376 // Get the current hex dump address offset amount
/system/media/audio_utils/
H A Decho_reference.c392 int offset = er->frames_in - previousFrameIn; local
407 if (offset > 0) {
409 0, offset * er->rd_frame_size);
410 ALOGV("echo_reference_read(): pushing ref buffer by [%d]", offset);
414 offset = -offset;
415 if (offset > 0) {
416 memcpy(er->buffer, (char *)er->buffer + (offset * er->rd_frame_size),
/system/core/debuggerd/
H A Dtombstone.c235 uint32_t offset = stack_content - (mi->start + symbol->start); local
237 if (offset) {
239 label, *sp, stack_content, mi ? mi->name : "", symbol_name, offset);
245 if (offset) {
247 *sp, stack_content, mi ? mi->name : "", symbol_name, offset);
/system/core/libpixelflinger/codeflinger/
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 Dtexturing.cpp356 // merge base & offset
535 // and compute offset to the next texel
622 // merge base & offset...
623 comment("merge base & offset");
728 int offset = pixel; local
729 ADD(AL, 0, offset, lb, rt);
730 LDRB(AL, pixel, txPtr.reg, reg_scale_pre(offset));
812 const uint32_t offset = (mask & tmu.format.mask(i)) ? 0 : shift; local
813 texel.format.c[i].h = tmu.format.c[i].h + offset + prec;
827 int offset local
1017 int offset = pixel; local
[all...]
H A DMIPSAssembler.cpp298 // uint32_t offset = abs(immed8);
310 // uint32_t offset = abs(immed8);
768 void ArmToMipsAssembler::LDR(int cc, int Rd, int Rn, uint32_t offset) argument
772 if (offset > AMODE_UNSUPPORTED) offset = 0;
773 switch (offset) {
802 void ArmToMipsAssembler::LDRB(int cc, int Rd, int Rn, uint32_t offset) argument
806 if (offset > AMODE_UNSUPPORTED) offset = 0;
807 switch (offset) {
831 STR(int cc, int Rd, int Rn, uint32_t offset) argument
867 STRB(int cc, int Rd, int Rn, uint32_t offset) argument
895 LDRH(int cc, int Rd, int Rn, uint32_t offset) argument
923 LDRSB(int cc, int Rd, int Rn, uint32_t offset) argument
930 LDRSH(int cc, int Rd, int Rn, uint32_t offset) argument
937 STRH(int cc, int Rd, int Rn, uint32_t offset) argument
1033 PLD(int Rn, uint32_t offset) argument
1397 int32_t offset = int32_t(target_pc - (bt.pc+1)); local
1699 LW(int Rt, int Rbase, int16_t offset) argument
1704 SW(int Rt, int Rbase, int16_t offset) argument
1710 LB(int Rt, int Rbase, int16_t offset) argument
1715 LBU(int Rt, int Rbase, int16_t offset) argument
1720 SB(int Rt, int Rbase, int16_t offset) argument
1726 LH(int Rt, int Rbase, int16_t offset) argument
1731 LHU(int Rt, int Rbase, int16_t offset) argument
1736 SH(int Rt, int Rbase, int16_t offset) argument
1741 LUI(int Rt, int16_t offset) argument
[all...]
/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...]
/system/core/libsparse/
H A Doutput_file.c52 int fd, off64_t offset)
54 return __mmap2(addr, length, prot, flags, fd, offset >> 12);
704 int fd, int64_t offset)
712 aligned_offset = offset & ~(4096 - 1);
713 aligned_diff = offset - aligned_offset;
729 pos = lseek64(fd, offset, SEEK_SET);
753 const char *file, int64_t offset)
762 ret = write_fd_chunk(out, len, file_fd, offset);
51 mmap64(void *addr, size_t length, int prot, int flags, int fd, off64_t offset) argument
703 write_fd_chunk(struct output_file *out, unsigned int len, int fd, int64_t offset) argument
752 write_file_chunk(struct output_file *out, unsigned int len, const char *file, int64_t offset) argument
/system/core/sdcard/
H A Dsdcard.c841 __u64 offset = req->offset; local
849 h, h->fd, size, offset);
853 res = pread64(h->fd, handler->read_buffer, size, offset);
870 h, h->fd, req->size, req->offset);
871 res = pwrite64(h->fd, buffer, req->size, req->offset);
986 if (req->offset == 0) {
996 /* increment the offset so we can detect when rewinddir() seeks back to the beginning */
997 fde->off = req->offset + 1;
H A Dfuse.h383 __u64 offset; member in struct:fuse_read_in
395 __u64 offset; member in struct:fuse_write_in
/system/core/sh/
H A Darith_lex.c1296 int offset = (yy_c_buf_p) - (yytext_ptr); local
1332 (yy_c_buf_p) = (yytext_ptr) + offset;
/system/security/keystore/
H A Dkeystore.cpp283 uint8_t encrypted[0]; // Marks offset to encrypted data.
285 uint8_t digested[0]; // Marks offset to digested data.
863 int offset = bytes[0] << 8 | bytes[1]; local
864 if (length < offset) {
867 length = offset;
868 offset = 0;
869 while (offset < length) {
870 int n = recv(sock, &message[offset], length - offset, 0);
874 offset
[all...]

Completed in 155 milliseconds

12