Lines Matching refs:self
54 static void map_browser__write(struct ui_browser *self, void *nd, int row)
57 struct map_browser *mb = container_of(self, struct map_browser, b);
58 bool current_entry = ui_browser__is_current_entry(self, row);
69 static u32 *symbol__browser_index(struct symbol *self)
71 return ((void *)self) - sizeof(struct rb_node) - sizeof(u32);
74 static int map_browser__search(struct map_browser *self)
85 sym = map__find_symbol(self->map, addr, NULL);
87 sym = map__find_symbol_by_name(self->map, target, NULL);
92 self->b.top = &sym->rb_node;
93 self->b.index = self->b.top_idx = *idx;
100 static int map_browser__run(struct map_browser *self, struct newtExitStruct *es)
102 if (ui_browser__show(&self->b, self->map->dso->long_name,
107 newtFormAddHotKey(self->b.form, NEWT_KEY_LEFT);
108 newtFormAddHotKey(self->b.form, NEWT_KEY_ENTER);
110 newtFormAddHotKey(self->b.form, '/');
113 ui_browser__run(&self->b, es);
118 map_browser__search(self);
123 ui_browser__hide(&self->b);
127 int map__browse(struct map *self)
131 .entries = &self->dso->symbols[self->type],
136 .map = self,