Lines Matching refs:pg
976 pt_topa_entry_for_page(struct pt_buffer *buf, unsigned int pg)
985 if (WARN_ON_ONCE(pg >= buf->nr_pages))
989 * First, find the ToPA table where @pg fits. With high
993 if (topa->offset + topa->size > pg << PAGE_SHIFT)
1021 * ideally all of them; if @pg falls there, the search is done.
1023 if (pg >= cur_pg && pg < cur_pg + z_pg) {
1024 idx = (pg - cur_pg) / TOPA_ENTRY_PAGES(topa, 0);
1032 if (cur_pg + TOPA_ENTRY_PAGES(topa, idx) > pg)
1167 int pg;
1173 pg = (head >> PAGE_SHIFT) & (buf->nr_pages - 1);
1174 te = pt_topa_entry_for_page(buf, pg);