Lines Matching refs:idx
183 _bfd_elf_strtab_addref (struct elf_strtab_hash *tab, bfd_size_type idx) in _bfd_elf_strtab_addref() argument
185 if (idx == 0 || idx == (bfd_size_type) -1) in _bfd_elf_strtab_addref()
188 BFD_ASSERT (idx < tab->size); in _bfd_elf_strtab_addref()
189 ++tab->array[idx]->refcount; in _bfd_elf_strtab_addref()
193 _bfd_elf_strtab_delref (struct elf_strtab_hash *tab, bfd_size_type idx) in _bfd_elf_strtab_delref() argument
195 if (idx == 0 || idx == (bfd_size_type) -1) in _bfd_elf_strtab_delref()
198 BFD_ASSERT (idx < tab->size); in _bfd_elf_strtab_delref()
199 BFD_ASSERT (tab->array[idx]->refcount > 0); in _bfd_elf_strtab_delref()
200 --tab->array[idx]->refcount; in _bfd_elf_strtab_delref()
204 _bfd_elf_strtab_refcount (struct elf_strtab_hash *tab, bfd_size_type idx) in _bfd_elf_strtab_refcount() argument
206 return tab->array[idx]->refcount; in _bfd_elf_strtab_refcount()
212 bfd_size_type idx; in _bfd_elf_strtab_clear_all_refs() local
214 for (idx = 1; idx < tab->size; idx++) in _bfd_elf_strtab_clear_all_refs()
215 tab->array[idx]->refcount = 0; in _bfd_elf_strtab_clear_all_refs()
221 _bfd_elf_strtab_restore_size (struct elf_strtab_hash *tab, bfd_size_type idx) in _bfd_elf_strtab_restore_size() argument
226 BFD_ASSERT (idx <= curr_size); in _bfd_elf_strtab_restore_size()
227 tab->size = idx; in _bfd_elf_strtab_restore_size()
228 for (; idx < curr_size; ++idx) in _bfd_elf_strtab_restore_size()
233 tab->array[idx]->refcount = 0; in _bfd_elf_strtab_restore_size()
234 tab->array[idx]->len = 0; in _bfd_elf_strtab_restore_size()
245 _bfd_elf_strtab_offset (struct elf_strtab_hash *tab, bfd_size_type idx) in _bfd_elf_strtab_offset() argument
249 if (idx == 0) in _bfd_elf_strtab_offset()
251 BFD_ASSERT (idx < tab->size); in _bfd_elf_strtab_offset()
253 entry = tab->array[idx]; in _bfd_elf_strtab_offset()
256 return tab->array[idx]->u.index; in _bfd_elf_strtab_offset()