Searched defs:offset (Results 251 - 275 of 4384) sorted by relevance

<<11121314151617181920>>

/external/compiler-rt/lib/dfsan/
H A Ddfsan_interceptors.cc20 int fd, OFF_T offset) {
21 void *res = REAL(mmap)(addr, length, prot, flags, fd, offset);
28 int fd, OFF64_T offset) {
29 void *res = REAL(mmap64)(addr, length, prot, flags, fd, offset);
19 INTERCEPTOR(void *, mmap, void *addr, SIZE_T length, int prot, int flags, int fd, OFF_T offset) argument
27 INTERCEPTOR(void *, mmap64, void *addr, SIZE_T length, int prot, int flags, int fd, OFF64_T offset) argument
/external/compiler-rt/test/msan/Linux/
H A Dfopencookie.cc28 static int cookie_seek(void *cookie, off64_t *offset, int whence) { argument
30 __msan_check_mem_is_initialized(offset, sizeof(*offset));
/external/curl/src/
H A Dtool_cb_see.c34 both represent the same value. Maximum offset used here when we lseek
35 using a 'long' data type offset */
43 ** Notice that this is not supposed to return the resulting offset. This
47 int tool_seek_cb(void *userdata, curl_off_t offset, int whence) argument
53 /* The offset check following here is only interesting if curl_off_t is
57 if(offset > OUR_MAX_SEEK_O) {
61 curl_off_t left = offset;
82 if(LSEEK_ERROR == lseek(in->fd, offset, whence))
/external/dng_sdk/source/
H A Ddng_file_stream.cpp89 uint64 offset)
92 if (fseek (fFile, (long) offset, SEEK_SET) != 0)
114 uint64 offset)
117 if (fseek (fFile, (uint32) offset, SEEK_SET) != 0)
87 DoRead(void *data, uint32 count, uint64 offset) argument
112 DoWrite(const void *data, uint32 count, uint64 offset) argument
/external/drrickorang/LoopbackApp/app/src/main/java/org/drrickorang/loopback/
H A DPipe.java39 * Read at most "count" number of samples into array "buffer", starting from index "offset".
41 * return the amount of samples read (non-blocking). offset + count must be <= buffer.length.
43 public abstract int read(short[] buffer, int offset, int count); argument
H A DPipeShort.java45 * offset must be >= 0.
47 * offset + count must be <= buffer.length.
50 public int write(short[] buffer, int offset, int count) { argument
58 System.arraycopy(buffer, offset, mBuffer, rear, written);
64 System.arraycopy(buffer, offset + written, mBuffer, 0, count);
76 public int read(short[] buffer, int offset, int count) { argument
97 System.arraycopy(mBuffer, front, buffer, offset, read);
105 System.arraycopy(mBuffer, 0, buffer, offset + read, count);
/external/dtc/libfdt/
H A Dlibfdt_internal.h65 int _fdt_check_node_offset(const void *fdt, int offset);
66 int _fdt_check_prop_offset(const void *fdt, int offset);
70 static inline const void *_fdt_offset_ptr(const void *fdt, int offset) argument
72 return (const char *)fdt + fdt_off_dt_struct(fdt) + offset;
75 static inline void *_fdt_offset_ptr_w(void *fdt, int offset) argument
77 return (void *)(uintptr_t)_fdt_offset_ptr(fdt, offset);
/external/dtc/tests/
H A Daddr_size_cells.c32 int offset; local
35 offset = fdt_path_offset(fdt, path);
36 if (offset < 0)
39 xac = fdt_address_cells(fdt, offset);
40 xsc = fdt_size_cells(fdt, offset);
H A Dget_name.c32 int offset; local
41 offset = fdt_path_offset(fdt, path);
42 if (offset < 0)
45 getname = fdt_get_name(fdt, offset, &len);
47 offset, getname, len);
49 FAIL("fdt_get_name(%d): %s", offset, fdt_strerror(len));
60 getname2 = fdt_get_name(fdt, offset, NULL);
62 FAIL("fdt_get_name(%d, NULL) failed", offset);
65 offset, getname2, getname);
H A Dget_path.c34 int offset; local
38 offset = fdt_path_offset(fdt, path);
39 if (offset < 0)
40 FAIL("Couldn't find path \"%s\": %s", path, fdt_strerror(offset));
44 len = fdt_get_path(fdt, offset, buf, buflen);
45 verbose_printf("get_path() %s -> %d -> %s\n", path, offset, buf);
H A Dnode_offset_by_compatible.c34 int offset = -1, target; local
40 target, offset);
41 offset = fdt_node_offset_by_compatible(fdt, offset, compat);
42 verbose_printf("%d\n", offset);
44 if (offset != target)
46 "instead of %d", compat, offset, target);
H A Dproperty_iterate.c38 int offset, property; local
54 offset = fdt_first_subnode(fdt, parent_offset);
55 if (offset < 0)
58 fdt_for_each_property_offset(property, fdt, offset)
70 int offset; local
73 fdt_for_each_subnode(offset, fdt, 0) {
74 test_node(fdt, offset);
H A Drw_tree1.c52 int offset, s1, s2; local
69 OFF_CHECK(offset, fdt_add_subnode(fdt, 0, "subnode@1"));
70 s1 = offset;
73 OFF_CHECK(offset, fdt_add_subnode(fdt, s1, "subsubnode"));
74 CHECK(fdt_setprop(fdt, offset, "compatible",
76 CHECK(fdt_setprop_cell(fdt, offset, "prop-int", TEST_VALUE_1));
77 OFF_CHECK(offset, fdt_add_subnode(fdt, s1, "ss1"));
79 OFF_CHECK(offset, fdt_add_subnode(fdt, 0, "subnode@2"));
80 s2 = offset;
83 OFF_CHECK(offset, fdt_add_subnod
[all...]
H A Dset_name.c32 int offset; local
41 offset = fdt_path_offset(fdt, path);
42 if (offset < 0)
45 getname = fdt_get_name(fdt, offset, &len);
47 offset, getname, len);
49 FAIL("fdt_get_name(%d): %s", offset, fdt_strerror(len));
59 err = fdt_set_name(fdt, offset, newname);
61 FAIL("fdt_set_name(%d, \"%s\"): %s", offset, newname,
64 getname = fdt_get_name(fdt, offset, &len);
66 FAIL("fdt_get_name(%d): %s", offset, fdt_strerro
[all...]
H A Dsubnode_iterate.c38 int offset; local
51 fdt_for_each_subnode(offset, fdt, parent_offset)
63 int offset; local
66 fdt_for_each_subnode(offset, fdt, 0) {
67 test_node(fdt, offset);
/external/e2fsprogs/ext2ed/
H A Ddisk.c35 int low_read (unsigned char *buffer,unsigned long length,unsigned long offset) argument
53 if (offset > file_system_info.file_system_size) { /* Check that the offset is within limits */
54 sprintf (temp,"Seek offset %ld is out of range",offset);
61 if ( (fseek (device_handle,offset,SEEK_SET))==-1) { /* Seek to the required offset */
62 wprintw (command_win,"Error - Failed to seek to offset %ld in device %s\n",offset,device_name);
68 wprintw (command_win,"Error - Failed to read from offset
75 low_write(unsigned char *buffer,unsigned long length,unsigned long offset) argument
132 log_changes(unsigned char *buffer,unsigned long length,unsigned long offset) argument
[all...]
/external/e2fsprogs/lib/blkid/
H A Dllseek.c46 extern long long llseek(int fd, long long offset, int origin);
74 static blkid_loff_t my_llseek(int fd, blkid_loff_t offset, int origin) argument
80 retval = _llseek(fd, ((unsigned long long) offset) >> 32,
81 ((unsigned long long)offset) & 0xffffffff,
84 retval = syscall(__NR__llseek, fd, ((unsigned long long) offset) >> 32,
85 ((unsigned long long)offset) & 0xffffffff,
95 blkid_loff_t blkid_llseek(int fd, blkid_loff_t offset, int whence) argument
101 (offset < ((blkid_loff_t) 1 << ((sizeof(off_t)*8) -1))))
102 return lseek(fd, (off_t) offset, whence);
109 result = my_llseek(fd, offset, whenc
131 blkid_llseek(int fd, blkid_loff_t offset, int origin) argument
[all...]
/external/e2fsprogs/lib/ext2fs/
H A Dllseek.c47 extern long long llseek (int fd, long long offset, int origin);
75 static ext2_loff_t my_llseek (int fd, ext2_loff_t offset, int origin) argument
81 retval = _llseek(fd, ((unsigned long long) offset) >> 32,
83 retval = syscall(__NR__llseek, fd, (unsigned long long) (offset >> 32),
85 ((unsigned long long) offset) & 0xffffffff,
95 ext2_loff_t ext2fs_llseek (int fd, ext2_loff_t offset, int origin) argument
98 return my_llseek (fd, offset, origin);
106 result = my_llseek (fd, offset, origin);
114 if (offset < ((ext2_loff_t) 1 << ((sizeof(off_t)*8) -1)))
115 return lseek(fd, (off_t) offset, origi
129 ext2fs_llseek(int fd, ext2_loff_t offset, int origin) argument
[all...]
H A Dtst_fs_struct.c2 * This testing program checks the offset of the ext2_filsys structure
27 static int do_field(const char *field, size_t size, int offset, int cur_offset) argument
29 if (offset != cur_offset) {
30 printf("\t(padding %d bytes?)\n", offset - cur_offset);
32 printf("%8d %-30s %3u\n", offset, field, (unsigned) size);
33 return offset + size;
41 printf("%8s %-30s %3s\n", "offset", "field", "size");
78 printf("Ending offset is %d\n\n", cur_offset);
H A Dtst_inode_size.c30 unsigned offset, unsigned cur_offset)
37 if (offset != cur_offset) {
38 printf("error: %s offset %u should be %u\n",
39 field, cur_offset, offset);
42 printf("%8d %-30s %3u\n", offset, field, (unsigned) size);
43 return offset + size;
51 printf("%8s %-30s %3s\n", "offset", "field", "size");
29 do_field(const char *field, unsigned size, unsigned cur_size, unsigned offset, unsigned cur_offset) argument
H A Dtst_super_size.c33 unsigned offset, unsigned cur_offset)
40 if (offset != cur_offset) {
41 printf("error: %s offset %u should be %u\n",
42 field, cur_offset, offset);
45 printf("%8d %-30s %3u\n", offset, field, size);
46 return offset + size;
54 printf("%8s %-30s %3s\n", "offset", "field", "size");
32 do_field(const char *field, unsigned size, unsigned cur_size, unsigned offset, unsigned cur_offset) argument
/external/eigen/blas/
H A DRank2Update.h42 Index offset = 0; local
45 Map<Matrix<Scalar,Dynamic,1> >(mat+offset, UpLo==Lower ? size-i : (i+1)) +=
49 mat[offset+(UpLo==Lower ? 0 : i)] = numext::real(mat[offset+(UpLo==Lower ? 0 : i)]);
50 offset += UpLo==Lower ? size-i : (i+1);
/external/elfutils/libdw/
H A Ddwarf_formudata.c52 Dwarf_Word offset; local
57 attr->cu->offset_size, &offset, sec_index, 0))
71 &offset, sec_index, 0))
76 if (INTUSE(dwarf_formudata) (attr, &offset))
80 unsigned char *readp = d->d_buf + offset;
92 *offsetp = offset;
H A Ddwarf_getabbrev.c1 /* Get abbreviation at given offset.
40 __libdw_getabbrev (Dwarf *dbg, struct Dwarf_CU *cu, Dwarf_Off offset, argument
47 if (offset >= dbg->sectiondata[IDX_debug_abbrev]->d_size)
54 = (unsigned char *) dbg->sectiondata[IDX_debug_abbrev]->d_buf + offset;
97 if (unlikely (abb->offset != offset))
99 /* A duplicate abbrev code at a different offset,
122 abb->offset = offset;
153 dwarf_getabbrev (Dwarf_Die *die, Dwarf_Off offset, size_ argument
[all...]
H A Ddwarf_getattrs.c39 void *arg, ptrdiff_t offset)
44 if (unlikely (offset == 1))
61 const unsigned char *const offset_attrp = abbrevp->attrp + offset;
86 distinguish this value from the attribute at offset 0.
88 offset of an attribute. */
101 /* Return the offset of the start of the attribute, so that
38 dwarf_getattrs(Dwarf_Die *die, int (*callback) (Dwarf_Attribute *, void *), void *arg, ptrdiff_t offset) argument

Completed in 364 milliseconds

<<11121314151617181920>>