Searched refs:tpc_offset (Results 1 – 2 of 2) sorted by relevance
/Linux-v5.10/drivers/misc/habanalabs/gaudi/ |
D | gaudi.c | 1802 u32 tpc_offset; in gaudi_init_golden_registers() local 1811 for (tpc_id = 0, tpc_offset = 0; in gaudi_init_golden_registers() 1813 tpc_id++, tpc_offset += TPC_CFG_OFFSET) { in gaudi_init_golden_registers() 1815 WREG32(mmTPC0_CFG_TPC_INTR_MASK + tpc_offset, 0x8FFF); in gaudi_init_golden_registers() 1817 WREG32_FIELD(TPC0_CFG_MSS_CONFIG, tpc_offset, in gaudi_init_golden_registers() 2236 static void gaudi_init_tpc_qman(struct hl_device *hdev, u32 tpc_offset, in gaudi_init_tpc_qman() argument 2253 q_off = tpc_offset + qman_id * 4; in gaudi_init_tpc_qman() 2280 tpc_id = tpc_offset / in gaudi_init_tpc_qman() 2289 WREG32(mmTPC0_QM_GLBL_ERR_CFG + tpc_offset, tpc_qm_err_cfg); in gaudi_init_tpc_qman() 2290 WREG32(mmTPC0_QM_GLBL_ERR_ADDR_LO + tpc_offset, in gaudi_init_tpc_qman() [all …]
|
/Linux-v5.10/drivers/misc/habanalabs/goya/ |
D | goya.c | 1253 u32 val, tpc_offset, tpc_eml_offset, tpc_slm_offset; in _goya_tpc_mbist_workaround() local 1256 tpc_offset = tpc_id * 0x40000; in _goya_tpc_mbist_workaround() 1266 val = RREG32(mmTPC0_CFG_FUNC_MBIST_CNTRL + tpc_offset); in _goya_tpc_mbist_workaround() 1271 WREG32(mmTPC0_CFG_FUNC_MBIST_PAT + tpc_offset, val & 0xFFFFF000); in _goya_tpc_mbist_workaround() 1273 WREG32(mmTPC0_CFG_FUNC_MBIST_MEM_0 + tpc_offset, 0x37FF); in _goya_tpc_mbist_workaround() 1274 WREG32(mmTPC0_CFG_FUNC_MBIST_MEM_1 + tpc_offset, 0x303F); in _goya_tpc_mbist_workaround() 1275 WREG32(mmTPC0_CFG_FUNC_MBIST_MEM_2 + tpc_offset, 0x71FF); in _goya_tpc_mbist_workaround() 1276 WREG32(mmTPC0_CFG_FUNC_MBIST_MEM_3 + tpc_offset, 0x71FF); in _goya_tpc_mbist_workaround() 1277 WREG32(mmTPC0_CFG_FUNC_MBIST_MEM_4 + tpc_offset, 0x70FF); in _goya_tpc_mbist_workaround() 1278 WREG32(mmTPC0_CFG_FUNC_MBIST_MEM_5 + tpc_offset, 0x70FF); in _goya_tpc_mbist_workaround() [all …]
|