Lines Matching refs:top_idx
191 return browser->top_idx + row == browser->index;
258 browser->index = browser->top_idx = 0;
375 if (browser->top_idx < (u64)-offset)
376 offset = -browser->top_idx;
379 browser->top_idx += offset;
383 browser->seek(browser, browser->top_idx, SEEK_SET);
427 if (browser->index == browser->top_idx + browser->rows) {
428 ++browser->top_idx;
436 if (browser->index < browser->top_idx) {
437 --browser->top_idx;
455 if (browser->top_idx + browser->rows > browser->nr_entries - 1)
462 browser->top_idx += offset;
466 if (browser->top_idx == 0)
469 if (browser->top_idx < browser->rows)
470 offset = browser->top_idx;
475 browser->top_idx -= offset;
487 browser->top_idx = browser->index - offset;
629 unsigned int row = 0, idx = browser->top_idx;
678 if (start < browser->top_idx + browser->rows) {
679 row = start - browser->top_idx;
690 if (end > browser->top_idx)
691 end_row = end - browser->top_idx;
699 if (end >= browser->top_idx) {
718 if (start >= browser->top_idx) {
719 row = start - browser->top_idx;
730 if (end >= browser->top_idx + browser->rows)
733 end_row = end - browser->top_idx;
739 if (end < browser->top_idx + browser->rows) {
764 if (row >= browser->top_idx)
765 end_row = row - browser->top_idx;