Lines Matching refs:table
35 const struct drm_i915_mocs_entry *table; member
142 struct drm_i915_mocs_table *table) in get_mocs_settings() argument
147 table->size = ARRAY_SIZE(skylake_mocs_table); in get_mocs_settings()
148 table->table = skylake_mocs_table; in get_mocs_settings()
151 table->size = ARRAY_SIZE(broxton_mocs_table); in get_mocs_settings()
152 table->table = broxton_mocs_table; in get_mocs_settings()
174 const struct drm_i915_mocs_table *table, in emit_mocs_control_table() argument
181 if (WARN_ON(table->size > GEN9_NUM_MOCS_ENTRIES)) in emit_mocs_control_table()
193 for (index = 0; index < table->size; index++) { in emit_mocs_control_table()
196 table->table[index].control_value); in emit_mocs_control_table()
209 intel_logical_ring_emit(ringbuf, table->table[0].control_value); in emit_mocs_control_table()
230 const struct drm_i915_mocs_table *table) in emit_mocs_l3cc_table() argument
236 u32 filler = (table->table[0].l3cc_value & 0xffff) | in emit_mocs_l3cc_table()
237 ((table->table[0].l3cc_value & 0xffff) << 16); in emit_mocs_l3cc_table()
240 if (WARN_ON(table->size > GEN9_NUM_MOCS_ENTRIES)) in emit_mocs_l3cc_table()
252 for (i = 0, count = 0; i < table->size / 2; i++, count += 2) { in emit_mocs_l3cc_table()
253 value = (table->table[count].l3cc_value & 0xffff) | in emit_mocs_l3cc_table()
254 ((table->table[count + 1].l3cc_value & 0xffff) << 16); in emit_mocs_l3cc_table()
260 if (table->size & 0x01) { in emit_mocs_l3cc_table()
262 value = (table->table[count].l3cc_value & 0xffff) | in emit_mocs_l3cc_table()
263 ((table->table[0].l3cc_value & 0xffff) << 16); in emit_mocs_l3cc_table()