mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-01 19:34:35 +08:00
iavf: rename I40E_ADMINQ_DESC
Take care of some renames containing I40E_ADMINQ_DESC. Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
parent
4dbc76e014
commit
83eafc4922
@ -40,7 +40,7 @@ static iavf_status i40e_alloc_adminq_asq_ring(struct i40e_hw *hw)
|
|||||||
i40e_mem_atq_ring,
|
i40e_mem_atq_ring,
|
||||||
(hw->aq.num_asq_entries *
|
(hw->aq.num_asq_entries *
|
||||||
sizeof(struct i40e_aq_desc)),
|
sizeof(struct i40e_aq_desc)),
|
||||||
I40E_ADMINQ_DESC_ALIGNMENT);
|
IAVF_ADMINQ_DESC_ALIGNMENT);
|
||||||
if (ret_code)
|
if (ret_code)
|
||||||
return ret_code;
|
return ret_code;
|
||||||
|
|
||||||
@ -67,7 +67,7 @@ static iavf_status i40e_alloc_adminq_arq_ring(struct i40e_hw *hw)
|
|||||||
i40e_mem_arq_ring,
|
i40e_mem_arq_ring,
|
||||||
(hw->aq.num_arq_entries *
|
(hw->aq.num_arq_entries *
|
||||||
sizeof(struct i40e_aq_desc)),
|
sizeof(struct i40e_aq_desc)),
|
||||||
I40E_ADMINQ_DESC_ALIGNMENT);
|
IAVF_ADMINQ_DESC_ALIGNMENT);
|
||||||
|
|
||||||
return ret_code;
|
return ret_code;
|
||||||
}
|
}
|
||||||
@ -125,12 +125,12 @@ static iavf_status i40e_alloc_arq_bufs(struct i40e_hw *hw)
|
|||||||
ret_code = i40e_allocate_dma_mem(hw, bi,
|
ret_code = i40e_allocate_dma_mem(hw, bi,
|
||||||
i40e_mem_arq_buf,
|
i40e_mem_arq_buf,
|
||||||
hw->aq.arq_buf_size,
|
hw->aq.arq_buf_size,
|
||||||
I40E_ADMINQ_DESC_ALIGNMENT);
|
IAVF_ADMINQ_DESC_ALIGNMENT);
|
||||||
if (ret_code)
|
if (ret_code)
|
||||||
goto unwind_alloc_arq_bufs;
|
goto unwind_alloc_arq_bufs;
|
||||||
|
|
||||||
/* now configure the descriptors for use */
|
/* now configure the descriptors for use */
|
||||||
desc = I40E_ADMINQ_DESC(hw->aq.arq, i);
|
desc = IAVF_ADMINQ_DESC(hw->aq.arq, i);
|
||||||
|
|
||||||
desc->flags = cpu_to_le16(I40E_AQ_FLAG_BUF);
|
desc->flags = cpu_to_le16(I40E_AQ_FLAG_BUF);
|
||||||
if (hw->aq.arq_buf_size > I40E_AQ_LARGE_BUF)
|
if (hw->aq.arq_buf_size > I40E_AQ_LARGE_BUF)
|
||||||
@ -188,7 +188,7 @@ static iavf_status i40e_alloc_asq_bufs(struct i40e_hw *hw)
|
|||||||
ret_code = i40e_allocate_dma_mem(hw, bi,
|
ret_code = i40e_allocate_dma_mem(hw, bi,
|
||||||
i40e_mem_asq_buf,
|
i40e_mem_asq_buf,
|
||||||
hw->aq.asq_buf_size,
|
hw->aq.asq_buf_size,
|
||||||
I40E_ADMINQ_DESC_ALIGNMENT);
|
IAVF_ADMINQ_DESC_ALIGNMENT);
|
||||||
if (ret_code)
|
if (ret_code)
|
||||||
goto unwind_alloc_asq_bufs;
|
goto unwind_alloc_asq_bufs;
|
||||||
}
|
}
|
||||||
@ -576,7 +576,7 @@ static u16 i40e_clean_asq(struct i40e_hw *hw)
|
|||||||
struct i40e_aq_desc desc_cb;
|
struct i40e_aq_desc desc_cb;
|
||||||
struct i40e_aq_desc *desc;
|
struct i40e_aq_desc *desc;
|
||||||
|
|
||||||
desc = I40E_ADMINQ_DESC(*asq, ntc);
|
desc = IAVF_ADMINQ_DESC(*asq, ntc);
|
||||||
details = I40E_ADMINQ_DETAILS(*asq, ntc);
|
details = I40E_ADMINQ_DETAILS(*asq, ntc);
|
||||||
while (rd32(hw, hw->aq.asq.head) != ntc) {
|
while (rd32(hw, hw->aq.asq.head) != ntc) {
|
||||||
i40e_debug(hw, I40E_DEBUG_AQ_MESSAGE,
|
i40e_debug(hw, I40E_DEBUG_AQ_MESSAGE,
|
||||||
@ -594,7 +594,7 @@ static u16 i40e_clean_asq(struct i40e_hw *hw)
|
|||||||
ntc++;
|
ntc++;
|
||||||
if (ntc == asq->count)
|
if (ntc == asq->count)
|
||||||
ntc = 0;
|
ntc = 0;
|
||||||
desc = I40E_ADMINQ_DESC(*asq, ntc);
|
desc = IAVF_ADMINQ_DESC(*asq, ntc);
|
||||||
details = I40E_ADMINQ_DETAILS(*asq, ntc);
|
details = I40E_ADMINQ_DETAILS(*asq, ntc);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -717,7 +717,7 @@ iavf_status iavf_asq_send_command(struct i40e_hw *hw,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* initialize the temp desc pointer with the right desc */
|
/* initialize the temp desc pointer with the right desc */
|
||||||
desc_on_ring = I40E_ADMINQ_DESC(hw->aq.asq, hw->aq.asq.next_to_use);
|
desc_on_ring = IAVF_ADMINQ_DESC(hw->aq.asq, hw->aq.asq.next_to_use);
|
||||||
|
|
||||||
/* if the desc is available copy the temp desc to the right place */
|
/* if the desc is available copy the temp desc to the right place */
|
||||||
*desc_on_ring = *desc;
|
*desc_on_ring = *desc;
|
||||||
@ -877,7 +877,7 @@ iavf_status iavf_clean_arq_element(struct i40e_hw *hw,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* now clean the next descriptor */
|
/* now clean the next descriptor */
|
||||||
desc = I40E_ADMINQ_DESC(hw->aq.arq, ntc);
|
desc = IAVF_ADMINQ_DESC(hw->aq.arq, ntc);
|
||||||
desc_idx = ntc;
|
desc_idx = ntc;
|
||||||
|
|
||||||
hw->aq.arq_last_status =
|
hw->aq.arq_last_status =
|
||||||
|
@ -8,10 +8,10 @@
|
|||||||
#include "i40e_status.h"
|
#include "i40e_status.h"
|
||||||
#include "i40e_adminq_cmd.h"
|
#include "i40e_adminq_cmd.h"
|
||||||
|
|
||||||
#define I40E_ADMINQ_DESC(R, i) \
|
#define IAVF_ADMINQ_DESC(R, i) \
|
||||||
(&(((struct i40e_aq_desc *)((R).desc_buf.va))[i]))
|
(&(((struct i40e_aq_desc *)((R).desc_buf.va))[i]))
|
||||||
|
|
||||||
#define I40E_ADMINQ_DESC_ALIGNMENT 4096
|
#define IAVF_ADMINQ_DESC_ALIGNMENT 4096
|
||||||
|
|
||||||
struct i40e_adminq_ring {
|
struct i40e_adminq_ring {
|
||||||
struct i40e_virt_mem dma_head; /* space for dma structures */
|
struct i40e_virt_mem dma_head; /* space for dma structures */
|
||||||
|
Loading…
Reference in New Issue
Block a user