Lines Matching refs:dma_id

2603 static void gaudi_init_pci_dma_qman(struct hl_device *hdev, int dma_id,  in gaudi_init_pci_dma_qman()  argument
2613 dma_qm_offset = dma_id * DMA_QMAN_OFFSET; in gaudi_init_pci_dma_qman()
2679 dma_id); in gaudi_init_pci_dma_qman()
2694 static void gaudi_init_dma_core(struct hl_device *hdev, int dma_id) in gaudi_init_dma_core() argument
2699 u32 dma_offset = dma_id * DMA_CORE_OFFSET; in gaudi_init_dma_core()
2725 gaudi_irq_map_table[GAUDI_EVENT_DMA0_CORE].cpu_id + dma_id); in gaudi_init_dma_core()
2734 static void gaudi_enable_qman(struct hl_device *hdev, int dma_id, in gaudi_enable_qman() argument
2737 u32 dma_qm_offset = dma_id * DMA_QMAN_OFFSET; in gaudi_enable_qman()
2746 int i, j, dma_id, cpu_skip, nic_skip, cq_id = 0, q_idx, msi_vec = 0; in gaudi_init_pci_dma_qmans() local
2752 dma_id = gaudi_dma_assignment[i]; in gaudi_init_pci_dma_qmans()
2758 if (dma_id > 1) { in gaudi_init_pci_dma_qmans()
2767 q_idx = 4 * dma_id + j + cpu_skip; in gaudi_init_pci_dma_qmans()
2771 gaudi_init_pci_dma_qman(hdev, dma_id, j, in gaudi_init_pci_dma_qmans()
2775 gaudi_init_dma_core(hdev, dma_id); in gaudi_init_pci_dma_qmans()
2777 gaudi_enable_qman(hdev, dma_id, PCI_DMA_QMAN_ENABLE); in gaudi_init_pci_dma_qmans()
2783 static void gaudi_init_hbm_dma_qman(struct hl_device *hdev, int dma_id, in gaudi_init_hbm_dma_qman() argument
2793 dma_qm_offset = dma_id * DMA_QMAN_OFFSET; in gaudi_init_hbm_dma_qman()
2857 dma_id); in gaudi_init_hbm_dma_qman()
2876 if (gaudi_dma_assignment[dma_id] == GAUDI_ENGINE_ID_DMA_5) { in gaudi_init_hbm_dma_qman()
2893 int i, j, dma_id, internal_q_index; in gaudi_init_hbm_dma_qmans() local
2899 dma_id = gaudi_dma_assignment[GAUDI_HBM_DMA_1 + i]; in gaudi_init_hbm_dma_qmans()
2906 internal_q_index = dma_id * QMAN_STREAMS + j + 1; in gaudi_init_hbm_dma_qmans()
2910 gaudi_init_hbm_dma_qman(hdev, dma_id, j, in gaudi_init_hbm_dma_qmans()
2915 gaudi_init_hbm_dma_qman(hdev, dma_id, 4, 0); in gaudi_init_hbm_dma_qmans()
2917 gaudi_init_dma_core(hdev, dma_id); in gaudi_init_hbm_dma_qmans()
2919 gaudi_enable_qman(hdev, dma_id, HBM_DMA_QMAN_ENABLE); in gaudi_init_hbm_dma_qmans()
4257 int dma_id; in gaudi_ring_doorbell() local
4261 dma_id = gaudi_dma_assignment[GAUDI_PCI_DMA_1]; in gaudi_ring_doorbell()
4262 dma_qm_offset = dma_id * DMA_QMAN_OFFSET; in gaudi_ring_doorbell()
4268 dma_id = gaudi_dma_assignment[GAUDI_PCI_DMA_2]; in gaudi_ring_doorbell()
4269 dma_qm_offset = dma_id * DMA_QMAN_OFFSET; in gaudi_ring_doorbell()
4275 dma_id = gaudi_dma_assignment[GAUDI_HBM_DMA_1]; in gaudi_ring_doorbell()
4276 dma_qm_offset = dma_id * DMA_QMAN_OFFSET; in gaudi_ring_doorbell()
4282 dma_id = gaudi_dma_assignment[GAUDI_HBM_DMA_2]; in gaudi_ring_doorbell()
4283 dma_qm_offset = dma_id * DMA_QMAN_OFFSET; in gaudi_ring_doorbell()
4289 dma_id = gaudi_dma_assignment[GAUDI_HBM_DMA_3]; in gaudi_ring_doorbell()
4290 dma_qm_offset = dma_id * DMA_QMAN_OFFSET; in gaudi_ring_doorbell()
4296 dma_id = gaudi_dma_assignment[GAUDI_HBM_DMA_4]; in gaudi_ring_doorbell()
4297 dma_qm_offset = dma_id * DMA_QMAN_OFFSET; in gaudi_ring_doorbell()
4303 dma_id = gaudi_dma_assignment[GAUDI_HBM_DMA_5]; in gaudi_ring_doorbell()
4304 dma_qm_offset = dma_id * DMA_QMAN_OFFSET; in gaudi_ring_doorbell()
4310 dma_id = gaudi_dma_assignment[GAUDI_HBM_DMA_6]; in gaudi_ring_doorbell()
4311 dma_qm_offset = dma_id * DMA_QMAN_OFFSET; in gaudi_ring_doorbell()
4629 int rc, dma_id; in gaudi_scrub_device_dram() local
4632 for (dma_id = 0 ; dma_id < DMA_NUMBER_OF_CHANNELS ; dma_id++) { in gaudi_scrub_device_dram()
4633 u32 dma_offset = dma_id * DMA_CORE_OFFSET; in gaudi_scrub_device_dram()
4662 for (dma_id = 0 ; dma_id < DMA_NUMBER_OF_CHANNELS ; dma_id++) { in gaudi_scrub_device_dram()
4663 u32 dma_offset = dma_id * DMA_CORE_OFFSET; in gaudi_scrub_device_dram()
4676 dma_id); in gaudi_scrub_device_dram()
5948 static int gaudi_dma_core_transfer(struct hl_device *hdev, int dma_id, u64 addr, in gaudi_dma_core_transfer() argument
5955 dma_offset = dma_id * DMA_CORE_OFFSET; in gaudi_dma_core_transfer()
5976 dma_id, addr); in gaudi_dma_core_transfer()
6004 int rc = 0, dma_id; in gaudi_debugfs_read_dma() local
6013 dma_id = gaudi_dma_assignment[GAUDI_PCI_DMA_1]; in gaudi_debugfs_read_dma()
6014 dma_offset = dma_id * DMA_CORE_OFFSET; in gaudi_debugfs_read_dma()
6015 qm_offset = dma_id * DMA_QMAN_OFFSET; in gaudi_debugfs_read_dma()
6023 dma_id = gaudi_dma_assignment[GAUDI_PCI_DMA_2]; in gaudi_debugfs_read_dma()
6024 dma_offset = dma_id * DMA_CORE_OFFSET; in gaudi_debugfs_read_dma()
6025 qm_offset = dma_id * DMA_QMAN_OFFSET; in gaudi_debugfs_read_dma()
6068 rc = gaudi_dma_core_transfer(hdev, dma_id, addr, size_to_dma, in gaudi_debugfs_read_dma()
6511 u32 dma_id[2], dma_offset, err_cause[2], mask, i; in gaudi_get_razwi_initiator_dma_name() local
6519 dma_id[0] = 0; in gaudi_get_razwi_initiator_dma_name()
6520 dma_id[1] = 2; in gaudi_get_razwi_initiator_dma_name()
6524 dma_id[0] = 1; in gaudi_get_razwi_initiator_dma_name()
6525 dma_id[1] = 3; in gaudi_get_razwi_initiator_dma_name()
6529 dma_id[0] = 4; in gaudi_get_razwi_initiator_dma_name()
6530 dma_id[1] = 6; in gaudi_get_razwi_initiator_dma_name()
6534 dma_id[0] = 5; in gaudi_get_razwi_initiator_dma_name()
6535 dma_id[1] = 7; in gaudi_get_razwi_initiator_dma_name()
6542 dma_offset = dma_id[i] * DMA_CORE_OFFSET; in gaudi_get_razwi_initiator_dma_name()
8094 int i, dma_id, port; in gaudi_is_device_idle() local
8102 dma_id = gaudi_dma_assignment[i]; in gaudi_is_device_idle()
8103 offset = dma_id * DMA_QMAN_OFFSET; in gaudi_is_device_idle()
8113 set_bit(GAUDI_ENGINE_ID_DMA_0 + dma_id, mask); in gaudi_is_device_idle()
8115 hl_engine_data_sprintf(e, fmt, dma_id, in gaudi_is_device_idle()