Lines Matching refs:table

41 	const struct drm_i915_mocs_entry *table;  member
323 struct drm_i915_mocs_table *table) in get_mocs_settings() argument
328 table->size = ARRAY_SIZE(tgl_mocs_table); in get_mocs_settings()
329 table->table = tgl_mocs_table; in get_mocs_settings()
330 table->n_entries = GEN9_NUM_MOCS_ENTRIES; in get_mocs_settings()
332 table->size = ARRAY_SIZE(icl_mocs_table); in get_mocs_settings()
333 table->table = icl_mocs_table; in get_mocs_settings()
334 table->n_entries = GEN9_NUM_MOCS_ENTRIES; in get_mocs_settings()
336 table->size = ARRAY_SIZE(skl_mocs_table); in get_mocs_settings()
337 table->n_entries = GEN9_NUM_MOCS_ENTRIES; in get_mocs_settings()
338 table->table = skl_mocs_table; in get_mocs_settings()
340 table->size = ARRAY_SIZE(broxton_mocs_table); in get_mocs_settings()
341 table->n_entries = GEN9_NUM_MOCS_ENTRIES; in get_mocs_settings()
342 table->table = broxton_mocs_table; in get_mocs_settings()
349 if (GEM_DEBUG_WARN_ON(table->size > table->n_entries)) in get_mocs_settings()
356 for (i = 0; i < table->size; i++) in get_mocs_settings()
357 if (GEM_DEBUG_WARN_ON(table->table[i].l3cc_value & in get_mocs_settings()
379 static u32 get_entry_control(const struct drm_i915_mocs_table *table, in get_entry_control() argument
382 if (index < table->size && table->table[index].used) in get_entry_control()
383 return table->table[index].control_value; in get_entry_control()
385 return table->table[I915_MOCS_PTE].control_value; in get_entry_control()
394 const struct drm_i915_mocs_table *table, in __init_mocs_table() argument
400 for_each_mocs(mocs, table, i) in __init_mocs_table()
420 const struct drm_i915_mocs_table *table) in init_mocs_table() argument
422 __init_mocs_table(engine->uncore, table, mocs_offset(engine)); in init_mocs_table()
429 static u16 get_entry_l3cc(const struct drm_i915_mocs_table *table, in get_entry_l3cc() argument
432 if (index < table->size && table->table[index].used) in get_entry_l3cc()
433 return table->table[index].l3cc_value; in get_entry_l3cc()
435 return table->table[I915_MOCS_PTE].l3cc_value; in get_entry_l3cc()
452 const struct drm_i915_mocs_table *table) in init_l3cc_table() argument
458 for_each_l3cc(l3cc, table, i) in init_l3cc_table()
464 struct drm_i915_mocs_table table; in intel_mocs_init_engine() local
470 flags = get_mocs_settings(engine->i915, &table); in intel_mocs_init_engine()
476 init_mocs_table(engine, &table); in intel_mocs_init_engine()
479 init_l3cc_table(engine, &table); in intel_mocs_init_engine()
489 struct drm_i915_mocs_table table; in intel_mocs_init() local
495 flags = get_mocs_settings(gt->i915, &table); in intel_mocs_init()
497 __init_mocs_table(gt->uncore, &table, global_mocs_offset()); in intel_mocs_init()