csq 869 drivers/infiniband/hw/hns/hns_roce_hw_v2.c &priv->cmq.csq : &priv->cmq.crq; csq 882 drivers/infiniband/hw/hns/hns_roce_hw_v2.c &priv->cmq.csq : &priv->cmq.crq; csq 910 drivers/infiniband/hw/hns/hns_roce_hw_v2.c priv->cmq.csq.desc_num = CMD_CSQ_DESC_NUM; csq 914 drivers/infiniband/hw/hns/hns_roce_hw_v2.c spin_lock_init(&priv->cmq.csq.lock); csq 943 drivers/infiniband/hw/hns/hns_roce_hw_v2.c hns_roce_free_cmq_desc(hr_dev, &priv->cmq.csq); csq 952 drivers/infiniband/hw/hns/hns_roce_hw_v2.c hns_roce_free_cmq_desc(hr_dev, &priv->cmq.csq); csq 975 drivers/infiniband/hw/hns/hns_roce_hw_v2.c return head == priv->cmq.csq.next_to_use; csq 981 drivers/infiniband/hw/hns/hns_roce_hw_v2.c struct hns_roce_v2_cmq_ring *csq = &priv->cmq.csq; csq 983 drivers/infiniband/hw/hns/hns_roce_hw_v2.c u16 ntc = csq->next_to_clean; csq 987 drivers/infiniband/hw/hns/hns_roce_hw_v2.c desc = &csq->desc[ntc]; csq 992 drivers/infiniband/hw/hns/hns_roce_hw_v2.c if (ntc == csq->desc_num) csq 994 drivers/infiniband/hw/hns/hns_roce_hw_v2.c desc = &csq->desc[ntc]; csq 997 drivers/infiniband/hw/hns/hns_roce_hw_v2.c csq->next_to_clean = ntc; csq 1006 drivers/infiniband/hw/hns/hns_roce_hw_v2.c struct hns_roce_v2_cmq_ring *csq = &priv->cmq.csq; csq 1015 drivers/infiniband/hw/hns/hns_roce_hw_v2.c spin_lock_bh(&csq->lock); csq 1017 drivers/infiniband/hw/hns/hns_roce_hw_v2.c if (num > hns_roce_cmq_space(csq)) { csq 1018 drivers/infiniband/hw/hns/hns_roce_hw_v2.c spin_unlock_bh(&csq->lock); csq 1026 drivers/infiniband/hw/hns/hns_roce_hw_v2.c ntc = csq->next_to_use; csq 1029 drivers/infiniband/hw/hns/hns_roce_hw_v2.c desc_to_use = &csq->desc[csq->next_to_use]; csq 1032 drivers/infiniband/hw/hns/hns_roce_hw_v2.c csq->next_to_use++; csq 1033 drivers/infiniband/hw/hns/hns_roce_hw_v2.c if (csq->next_to_use == csq->desc_num) csq 1034 drivers/infiniband/hw/hns/hns_roce_hw_v2.c csq->next_to_use = 0; csq 1039 drivers/infiniband/hw/hns/hns_roce_hw_v2.c roce_write(hr_dev, ROCEE_TX_CMQ_TAIL_REG, csq->next_to_use); csq 1059 drivers/infiniband/hw/hns/hns_roce_hw_v2.c desc_to_use = &csq->desc[ntc]; csq 1070 drivers/infiniband/hw/hns/hns_roce_hw_v2.c if (ntc == csq->desc_num) csq 1084 drivers/infiniband/hw/hns/hns_roce_hw_v2.c spin_unlock_bh(&csq->lock); csq 1600 drivers/infiniband/hw/hns/hns_roce_hw_v2.h struct hns_roce_v2_cmq_ring csq; csq 65 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c (ring_type == HCLGE_TYPE_CSQ) ? &hw->cmq.csq : &hw->cmq.crq; csq 133 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c hclge_cmd_config_regs(&hw->cmq.csq); csq 140 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c struct hclge_cmq_ring *csq = &hw->cmq.csq; csq 147 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c if (!is_valid_csq_clean_head(csq, head)) { csq 149 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c csq->next_to_use, csq->next_to_clean); csq 158 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c clean = (head - csq->next_to_clean + csq->desc_num) % csq->desc_num; csq 159 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c csq->next_to_clean = head; csq 166 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c return head == hw->cmq.csq.next_to_use; csq 234 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c desc[handle] = hw->cmq.csq.desc[ntc]; csq 236 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c if (ntc >= hw->cmq.csq.desc_num) csq 261 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c struct hclge_cmq_ring *csq = &hw->cmq.csq; csq 269 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c spin_lock_bh(&hw->cmq.csq.lock); csq 272 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c spin_unlock_bh(&hw->cmq.csq.lock); csq 276 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c if (num > hclge_ring_space(&hw->cmq.csq)) { csq 280 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c csq->next_to_clean = hclge_read_dev(hw, HCLGE_NIC_CSQ_HEAD_REG); csq 281 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c spin_unlock_bh(&hw->cmq.csq.lock); csq 289 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c ntc = hw->cmq.csq.next_to_use; csq 291 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c desc_to_use = &hw->cmq.csq.desc[hw->cmq.csq.next_to_use]; csq 293 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c (hw->cmq.csq.next_to_use)++; csq 294 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c if (hw->cmq.csq.next_to_use >= hw->cmq.csq.desc_num) csq 295 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c hw->cmq.csq.next_to_use = 0; csq 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); csq 331 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c spin_unlock_bh(&hw->cmq.csq.lock); csq 358 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c spin_lock_init(&hdev->hw.cmq.csq.lock); csq 362 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c hdev->hw.cmq.csq.desc_num = HCLGE_NIC_CMQ_DESC_NUM; csq 385 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c hclge_free_cmd_desc(&hdev->hw.cmq.csq); csq 411 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c spin_lock_bh(&hdev->hw.cmq.csq.lock); csq 414 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c hdev->hw.cmq.csq.next_to_clean = 0; csq 415 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c hdev->hw.cmq.csq.next_to_use = 0; csq 422 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c spin_unlock_bh(&hdev->hw.cmq.csq.lock); csq 492 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c hclge_destroy_queue(&hw->cmq.csq); csq 498 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c spin_lock_bh(&hdev->hw.cmq.csq.lock); csq 503 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c spin_unlock_bh(&hdev->hw.cmq.csq.lock); csq 67 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h struct hclge_cmq_ring csq; csq 45 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c struct hclgevf_cmq_ring *csq = &hw->cmq.csq; csq 52 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c if (!hclgevf_is_valid_csq_clean_head(csq, head)) { csq 54 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c csq->next_to_use, csq->next_to_clean); csq 61 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c clean = (head - csq->next_to_clean + csq->desc_num) % csq->desc_num; csq 62 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c csq->next_to_clean = head; csq 72 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c return head == hw->cmq.csq.next_to_use; csq 123 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c hclgevf_cmd_config_regs(&hw->cmq.csq); csq 154 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c (ring_type == HCLGEVF_TYPE_CSQ) ? &hw->cmq.csq : &hw->cmq.crq; csq 225 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c struct hclgevf_cmq_ring *csq = &hw->cmq.csq; csq 235 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c spin_lock_bh(&hw->cmq.csq.lock); csq 238 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c spin_unlock_bh(&hw->cmq.csq.lock); csq 242 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c if (num > hclgevf_ring_space(&hw->cmq.csq)) { csq 246 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c csq->next_to_clean = hclgevf_read_dev(hw, csq 248 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c spin_unlock_bh(&hw->cmq.csq.lock); csq 255 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c ntc = hw->cmq.csq.next_to_use; csq 258 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c desc_to_use = &hw->cmq.csq.desc[hw->cmq.csq.next_to_use]; csq 260 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c (hw->cmq.csq.next_to_use)++; csq 261 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c if (hw->cmq.csq.next_to_use == hw->cmq.csq.desc_num) csq 262 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c hw->cmq.csq.next_to_use = 0; csq 268 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c hw->cmq.csq.next_to_use); csq 288 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c desc_to_use = &hw->cmq.csq.desc[ntc]; csq 300 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c if (ntc == hw->cmq.csq.desc_num) csq 314 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c spin_unlock_bh(&hw->cmq.csq.lock); csq 341 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c spin_lock_init(&hdev->hw.cmq.csq.lock); csq 345 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c hdev->hw.cmq.csq.desc_num = HCLGEVF_NIC_CMQ_DESC_NUM; csq 364 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c hclgevf_free_cmd_desc(&hdev->hw.cmq.csq); csq 373 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c spin_lock_bh(&hdev->hw.cmq.csq.lock); csq 381 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c hdev->hw.cmq.csq.next_to_clean = 0; csq 382 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c hdev->hw.cmq.csq.next_to_use = 0; csq 389 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c spin_unlock_bh(&hdev->hw.cmq.csq.lock); csq 444 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c spin_lock_bh(&hdev->hw.cmq.csq.lock); csq 449 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c spin_unlock_bh(&hdev->hw.cmq.csq.lock); csq 450 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c hclgevf_free_cmd_desc(&hdev->hw.cmq.csq); csq 70 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.h struct hclgevf_cmq_ring csq;