Searched refs:crq (Results 1 – 4 of 4) sorted by relevance
405 struct hns3_cmq_ring *crq = &hw->cmq.crq; in hns3_handle_mbx_msg_out_intr() local413 next_to_use = crq->next_to_use; in hns3_handle_mbx_msg_out_intr()415 desc = &crq->desc[next_to_use]; in hns3_handle_mbx_msg_out_intr()432 crq->desc[crq->next_to_use].opcode = 0; in hns3_handle_mbx_msg_out_intr()439 crq->next_to_use = next_to_use; in hns3_handle_mbx_msg_out_intr()447 struct hns3_cmq_ring *crq = &hw->cmq.crq; in hns3_dev_handle_mbx_msg() local486 desc = &crq->desc[crq->next_to_use]; in hns3_dev_handle_mbx_msg()490 flag = rte_le_to_cpu_16(crq->desc[crq->next_to_use].flag); in hns3_dev_handle_mbx_msg()497 crq->desc[crq->next_to_use].flag = 0; in hns3_dev_handle_mbx_msg()505 crq->desc[crq->next_to_use].flag = 0; in hns3_dev_handle_mbx_msg()[all …]
163 #define hns3_mbx_ring_ptr_move_crq(crq) \ argument164 ((crq)->next_to_use = ((crq)->next_to_use + 1) % (crq)->desc_num)
102 (ring_type == HNS3_TYPE_CSQ) ? &hw->cmq.csq : &hw->cmq.crq; in hns3_alloc_cmd_queue()184 hns3_cmd_config_regs(&hw->cmq.crq); in hns3_cmd_init_regs()556 rte_spinlock_init(&hw->cmq.crq.lock); in hns3_cmd_init_queue()566 hw->cmq.crq.desc_num = HNS3_NIC_CMQ_DESC_NUM; in hns3_cmd_init_queue()689 rte_spinlock_lock(&hw->cmq.crq.lock); in hns3_cmd_init()693 hw->cmq.crq.next_to_clean = 0; in hns3_cmd_init()694 hw->cmq.crq.next_to_use = 0; in hns3_cmd_init()700 rte_spinlock_unlock(&hw->cmq.crq.lock); in hns3_cmd_init()773 hns3_destroy_queue(hw, &hw->cmq.crq); in hns3_cmd_destroy_queue()798 rte_spinlock_lock(&hw->cmq.crq.lock); in hns3_cmd_uninit()[all …]
66 struct hns3_cmq_ring crq; member