Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_cmd.c66 (ring_type == HCLGE_TYPE_CSQ) ? &hw->cmq.csq : &hw->cmq.crq; in hclge_alloc_cmd_queue()
133 hclge_cmd_config_regs(&hw->cmq.csq); in hclge_cmd_init_regs()
134 hclge_cmd_config_regs(&hw->cmq.crq); in hclge_cmd_init_regs()
140 struct hclge_cmq_ring *csq = &hw->cmq.csq; in hclge_cmd_csq_clean()
166 return head == hw->cmq.csq.next_to_use; in hclge_cmd_csq_done()
206 spin_lock_bh(&hw->cmq.csq.lock); in hclge_cmd_send()
208 if (num > hclge_ring_space(&hw->cmq.csq) || in hclge_cmd_send()
210 spin_unlock_bh(&hw->cmq.csq.lock); in hclge_cmd_send()
218 ntc = hw->cmq.csq.next_to_use; in hclge_cmd_send()
221 desc_to_use = &hw->cmq.csq.desc[hw->cmq.csq.next_to_use]; in hclge_cmd_send()
[all …]
Dhclge_mbx.c448 return tail == hw->cmq.crq.next_to_use; in hclge_cmd_crq_empty()
453 struct hclge_cmq_ring *crq = &hdev->hw.cmq.crq; in hclge_mbx_handler()
Dhclge_main.h179 struct hclge_cmq cmq; member
/Linux-v4.19/drivers/net/ethernet/hisilicon/hns3/hns3vf/
Dhclgevf_cmd.c32 struct hclgevf_cmq_ring *csq = &hw->cmq.csq; in hclgevf_cmd_csq_clean()
59 return head == hw->cmq.csq.next_to_use; in hclgevf_cmd_csq_done()
189 spin_lock_bh(&hw->cmq.csq.lock); in hclgevf_cmd_send()
191 if (num > hclgevf_ring_space(&hw->cmq.csq)) { in hclgevf_cmd_send()
192 spin_unlock_bh(&hw->cmq.csq.lock); in hclgevf_cmd_send()
199 ntc = hw->cmq.csq.next_to_use; in hclgevf_cmd_send()
202 desc_to_use = &hw->cmq.csq.desc[hw->cmq.csq.next_to_use]; in hclgevf_cmd_send()
204 (hw->cmq.csq.next_to_use)++; in hclgevf_cmd_send()
205 if (hw->cmq.csq.next_to_use == hw->cmq.csq.desc_num) in hclgevf_cmd_send()
206 hw->cmq.csq.next_to_use = 0; in hclgevf_cmd_send()
[all …]
Dhclgevf_mbx.c133 return tail == hw->cmq.crq.next_to_use; in hclgevf_cmd_crq_empty()
148 crq = &hdev->hw.cmq.crq; in hclgevf_mbx_handler()
Dhclgevf_main.h78 struct hclgevf_cmq cmq; member
/Linux-v4.19/drivers/infiniband/hw/hns/
Dhns_roce_hw_v2.c700 &priv->cmq.csq : &priv->cmq.crq; in hns_roce_init_cmq_ring()
713 &priv->cmq.csq : &priv->cmq.crq; in hns_roce_cmq_init_regs()
743 priv->cmq.csq.desc_num = CMD_CSQ_DESC_NUM; in hns_roce_v2_cmq_init()
744 priv->cmq.crq.desc_num = CMD_CRQ_DESC_NUM; in hns_roce_v2_cmq_init()
747 spin_lock_init(&priv->cmq.csq.lock); in hns_roce_v2_cmq_init()
748 spin_lock_init(&priv->cmq.crq.lock); in hns_roce_v2_cmq_init()
751 priv->cmq.tx_timeout = HNS_ROCE_CMQ_TX_TIMEOUT; in hns_roce_v2_cmq_init()
776 hns_roce_free_cmq_desc(hr_dev, &priv->cmq.csq); in hns_roce_v2_cmq_init()
785 hns_roce_free_cmq_desc(hr_dev, &priv->cmq.csq); in hns_roce_v2_cmq_exit()
786 hns_roce_free_cmq_desc(hr_dev, &priv->cmq.crq); in hns_roce_v2_cmq_exit()
[all …]
Dhns_roce_hw_v2.h1388 struct hns_roce_v2_cmq cmq; member