Lines Matching refs:ret_code
37 enum iavf_status ret_code; in iavf_alloc_adminq_asq_ring() local
39 ret_code = iavf_allocate_dma_mem(hw, &hw->aq.asq.desc_buf, in iavf_alloc_adminq_asq_ring()
44 if (ret_code) in iavf_alloc_adminq_asq_ring()
45 return ret_code; in iavf_alloc_adminq_asq_ring()
47 ret_code = iavf_allocate_virt_mem(hw, &hw->aq.asq.cmd_buf, in iavf_alloc_adminq_asq_ring()
50 if (ret_code) { in iavf_alloc_adminq_asq_ring()
52 return ret_code; in iavf_alloc_adminq_asq_ring()
55 return ret_code; in iavf_alloc_adminq_asq_ring()
64 enum iavf_status ret_code; in iavf_alloc_adminq_arq_ring() local
66 ret_code = iavf_allocate_dma_mem(hw, &hw->aq.arq.desc_buf, in iavf_alloc_adminq_arq_ring()
72 return ret_code; in iavf_alloc_adminq_arq_ring()
107 enum iavf_status ret_code; in iavf_alloc_arq_bufs() local
115 ret_code = iavf_allocate_virt_mem(hw, &hw->aq.arq.dma_head, in iavf_alloc_arq_bufs()
118 if (ret_code) in iavf_alloc_arq_bufs()
125 ret_code = iavf_allocate_dma_mem(hw, bi, in iavf_alloc_arq_bufs()
129 if (ret_code) in iavf_alloc_arq_bufs()
155 return ret_code; in iavf_alloc_arq_bufs()
164 return ret_code; in iavf_alloc_arq_bufs()
174 enum iavf_status ret_code; in iavf_alloc_asq_bufs() local
178 ret_code = iavf_allocate_virt_mem(hw, &hw->aq.asq.dma_head, in iavf_alloc_asq_bufs()
181 if (ret_code) in iavf_alloc_asq_bufs()
188 ret_code = iavf_allocate_dma_mem(hw, bi, in iavf_alloc_asq_bufs()
192 if (ret_code) in iavf_alloc_asq_bufs()
196 return ret_code; in iavf_alloc_asq_bufs()
205 return ret_code; in iavf_alloc_asq_bufs()
258 enum iavf_status ret_code = 0; in iavf_config_asq_regs() local
274 ret_code = IAVF_ERR_ADMIN_QUEUE_ERROR; in iavf_config_asq_regs()
276 return ret_code; in iavf_config_asq_regs()
287 enum iavf_status ret_code = 0; in iavf_config_arq_regs() local
306 ret_code = IAVF_ERR_ADMIN_QUEUE_ERROR; in iavf_config_arq_regs()
308 return ret_code; in iavf_config_arq_regs()
326 enum iavf_status ret_code = 0; in iavf_init_asq() local
331 ret_code = IAVF_ERR_NOT_READY; in iavf_init_asq()
338 ret_code = IAVF_ERR_CONFIG; in iavf_init_asq()
346 ret_code = iavf_alloc_adminq_asq_ring(hw); in iavf_init_asq()
347 if (ret_code) in iavf_init_asq()
351 ret_code = iavf_alloc_asq_bufs(hw); in iavf_init_asq()
352 if (ret_code) in iavf_init_asq()
356 ret_code = iavf_config_asq_regs(hw); in iavf_init_asq()
357 if (ret_code) in iavf_init_asq()
373 return ret_code; in iavf_init_asq()
391 enum iavf_status ret_code = 0; in iavf_init_arq() local
396 ret_code = IAVF_ERR_NOT_READY; in iavf_init_arq()
403 ret_code = IAVF_ERR_CONFIG; in iavf_init_arq()
411 ret_code = iavf_alloc_adminq_arq_ring(hw); in iavf_init_arq()
412 if (ret_code) in iavf_init_arq()
416 ret_code = iavf_alloc_arq_bufs(hw); in iavf_init_arq()
417 if (ret_code) in iavf_init_arq()
421 ret_code = iavf_config_arq_regs(hw); in iavf_init_arq()
422 if (ret_code) in iavf_init_arq()
437 return ret_code; in iavf_init_arq()
448 enum iavf_status ret_code = 0; in iavf_shutdown_asq() local
453 ret_code = IAVF_ERR_NOT_READY; in iavf_shutdown_asq()
471 return ret_code; in iavf_shutdown_asq()
482 enum iavf_status ret_code = 0; in iavf_shutdown_arq() local
487 ret_code = IAVF_ERR_NOT_READY; in iavf_shutdown_arq()
505 return ret_code; in iavf_shutdown_arq()
521 enum iavf_status ret_code; in iavf_init_adminq() local
528 ret_code = IAVF_ERR_CONFIG; in iavf_init_adminq()
539 ret_code = iavf_init_asq(hw); in iavf_init_adminq()
540 if (ret_code) in iavf_init_adminq()
544 ret_code = iavf_init_arq(hw); in iavf_init_adminq()
545 if (ret_code) in iavf_init_adminq()
556 return ret_code; in iavf_init_adminq()
860 enum iavf_status ret_code = 0; in iavf_clean_arq_element() local
876 ret_code = IAVF_ERR_QUEUE_EMPTY; in iavf_clean_arq_element()
884 ret_code = IAVF_ERR_ADMIN_QUEUE_NO_WORK; in iavf_clean_arq_element()
896 ret_code = IAVF_ERR_ADMIN_QUEUE_ERROR; in iavf_clean_arq_element()
945 return ret_code; in iavf_clean_arq_element()