Home
last modified time | relevance | path

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

/Linux-v5.10/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()
222 struct hclgevf_cmq_ring *csq = &hw->cmq.csq; in hclgevf_cmd_send()
232 spin_lock_bh(&hw->cmq.csq.lock); in hclgevf_cmd_send()
235 spin_unlock_bh(&hw->cmq.csq.lock); in hclgevf_cmd_send()
239 if (num > hclgevf_ring_space(&hw->cmq.csq)) { in hclgevf_cmd_send()
245 spin_unlock_bh(&hw->cmq.csq.lock); in hclgevf_cmd_send()
[all …]
Dhclgevf_mbx.c149 return tail == hw->cmq.crq.next_to_use; in hclgevf_cmd_crq_empty()
164 crq = &hdev->hw.cmq.crq; in hclgevf_mbx_handler()
Dhclgevf_main.h168 struct hclgevf_cmq cmq; member
/Linux-v5.10/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()
232 desc[handle] = hw->cmq.csq.desc[ntc]; in hclge_cmd_check_retval()
234 if (ntc >= hw->cmq.csq.desc_num) in hclge_cmd_check_retval()
242 hw->cmq.last_status = desc_ret; in hclge_cmd_check_retval()
259 struct hclge_cmq_ring *csq = &hw->cmq.csq; in hclge_cmd_send()
267 spin_lock_bh(&hw->cmq.csq.lock); in hclge_cmd_send()
[all …]
Dhclge_mbx.c620 return tail == hw->cmq.crq.next_to_use; in hclge_cmd_crq_empty()
651 struct hclge_cmq_ring *crq = &hdev->hw.cmq.crq; in hclge_mbx_handler()
Dhclge_main.h283 struct hclge_cmq cmq; member
/Linux-v5.10/drivers/infiniband/hw/hns/
Dhns_roce_hw_v2.c1100 &priv->cmq.csq : &priv->cmq.crq; in hns_roce_init_cmq_ring()
1113 &priv->cmq.csq : &priv->cmq.crq; in hns_roce_cmq_init_regs()
1141 priv->cmq.csq.desc_num = CMD_CSQ_DESC_NUM; in hns_roce_v2_cmq_init()
1142 priv->cmq.crq.desc_num = CMD_CRQ_DESC_NUM; in hns_roce_v2_cmq_init()
1145 spin_lock_init(&priv->cmq.csq.lock); in hns_roce_v2_cmq_init()
1146 spin_lock_init(&priv->cmq.crq.lock); in hns_roce_v2_cmq_init()
1149 priv->cmq.tx_timeout = HNS_ROCE_CMQ_TX_TIMEOUT; in hns_roce_v2_cmq_init()
1174 hns_roce_free_cmq_desc(hr_dev, &priv->cmq.csq); in hns_roce_v2_cmq_init()
1183 hns_roce_free_cmq_desc(hr_dev, &priv->cmq.csq); in hns_roce_v2_cmq_exit()
1184 hns_roce_free_cmq_desc(hr_dev, &priv->cmq.crq); in hns_roce_v2_cmq_exit()
[all …]
Dhns_roce_hw_v2.h1787 struct hns_roce_v2_cmq cmq; member