Home
last modified time | relevance | path

Searched refs:arq (Results 1 – 12 of 12) sorted by relevance

/linux/drivers/net/ethernet/intel/iavf/
H A Diavf_adminq.c45 ret_code = iavf_allocate_dma_mem(hw, &hw->aq.arq.desc_buf, in iavf_alloc_adminq_arq_ring()
75 iavf_free_dma_mem(hw, &hw->aq.arq.desc_buf); in iavf_free_adminq_arq()
94 ret_code = iavf_allocate_virt_mem(hw, &hw->aq.arq.dma_head, in iavf_alloc_arq_bufs()
99 hw->aq.arq.r.arq_bi = (struct iavf_dma_mem *)hw->aq.arq.dma_head.va; in iavf_alloc_arq_bufs()
103 bi = &hw->aq.arq.r.arq_bi[i]; in iavf_alloc_arq_bufs()
112 desc = IAVF_ADMINQ_DESC(hw->aq.arq, i); in iavf_alloc_arq_bufs()
140 iavf_free_dma_mem(hw, &hw->aq.arq.r.arq_bi[i]); in iavf_alloc_arq_bufs()
141 iavf_free_virt_mem(hw, &hw->aq.arq.dma_head); in iavf_alloc_arq_bufs()
197 iavf_free_dma_mem(hw, &hw->aq.arq.r.arq_bi[i]); in iavf_free_arq_bufs()
200 iavf_free_dma_mem(hw, &hw->aq.arq.desc_buf); in iavf_free_arq_bufs()
[all …]
H A Diavf_adminq.h58 struct iavf_adminq_ring arq; /* receive queue */ member
/linux/drivers/net/ethernet/intel/i40e/
H A Di40e_adminq.c45 ret_code = i40e_allocate_dma_mem(hw, &hw->aq.arq.desc_buf, in i40e_alloc_adminq_arq_ring()
74 i40e_free_dma_mem(hw, &hw->aq.arq.desc_buf); in i40e_free_adminq_arq()
93 ret_code = i40e_allocate_virt_mem(hw, &hw->aq.arq.dma_head, in i40e_alloc_arq_bufs()
97 hw->aq.arq.r.arq_bi = (struct i40e_dma_mem *)hw->aq.arq.dma_head.va; in i40e_alloc_arq_bufs()
101 bi = &hw->aq.arq.r.arq_bi[i]; in i40e_alloc_arq_bufs()
109 desc = I40E_ADMINQ_DESC(hw->aq.arq, i); in i40e_alloc_arq_bufs()
137 i40e_free_dma_mem(hw, &hw->aq.arq.r.arq_bi[i]); in i40e_alloc_arq_bufs()
138 i40e_free_virt_mem(hw, &hw->aq.arq.dma_head); in i40e_alloc_arq_bufs()
192 i40e_free_dma_mem(hw, &hw->aq.arq.r.arq_bi[i]); in i40e_free_arq_bufs()
195 i40e_free_dma_mem(hw, &hw->aq.arq.desc_buf); in i40e_free_arq_bufs()
[all …]
H A Di40e_adminq.h58 struct i40e_adminq_ring arq; /* receive queue */ member
H A Di40e_debugfs.c461 ring = &(hw->aq.arq); in i40e_dbg_dump_aq_desc()
/linux/drivers/net/ethernet/hisilicon/hns3/hns3vf/
H A Dhclgevf_mbx.c207 if (atomic_read(&hdev->arq.count) >= in hclgevf_handle_mbx_msg()
216 memcpy(hdev->arq.msg_q[hdev->arq.tail], &req->msg, in hclgevf_handle_mbx_msg()
218 hclge_mbx_tail_ptr_move_arq(hdev->arq); in hclgevf_handle_mbx_msg()
219 atomic_inc(&hdev->arq.count); in hclgevf_handle_mbx_msg()
314 tail = hdev->arq.tail; in hclgevf_mbx_async_handler()
317 while (tail != hdev->arq.head) { in hclgevf_mbx_async_handler()
325 msg_q = hdev->arq.msg_q[hdev->arq.head]; in hclgevf_mbx_async_handler()
384 hclge_mbx_head_ptr_move_arq(hdev->arq); in hclgevf_mbx_async_handler()
385 atomic_dec(&hdev->arq.count); in hclgevf_mbx_async_handler()
386 msg_q = hdev->arq.msg_q[hdev->arq.head]; in hclgevf_mbx_async_handler()
H A Dhclgevf_main.h263 struct hclgevf_mbx_arq_ring arq; /* mailbox async rx queue */ member
H A Dhclgevf_main.c93 hdev->arq.hdev = hdev; in hclgevf_arq_init()
94 hdev->arq.head = 0; in hclgevf_arq_init()
95 hdev->arq.tail = 0; in hclgevf_arq_init()
96 atomic_set(&hdev->arq.count, 0); in hclgevf_arq_init()
/linux/drivers/net/ethernet/hisilicon/hns3/
H A Dhclge_mbx.h249 #define hclge_mbx_tail_ptr_move_arq(arq) \ argument
250 (arq.tail = (arq.tail + 1) % HCLGE_MBX_MAX_ARQ_MSG_NUM)
251 #define hclge_mbx_head_ptr_move_arq(arq) \ argument
252 (arq.head = (arq.head + 1) % HCLGE_MBX_MAX_ARQ_MSG_NUM)
/linux/drivers/net/ethernet/intel/idpf/
H A Didpf.h904 if (!adapter->hw.arq) in idpf_is_reset_detected()
907 return !(readl(idpf_get_mbx_reg_addr(adapter, adapter->hw.arq->reg.len)) & in idpf_is_reset_detected()
908 adapter->hw.arq->reg.len_mask); in idpf_is_reset_detected()
H A Didpf_controlq.h122 struct idpf_ctlq_info *arq; member
H A Didpf_virtchnl.c682 err = idpf_ctlq_recv(adapter->hw.arq, &num_recv, &ctlq_msg); in idpf_recv_mb_msg()
699 adapter->hw.arq, in idpf_recv_mb_msg()
3307 hw->arq = idpf_find_ctlq(hw, IDPF_CTLQ_TYPE_MAILBOX_RX, in idpf_init_dflt_mbx()
3310 if (!hw->asq || !hw->arq) { in idpf_init_dflt_mbx()
3327 if (adapter->hw.arq && adapter->hw.asq) { in idpf_deinit_dflt_mbx()
3331 adapter->hw.arq = NULL; in idpf_deinit_dflt_mbx()