cmq 869 drivers/infiniband/hw/hns/hns_roce_hw_v2.c &priv->cmq.csq : &priv->cmq.crq; cmq 882 drivers/infiniband/hw/hns/hns_roce_hw_v2.c &priv->cmq.csq : &priv->cmq.crq; cmq 910 drivers/infiniband/hw/hns/hns_roce_hw_v2.c priv->cmq.csq.desc_num = CMD_CSQ_DESC_NUM; cmq 911 drivers/infiniband/hw/hns/hns_roce_hw_v2.c priv->cmq.crq.desc_num = CMD_CRQ_DESC_NUM; cmq 914 drivers/infiniband/hw/hns/hns_roce_hw_v2.c spin_lock_init(&priv->cmq.csq.lock); cmq 915 drivers/infiniband/hw/hns/hns_roce_hw_v2.c spin_lock_init(&priv->cmq.crq.lock); cmq 918 drivers/infiniband/hw/hns/hns_roce_hw_v2.c priv->cmq.tx_timeout = HNS_ROCE_CMQ_TX_TIMEOUT; cmq 943 drivers/infiniband/hw/hns/hns_roce_hw_v2.c hns_roce_free_cmq_desc(hr_dev, &priv->cmq.csq); cmq 952 drivers/infiniband/hw/hns/hns_roce_hw_v2.c hns_roce_free_cmq_desc(hr_dev, &priv->cmq.csq); cmq 953 drivers/infiniband/hw/hns/hns_roce_hw_v2.c hns_roce_free_cmq_desc(hr_dev, &priv->cmq.crq); cmq 975 drivers/infiniband/hw/hns/hns_roce_hw_v2.c return head == priv->cmq.csq.next_to_use; cmq 981 drivers/infiniband/hw/hns/hns_roce_hw_v2.c struct hns_roce_v2_cmq_ring *csq = &priv->cmq.csq; cmq 1006 drivers/infiniband/hw/hns/hns_roce_hw_v2.c struct hns_roce_v2_cmq_ring *csq = &priv->cmq.csq; cmq 1051 drivers/infiniband/hw/hns/hns_roce_hw_v2.c } while (timeout < priv->cmq.tx_timeout); cmq 1067 drivers/infiniband/hw/hns/hns_roce_hw_v2.c priv->cmq.last_status = desc_ret; cmq 1630 drivers/infiniband/hw/hns/hns_roce_hw_v2.h struct hns_roce_v2_cmq cmq; cmq 65 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c (ring_type == HCLGE_TYPE_CSQ) ? &hw->cmq.csq : &hw->cmq.crq; cmq 133 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c hclge_cmd_config_regs(&hw->cmq.csq); cmq 134 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c hclge_cmd_config_regs(&hw->cmq.crq); cmq 140 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c struct hclge_cmq_ring *csq = &hw->cmq.csq; cmq 166 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c return head == hw->cmq.csq.next_to_use; cmq 234 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c desc[handle] = hw->cmq.csq.desc[ntc]; cmq 236 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c if (ntc >= hw->cmq.csq.desc_num) cmq 244 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c hw->cmq.last_status = desc_ret; cmq 261 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c struct hclge_cmq_ring *csq = &hw->cmq.csq; cmq 269 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c spin_lock_bh(&hw->cmq.csq.lock); cmq 272 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c spin_unlock_bh(&hw->cmq.csq.lock); cmq 276 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c if (num > hclge_ring_space(&hw->cmq.csq)) { cmq 281 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c spin_unlock_bh(&hw->cmq.csq.lock); cmq 289 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c ntc = hw->cmq.csq.next_to_use; cmq 291 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c desc_to_use = &hw->cmq.csq.desc[hw->cmq.csq.next_to_use]; cmq 293 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c (hw->cmq.csq.next_to_use)++; cmq 294 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c if (hw->cmq.csq.next_to_use >= hw->cmq.csq.desc_num) cmq 295 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c hw->cmq.csq.next_to_use = 0; cmq 300 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c hclge_write_dev(hw, HCLGE_NIC_CSQ_TAIL_REG, hw->cmq.csq.next_to_use); cmq 314 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c } while (timeout < hw->cmq.tx_timeout); cmq 331 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c spin_unlock_bh(&hw->cmq.csq.lock); cmq 358 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c spin_lock_init(&hdev->hw.cmq.csq.lock); cmq 359 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c spin_lock_init(&hdev->hw.cmq.crq.lock); cmq 362 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c hdev->hw.cmq.csq.desc_num = HCLGE_NIC_CMQ_DESC_NUM; cmq 363 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c hdev->hw.cmq.crq.desc_num = HCLGE_NIC_CMQ_DESC_NUM; cmq 366 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c hdev->hw.cmq.tx_timeout = HCLGE_CMDQ_TX_TIMEOUT; cmq 385 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c hclge_free_cmd_desc(&hdev->hw.cmq.csq); cmq 411 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c spin_lock_bh(&hdev->hw.cmq.csq.lock); cmq 412 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c spin_lock(&hdev->hw.cmq.crq.lock); cmq 414 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c hdev->hw.cmq.csq.next_to_clean = 0; cmq 415 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c hdev->hw.cmq.csq.next_to_use = 0; cmq 416 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c hdev->hw.cmq.crq.next_to_clean = 0; cmq 417 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c hdev->hw.cmq.crq.next_to_use = 0; cmq 421 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c spin_unlock(&hdev->hw.cmq.crq.lock); cmq 422 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c spin_unlock_bh(&hdev->hw.cmq.csq.lock); cmq 492 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c hclge_destroy_queue(&hw->cmq.csq); cmq 493 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c hclge_destroy_queue(&hw->cmq.crq); cmq 498 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c spin_lock_bh(&hdev->hw.cmq.csq.lock); cmq 499 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c spin_lock(&hdev->hw.cmq.crq.lock); cmq 502 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c spin_unlock(&hdev->hw.cmq.crq.lock); cmq 503 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c spin_unlock_bh(&hdev->hw.cmq.csq.lock); cmq 278 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h struct hclge_cmq cmq; cmq 582 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c return tail == hw->cmq.crq.next_to_use; cmq 596 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c struct hclge_cmq_ring *crq = &hdev->hw.cmq.crq; cmq 45 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c struct hclgevf_cmq_ring *csq = &hw->cmq.csq; cmq 72 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c return head == hw->cmq.csq.next_to_use; cmq 123 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c hclgevf_cmd_config_regs(&hw->cmq.csq); cmq 124 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c hclgevf_cmd_config_regs(&hw->cmq.crq); cmq 154 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c (ring_type == HCLGEVF_TYPE_CSQ) ? &hw->cmq.csq : &hw->cmq.crq; cmq 225 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c struct hclgevf_cmq_ring *csq = &hw->cmq.csq; cmq 235 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c spin_lock_bh(&hw->cmq.csq.lock); cmq 238 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c spin_unlock_bh(&hw->cmq.csq.lock); cmq 242 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c if (num > hclgevf_ring_space(&hw->cmq.csq)) { cmq 248 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c spin_unlock_bh(&hw->cmq.csq.lock); cmq 255 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c ntc = hw->cmq.csq.next_to_use; cmq 258 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c desc_to_use = &hw->cmq.csq.desc[hw->cmq.csq.next_to_use]; cmq 260 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c (hw->cmq.csq.next_to_use)++; cmq 261 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c if (hw->cmq.csq.next_to_use == hw->cmq.csq.desc_num) cmq 262 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c hw->cmq.csq.next_to_use = 0; cmq 268 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c hw->cmq.csq.next_to_use); cmq 279 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c } while (timeout < hw->cmq.tx_timeout); cmq 288 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c desc_to_use = &hw->cmq.csq.desc[ntc]; cmq 297 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c hw->cmq.last_status = (enum hclgevf_cmd_status)retval; cmq 300 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c if (ntc == hw->cmq.csq.desc_num) cmq 314 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c spin_unlock_bh(&hw->cmq.csq.lock); cmq 341 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c spin_lock_init(&hdev->hw.cmq.csq.lock); cmq 342 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c spin_lock_init(&hdev->hw.cmq.crq.lock); cmq 344 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c hdev->hw.cmq.tx_timeout = HCLGEVF_CMDQ_TX_TIMEOUT; cmq 345 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c hdev->hw.cmq.csq.desc_num = HCLGEVF_NIC_CMQ_DESC_NUM; cmq 346 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c hdev->hw.cmq.crq.desc_num = HCLGEVF_NIC_CMQ_DESC_NUM; cmq 364 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c hclgevf_free_cmd_desc(&hdev->hw.cmq.csq); cmq 373 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c spin_lock_bh(&hdev->hw.cmq.csq.lock); cmq 374 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c spin_lock(&hdev->hw.cmq.crq.lock); cmq 381 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c hdev->hw.cmq.csq.next_to_clean = 0; cmq 382 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c hdev->hw.cmq.csq.next_to_use = 0; cmq 383 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c hdev->hw.cmq.crq.next_to_clean = 0; cmq 384 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c hdev->hw.cmq.crq.next_to_use = 0; cmq 388 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c spin_unlock(&hdev->hw.cmq.crq.lock); cmq 389 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c spin_unlock_bh(&hdev->hw.cmq.csq.lock); cmq 444 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c spin_lock_bh(&hdev->hw.cmq.csq.lock); cmq 445 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c spin_lock(&hdev->hw.cmq.crq.lock); cmq 448 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c spin_unlock(&hdev->hw.cmq.crq.lock); cmq 449 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c spin_unlock_bh(&hdev->hw.cmq.csq.lock); cmq 450 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c hclgevf_free_cmd_desc(&hdev->hw.cmq.csq); cmq 451 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c hclgevf_free_cmd_desc(&hdev->hw.cmq.crq); cmq 169 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h struct hclgevf_cmq cmq; cmq 142 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_mbx.c return tail == hw->cmq.crq.next_to_use; cmq 157 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_mbx.c crq = &hdev->hw.cmq.crq;