Searched refs:cmq (Results 1 – 8 of 8) sorted by relevance
151 (ring_type == HCLGEVF_TYPE_CSQ) ? &hw->cmq.csq : &hw->cmq.crq; in hclgevf_alloc_cmd_queue()191 desc_to_use = &hw->cmq.csq.desc[hw->cmq.csq.next_to_use]; in hclgevf_cmd_copy_desc()193 (hw->cmq.csq.next_to_use)++; in hclgevf_cmd_copy_desc()194 if (hw->cmq.csq.next_to_use == hw->cmq.csq.desc_num) in hclgevf_cmd_copy_desc()195 hw->cmq.csq.next_to_use = 0; in hclgevf_cmd_copy_desc()237 if (ntc == hw->cmq.csq.desc_num) in hclgevf_cmd_check_retval()244 hw->cmq.last_status = desc_ret; in hclgevf_cmd_check_retval()301 spin_lock_bh(&hw->cmq.csq.lock); in hclgevf_cmd_send()321 ntc = hw->cmq.csq.next_to_use; in hclgevf_cmd_send()327 hw->cmq.csq.next_to_use); in hclgevf_cmd_send()[all …]
156 return tail == hw->cmq.crq.next_to_use; in hclgevf_cmd_crq_empty()219 crq = &hdev->hw.cmq.crq; in hclgevf_mbx_handler()
179 struct hclgevf_cmq cmq; member
63 (ring_type == HCLGE_TYPE_CSQ) ? &hw->cmq.csq : &hw->cmq.crq; in hclge_alloc_cmd_queue()207 desc_to_use = &hw->cmq.csq.desc[hw->cmq.csq.next_to_use]; in hclge_cmd_copy_desc()209 (hw->cmq.csq.next_to_use)++; in hclge_cmd_copy_desc()210 if (hw->cmq.csq.next_to_use >= hw->cmq.csq.desc_num) in hclge_cmd_copy_desc()211 hw->cmq.csq.next_to_use = 0; in hclge_cmd_copy_desc()252 if (ntc >= hw->cmq.csq.desc_num) in hclge_cmd_check_retval()260 hw->cmq.last_status = desc_ret; in hclge_cmd_check_retval()319 spin_lock_bh(&hw->cmq.csq.lock); in hclge_cmd_send()339 ntc = hw->cmq.csq.next_to_use; in hclge_cmd_send()502 hdev->hw.cmq.csq.next_to_use = 0; in hclge_cmd_init()[all …]
666 return tail == hw->cmq.crq.next_to_use; in hclge_cmd_crq_empty()697 struct hclge_cmq_ring *crq = &hdev->hw.cmq.crq; in hclge_mbx_handler()
301 struct hclge_cmq cmq; member
1229 priv->cmq.tx_timeout = HNS_ROCE_CMQ_TX_TIMEOUT; in hns_roce_v2_cmq_init()1231 ret = init_csq(hr_dev, &priv->cmq.csq); in hns_roce_v2_cmq_init()1242 hns_roce_free_cmq_desc(hr_dev, &priv->cmq.csq); in hns_roce_v2_cmq_exit()1263 return tail == priv->cmq.csq.head; in hns_roce_cmq_csq_done()1270 struct hns_roce_v2_cmq_ring *csq = &priv->cmq.csq; in __hns_roce_cmq_send()1294 } while (++timeout < priv->cmq.tx_timeout); in __hns_roce_cmq_send()
1437 struct hns_roce_v2_cmq cmq; member
Completed in 37 milliseconds