Lines Matching refs:pos
79 struct list_head *pos) in ui_browser__list_head_filter_entries() argument
82 if (!browser->filter || !browser->filter(browser, pos)) in ui_browser__list_head_filter_entries()
83 return pos; in ui_browser__list_head_filter_entries()
84 pos = pos->next; in ui_browser__list_head_filter_entries()
85 } while (pos != browser->entries); in ui_browser__list_head_filter_entries()
92 struct list_head *pos) in ui_browser__list_head_filter_prev_entries() argument
95 if (!browser->filter || !browser->filter(browser, pos)) in ui_browser__list_head_filter_prev_entries()
96 return pos; in ui_browser__list_head_filter_prev_entries()
97 pos = pos->prev; in ui_browser__list_head_filter_prev_entries()
98 } while (pos != browser->entries); in ui_browser__list_head_filter_prev_entries()
106 struct list_head *pos; in ui_browser__list_head_seek() local
113 pos = ui_browser__list_head_filter_entries(browser, head->next); in ui_browser__list_head_seek()
116 pos = browser->top; in ui_browser__list_head_seek()
119 pos = ui_browser__list_head_filter_prev_entries(browser, head->prev); in ui_browser__list_head_seek()
125 assert(pos != NULL); in ui_browser__list_head_seek()
129 pos = ui_browser__list_head_filter_entries(browser, pos->next); in ui_browser__list_head_seek()
132 pos = ui_browser__list_head_filter_prev_entries(browser, pos->prev); in ui_browser__list_head_seek()
135 browser->top = pos; in ui_browser__list_head_seek()
500 struct list_head *pos; in ui_browser__list_head_refresh() local
507 pos = browser->top; in ui_browser__list_head_refresh()
509 list_for_each_from(pos, head) { in ui_browser__list_head_refresh()
510 if (!browser->filter || !browser->filter(browser, pos)) { in ui_browser__list_head_refresh()
512 browser->write(browser, pos, row); in ui_browser__list_head_refresh()
630 char **pos; in ui_browser__argv_refresh() local
635 pos = (char **)browser->top; in ui_browser__argv_refresh()
638 assert(pos < (char **)browser->entries + browser->nr_entries); in ui_browser__argv_refresh()
639 if (!browser->filter || !browser->filter(browser, *pos)) { in ui_browser__argv_refresh()
641 browser->write(browser, pos, row); in ui_browser__argv_refresh()
647 ++pos; in ui_browser__argv_refresh()