Lines Matching refs:nr_entries
108 if (browser->nr_entries == 0) in ui_browser__list_head_seek()
316 if (browser->nr_entries > 1) { in ui_browser__scrollbar_set()
318 (browser->nr_entries - 1)); in ui_browser__scrollbar_set()
348 if (browser->nr_entries == 0 && browser->no_samples_msg) in __ui_browser__refresh()
368 void ui_browser__update_nr_entries(struct ui_browser *browser, u32 nr_entries) in ui_browser__update_nr_entries() argument
370 off_t offset = nr_entries - browser->nr_entries; in ui_browser__update_nr_entries()
372 browser->nr_entries = nr_entries; in ui_browser__update_nr_entries()
424 if (browser->index == browser->nr_entries - 1) in ui_browser__run()
455 if (browser->top_idx + browser->rows > browser->nr_entries - 1) in ui_browser__run()
459 if (browser->index + offset > browser->nr_entries - 1) in ui_browser__run()
460 offset = browser->nr_entries - 1 - browser->index; in ui_browser__run()
483 if (offset >= browser->nr_entries) in ui_browser__run()
484 offset = browser->nr_entries - 1; in ui_browser__run()
486 browser->index = browser->nr_entries - 1; in ui_browser__run()
618 browser->top = (char **)browser->entries + browser->nr_entries - 1 + offset; in ui_browser__argv_seek()
623 assert((char **)browser->top < (char **)browser->entries + browser->nr_entries); in ui_browser__argv_seek()
636 while (idx < browser->nr_entries && in ui_browser__argv_refresh()
638 assert(pos < (char **)browser->entries + browser->nr_entries); in ui_browser__argv_refresh()