Lines Matching refs:tpc_offset

2518 	u32 tpc_offset;  in gaudi_init_golden_registers()  local
2524 for (tpc_id = 0, tpc_offset = 0; in gaudi_init_golden_registers()
2526 tpc_id++, tpc_offset += TPC_CFG_OFFSET) { in gaudi_init_golden_registers()
2528 WREG32(mmTPC0_CFG_TPC_INTR_MASK + tpc_offset, 0x8FFE); in gaudi_init_golden_registers()
2530 WREG32_FIELD(TPC0_CFG_MSS_CONFIG, tpc_offset, in gaudi_init_golden_registers()
2992 static void gaudi_init_tpc_qman(struct hl_device *hdev, u32 tpc_offset, in gaudi_init_tpc_qman() argument
3019 q_off = tpc_offset + qman_id * 4; in gaudi_init_tpc_qman()
3021 tpc_id = tpc_offset / in gaudi_init_tpc_qman()
3058 WREG32(mmTPC0_QM_GLBL_ERR_CFG + tpc_offset, tpc_qm_err_cfg); in gaudi_init_tpc_qman()
3060 WREG32(mmTPC0_QM_GLBL_ERR_ADDR_LO + tpc_offset, in gaudi_init_tpc_qman()
3062 WREG32(mmTPC0_QM_GLBL_ERR_ADDR_HI + tpc_offset, in gaudi_init_tpc_qman()
3065 WREG32(mmTPC0_QM_GLBL_ERR_WDATA + tpc_offset, in gaudi_init_tpc_qman()
3069 WREG32(mmTPC0_QM_ARB_ERR_MSG_EN + tpc_offset, in gaudi_init_tpc_qman()
3073 WREG32(mmTPC0_QM_ARB_SLV_CHOISE_WDT + tpc_offset, GAUDI_ARB_WDT_TIMEOUT); in gaudi_init_tpc_qman()
3075 WREG32(mmTPC0_QM_GLBL_CFG1 + tpc_offset, 0); in gaudi_init_tpc_qman()
3076 WREG32(mmTPC0_QM_GLBL_PROT + tpc_offset, in gaudi_init_tpc_qman()
3103 u32 so_base_hi, tpc_offset = 0; in gaudi_init_tpc_qmans() local
3120 gaudi_init_tpc_qman(hdev, tpc_offset, i, in gaudi_init_tpc_qmans()
3125 gaudi_init_tpc_qman(hdev, tpc_offset, 4, 0); in gaudi_init_tpc_qmans()
3128 WREG32(mmTPC0_QM_GLBL_CFG0 + tpc_offset, in gaudi_init_tpc_qmans()
3136 tpc_offset += mmTPC1_QM_GLBL_CFG0 - mmTPC0_QM_GLBL_CFG0; in gaudi_init_tpc_qmans()
3323 u32 tpc_offset = 0; in gaudi_disable_tpc_qmans() local
3330 WREG32(mmTPC0_QM_GLBL_CFG0 + tpc_offset, 0); in gaudi_disable_tpc_qmans()
3331 tpc_offset += mmTPC1_QM_GLBL_CFG0 - mmTPC0_QM_GLBL_CFG0; in gaudi_disable_tpc_qmans()
7477 u32 tpc_offset = tpc_id * TPC_CFG_OFFSET, tpc_interrupts_cause, i; in gaudi_tpc_read_interrupts() local
7480 tpc_interrupts_cause = RREG32(mmTPC0_CFG_TPC_INTR_CAUSE + tpc_offset) & in gaudi_tpc_read_interrupts()
7495 WREG32(mmTPC0_CFG_TPC_INTR_CAUSE + tpc_offset, 0); in gaudi_tpc_read_interrupts()