Lines Matching refs:dw

150 		int dw;  in live_lrc_layout()  local
165 dw = 0; in live_lrc_layout()
167 u32 lri = READ_ONCE(hw[dw]); in live_lrc_layout()
170 dw++; in live_lrc_layout()
174 if (lrc[dw] == 0) { in live_lrc_layout()
176 engine->name, lri, dw); in live_lrc_layout()
177 dw++; in live_lrc_layout()
183 engine->name, dw, lri); in live_lrc_layout()
188 if (lrc[dw] != lri) { in live_lrc_layout()
190 engine->name, dw, lri, lrc[dw]); in live_lrc_layout()
197 dw++; in live_lrc_layout()
200 u32 offset = READ_ONCE(hw[dw]); in live_lrc_layout()
202 if (offset != lrc[dw]) { in live_lrc_layout()
204 engine->name, dw, offset, lrc[dw]); in live_lrc_layout()
213 dw += 2; in live_lrc_layout()
216 } while (!err && (lrc[dw] & ~BIT(0)) != MI_BATCH_BUFFER_END); in live_lrc_layout()
339 int dw = find_offset(hw, t->reg); in live_lrc_fixed() local
341 if (dw != t->offset) { in live_lrc_fixed()
346 dw, in live_lrc_fixed()
916 u32 dw, x, *cs, *hw; in store_context() local
937 dw = 0; in store_context()
941 u32 len = hw[dw] & 0x7f; in store_context()
943 if (hw[dw] == 0) { in store_context()
944 dw++; in store_context()
948 if ((hw[dw] & GENMASK(31, 23)) != MI_INSTR(0x22, 0)) { in store_context()
949 dw += len + 2; in store_context()
953 dw++; in store_context()
957 *cs++ = hw[dw]; in store_context()
961 dw += 2; in store_context()
964 } while (dw < PAGE_SIZE / sizeof(u32) && in store_context()
965 (hw[dw] & ~BIT(0)) != MI_BATCH_BUFFER_END); in store_context()
1080 u32 dw, *cs, *hw; in load_context() local
1100 dw = 0; in load_context()
1104 u32 len = hw[dw] & 0x7f; in load_context()
1106 if (hw[dw] == 0) { in load_context()
1107 dw++; in load_context()
1111 if ((hw[dw] & GENMASK(31, 23)) != MI_INSTR(0x22, 0)) { in load_context()
1112 dw += len + 2; in load_context()
1116 dw++; in load_context()
1120 *cs++ = hw[dw]; in load_context()
1122 dw += 2; in load_context()
1124 } while (dw < PAGE_SIZE / sizeof(u32) && in load_context()
1125 (hw[dw] & ~BIT(0)) != MI_BATCH_BUFFER_END); in load_context()
1196 u32 x, dw, *hw, *lrc; in compare_isolation() local
1240 dw = 0; in compare_isolation()
1244 u32 len = hw[dw] & 0x7f; in compare_isolation()
1246 if (hw[dw] == 0) { in compare_isolation()
1247 dw++; in compare_isolation()
1251 if ((hw[dw] & GENMASK(31, 23)) != MI_INSTR(0x22, 0)) { in compare_isolation()
1252 dw += len + 2; in compare_isolation()
1256 dw++; in compare_isolation()
1261 switch (hw[dw] & 4095) { in compare_isolation()
1268 engine->name, dw, in compare_isolation()
1269 hw[dw], hw[dw + 1], in compare_isolation()
1271 poison, lrc[dw + 1]); in compare_isolation()
1275 dw += 2; in compare_isolation()
1278 } while (dw < PAGE_SIZE / sizeof(u32) && in compare_isolation()
1279 (hw[dw] & ~BIT(0)) != MI_BATCH_BUFFER_END); in compare_isolation()