Home
last modified time | relevance | path

Searched refs:crq (Results 1 – 4 of 4) sorted by relevance

/dpdk/drivers/net/hns3/
H A Dhns3_mbx.c405 struct hns3_cmq_ring *crq = &hw->cmq.crq; in hns3_handle_mbx_msg_out_intr() local
413 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() local
486 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 …]
H A Dhns3_mbx.h163 #define hns3_mbx_ring_ptr_move_crq(crq) \ argument
164 ((crq)->next_to_use = ((crq)->next_to_use + 1) % (crq)->desc_num)
H A Dhns3_cmd.c102 (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 …]
H A Dhns3_cmd.h66 struct hns3_cmq_ring crq; member