Lines Matching refs:diff_regs
814 struct dfx_diff_registers *diff_regs; in dfx_regs_init() local
818 diff_regs = kcalloc(reg_len, sizeof(*diff_regs), GFP_KERNEL); in dfx_regs_init()
819 if (!diff_regs) in dfx_regs_init()
826 diff_regs[i].reg_offset = cregs[i].reg_offset; in dfx_regs_init()
827 diff_regs[i].reg_len = cregs[i].reg_len; in dfx_regs_init()
828 diff_regs[i].regs = kcalloc(QM_DFX_REGS_LEN, cregs[i].reg_len, in dfx_regs_init()
830 if (!diff_regs[i].regs) in dfx_regs_init()
833 for (j = 0; j < diff_regs[i].reg_len; j++) { in dfx_regs_init()
834 base_offset = diff_regs[i].reg_offset + in dfx_regs_init()
836 diff_regs[i].regs[j] = readl(qm->io_base + base_offset); in dfx_regs_init()
840 return diff_regs; in dfx_regs_init()
845 kfree(diff_regs[i].regs); in dfx_regs_init()
847 kfree(diff_regs); in dfx_regs_init()