Lines Matching refs:hw_queue_id

2105 static bool gaudi2_is_queue_enabled(struct hl_device *hdev, u32 hw_queue_id);
6360 static bool gaudi2_is_queue_enabled(struct hl_device *hdev, u32 hw_queue_id) in gaudi2_is_queue_enabled() argument
6368 switch (hw_queue_id) { in gaudi2_is_queue_enabled()
6376 ((hw_queue_id - GAUDI2_QUEUE_ID_DCORE0_EDMA_0_0) >> 2); in gaudi2_is_queue_enabled()
6380 ((hw_queue_id - GAUDI2_QUEUE_ID_DCORE1_EDMA_0_0) >> 2); in gaudi2_is_queue_enabled()
6384 ((hw_queue_id - GAUDI2_QUEUE_ID_DCORE2_EDMA_0_0) >> 2); in gaudi2_is_queue_enabled()
6388 ((hw_queue_id - GAUDI2_QUEUE_ID_DCORE3_EDMA_0_0) >> 2); in gaudi2_is_queue_enabled()
6409 ((hw_queue_id - GAUDI2_QUEUE_ID_DCORE0_TPC_0_0) >> 2); in gaudi2_is_queue_enabled()
6418 ((hw_queue_id - GAUDI2_QUEUE_ID_DCORE1_TPC_0_0) >> 2); in gaudi2_is_queue_enabled()
6423 ((hw_queue_id - GAUDI2_QUEUE_ID_DCORE2_TPC_0_0) >> 2); in gaudi2_is_queue_enabled()
6428 ((hw_queue_id - GAUDI2_QUEUE_ID_DCORE3_TPC_0_0) >> 2); in gaudi2_is_queue_enabled()
6436 hw_test_cap_bit = HW_CAP_ROT_SHIFT + ((hw_queue_id - GAUDI2_QUEUE_ID_ROT_0_0) >> 2); in gaudi2_is_queue_enabled()
6440 hw_nic_cap_bit = HW_CAP_NIC_SHIFT + ((hw_queue_id - GAUDI2_QUEUE_ID_NIC_0_0) >> 2); in gaudi2_is_queue_enabled()
6532 static void gaudi2_ring_doorbell(struct hl_device *hdev, u32 hw_queue_id, u32 pi) in gaudi2_ring_doorbell() argument
6537 if (hw_queue_id != GAUDI2_QUEUE_ID_CPU_PQ) { in gaudi2_ring_doorbell()
6543 pq_offset = (hw_queue_id & 0x3) * 4; in gaudi2_ring_doorbell()
6544 reg_base = gaudi2_qm_blocks_bases[hw_queue_id]; in gaudi2_ring_doorbell()
6555 if (hw_queue_id == GAUDI2_QUEUE_ID_CPU_PQ) { in gaudi2_ring_doorbell()
6649 if (!gaudi2_is_queue_enabled(hdev, parser->hw_queue_id)) { in gaudi2_validate_cb_address()
6650 dev_err(hdev->dev, "h/w queue %d is disabled\n", parser->hw_queue_id); in gaudi2_validate_cb_address()
6853 static void gaudi2_qman_set_test_mode(struct hl_device *hdev, u32 hw_queue_id, bool enable) in gaudi2_qman_set_test_mode() argument
6855 u32 reg_base = gaudi2_qm_blocks_bases[hw_queue_id]; in gaudi2_qman_set_test_mode()
6866 static inline u32 gaudi2_test_queue_hw_queue_id_to_sob_id(struct hl_device *hdev, u32 hw_queue_id) in gaudi2_test_queue_hw_queue_id_to_sob_id() argument
6869 hw_queue_id - GAUDI2_QUEUE_ID_PDMA_0_0; in gaudi2_test_queue_hw_queue_id_to_sob_id()
6872 static void gaudi2_test_queue_clear(struct hl_device *hdev, u32 hw_queue_id) in gaudi2_test_queue_clear() argument
6874 u32 sob_offset = gaudi2_test_queue_hw_queue_id_to_sob_id(hdev, hw_queue_id) * 4; in gaudi2_test_queue_clear()
6881 static int gaudi2_test_queue_send_msg_short(struct hl_device *hdev, u32 hw_queue_id, u32 sob_val, in gaudi2_test_queue_send_msg_short() argument
6884 u32 sob_offset = gaudi2_test_queue_hw_queue_id_to_sob_id(hdev, hw_queue_id) * 4; in gaudi2_test_queue_send_msg_short()
6899 rc = hl_hw_queue_send_cb_no_cmpl(hdev, hw_queue_id, pkt_size, msg_info->dma_addr); in gaudi2_test_queue_send_msg_short()
6902 "Failed to send msg_short packet to H/W queue %d\n", hw_queue_id); in gaudi2_test_queue_send_msg_short()
6907 static int gaudi2_test_queue_wait_completion(struct hl_device *hdev, u32 hw_queue_id, u32 sob_val) in gaudi2_test_queue_wait_completion() argument
6909 u32 sob_offset = gaudi2_test_queue_hw_queue_id_to_sob_id(hdev, hw_queue_id) * 4; in gaudi2_test_queue_wait_completion()
6929 hw_queue_id, tmp); in gaudi2_test_queue_wait_completion()
9933 u32 hw_queue_id, u32 size, u64 addr, u32 val) in gaudi2_memset_memory_chunk_using_edma_qm() argument
9950 rc = hl_hw_queue_send_cb_no_cmpl(hdev, hw_queue_id, pkt_size, pkt_dma_addr); in gaudi2_memset_memory_chunk_using_edma_qm()
9953 hw_queue_id); in gaudi2_memset_memory_chunk_using_edma_qm()
10217 u32 reg_base, hw_queue_id; in gaudi2_restore_user_qm_registers() local
10219 for (hw_queue_id = GAUDI2_QUEUE_ID_PDMA_0_0 ; hw_queue_id <= GAUDI2_QUEUE_ID_ROT_1_0; in gaudi2_restore_user_qm_registers()
10220 hw_queue_id += NUM_OF_PQ_PER_QMAN) { in gaudi2_restore_user_qm_registers()
10221 if (!gaudi2_is_queue_enabled(hdev, hw_queue_id)) in gaudi2_restore_user_qm_registers()
10224 gaudi2_clear_qm_fence_counters_common(hdev, hw_queue_id, false); in gaudi2_restore_user_qm_registers()
10226 reg_base = gaudi2_qm_blocks_bases[hw_queue_id]; in gaudi2_restore_user_qm_registers()
10236 u32 reg_base, hw_queue_id; in gaudi2_restore_nic_qm_registers() local
10238 for (hw_queue_id = GAUDI2_QUEUE_ID_NIC_0_0 ; hw_queue_id <= GAUDI2_QUEUE_ID_NIC_23_3; in gaudi2_restore_nic_qm_registers()
10239 hw_queue_id += NUM_OF_PQ_PER_QMAN) { in gaudi2_restore_nic_qm_registers()
10240 if (!gaudi2_is_queue_enabled(hdev, hw_queue_id)) in gaudi2_restore_nic_qm_registers()
10243 gaudi2_clear_qm_fence_counters_common(hdev, hw_queue_id, false); in gaudi2_restore_nic_qm_registers()
10245 reg_base = gaudi2_qm_blocks_bases[hw_queue_id]; in gaudi2_restore_nic_qm_registers()