Lines Matching defs:table

553  * @offset:	offset of the first entry in this table in the buffer
554 * @size: total size of all entries in this table
555 * @last: index of the last initialized entry in this table
567 * Keep ToPA table-related metadata on the same page as the actual table,
575 * struct topa_page - page-sized ToPA table with metadata at the top
576 * @table: actual ToPA table entries, as understood by PT hardware
580 struct topa_entry table[TENTS_PER_PAGE];
599 /* make -1 stand for the last table entry */
602 ? &topa_to_page(t)->table[(t)->last] \
603 : &topa_to_page(t)->table[(i)])
617 base = topa_to_page(buf->cur)->table;
635 * topa_alloc() - allocate page-sized ToPA table
639 * Return: On success, return the pointer to ToPA table page.
656 * link as the 2nd entry in the table
667 * topa_free() - free a page-sized ToPA table
676 * topa_insert_table() - insert a ToPA table into a buffer
678 * @topa: New topa table to be inserted.
680 * If it's the first table in this buffer, set up buffer's pointers
682 * "last" table and adjust the last table pointer to @topa.
708 * topa_table_full() - check if a ToPA table is filled up
709 * @topa: ToPA table.
781 pr_debug("# table @%p, off %llx size %zx\n", tp->table,
785 &tp->table[i],
786 (unsigned long)tp->table[i].base << TOPA_SHIFT,
787 sizes(tp->table[i].size),
788 tp->table[i].end ? 'E' : ' ',
789 tp->table[i].intr ? 'I' : ' ',
790 tp->table[i].stop ? 'S' : ' ',
791 *(u64 *)&tp->table[i]);
793 tp->table[i].stop) ||
794 tp->table[i].end)
839 /* offset of the first region in this table from the beginning of buf */
842 /* offset of the current output region within this table */
953 /* index of current output region within this table */
972 * First, find the ToPA table where @pg fits. With high
1003 * Multiple entries at the beginning of the table have the same size,
1008 return &tp->table[idx];
1016 return &tp->table[idx];
1022 * Means we couldn't find a ToPA entry in the table that does match.
1032 unsigned long table = (unsigned long)te & ~(PAGE_SIZE - 1);
1036 tp = (struct topa_page *)table;
1037 if (tp->table != te)
1048 return &tp->table[topa->last - 1];
1136 * Find the ToPA table and entry corresponding to given @head and set buffer's
1185 * no need to unlink this table from the list
1192 * pt_buffer_init_topa() - initialize ToPA table for pt buffer
1217 /* link last table to the first one, unless we're double buffering */