Searched refs:tpc_offset (Results 1 – 2 of 2) sorted by relevance
/linux-6.12.1/drivers/accel/habanalabs/goya/ |
D | goya.c | 1441 u32 val, tpc_offset, tpc_eml_offset, tpc_slm_offset; in _goya_tpc_mbist_workaround() local 1444 tpc_offset = tpc_id * 0x40000; in _goya_tpc_mbist_workaround() 1454 val = RREG32(mmTPC0_CFG_FUNC_MBIST_CNTRL + tpc_offset); in _goya_tpc_mbist_workaround() 1459 WREG32(mmTPC0_CFG_FUNC_MBIST_PAT + tpc_offset, val & 0xFFFFF000); in _goya_tpc_mbist_workaround() 1461 WREG32(mmTPC0_CFG_FUNC_MBIST_MEM_0 + tpc_offset, 0x37FF); in _goya_tpc_mbist_workaround() 1462 WREG32(mmTPC0_CFG_FUNC_MBIST_MEM_1 + tpc_offset, 0x303F); in _goya_tpc_mbist_workaround() 1463 WREG32(mmTPC0_CFG_FUNC_MBIST_MEM_2 + tpc_offset, 0x71FF); in _goya_tpc_mbist_workaround() 1464 WREG32(mmTPC0_CFG_FUNC_MBIST_MEM_3 + tpc_offset, 0x71FF); in _goya_tpc_mbist_workaround() 1465 WREG32(mmTPC0_CFG_FUNC_MBIST_MEM_4 + tpc_offset, 0x70FF); in _goya_tpc_mbist_workaround() 1466 WREG32(mmTPC0_CFG_FUNC_MBIST_MEM_5 + tpc_offset, 0x70FF); in _goya_tpc_mbist_workaround() [all …]
|
/linux-6.12.1/drivers/accel/habanalabs/gaudi/ |
D | gaudi.c | 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() [all …]
|