Home
last modified time | relevance | path

Searched refs:cmq (Results 1 – 8 of 8) sorted by relevance

/Linux-v5.15/drivers/net/ethernet/hisilicon/hns3/hns3vf/
Dhclgevf_cmd.c42 struct hclgevf_cmq_ring *csq = &hw->cmq.csq; in hclgevf_cmd_csq_clean()
69 return head == hw->cmq.csq.next_to_use; in hclgevf_cmd_csq_done()
120 hclgevf_cmd_config_regs(&hw->cmq.csq); in hclgevf_cmd_init_regs()
121 hclgevf_cmd_config_regs(&hw->cmq.crq); in hclgevf_cmd_init_regs()
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()
235 desc[handle] = hw->cmq.csq.desc[ntc]; in hclgevf_cmd_check_retval()
[all …]
Dhclgevf_mbx.c155 return tail == hw->cmq.crq.next_to_use; in hclgevf_cmd_crq_empty()
218 crq = &hdev->hw.cmq.crq; in hclgevf_mbx_handler()
Dhclgevf_main.h177 struct hclgevf_cmq cmq; member
/Linux-v5.15/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_cmd.c63 (ring_type == HCLGE_TYPE_CSQ) ? &hw->cmq.csq : &hw->cmq.crq; in hclge_alloc_cmd_queue()
131 hclge_cmd_config_regs(&hw->cmq.csq); in hclge_cmd_init_regs()
132 hclge_cmd_config_regs(&hw->cmq.crq); in hclge_cmd_init_regs()
138 struct hclge_cmq_ring *csq = &hw->cmq.csq; in hclge_cmd_csq_clean()
164 return head == hw->cmq.csq.next_to_use; in hclge_cmd_csq_done()
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()
250 desc[handle] = hw->cmq.csq.desc[ntc]; in hclge_cmd_check_retval()
[all …]
Dhclge_mbx.c666 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()
Dhclge_main.h301 struct hclge_cmq cmq; member
/Linux-v5.15/drivers/infiniband/hw/hns/
Dhns_roce_hw_v2.c1229 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()
Dhns_roce_hw_v2.h1437 struct hns_roce_v2_cmq cmq; member