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()
152 struct i40e_aq_desc *desc; in i40e_alloc_arq_bufs() local
178 desc = I40E_ADMINQ_DESC(hw->aq.arq, i); in i40e_alloc_arq_bufs()
180 desc->flags = cpu_to_le16(I40E_AQ_FLAG_BUF); in i40e_alloc_arq_bufs()
182 desc->flags |= cpu_to_le16(I40E_AQ_FLAG_LB); in i40e_alloc_arq_bufs()
183 desc->opcode = 0; in i40e_alloc_arq_bufs()
187 desc->datalen = cpu_to_le16((u16)bi->size); in i40e_alloc_arq_bufs()
188 desc->retval = 0; in i40e_alloc_arq_bufs()
189 desc->cookie_high = 0; in i40e_alloc_arq_bufs()
190 desc->cookie_low = 0; in i40e_alloc_arq_bufs()
191 desc->params.external.addr_high = in i40e_alloc_arq_bufs()
193 desc->params.external.addr_low = in i40e_alloc_arq_bufs()
195 desc->params.external.param0 = 0; in i40e_alloc_arq_bufs()
196 desc->params.external.param1 = 0; in i40e_alloc_arq_bufs()
625 struct i40e_aq_desc *desc; in i40e_clean_asq() local
627 desc = I40E_ADMINQ_DESC(*asq, ntc); in i40e_clean_asq()
637 desc_cb = *desc; in i40e_clean_asq()
640 memset((void *)desc, 0, sizeof(struct i40e_aq_desc)); in i40e_clean_asq()
646 desc = I40E_ADMINQ_DESC(*asq, ntc); in i40e_clean_asq()
683 struct i40e_aq_desc *desc, in i40evf_asq_send_command() argument
720 desc->cookie_high = in i40evf_asq_send_command()
722 desc->cookie_low = in i40evf_asq_send_command()
730 desc->flags &= ~cpu_to_le16(details->flags_dis); in i40evf_asq_send_command()
731 desc->flags |= cpu_to_le16(details->flags_ena); in i40evf_asq_send_command()
771 *desc_on_ring = *desc; in i40evf_asq_send_command()
818 *desc = *desc_on_ring; in i40evf_asq_send_command()
821 retval = le16_to_cpu(desc->retval); in i40evf_asq_send_command()
841 i40evf_debug_aq(hw, I40E_DEBUG_AQ_COMMAND, (void *)desc, buff, in i40evf_asq_send_command()
866 void i40evf_fill_default_direct_cmd_desc(struct i40e_aq_desc *desc, in i40evf_fill_default_direct_cmd_desc() argument
870 memset((void *)desc, 0, sizeof(struct i40e_aq_desc)); in i40evf_fill_default_direct_cmd_desc()
871 desc->opcode = cpu_to_le16(opcode); in i40evf_fill_default_direct_cmd_desc()
872 desc->flags = cpu_to_le16(I40E_AQ_FLAG_SI); in i40evf_fill_default_direct_cmd_desc()
891 struct i40e_aq_desc *desc; in i40evf_clean_arq_element() local
910 desc = I40E_ADMINQ_DESC(hw->aq.arq, ntc); in i40evf_clean_arq_element()
913 flags = le16_to_cpu(desc->flags); in i40evf_clean_arq_element()
917 (enum i40e_admin_queue_err)le16_to_cpu(desc->retval); in i40evf_clean_arq_element()
924 e->desc = *desc; in i40evf_clean_arq_element()
925 datalen = le16_to_cpu(desc->datalen); in i40evf_clean_arq_element()
932 i40evf_debug_aq(hw, I40E_DEBUG_AQ_COMMAND, (void *)desc, e->msg_buf, in i40evf_clean_arq_element()
940 memset((void *)desc, 0, sizeof(struct i40e_aq_desc)); in i40evf_clean_arq_element()
942 desc->flags = cpu_to_le16(I40E_AQ_FLAG_BUF); in i40evf_clean_arq_element()
944 desc->flags |= cpu_to_le16(I40E_AQ_FLAG_LB); in i40evf_clean_arq_element()
945 desc->datalen = cpu_to_le16((u16)bi->size); in i40evf_clean_arq_element()
946 desc->params.external.addr_high = cpu_to_le32(upper_32_bits(bi->pa)); in i40evf_clean_arq_element()
947 desc->params.external.addr_low = cpu_to_le32(lower_32_bits(bi->pa)); in i40evf_clean_arq_element()