Lines Matching defs:table

61  * The TMC ETR SG has a page size of 4K. The SG table contains pointers
66 * A table entry has the following format:
79 * b11 - Link. The address points to the base of next table.
107 * @sg_table: Generic SG Table holding the data/table pages.
109 * address of the table.
117 * tmc_etr_sg_table_entries: Total number of table entries required to map
122 * with the last entry pointing to another page of table entries.
268 * Alloc pages for the table. Since this will be used by the device,
313 * tmc_alloc_sg_table: Allocate and setup dma pages for the TMC SG table
319 * @nr_tpages - Number of pages for the table entries.
357 void tmc_sg_table_sync_data_range(struct tmc_sg_table *table,
362 struct device *real_dev = table->dev->parent;
363 struct tmc_pages *data = &table->data_pages;
374 /* tmc_sg_sync_table: Sync the page table */
421 dma_addr_t addr, bool table)
427 if (table) {
486 * Populate the SG Table page table entries from table/data
501 sgte_t *ptr; /* pointer to the table entry to fill */
508 * Use the contiguous virtual address of the table to update entries.
519 * the next table page. If this sg_table is the last
544 * Move to the next table pointer, moving the table page index
559 * tmc_init_etr_sg_table: Allocate a TMC ETR SG table, data buffer of @size and
560 * populate the table.
589 /* TMC should use table base address for DBA */
592 /* Sync the table pages for the HW */
740 struct tmc_sg_table *table = etr_table->sg_table;
743 r_offset = tmc_sg_get_data_page_offset(table, rrp);
745 dev_warn(table->dev,
751 w_offset = tmc_sg_get_data_page_offset(table, rwp);
753 dev_warn(table->dev,
765 tmc_sg_table_sync_data_range(table, r_offset, etr_buf->len);