Home
last modified time | relevance | path

Searched refs:tpc_offset (Results 1 – 2 of 2) sorted by relevance

/Linux-v6.1/drivers/misc/habanalabs/goya/
Dgoya.c1439 u32 val, tpc_offset, tpc_eml_offset, tpc_slm_offset; in _goya_tpc_mbist_workaround() local
1442 tpc_offset = tpc_id * 0x40000; in _goya_tpc_mbist_workaround()
1452 val = RREG32(mmTPC0_CFG_FUNC_MBIST_CNTRL + tpc_offset); in _goya_tpc_mbist_workaround()
1457 WREG32(mmTPC0_CFG_FUNC_MBIST_PAT + tpc_offset, val & 0xFFFFF000); in _goya_tpc_mbist_workaround()
1459 WREG32(mmTPC0_CFG_FUNC_MBIST_MEM_0 + tpc_offset, 0x37FF); in _goya_tpc_mbist_workaround()
1460 WREG32(mmTPC0_CFG_FUNC_MBIST_MEM_1 + tpc_offset, 0x303F); in _goya_tpc_mbist_workaround()
1461 WREG32(mmTPC0_CFG_FUNC_MBIST_MEM_2 + tpc_offset, 0x71FF); in _goya_tpc_mbist_workaround()
1462 WREG32(mmTPC0_CFG_FUNC_MBIST_MEM_3 + tpc_offset, 0x71FF); in _goya_tpc_mbist_workaround()
1463 WREG32(mmTPC0_CFG_FUNC_MBIST_MEM_4 + tpc_offset, 0x70FF); in _goya_tpc_mbist_workaround()
1464 WREG32(mmTPC0_CFG_FUNC_MBIST_MEM_5 + tpc_offset, 0x70FF); in _goya_tpc_mbist_workaround()
[all …]
/Linux-v6.1/drivers/misc/habanalabs/gaudi/
Dgaudi.c2577 u32 tpc_offset; in gaudi_init_golden_registers() local
2583 for (tpc_id = 0, tpc_offset = 0; in gaudi_init_golden_registers()
2585 tpc_id++, tpc_offset += TPC_CFG_OFFSET) { in gaudi_init_golden_registers()
2587 WREG32(mmTPC0_CFG_TPC_INTR_MASK + tpc_offset, 0x8FFE); in gaudi_init_golden_registers()
2589 WREG32_FIELD(TPC0_CFG_MSS_CONFIG, tpc_offset, in gaudi_init_golden_registers()
3051 static void gaudi_init_tpc_qman(struct hl_device *hdev, u32 tpc_offset, in gaudi_init_tpc_qman() argument
3078 q_off = tpc_offset + qman_id * 4; in gaudi_init_tpc_qman()
3080 tpc_id = tpc_offset / in gaudi_init_tpc_qman()
3117 WREG32(mmTPC0_QM_GLBL_ERR_CFG + tpc_offset, tpc_qm_err_cfg); in gaudi_init_tpc_qman()
3119 WREG32(mmTPC0_QM_GLBL_ERR_ADDR_LO + tpc_offset, in gaudi_init_tpc_qman()
[all …]