Lines Matching refs:dma_offset
2807 u32 dma_offset = dma_id * DMA_CORE_OFFSET; in gaudi_init_dma_core() local
2811 WREG32(mmDMA0_CORE_RD_MAX_OUTSTAND + dma_offset, 0); in gaudi_init_dma_core()
2812 WREG32(mmDMA0_CORE_RD_MAX_SIZE + dma_offset, 0); in gaudi_init_dma_core()
2815 WREG32(mmDMA0_CORE_LBW_MAX_OUTSTAND + dma_offset, 15); in gaudi_init_dma_core()
2821 WREG32(mmDMA0_CORE_ERR_CFG + dma_offset, dma_err_cfg); in gaudi_init_dma_core()
2827 WREG32(mmDMA0_CORE_ERRMSG_ADDR_LO + dma_offset, in gaudi_init_dma_core()
2829 WREG32(mmDMA0_CORE_ERRMSG_ADDR_HI + dma_offset, in gaudi_init_dma_core()
2832 WREG32(mmDMA0_CORE_ERRMSG_WDATA + dma_offset, in gaudi_init_dma_core()
2834 WREG32(mmDMA0_CORE_PROT + dma_offset, in gaudi_init_dma_core()
2837 WREG32(mmDMA0_CORE_SECURE_PROPS + dma_offset, in gaudi_init_dma_core()
2839 WREG32(mmDMA0_CORE_CFG_0 + dma_offset, 1 << DMA0_CORE_CFG_0_EN_SHIFT); in gaudi_init_dma_core()
4799 u32 dma_offset = dma_id * DMA_CORE_OFFSET; in gaudi_hbm_scrubbing() local
4808 WREG32(mmDMA0_CORE_SRC_BASE_LO + dma_offset, 0xdeadbeaf); in gaudi_hbm_scrubbing()
4809 WREG32(mmDMA0_CORE_SRC_BASE_HI + dma_offset, 0xdeadbeaf); in gaudi_hbm_scrubbing()
4810 WREG32(mmDMA0_CORE_DST_BASE_LO + dma_offset, in gaudi_hbm_scrubbing()
4812 WREG32(mmDMA0_CORE_DST_BASE_HI + dma_offset, in gaudi_hbm_scrubbing()
4814 WREG32(mmDMA0_CORE_DST_TSIZE_0 + dma_offset, in gaudi_hbm_scrubbing()
4816 WREG32(mmDMA0_CORE_COMMIT + dma_offset, in gaudi_hbm_scrubbing()
4827 u32 dma_offset = dma_id * DMA_CORE_OFFSET; in gaudi_hbm_scrubbing() local
4831 mmDMA0_CORE_STS0 + dma_offset, in gaudi_hbm_scrubbing()
6071 u32 dma_offset = i * DMA_CORE_OFFSET; in gaudi_restore_dma_registers() local
6073 WREG32(mmDMA0_CORE_WR_COMP_ADDR_LO + dma_offset, in gaudi_restore_dma_registers()
6075 WREG32(mmDMA0_CORE_WR_COMP_ADDR_HI + dma_offset, in gaudi_restore_dma_registers()
6077 WREG32(mmDMA0_CORE_WR_COMP_WDATA + dma_offset, 0x80000001); in gaudi_restore_dma_registers()
6083 WREG32(mmDMA0_CORE_WR_AWUSER_31_11 + dma_offset, in gaudi_restore_dma_registers()
6367 u64 dma_offset; in gaudi_dma_core_transfer() local
6370 dma_offset = dma_id * DMA_CORE_OFFSET; in gaudi_dma_core_transfer()
6372 WREG32(mmDMA0_CORE_SRC_BASE_LO + dma_offset, lower_32_bits(addr)); in gaudi_dma_core_transfer()
6373 WREG32(mmDMA0_CORE_SRC_BASE_HI + dma_offset, upper_32_bits(addr)); in gaudi_dma_core_transfer()
6374 WREG32(mmDMA0_CORE_DST_BASE_LO + dma_offset, lower_32_bits(dma_addr)); in gaudi_dma_core_transfer()
6375 WREG32(mmDMA0_CORE_DST_BASE_HI + dma_offset, upper_32_bits(dma_addr)); in gaudi_dma_core_transfer()
6376 WREG32(mmDMA0_CORE_DST_TSIZE_0 + dma_offset, size_to_dma); in gaudi_dma_core_transfer()
6377 WREG32(mmDMA0_CORE_COMMIT + dma_offset, in gaudi_dma_core_transfer()
6382 mmDMA0_CORE_STS0 + dma_offset, in gaudi_dma_core_transfer()
6396 err_cause = RREG32(mmDMA0_CORE_ERR_CAUSE + dma_offset); in gaudi_dma_core_transfer()
6402 WREG32(mmDMA0_CORE_ERR_CAUSE + dma_offset, err_cause); in gaudi_dma_core_transfer()
6415 u64 dma_offset, qm_offset; in gaudi_debugfs_read_dma() local
6436 dma_offset = dma_id * DMA_CORE_OFFSET; in gaudi_debugfs_read_dma()
6438 dma_core_sts0 = RREG32(mmDMA0_CORE_STS0 + dma_offset); in gaudi_debugfs_read_dma()
6443 dma_offset = dma_id * DMA_CORE_OFFSET; in gaudi_debugfs_read_dma()
6445 dma_core_sts0 = RREG32(mmDMA0_CORE_STS0 + dma_offset); in gaudi_debugfs_read_dma()
6464 WREG32_OR(mmDMA0_CORE_PROT + dma_offset, BIT(DMA0_CORE_PROT_VAL_SHIFT)); in gaudi_debugfs_read_dma()
6467 err_cause = RREG32(mmDMA0_CORE_ERR_CAUSE + dma_offset); in gaudi_debugfs_read_dma()
6472 WREG32(mmDMA0_CORE_ERR_CAUSE + dma_offset, err_cause); in gaudi_debugfs_read_dma()
6503 WREG32_AND(mmDMA0_CORE_PROT + dma_offset, in gaudi_debugfs_read_dma()
6856 u32 tmp, timeout, dma_offset; in gaudi_send_job_on_qman0() local
6891 dma_offset = gaudi_dma_assignment[GAUDI_PCI_DMA_1] * DMA_CORE_OFFSET; in gaudi_send_job_on_qman0()
6893 WREG32(mmDMA0_CORE_PROT + dma_offset, in gaudi_send_job_on_qman0()
6915 WREG32(mmDMA0_CORE_PROT + dma_offset, BIT(DMA0_CORE_PROT_ERR_VAL_SHIFT)); in gaudi_send_job_on_qman0()
6941 u32 dma_id[2], dma_offset, err_cause[2], mask, i; in gaudi_get_razwi_initiator_dma_name() local
6972 dma_offset = dma_id[i] * DMA_CORE_OFFSET; in gaudi_get_razwi_initiator_dma_name()
6973 err_cause[i] = RREG32(mmDMA0_CORE_ERR_CAUSE + dma_offset); in gaudi_get_razwi_initiator_dma_name()