• Home
  • Raw
  • Download

Lines Matching refs:regbase

288 static bool reg_rewritten(uint32_t regbase)  in reg_rewritten()  argument
290 return !!(type0_reg_rewritten[regbase/8] & (1 << (regbase % 8))); in reg_rewritten()
293 bool reg_written(uint32_t regbase) in reg_written() argument
295 return !!(type0_reg_written[regbase/8] & (1 << (regbase % 8))); in reg_written()
309 uint32_t reg_lastval(uint32_t regbase) in reg_lastval() argument
311 return lastvals[regbase]; in reg_lastval()
321 reg_val(uint32_t regbase) in reg_val() argument
323 return type0_reg_vals[regbase]; in reg_val()
327 reg_set(uint32_t regbase, uint32_t val) in reg_set() argument
329 assert(regbase < regcnt()); in reg_set()
330 type0_reg_vals[regbase] = val; in reg_set()
331 type0_reg_written[regbase/8] |= (1 << (regbase % 8)); in reg_set()
332 type0_reg_rewritten[regbase/8] |= (1 << (regbase % 8)); in reg_set()
343 r = regbase("CP_SCRATCH[0].REG"); in reg_dump_scratch()
347 r = regbase("CP_SCRATCH_REG0"); in reg_dump_scratch()
484 return reg_val(regbase(count_reg)); in get_tex_count()
526 uint32_t regbase; member
724 val = regbase(options->querystrs[i]); in init_rnn()
732 type0_reg[idx].regbase = regbase(type0_reg[idx].regname); in init_rnn()
733 if (!type0_reg[idx].regbase) { in init_rnn()
794 regname(uint32_t regbase, int color) in regname() argument
796 return rnn_regname(rnn, regbase, color); in regname()
800 regbase(const char *name) in regbase() function
806 endswith(uint32_t regbase, const char *suffix) in endswith() argument
808 const char *name = regname(regbase, 0); in endswith()
816 dump_register_val(uint32_t regbase, uint32_t dword, int level) in dump_register_val() argument
818 struct rnndecaddrinfo *info = rnn_reginfo(rnn, regbase); in dump_register_val()
831 if (endswith(regbase, "_HI") && endswith(regbase-1, "_LO")) { in dump_register_val()
832 gpuaddr = (((uint64_t)dword) << 32) | reg_val(regbase-1); in dump_register_val()
833 } else if (endswith(regbase, "_LO") && endswith(regbase+1, "_HI")) { in dump_register_val()
834 gpuaddr = (((uint64_t)reg_val(regbase+1)) << 32) | dword; in dump_register_val()
851 printf("%s<%04x>: %08x\n", levels[level], regbase, dword); in dump_register_val()
861 dump_register(uint32_t regbase, uint32_t dword, int level) in dump_register() argument
864 dump_register_val(regbase, dword, level); in dump_register()
868 if (type0_reg[idx].regbase == regbase) { in dump_register()
876 is_banked_reg(uint32_t regbase) in is_banked_reg() argument
878 return (0x2000 <= regbase) && (regbase < 0x2400); in is_banked_reg()
882 dump_registers(uint32_t regbase, uint32_t *dwords, uint32_t sizedwords, int level) in dump_registers() argument
890 if (needs_wfi && !is_banked_reg(regbase)) in dump_registers()
891 printl(2, "NEEDS WFI: %s (%x)\n", regname(regbase, 1), regbase); in dump_registers()
893 reg_set(regbase, *dwords); in dump_registers()
894 dump_register(regbase, *dwords, level); in dump_registers()
895 regbase++; in dump_registers()
982 uint32_t regbase = queryvals[i]; in skip_query() local
983 if (!reg_written(regbase)) { in skip_query()
986 if (reg_rewritten(regbase)) { in skip_query()
993 uint32_t regbase = queryvals[i]; in skip_query() local
994 if (!reg_written(regbase)) { in skip_query()
997 uint32_t lastval = reg_val(regbase); in skip_query()
998 if (lastval != lastvals[regbase]) { in skip_query()
1013 uint32_t scissor_tl = reg_val(regbase("GRAS_SC_WINDOW_SCISSOR_TL")); in __do_query()
1014 uint32_t scissor_br = reg_val(regbase("GRAS_SC_WINDOW_SCISSOR_BR")); in __do_query()
1023 uint32_t regbase = queryvals[i]; in __do_query() local
1024 if (reg_written(regbase)) { in __do_query()
1025 uint32_t lastval = reg_val(regbase); in __do_query()
1031 if (lastval != lastvals[regbase]) { in __do_query()
1036 if (reg_rewritten(regbase)) { in __do_query()
1041 dump_register_val(regbase, lastval, 0); in __do_query()
1443 regbase("HLSQ_CS_BINDLESS_BASE[0].ADDR") : in cp_load_state()
1444 regbase("HLSQ_BINDLESS_BASE[0].ADDR"); in cp_load_state()
1816 uint32_t regbase = i; in dump_register_summary() local
1817 uint32_t lastval = reg_val(regbase); in dump_register_summary()
1819 if (!(options->allregs || reg_rewritten(regbase))) in dump_register_summary()
1821 if (!reg_written(regbase)) in dump_register_summary()
1823 if (lastval != lastvals[regbase]) { in dump_register_summary()
1825 lastvals[regbase] = lastval; in dump_register_summary()
1829 if (reg_rewritten(regbase)) { in dump_register_summary()
1836 dump_register(regbase, lastval, level); in dump_register_summary()