Searched refs:cmq (Results 1 – 8 of 8) sorted by relevance
45 struct hclgevf_cmq_ring *csq = &hw->cmq.csq; in hclgevf_cmd_csq_clean()72 return head == hw->cmq.csq.next_to_use; in hclgevf_cmd_csq_done()123 hclgevf_cmd_config_regs(&hw->cmq.csq); in hclgevf_cmd_init_regs()124 hclgevf_cmd_config_regs(&hw->cmq.crq); in hclgevf_cmd_init_regs()154 (ring_type == HCLGEVF_TYPE_CSQ) ? &hw->cmq.csq : &hw->cmq.crq; in hclgevf_alloc_cmd_queue()225 struct hclgevf_cmq_ring *csq = &hw->cmq.csq; in hclgevf_cmd_send()235 spin_lock_bh(&hw->cmq.csq.lock); in hclgevf_cmd_send()238 spin_unlock_bh(&hw->cmq.csq.lock); in hclgevf_cmd_send()242 if (num > hclgevf_ring_space(&hw->cmq.csq)) { in hclgevf_cmd_send()248 spin_unlock_bh(&hw->cmq.csq.lock); in hclgevf_cmd_send()[all …]
142 return tail == hw->cmq.crq.next_to_use; in hclgevf_cmd_crq_empty()157 crq = &hdev->hw.cmq.crq; in hclgevf_mbx_handler()
169 struct hclgevf_cmq cmq; member
65 (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()234 desc[handle] = hw->cmq.csq.desc[ntc]; in hclge_cmd_check_retval()236 if (ntc >= hw->cmq.csq.desc_num) in hclge_cmd_check_retval()244 hw->cmq.last_status = desc_ret; in hclge_cmd_check_retval()261 struct hclge_cmq_ring *csq = &hw->cmq.csq; in hclge_cmd_send()269 spin_lock_bh(&hw->cmq.csq.lock); in hclge_cmd_send()[all …]
582 return tail == hw->cmq.crq.next_to_use; in hclge_cmd_crq_empty()596 struct hclge_cmq_ring *crq = &hdev->hw.cmq.crq; in hclge_mbx_handler()
278 struct hclge_cmq cmq; member
866 &priv->cmq.csq : &priv->cmq.crq; in hns_roce_init_cmq_ring()879 &priv->cmq.csq : &priv->cmq.crq; in hns_roce_cmq_init_regs()907 priv->cmq.csq.desc_num = CMD_CSQ_DESC_NUM; in hns_roce_v2_cmq_init()908 priv->cmq.crq.desc_num = CMD_CRQ_DESC_NUM; in hns_roce_v2_cmq_init()911 spin_lock_init(&priv->cmq.csq.lock); in hns_roce_v2_cmq_init()912 spin_lock_init(&priv->cmq.crq.lock); in hns_roce_v2_cmq_init()915 priv->cmq.tx_timeout = HNS_ROCE_CMQ_TX_TIMEOUT; in hns_roce_v2_cmq_init()940 hns_roce_free_cmq_desc(hr_dev, &priv->cmq.csq); in hns_roce_v2_cmq_init()949 hns_roce_free_cmq_desc(hr_dev, &priv->cmq.csq); in hns_roce_v2_cmq_exit()950 hns_roce_free_cmq_desc(hr_dev, &priv->cmq.crq); in hns_roce_v2_cmq_exit()[all …]
1630 struct hns_roce_v2_cmq cmq; member