Lines Matching refs:tpc_offset

2519 	u32 tpc_offset;  in gaudi_init_golden_registers()  local
2525 for (tpc_id = 0, tpc_offset = 0; in gaudi_init_golden_registers()
2527 tpc_id++, tpc_offset += TPC_CFG_OFFSET) { in gaudi_init_golden_registers()
2529 WREG32(mmTPC0_CFG_TPC_INTR_MASK + tpc_offset, 0x8FFE); in gaudi_init_golden_registers()
2531 WREG32_FIELD(TPC0_CFG_MSS_CONFIG, tpc_offset, in gaudi_init_golden_registers()
2993 static void gaudi_init_tpc_qman(struct hl_device *hdev, u32 tpc_offset, in gaudi_init_tpc_qman() argument
3020 q_off = tpc_offset + qman_id * 4; in gaudi_init_tpc_qman()
3022 tpc_id = tpc_offset / in gaudi_init_tpc_qman()
3059 WREG32(mmTPC0_QM_GLBL_ERR_CFG + tpc_offset, tpc_qm_err_cfg); in gaudi_init_tpc_qman()
3061 WREG32(mmTPC0_QM_GLBL_ERR_ADDR_LO + tpc_offset, in gaudi_init_tpc_qman()
3063 WREG32(mmTPC0_QM_GLBL_ERR_ADDR_HI + tpc_offset, in gaudi_init_tpc_qman()
3066 WREG32(mmTPC0_QM_GLBL_ERR_WDATA + tpc_offset, in gaudi_init_tpc_qman()
3070 WREG32(mmTPC0_QM_ARB_ERR_MSG_EN + tpc_offset, in gaudi_init_tpc_qman()
3074 WREG32(mmTPC0_QM_ARB_SLV_CHOISE_WDT + tpc_offset, GAUDI_ARB_WDT_TIMEOUT); in gaudi_init_tpc_qman()
3076 WREG32(mmTPC0_QM_GLBL_CFG1 + tpc_offset, 0); in gaudi_init_tpc_qman()
3077 WREG32(mmTPC0_QM_GLBL_PROT + tpc_offset, in gaudi_init_tpc_qman()
3104 u32 so_base_hi, tpc_offset = 0; in gaudi_init_tpc_qmans() local
3121 gaudi_init_tpc_qman(hdev, tpc_offset, i, in gaudi_init_tpc_qmans()
3126 gaudi_init_tpc_qman(hdev, tpc_offset, 4, 0); in gaudi_init_tpc_qmans()
3129 WREG32(mmTPC0_QM_GLBL_CFG0 + tpc_offset, in gaudi_init_tpc_qmans()
3137 tpc_offset += mmTPC1_QM_GLBL_CFG0 - mmTPC0_QM_GLBL_CFG0; in gaudi_init_tpc_qmans()
3324 u32 tpc_offset = 0; in gaudi_disable_tpc_qmans() local
3331 WREG32(mmTPC0_QM_GLBL_CFG0 + tpc_offset, 0); in gaudi_disable_tpc_qmans()
3332 tpc_offset += mmTPC1_QM_GLBL_CFG0 - mmTPC0_QM_GLBL_CFG0; in gaudi_disable_tpc_qmans()
7471 u32 tpc_offset = tpc_id * TPC_CFG_OFFSET, tpc_interrupts_cause, i; in gaudi_tpc_read_interrupts() local
7474 tpc_interrupts_cause = RREG32(mmTPC0_CFG_TPC_INTR_CAUSE + tpc_offset) & in gaudi_tpc_read_interrupts()
7489 WREG32(mmTPC0_CFG_TPC_INTR_CAUSE + tpc_offset, 0); in gaudi_tpc_read_interrupts()