Lines Matching refs:dma_offset

2699 	u32 dma_offset = dma_id * DMA_CORE_OFFSET;  in gaudi_init_dma_core()  local
2703 WREG32(mmDMA0_CORE_RD_MAX_OUTSTAND + dma_offset, 0); in gaudi_init_dma_core()
2704 WREG32(mmDMA0_CORE_RD_MAX_SIZE + dma_offset, 0); in gaudi_init_dma_core()
2707 WREG32(mmDMA0_CORE_LBW_MAX_OUTSTAND + dma_offset, 15); in gaudi_init_dma_core()
2713 WREG32(mmDMA0_CORE_ERR_CFG + dma_offset, dma_err_cfg); in gaudi_init_dma_core()
2719 WREG32(mmDMA0_CORE_ERRMSG_ADDR_LO + dma_offset, in gaudi_init_dma_core()
2721 WREG32(mmDMA0_CORE_ERRMSG_ADDR_HI + dma_offset, in gaudi_init_dma_core()
2724 WREG32(mmDMA0_CORE_ERRMSG_WDATA + dma_offset, in gaudi_init_dma_core()
2726 WREG32(mmDMA0_CORE_PROT + dma_offset, in gaudi_init_dma_core()
2729 WREG32(mmDMA0_CORE_SECURE_PROPS + dma_offset, in gaudi_init_dma_core()
2731 WREG32(mmDMA0_CORE_CFG_0 + dma_offset, 1 << DMA0_CORE_CFG_0_EN_SHIFT); in gaudi_init_dma_core()
4633 u32 dma_offset = dma_id * DMA_CORE_OFFSET; in gaudi_scrub_device_dram() local
4642 WREG32(mmDMA0_CORE_SRC_BASE_LO + dma_offset, in gaudi_scrub_device_dram()
4644 WREG32(mmDMA0_CORE_SRC_BASE_HI + dma_offset, in gaudi_scrub_device_dram()
4646 WREG32(mmDMA0_CORE_DST_BASE_LO + dma_offset, in gaudi_scrub_device_dram()
4648 WREG32(mmDMA0_CORE_DST_BASE_HI + dma_offset, in gaudi_scrub_device_dram()
4650 WREG32(mmDMA0_CORE_DST_TSIZE_0 + dma_offset, in gaudi_scrub_device_dram()
4652 WREG32(mmDMA0_CORE_COMMIT + dma_offset, in gaudi_scrub_device_dram()
4663 u32 dma_offset = dma_id * DMA_CORE_OFFSET; in gaudi_scrub_device_dram() local
4667 mmDMA0_CORE_STS0 + dma_offset, in gaudi_scrub_device_dram()
5867 u32 dma_offset = i * DMA_CORE_OFFSET; in gaudi_restore_dma_registers() local
5869 WREG32(mmDMA0_CORE_WR_COMP_ADDR_LO + dma_offset, in gaudi_restore_dma_registers()
5871 WREG32(mmDMA0_CORE_WR_COMP_ADDR_HI + dma_offset, in gaudi_restore_dma_registers()
5873 WREG32(mmDMA0_CORE_WR_COMP_WDATA + dma_offset, 0x80000001); in gaudi_restore_dma_registers()
5879 WREG32(mmDMA0_CORE_WR_AWUSER_31_11 + dma_offset, in gaudi_restore_dma_registers()
5952 u64 dma_offset; in gaudi_dma_core_transfer() local
5955 dma_offset = dma_id * DMA_CORE_OFFSET; in gaudi_dma_core_transfer()
5957 WREG32(mmDMA0_CORE_SRC_BASE_LO + dma_offset, lower_32_bits(addr)); in gaudi_dma_core_transfer()
5958 WREG32(mmDMA0_CORE_SRC_BASE_HI + dma_offset, upper_32_bits(addr)); in gaudi_dma_core_transfer()
5959 WREG32(mmDMA0_CORE_DST_BASE_LO + dma_offset, lower_32_bits(dma_addr)); in gaudi_dma_core_transfer()
5960 WREG32(mmDMA0_CORE_DST_BASE_HI + dma_offset, upper_32_bits(dma_addr)); in gaudi_dma_core_transfer()
5961 WREG32(mmDMA0_CORE_DST_TSIZE_0 + dma_offset, size_to_dma); in gaudi_dma_core_transfer()
5962 WREG32(mmDMA0_CORE_COMMIT + dma_offset, in gaudi_dma_core_transfer()
5967 mmDMA0_CORE_STS0 + dma_offset, in gaudi_dma_core_transfer()
5981 err_cause = RREG32(mmDMA0_CORE_ERR_CAUSE + dma_offset); in gaudi_dma_core_transfer()
5987 WREG32(mmDMA0_CORE_ERR_CAUSE + dma_offset, err_cause); in gaudi_dma_core_transfer()
6000 u64 dma_offset, qm_offset; in gaudi_debugfs_read_dma() local
6014 dma_offset = dma_id * DMA_CORE_OFFSET; in gaudi_debugfs_read_dma()
6016 dma_core_sts0 = RREG32(mmDMA0_CORE_STS0 + dma_offset); in gaudi_debugfs_read_dma()
6024 dma_offset = dma_id * DMA_CORE_OFFSET; in gaudi_debugfs_read_dma()
6026 dma_core_sts0 = RREG32(mmDMA0_CORE_STS0 + dma_offset); in gaudi_debugfs_read_dma()
6048 WREG32_OR(mmDMA0_CORE_PROT + dma_offset, BIT(DMA0_CORE_PROT_VAL_SHIFT)); in gaudi_debugfs_read_dma()
6051 err_cause = RREG32(mmDMA0_CORE_ERR_CAUSE + dma_offset); in gaudi_debugfs_read_dma()
6056 WREG32(mmDMA0_CORE_ERR_CAUSE + dma_offset, err_cause); in gaudi_debugfs_read_dma()
6087 WREG32_AND(mmDMA0_CORE_PROT + dma_offset, in gaudi_debugfs_read_dma()
6427 u32 tmp, timeout, dma_offset; in gaudi_send_job_on_qman0() local
6461 dma_offset = gaudi_dma_assignment[GAUDI_PCI_DMA_1] * DMA_CORE_OFFSET; in gaudi_send_job_on_qman0()
6463 WREG32(mmDMA0_CORE_PROT + dma_offset, in gaudi_send_job_on_qman0()
6485 WREG32(mmDMA0_CORE_PROT + dma_offset, BIT(DMA0_CORE_PROT_ERR_VAL_SHIFT)); in gaudi_send_job_on_qman0()
6511 u32 dma_id[2], dma_offset, err_cause[2], mask, i; in gaudi_get_razwi_initiator_dma_name() local
6542 dma_offset = dma_id[i] * DMA_CORE_OFFSET; in gaudi_get_razwi_initiator_dma_name()
6543 err_cause[i] = RREG32(mmDMA0_CORE_ERR_CAUSE + dma_offset); in gaudi_get_razwi_initiator_dma_name()