Home
last modified time | relevance | path

Searched refs:ndx (Results 1 – 25 of 53) sorted by relevance

123

/external/elfutils/libelf/
Dgelf_update_symshndx.c64 gelf_update_symshndx (symdata, shndxdata, ndx, src, srcshndx) in gelf_update_symshndx() argument
67 int ndx;
80 if (unlikely (ndx < 0))
102 if (unlikely ((ndx + 1) * sizeof (Elf32_Word) > shndxdata_scn->d.d_size))
108 shndx = &((Elf32_Word *) shndxdata_scn->d.d_buf)[ndx];
131 if (unlikely ((ndx + 1) * sizeof (Elf32_Sym) > symdata_scn->d.d_size))
137 sym = &((Elf32_Sym *) symdata_scn->d.d_buf)[ndx];
154 if (unlikely ((ndx + 1) * sizeof (Elf64_Sym) > symdata_scn->d.d_size))
160 ((Elf64_Sym *) symdata_scn->d.d_buf)[ndx] = *src;
Dgelf_getsymshndx.c64 gelf_getsymshndx (symdata, shndxdata, ndx, dst, dstshndx) in gelf_getsymshndx() argument
67 int ndx;
93 if (unlikely ((ndx + 1) * sizeof (Elf32_Word) > shndxdata_scn->d.d_size))
99 shndx = ((Elf32_Word *) shndxdata_scn->d.d_buf)[ndx];
113 if (unlikely ((ndx + 1) * sizeof (Elf32_Sym) > symdata->d_size))
119 src = &((Elf32_Sym *) symdata->d_buf)[ndx];
142 if (unlikely ((ndx + 1) * sizeof (GElf_Sym) > symdata->d_size))
148 *dst = ((GElf_Sym *) symdata->d_buf)[ndx];
Dgelf_getrel.c62 gelf_getrel (data, ndx, dst) in gelf_getrel() argument
64 int ndx;
74 if (unlikely (ndx < 0))
96 if (unlikely ((ndx + 1) * sizeof (Elf32_Rel) > data_scn->d.d_size))
103 Elf32_Rel *src = &((Elf32_Rel *) data_scn->d.d_buf)[ndx];
116 if (unlikely ((ndx + 1) * sizeof (Elf64_Rel) > data_scn->d.d_size))
122 result = memcpy (dst, &((Elf64_Rel *) data_scn->d.d_buf)[ndx],
Dgelf_update_auxv.c61 gelf_update_auxv (data, ndx, src) in gelf_update_auxv() argument
63 int ndx;
73 if (unlikely (ndx < 0))
103 if (unlikely ((ndx + 1) * sizeof (Elf32_auxv_t) > data_scn->d.d_size))
109 auxv = &((Elf32_auxv_t *) data_scn->d.d_buf)[ndx];
117 if (unlikely ((ndx + 1) * sizeof (Elf64_auxv_t) > data_scn->d.d_size))
123 ((Elf64_auxv_t *) data_scn->d.d_buf)[ndx] = *src;
Dgelf_getrela.c62 gelf_getrela (data, ndx, dst) in gelf_getrela() argument
64 int ndx;
74 if (unlikely (ndx < 0))
96 if (unlikely ((ndx + 1) * sizeof (Elf32_Rela) > data_scn->d.d_size))
103 Elf32_Rela *src = &((Elf32_Rela *) data_scn->d.d_buf)[ndx];
117 if (unlikely ((ndx + 1) * sizeof (Elf64_Rela) > data_scn->d.d_size))
123 result = memcpy (dst, &((Elf64_Rela *) data_scn->d.d_buf)[ndx],
Dgelf_update_dyn.c62 gelf_update_dyn (data, ndx, src) in gelf_update_dyn() argument
64 int ndx;
74 if (unlikely (ndx < 0))
105 if (unlikely ((ndx + 1) * sizeof (Elf32_Dyn) > data_scn->d.d_size))
111 dyn = &((Elf32_Dyn *) data_scn->d.d_buf)[ndx];
119 if (unlikely ((ndx + 1) * sizeof (Elf64_Dyn) > data_scn->d.d_size))
125 ((Elf64_Dyn *) data_scn->d.d_buf)[ndx] = *src;
Dgelf_update_sym.c63 gelf_update_sym (data, ndx, src) in gelf_update_sym() argument
65 int ndx;
75 if (unlikely (ndx < 0))
105 if (unlikely ((ndx + 1) * sizeof (Elf32_Sym) > data_scn->d.d_size))
111 sym = &((Elf32_Sym *) data_scn->d.d_buf)[ndx];
128 if (unlikely ((ndx + 1) * sizeof (Elf64_Sym) > data_scn->d.d_size))
134 ((Elf64_Sym *) data_scn->d.d_buf)[ndx] = *src;
Dgelf_getauxv.c62 gelf_getauxv (data, ndx, dst) in gelf_getauxv() argument
64 int ndx;
95 if (unlikely ((ndx + 1) * sizeof (Elf32_auxv_t) > data_scn->d.d_size))
101 src = &((Elf32_auxv_t *) data_scn->d.d_buf)[ndx];
115 if (unlikely ((ndx + 1) * sizeof (GElf_auxv_t) > data_scn->d.d_size))
121 *dst = ((GElf_auxv_t *) data_scn->d.d_buf)[ndx];
Dgelf_getdyn.c63 gelf_getdyn (data, ndx, dst) in gelf_getdyn() argument
65 int ndx;
96 if (unlikely ((ndx + 1) * sizeof (Elf32_Dyn) > data_scn->d.d_size))
102 src = &((Elf32_Dyn *) data_scn->d.d_buf)[ndx];
117 if (unlikely ((ndx + 1) * sizeof (GElf_Dyn) > data_scn->d.d_size))
123 *dst = ((GElf_Dyn *) data_scn->d.d_buf)[ndx];
Dgelf_getsym.c63 gelf_getsym (data, ndx, dst) in gelf_getsym() argument
65 int ndx;
93 if (unlikely ((ndx + 1) * sizeof (Elf32_Sym) > data->d_size))
99 src = &((Elf32_Sym *) data->d_buf)[ndx];
122 if (unlikely ((ndx + 1) * sizeof (GElf_Sym) > data->d_size))
128 *dst = ((GElf_Sym *) data->d_buf)[ndx];
Dgelf_update_rel.c62 gelf_update_rel (Elf_Data *dst, int ndx, GElf_Rel *src) in gelf_update_rel() argument
71 if (unlikely (ndx < 0)) in gelf_update_rel()
102 if (unlikely ((ndx + 1) * sizeof (Elf32_Rel) > data_scn->d.d_size)) in gelf_update_rel()
108 rel = &((Elf32_Rel *) data_scn->d.d_buf)[ndx]; in gelf_update_rel()
117 if (unlikely ((ndx + 1) * sizeof (Elf64_Rel) > data_scn->d.d_size)) in gelf_update_rel()
123 ((Elf64_Rel *) data_scn->d.d_buf)[ndx] = *src; in gelf_update_rel()
Dgelf_update_lib.c63 gelf_update_lib (data, ndx, src) in gelf_update_lib() argument
65 int ndx;
71 if (unlikely (ndx < 0))
90 if (unlikely ((ndx + 1) * sizeof (Elf64_Lib) > data_scn->d.d_size))
94 ((Elf64_Lib *) data_scn->d.d_buf)[ndx] = *src;
Dgelf_update_versym.c63 gelf_update_versym (data, ndx, src) in gelf_update_versym() argument
65 int ndx;
78 if (unlikely (ndx < 0)
79 || unlikely ((ndx + 1) * sizeof (GElf_Versym) > data_scn->d.d_size))
94 ((GElf_Versym *) data_scn->d.d_buf)[ndx] = *src;
Dgelf_update_move.c63 gelf_update_move (data, ndx, src) in gelf_update_move() argument
65 int ndx;
78 if (unlikely (ndx < 0)
79 || unlikely ((ndx + 1) * sizeof (GElf_Move) > data_scn->d.d_size))
94 ((GElf_Move *) data_scn->d.d_buf)[ndx] = *src;
Dgelf_update_rela.c62 gelf_update_rela (Elf_Data *dst, int ndx, GElf_Rela *src) in gelf_update_rela() argument
71 if (unlikely (ndx < 0)) in gelf_update_rela()
104 if (unlikely ((ndx + 1) * sizeof (Elf32_Rela) > data_scn->d.d_size)) in gelf_update_rela()
110 rel = &((Elf32_Rela *) data_scn->d.d_buf)[ndx]; in gelf_update_rela()
120 if (unlikely ((ndx + 1) * sizeof (Elf64_Rela) > data_scn->d.d_size)) in gelf_update_rela()
126 ((Elf64_Rela *) data_scn->d.d_buf)[ndx] = *src; in gelf_update_rela()
Dgelf_update_syminfo.c63 gelf_update_syminfo (data, ndx, src) in gelf_update_syminfo() argument
65 int ndx;
75 if (unlikely (ndx < 0))
96 if (unlikely ((ndx + 1) * sizeof (GElf_Syminfo) > data_scn->d.d_size))
102 ((GElf_Syminfo *) data_scn->d.d_buf)[ndx] = *src;
Dgelf_getphdr.c63 gelf_getphdr (elf, ndx, dst) in gelf_getphdr() argument
65 int ndx;
103 if (ndx >= elf->state.elf32.ehdr->e_phnum)
113 phdr += ndx;
141 if (ndx >= elf->state.elf64.ehdr->e_phnum)
148 result = memcpy (dst, phdr + ndx, sizeof (GElf_Phdr));
Dgelf_update_phdr.c62 gelf_update_phdr (Elf *elf, int ndx, GElf_Phdr *src) in gelf_update_phdr() argument
104 if (unlikely (ndx >= elf->state.elf32.ehdr->e_phnum)) in gelf_update_phdr()
111 phdr += ndx; in gelf_update_phdr()
137 if (unlikely (ndx >= elf->state.elf64.ehdr->e_phnum)) in gelf_update_phdr()
144 memcpy (phdr + ndx, src, sizeof (Elf64_Phdr)); in gelf_update_phdr()
Dgelf_getlib.c63 gelf_getlib (data, ndx, dst) in gelf_getlib() argument
65 int ndx;
89 if (unlikely ((ndx + 1) * sizeof (GElf_Lib) > data->d_size))
93 *dst = ((GElf_Lib *) data->d_buf)[ndx];
Dgelf_getsyminfo.c63 gelf_getsyminfo (data, ndx, dst) in gelf_getsyminfo() argument
65 int ndx;
87 if (unlikely ((ndx + 1) * sizeof (GElf_Syminfo) > data->d_size))
93 *dst = ((GElf_Syminfo *) data->d_buf)[ndx];
Dgelf_getmove.c63 gelf_getmove (data, ndx, dst) in gelf_getmove() argument
65 int ndx;
86 if (unlikely ((ndx + 1) * sizeof (GElf_Move) > data->d_size))
95 *dst = ((GElf_Move *) data->d_buf)[ndx];
Dgelf_getversym.c63 gelf_getversym (data, ndx, dst) in gelf_getversym() argument
65 int ndx;
95 if (unlikely ((ndx + 1) * sizeof (GElf_Versym) > data->d_size))
102 *dst = ((GElf_Versym *) data->d_buf)[ndx];
/external/elfutils/libdwfl/
Dcore-file.c161 for (int ndx = 0; result >= 0 && ndx < ehdr->e_phnum; ++ndx) in dwfl_report_core_segments() local
164 GElf_Phdr *phdr = gelf_getphdr (elf, ndx, &phdr_mem); in dwfl_report_core_segments()
173 result = dwfl_report_segment (dwfl, ndx, phdr, 0, NULL); in dwfl_report_core_segments()
258 dwfl_elf_phdr_memory_callback (Dwfl *dwfl, int ndx, in dwfl_elf_phdr_memory_callback() argument
266 if (ndx == -1) in dwfl_elf_phdr_memory_callback()
280 if (unlikely (gelf_getphdr (elf, ndx++, &phdr) == NULL)) in dwfl_elf_phdr_memory_callback()
297 if (unlikely (gelf_getphdr (elf, ndx++, &phdr) == NULL)) in dwfl_elf_phdr_memory_callback()
402 int ndx = dwfl_report_core_segments (dwfl, elf, ehdr, &notes_phdr); in dwfl_core_file_report() local
403 if (unlikely (ndx <= 0)) in dwfl_core_file_report()
404 return ndx; in dwfl_core_file_report()
[all …]
/external/elfutils/src/
Delfcmp.c290 for (int ndx = 0; ndx < (int) (shdr1->sh_size / shdr1->sh_entsize); in main() local
291 ++ndx) in main()
294 GElf_Sym *sym1 = gelf_getsym (data1, ndx, &sym1_mem); in main()
300 GElf_Sym *sym2 = gelf_getsym (data2, ndx, &sym2_mem); in main()
347 if (search_for_copy_reloc (ebl1, elf_ndxscn (scn1), ndx) in main()
348 || search_for_copy_reloc (ebl2, elf_ndxscn (scn2), ndx)) in main()
447 for (int ndx = 0; ndx < ehdr1->e_phnum; ++ndx) in main() local
450 GElf_Phdr *phdr1 = gelf_getphdr (elf1, ndx, &phdr1_mem); in main()
454 ndx, fname1, elf_errmsg (-1)); in main()
456 GElf_Phdr *phdr2 = gelf_getphdr (elf2, ndx, &phdr2_mem); in main()
[all …]
/external/webkit/Source/WebCore/html/
DTimeRanges.cpp126 for (unsigned ndx = 0; ndx < count; ndx++) { in nearest() local
127 float startTime = start(ndx, unused); in nearest()
128 float endTime = end(ndx, unused); in nearest()

123