Home
last modified time | relevance | path

Searched refs:readp (Results 1 – 18 of 18) sorted by relevance

/external/elfutils/libdw/
Ddwarf_getpubnames.c51 unsigned char *readp = startp; in get_offsets() local
52 unsigned char *endp = readp + dbg->sectiondata[IDX_debug_pubnames]->d_size; in get_offsets()
54 while (readp + 14 < endp) in get_offsets()
75 Dwarf_Off len = read_4ubyte_unaligned_inc (dbg, readp); in get_offsets()
78 len = read_8ubyte_unaligned_inc (dbg, readp); in get_offsets()
89 mem[cnt].set_start = readp + 2 + 2 * len_bytes - startp; in get_offsets()
99 uint16_t version = read_2ubyte_unaligned (dbg, readp); in get_offsets()
108 readp + 2, len_bytes, in get_offsets()
125 readp += len; in get_offsets()
190 unsigned char *readp = startp + offset; in dwarf_getpubnames() local
[all …]
Ddwarf_getaranges.c85 const unsigned char *readp = dbg->sectiondata[IDX_debug_aranges]->d_buf; in dwarf_getaranges() local
87 = readp + dbg->sectiondata[IDX_debug_aranges]->d_size; in dwarf_getaranges()
89 while (readp < readendp) in dwarf_getaranges()
91 const unsigned char *hdrstart = readp; in dwarf_getaranges()
110 if (unlikely (readp + 4 > readendp)) in dwarf_getaranges()
113 Dwarf_Word length = read_4ubyte_unaligned_inc (dbg, readp); in dwarf_getaranges()
117 if (unlikely (readp + 8 > readendp)) in dwarf_getaranges()
120 length = read_8ubyte_unaligned_inc (dbg, readp); in dwarf_getaranges()
127 if (unlikely (readp + 2 > readendp)) in dwarf_getaranges()
130 unsigned int version = read_2ubyte_unaligned_inc (dbg, readp); in dwarf_getaranges()
[all …]
Ddwarf_getmacros.c145 const unsigned char *readp, in get_table_for_offset() argument
149 const unsigned char *startp = readp; in get_table_for_offset()
152 if (readp + 3 > endp) in get_table_for_offset()
159 uint16_t version = read_2ubyte_unaligned_inc (dbg, readp); in get_table_for_offset()
166 uint8_t flags = *readp++; in get_table_for_offset()
172 line_offset = read_addr_unaligned_inc (is_64bit ? 8 : 4, dbg, readp); in get_table_for_offset()
173 if (readp > endp) in get_table_for_offset()
218 unsigned count = *readp++; in get_table_for_offset()
221 unsigned opcode = *readp++; in get_table_for_offset()
224 if (readp >= endp) in get_table_for_offset()
[all …]
DlibdwP.h648 __libdw_dieabbrev (Dwarf_Die *die, const unsigned char **readp) in __libdw_dieabbrev() argument
651 if (die->abbrev == NULL || readp != NULL) in __libdw_dieabbrev()
660 if (readp != NULL) in __libdw_dieabbrev()
661 *readp = addr; in __libdw_dieabbrev()
937 const unsigned char **readp,
1055 const unsigned char *readp; in str_offsets_base_off() local
1057 start = readp = (const unsigned char *) data->d_buf; in str_offsets_base_off()
1063 unit_length = read_4ubyte_unaligned_inc (dbg, readp); in str_offsets_base_off()
1066 if (unlikely (readendp - readp < 8)) in str_offsets_base_off()
1068 unit_length = read_8ubyte_unaligned_inc (dbg, readp); in str_offsets_base_off()
[all …]
Ddwarf_child.c46 const unsigned char *readp = NULL; in __libdw_find_attr() local
49 Dwarf_Abbrev *abbrevp = __libdw_dieabbrev (die, &readp); in __libdw_find_attr()
85 return (unsigned char *) readp; in __libdw_find_attr()
91 size_t len = __libdw_form_val_len (die->cu, attr_form, readp); in __libdw_find_attr()
94 readp = NULL; in __libdw_find_attr()
99 readp += len; in __libdw_find_attr()
116 return (unsigned char *) readp; in __libdw_find_attr()
Ddwarf_getlocation.c805 const unsigned char *readp = locs->d_buf + offset; in getlocations_addr() local
813 &readp, readendp, in getlocations_addr()
831 if (readendp - readp < 2) in getlocations_addr()
837 block.length = read_2ubyte_unaligned_inc (dbg, readp); in getlocations_addr()
841 if (readendp - readp < 1) in getlocations_addr()
843 get_uleb128 (block.length, readp, readendp); in getlocations_addr()
845 block.data = (unsigned char *) readp; in getlocations_addr()
846 if (readendp - readp < (ptrdiff_t) block.length) in getlocations_addr()
848 readp += block.length; in getlocations_addr()
861 return readp - (unsigned char *) locs->d_buf; in getlocations_addr()
Ddwarf_formudata.c122 unsigned char *readp = d->d_buf + offset; in __libdw_formptr() local
124 if (unlikely (readp >= endp)) in __libdw_formptr()
135 return readp; in __libdw_formptr()
Ddwarf_ranges.c502 const unsigned char *readp; in dwarf_ranges() local
531 readp = d->d_buf + offset; in dwarf_ranges()
539 &readp, readendp, in dwarf_ranges()
555 return readp - (unsigned char *) d->d_buf; in dwarf_ranges()
DChangeLog14 * dwarf_child.c (__libdw_find_attr): Initialize readp to NULL.
498 type of readp to Add readend argument. Check data size. Include base
506 (__libdw_read_begin_end_pair_inc): Change argument type of readp to
/external/elfutils/src/
Dreadelf.c4916 unsigned char **readp, unsigned char *endp, in skip_listptr_hole() argument
4928 || p->offset >= (Dwarf_Off) (endp - *readp + offset)) in skip_listptr_hole()
4930 *readp = endp; in skip_listptr_hole()
4938 *readp += p->offset - offset; in skip_listptr_hole()
5109 const unsigned char *readp = start; in print_debug_addr_section() local
5113 while (readp < readendp) in print_debug_addr_section()
5122 Dwarf_Off off = (Dwarf_Off) (readp in print_debug_addr_section()
5196 unit_length = (uint64_t) (next_unitp - readp); in print_debug_addr_section()
5212 unit_length = read_4ubyte_unaligned_inc (dbg, readp); in print_debug_addr_section()
5215 if (unlikely (readp > readendp - 8)) in print_debug_addr_section()
[all …]
DChangeLog117 * readelf.c (print_debug_frame_section): Make sure readp is never
282 Do increase readp for DW_FORM_strx[1234].
298 * readelf.c (print_form_data): Don't reuse readp and readendp when
341 (next_unitp - readp) in case we don't have a real header.
1595 (print_cfa_program): Likewise and add more readp bounds checks.
/external/squashfs-tools/squashfs-tools/
Dcaches-queues-lists.c55 queue->readp = queue->writep = 0; in queue_init()
71 while((nextp = (queue->writep + 1) % queue->size) == queue->readp) in queue_put()
88 while(queue->readp == queue->writep) in queue_get()
91 data = queue->data[queue->readp]; in queue_get()
92 queue->readp = (queue->readp + 1) % queue->size; in queue_get()
107 empty = queue->readp == queue->writep; in queue_empty()
120 queue->readp = queue->writep; in queue_flush()
132 queue->readp <= queue->writep ? queue->writep - queue->readp : in dump_queue()
133 queue->size - queue->readp + queue->writep, in dump_queue()
134 queue->readp == queue->writep ? " (EMPTY)" : in dump_queue()
[all …]
Dunsquashfs.c190 queue->readp = queue->writep = 0; in queue_init()
205 while((nextp = (queue->writep + 1) % queue->size) == queue->readp) in queue_put()
220 while(queue->readp == queue->writep) in queue_get()
223 data = queue->data[queue->readp]; in queue_get()
224 queue->readp = (queue->readp + 1) % queue->size; in queue_get()
237 queue->readp <= queue->writep ? queue->writep - queue->readp : in dump_queue()
238 queue->size - queue->readp + queue->writep, in dump_queue()
239 queue->readp == queue->writep ? " (EMPTY)" : in dump_queue()
240 ((queue->writep + 1) % queue->size) == queue->readp ? in dump_queue()
Dunsquashfs.h159 int readp; member
Dcaches-queues-lists.h133 int readp; member
/external/libevent/
Dhttp.c4699 char *readbuf = NULL, *readp = NULL, *token = NULL, *query = NULL; in evhttp_uri_parse_with_flags() local
4717 readp = readbuf; in evhttp_uri_parse_with_flags()
4729 token = strchr(readp, ':'); in evhttp_uri_parse_with_flags()
4730 if (token && scheme_ok(readp,token)) { in evhttp_uri_parse_with_flags()
4732 uri->scheme = mm_strdup(readp); in evhttp_uri_parse_with_flags()
4737 readp = token+1; /* eat : */ in evhttp_uri_parse_with_flags()
4741 if (readp[0]=='/' && readp[1] == '/') { in evhttp_uri_parse_with_flags()
4743 readp += 2; in evhttp_uri_parse_with_flags()
4744 authority = readp; in evhttp_uri_parse_with_flags()
4745 path = end_of_authority(readp); in evhttp_uri_parse_with_flags()
[all …]
/external/ltp/testcases/kernel/fs/doio/
Ddoio.c1286 struct read_req *readp = &ioreq->r_data.read; in format_rw() local
1300 fd, (unsigned long)buffer, readp->r_nbytes); in format_rw()
1304 fd, readp->r_file, readp->r_oflags); in format_rw()
1307 readp->r_offset); in format_rw()
1332 fd, readap->r_file, readp->r_oflags); in format_rw()
/external/tremolo/Tremolo/
Dvorbisfile.c554 int readp, in _fetch_and_process_packet() argument
632 if(!readp){ in _fetch_and_process_packet()