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

12

/system/core/toolbox/
H A Dlsof.c104 size_t offset; local
116 while (fscanf(maps, "%*x-%*x %*s %zx %5s %ld %s\n", &offset, device, &inode,
124 "???", device, offset, inode, file);
/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 */
H A Dextent.c59 off64_t offset = 0; local
68 sparse_file_add_file(info.sparse_file, filename, offset, len,
70 offset += len;
/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/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/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/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/netd/
H A Dndc.c144 int offset = 0; local
152 strncpy(tmp, buffer + offset, 3);
156 printf("%s\n", buffer + offset);
161 offset = i + 1;
/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...]
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_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;
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;
/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 1214 milliseconds

12