Lines Matching refs:desc
37 static inline bool i40e_is_nvm_update_op(struct i40e_aq_desc *desc) in i40e_is_nvm_update_op() argument
39 return (desc->opcode == i40e_aqc_opc_nvm_erase) || in i40e_is_nvm_update_op()
40 (desc->opcode == i40e_aqc_opc_nvm_update); in i40e_is_nvm_update_op()
141 struct i40e_aq_desc *desc; in i40e_alloc_arq_bufs() local
167 desc = I40E_ADMINQ_DESC(hw->aq.arq, i); in i40e_alloc_arq_bufs()
169 desc->flags = cpu_to_le16(I40E_AQ_FLAG_BUF); in i40e_alloc_arq_bufs()
171 desc->flags |= cpu_to_le16(I40E_AQ_FLAG_LB); in i40e_alloc_arq_bufs()
172 desc->opcode = 0; in i40e_alloc_arq_bufs()
176 desc->datalen = cpu_to_le16((u16)bi->size); in i40e_alloc_arq_bufs()
177 desc->retval = 0; in i40e_alloc_arq_bufs()
178 desc->cookie_high = 0; in i40e_alloc_arq_bufs()
179 desc->cookie_low = 0; in i40e_alloc_arq_bufs()
180 desc->params.external.addr_high = in i40e_alloc_arq_bufs()
182 desc->params.external.addr_low = in i40e_alloc_arq_bufs()
184 desc->params.external.param0 = 0; in i40e_alloc_arq_bufs()
185 desc->params.external.param1 = 0; in i40e_alloc_arq_bufs()
613 struct i40e_aq_desc *desc; in i40e_clean_asq() local
615 desc = I40E_ADMINQ_DESC(*asq, ntc); in i40e_clean_asq()
624 desc_cb = *desc; in i40e_clean_asq()
627 memset((void *)desc, 0, sizeof(struct i40e_aq_desc)); in i40e_clean_asq()
633 desc = I40E_ADMINQ_DESC(*asq, ntc); in i40e_clean_asq()
670 struct i40e_aq_desc *desc, in i40evf_asq_send_command() argument
711 desc->cookie_high = in i40evf_asq_send_command()
713 desc->cookie_low = in i40evf_asq_send_command()
721 desc->flags &= ~cpu_to_le16(details->flags_dis); in i40evf_asq_send_command()
722 desc->flags |= cpu_to_le16(details->flags_ena); in i40evf_asq_send_command()
760 *desc_on_ring = *desc; in i40evf_asq_send_command()
807 *desc = *desc_on_ring; in i40evf_asq_send_command()
810 retval = le16_to_cpu(desc->retval); in i40evf_asq_send_command()
830 i40evf_debug_aq(hw, I40E_DEBUG_AQ_COMMAND, (void *)desc, buff, in i40evf_asq_send_command()
858 void i40evf_fill_default_direct_cmd_desc(struct i40e_aq_desc *desc, in i40evf_fill_default_direct_cmd_desc() argument
862 memset((void *)desc, 0, sizeof(struct i40e_aq_desc)); in i40evf_fill_default_direct_cmd_desc()
863 desc->opcode = cpu_to_le16(opcode); in i40evf_fill_default_direct_cmd_desc()
864 desc->flags = cpu_to_le16(I40E_AQ_FLAG_SI); in i40evf_fill_default_direct_cmd_desc()
883 struct i40e_aq_desc *desc; in i40evf_clean_arq_element() local
909 desc = I40E_ADMINQ_DESC(hw->aq.arq, ntc); in i40evf_clean_arq_element()
912 flags = le16_to_cpu(desc->flags); in i40evf_clean_arq_element()
916 (enum i40e_admin_queue_err)le16_to_cpu(desc->retval); in i40evf_clean_arq_element()
923 e->desc = *desc; in i40evf_clean_arq_element()
924 datalen = le16_to_cpu(desc->datalen); in i40evf_clean_arq_element()
931 i40evf_debug_aq(hw, I40E_DEBUG_AQ_COMMAND, (void *)desc, e->msg_buf, in i40evf_clean_arq_element()
939 memset((void *)desc, 0, sizeof(struct i40e_aq_desc)); in i40evf_clean_arq_element()
941 desc->flags = cpu_to_le16(I40E_AQ_FLAG_BUF); in i40evf_clean_arq_element()
943 desc->flags |= cpu_to_le16(I40E_AQ_FLAG_LB); in i40evf_clean_arq_element()
944 desc->datalen = cpu_to_le16((u16)bi->size); in i40evf_clean_arq_element()
945 desc->params.external.addr_high = cpu_to_le32(upper_32_bits(bi->pa)); in i40evf_clean_arq_element()
946 desc->params.external.addr_low = cpu_to_le32(lower_32_bits(bi->pa)); in i40evf_clean_arq_element()