Lines Matching refs:ret_code
52 int ret_code; in i40e_alloc_adminq_asq_ring() local
54 ret_code = i40e_allocate_dma_mem(hw, &hw->aq.asq.desc_buf, in i40e_alloc_adminq_asq_ring()
59 if (ret_code) in i40e_alloc_adminq_asq_ring()
60 return ret_code; in i40e_alloc_adminq_asq_ring()
62 ret_code = i40e_allocate_virt_mem(hw, &hw->aq.asq.cmd_buf, in i40e_alloc_adminq_asq_ring()
65 if (ret_code) { in i40e_alloc_adminq_asq_ring()
67 return ret_code; in i40e_alloc_adminq_asq_ring()
70 return ret_code; in i40e_alloc_adminq_asq_ring()
79 int ret_code; in i40e_alloc_adminq_arq_ring() local
81 ret_code = i40e_allocate_dma_mem(hw, &hw->aq.arq.desc_buf, in i40e_alloc_adminq_arq_ring()
87 return ret_code; in i40e_alloc_adminq_arq_ring()
122 int ret_code; in i40e_alloc_arq_bufs() local
130 ret_code = i40e_allocate_virt_mem(hw, &hw->aq.arq.dma_head, in i40e_alloc_arq_bufs()
132 if (ret_code) in i40e_alloc_arq_bufs()
139 ret_code = i40e_allocate_dma_mem(hw, bi, in i40e_alloc_arq_bufs()
143 if (ret_code) in i40e_alloc_arq_bufs()
169 return ret_code; in i40e_alloc_arq_bufs()
178 return ret_code; in i40e_alloc_arq_bufs()
188 int ret_code; in i40e_alloc_asq_bufs() local
192 ret_code = i40e_allocate_virt_mem(hw, &hw->aq.asq.dma_head, in i40e_alloc_asq_bufs()
194 if (ret_code) in i40e_alloc_asq_bufs()
201 ret_code = i40e_allocate_dma_mem(hw, bi, in i40e_alloc_asq_bufs()
205 if (ret_code) in i40e_alloc_asq_bufs()
209 return ret_code; in i40e_alloc_asq_bufs()
218 return ret_code; in i40e_alloc_asq_bufs()
271 int ret_code = 0; in i40e_config_asq_regs() local
287 ret_code = I40E_ERR_ADMIN_QUEUE_ERROR; in i40e_config_asq_regs()
289 return ret_code; in i40e_config_asq_regs()
300 int ret_code = 0; in i40e_config_arq_regs() local
319 ret_code = I40E_ERR_ADMIN_QUEUE_ERROR; in i40e_config_arq_regs()
321 return ret_code; in i40e_config_arq_regs()
339 int ret_code = 0; in i40e_init_asq() local
343 ret_code = I40E_ERR_NOT_READY; in i40e_init_asq()
350 ret_code = I40E_ERR_CONFIG; in i40e_init_asq()
358 ret_code = i40e_alloc_adminq_asq_ring(hw); in i40e_init_asq()
359 if (ret_code) in i40e_init_asq()
363 ret_code = i40e_alloc_asq_bufs(hw); in i40e_init_asq()
364 if (ret_code) in i40e_init_asq()
368 ret_code = i40e_config_asq_regs(hw); in i40e_init_asq()
369 if (ret_code) in i40e_init_asq()
380 return ret_code; in i40e_init_asq()
398 int ret_code = 0; in i40e_init_arq() local
402 ret_code = I40E_ERR_NOT_READY; in i40e_init_arq()
409 ret_code = I40E_ERR_CONFIG; in i40e_init_arq()
417 ret_code = i40e_alloc_adminq_arq_ring(hw); in i40e_init_arq()
418 if (ret_code) in i40e_init_arq()
422 ret_code = i40e_alloc_arq_bufs(hw); in i40e_init_arq()
423 if (ret_code) in i40e_init_arq()
427 ret_code = i40e_config_arq_regs(hw); in i40e_init_arq()
428 if (ret_code) in i40e_init_arq()
439 return ret_code; in i40e_init_arq()
450 int ret_code = 0; in i40e_shutdown_asq() local
455 ret_code = I40E_ERR_NOT_READY; in i40e_shutdown_asq()
473 return ret_code; in i40e_shutdown_asq()
484 int ret_code = 0; in i40e_shutdown_arq() local
489 ret_code = I40E_ERR_NOT_READY; in i40e_shutdown_arq()
507 return ret_code; in i40e_shutdown_arq()
590 int ret_code; in i40e_init_adminq() local
597 ret_code = I40E_ERR_CONFIG; in i40e_init_adminq()
608 ret_code = i40e_init_asq(hw); in i40e_init_adminq()
609 if (ret_code) in i40e_init_adminq()
613 ret_code = i40e_init_arq(hw); in i40e_init_adminq()
614 if (ret_code) in i40e_init_adminq()
622 ret_code = i40e_aq_get_firmware_version(hw, in i40e_init_adminq()
629 if (ret_code != I40E_ERR_ADMIN_QUEUE_TIMEOUT) in i40e_init_adminq()
635 if (ret_code != I40E_SUCCESS) in i40e_init_adminq()
675 ret_code = I40E_ERR_FIRMWARE_API_VERSION; in i40e_init_adminq()
684 ret_code = 0; in i40e_init_adminq()
696 return ret_code; in i40e_init_adminq()
1094 int ret_code = 0; in i40e_clean_arq_element() local
1109 ret_code = I40E_ERR_QUEUE_EMPTY; in i40e_clean_arq_element()
1117 ret_code = I40E_ERR_ADMIN_QUEUE_NO_WORK; in i40e_clean_arq_element()
1129 ret_code = I40E_ERR_ADMIN_QUEUE_ERROR; in i40e_clean_arq_element()
1178 return ret_code; in i40e_clean_arq_element()