• Home
  • Raw
  • Download

Lines Matching refs:table

24 	const struct drm_i915_mocs_entry *table;  member
339 struct drm_i915_mocs_table *table) in get_mocs_settings() argument
344 table->size = ARRAY_SIZE(dg1_mocs_table); in get_mocs_settings()
345 table->table = dg1_mocs_table; in get_mocs_settings()
346 table->n_entries = GEN9_NUM_MOCS_ENTRIES; in get_mocs_settings()
348 table->size = ARRAY_SIZE(tgl_mocs_table); in get_mocs_settings()
349 table->table = tgl_mocs_table; in get_mocs_settings()
350 table->n_entries = GEN9_NUM_MOCS_ENTRIES; in get_mocs_settings()
352 table->size = ARRAY_SIZE(icl_mocs_table); in get_mocs_settings()
353 table->table = icl_mocs_table; in get_mocs_settings()
354 table->n_entries = GEN9_NUM_MOCS_ENTRIES; in get_mocs_settings()
356 table->size = ARRAY_SIZE(skl_mocs_table); in get_mocs_settings()
357 table->n_entries = GEN9_NUM_MOCS_ENTRIES; in get_mocs_settings()
358 table->table = skl_mocs_table; in get_mocs_settings()
360 table->size = ARRAY_SIZE(broxton_mocs_table); in get_mocs_settings()
361 table->n_entries = GEN9_NUM_MOCS_ENTRIES; in get_mocs_settings()
362 table->table = broxton_mocs_table; in get_mocs_settings()
369 if (GEM_DEBUG_WARN_ON(table->size > table->n_entries)) in get_mocs_settings()
376 for (i = 0; i < table->size; i++) in get_mocs_settings()
377 if (GEM_DEBUG_WARN_ON(table->table[i].l3cc_value & in get_mocs_settings()
399 static u32 get_entry_control(const struct drm_i915_mocs_table *table, in get_entry_control() argument
402 if (index < table->size && table->table[index].used) in get_entry_control()
403 return table->table[index].control_value; in get_entry_control()
405 return table->table[I915_MOCS_PTE].control_value; in get_entry_control()
414 const struct drm_i915_mocs_table *table, in __init_mocs_table() argument
420 for_each_mocs(mocs, table, i) in __init_mocs_table()
440 const struct drm_i915_mocs_table *table) in init_mocs_table() argument
442 __init_mocs_table(engine->uncore, table, mocs_offset(engine)); in init_mocs_table()
449 static u16 get_entry_l3cc(const struct drm_i915_mocs_table *table, in get_entry_l3cc() argument
452 if (index < table->size && table->table[index].used) in get_entry_l3cc()
453 return table->table[index].l3cc_value; in get_entry_l3cc()
455 return table->table[I915_MOCS_PTE].l3cc_value; in get_entry_l3cc()
472 const struct drm_i915_mocs_table *table) in init_l3cc_table() argument
478 for_each_l3cc(l3cc, table, i) in init_l3cc_table()
484 struct drm_i915_mocs_table table; in intel_mocs_init_engine() local
490 flags = get_mocs_settings(engine->i915, &table); in intel_mocs_init_engine()
496 init_mocs_table(engine, &table); in intel_mocs_init_engine()
499 init_l3cc_table(engine, &table); in intel_mocs_init_engine()
509 struct drm_i915_mocs_table table; in intel_mocs_init() local
515 flags = get_mocs_settings(gt->i915, &table); in intel_mocs_init()
517 __init_mocs_table(gt->uncore, &table, global_mocs_offset()); in intel_mocs_init()