Lines Matching refs:pos
148 static unsigned int get_symbol_offset(unsigned long pos) in get_symbol_offset() argument
157 name = &kallsyms_names[kallsyms_markers[pos >> 8]]; in get_symbol_offset()
165 for (i = 0; i < (pos & 0xFF); i++) in get_symbol_offset()
293 unsigned long pos; in kallsyms_lookup() local
295 pos = get_symbol_pos(addr, symbolsize, offset); in kallsyms_lookup()
297 kallsyms_expand_symbol(get_symbol_offset(pos), namebuf); in kallsyms_lookup()
314 unsigned long pos; in lookup_symbol_name() local
316 pos = get_symbol_pos(addr, NULL, NULL); in lookup_symbol_name()
318 kallsyms_expand_symbol(get_symbol_offset(pos), symname); in lookup_symbol_name()
332 unsigned long pos; in lookup_symbol_attrs() local
334 pos = get_symbol_pos(addr, size, offset); in lookup_symbol_attrs()
336 kallsyms_expand_symbol(get_symbol_offset(pos), name); in lookup_symbol_attrs()
422 loff_t pos; member
433 if (module_get_kallsym(iter->pos - kallsyms_num_syms, &iter->value, in get_ksymbol_mod()
446 iter->value = kallsyms_addresses[iter->pos]; in get_ksymbol_core()
459 iter->pos = new_pos; in reset_iter()
463 static int update_iter(struct kallsym_iter *iter, loff_t pos) in update_iter() argument
466 if (pos >= kallsyms_num_syms) { in update_iter()
467 iter->pos = pos; in update_iter()
472 if (pos != iter->pos) in update_iter()
473 reset_iter(iter, pos); in update_iter()
476 iter->pos++; in update_iter()
481 static void *s_next(struct seq_file *m, void *p, loff_t *pos) in s_next() argument
483 (*pos)++; in s_next()
485 if (!update_iter(m->private, *pos)) in s_next()
490 static void *s_start(struct seq_file *m, loff_t *pos) in s_start() argument
492 if (!update_iter(m->private, *pos)) in s_start()
557 const char *kdb_walk_kallsyms(loff_t *pos) in kdb_walk_kallsyms() argument
560 if (*pos == 0) { in kdb_walk_kallsyms()
566 if (!update_iter(&kdb_walk_kallsyms_iter, *pos)) in kdb_walk_kallsyms()
568 ++*pos; in kdb_walk_kallsyms()