Lines Matching refs:diff_regs
808 struct dfx_diff_registers *diff_regs; in dfx_regs_init() local
812 diff_regs = kcalloc(reg_len, sizeof(*diff_regs), GFP_KERNEL); in dfx_regs_init()
813 if (!diff_regs) in dfx_regs_init()
820 diff_regs[i].reg_offset = cregs[i].reg_offset; in dfx_regs_init()
821 diff_regs[i].reg_len = cregs[i].reg_len; in dfx_regs_init()
822 diff_regs[i].regs = kcalloc(QM_DFX_REGS_LEN, cregs[i].reg_len, in dfx_regs_init()
824 if (!diff_regs[i].regs) in dfx_regs_init()
827 for (j = 0; j < diff_regs[i].reg_len; j++) { in dfx_regs_init()
828 base_offset = diff_regs[i].reg_offset + in dfx_regs_init()
830 diff_regs[i].regs[j] = readl(qm->io_base + base_offset); in dfx_regs_init()
834 return diff_regs; in dfx_regs_init()
839 kfree(diff_regs[i].regs); in dfx_regs_init()
841 kfree(diff_regs); in dfx_regs_init()