• Home
  • Raw
  • Download

Lines Matching refs:rc

125 	int i = 0, rc;  in smc_wr_tx_tasklet_fn()  local
132 rc = ib_poll_cq(dev->roce_cq_send, SMC_WR_MAX_POLL_CQE, wc); in smc_wr_tx_tasklet_fn()
138 if (!rc) in smc_wr_tx_tasklet_fn()
140 for (i = 0; i < rc; i++) in smc_wr_tx_tasklet_fn()
142 } while (rc > 0); in smc_wr_tx_tasklet_fn()
191 int rc; in smc_wr_tx_get_free_slot() local
196 rc = smc_wr_tx_get_free_slot_index(link, &idx); in smc_wr_tx_get_free_slot()
197 if (rc) in smc_wr_tx_get_free_slot()
198 return rc; in smc_wr_tx_get_free_slot()
200 rc = wait_event_interruptible_timeout( in smc_wr_tx_get_free_slot()
206 if (!rc) { in smc_wr_tx_get_free_slot()
257 int rc; in smc_wr_tx_send() local
262 rc = ib_post_send(link->roce_qp, &link->wr_tx_ibs[pend->idx], NULL); in smc_wr_tx_send()
263 if (rc) { in smc_wr_tx_send()
267 return rc; in smc_wr_tx_send()
279 int rc; in smc_wr_tx_send_wait() local
286 rc = smc_wr_tx_send(link, priv); in smc_wr_tx_send_wait()
287 if (rc) in smc_wr_tx_send_wait()
288 return rc; in smc_wr_tx_send_wait()
290 rc = wait_for_completion_interruptible_timeout( in smc_wr_tx_send_wait()
292 if (rc <= 0) in smc_wr_tx_send_wait()
293 rc = -ENODATA; in smc_wr_tx_send_wait()
294 if (rc > 0) in smc_wr_tx_send_wait()
295 rc = 0; in smc_wr_tx_send_wait()
296 return rc; in smc_wr_tx_send_wait()
302 int rc; in smc_wr_reg_send() local
310 rc = ib_post_send(link->roce_qp, &link->wr_reg.wr, NULL); in smc_wr_reg_send()
311 if (rc) in smc_wr_reg_send()
312 return rc; in smc_wr_reg_send()
315 rc = wait_event_interruptible_timeout(link->wr_reg_wait, in smc_wr_reg_send()
320 if (!rc) { in smc_wr_reg_send()
325 if (rc == -ERESTARTSYS) in smc_wr_reg_send()
329 rc = 0; in smc_wr_reg_send()
332 rc = -EIO; in smc_wr_reg_send()
335 rc = -EPIPE; in smc_wr_reg_send()
338 return rc; in smc_wr_reg_send()
346 int rc = 0; in smc_wr_rx_register_handler() local
351 rc = -EEXIST; in smc_wr_rx_register_handler()
358 return rc; in smc_wr_rx_register_handler()
416 int rc; in smc_wr_rx_tasklet_fn() local
422 rc = ib_poll_cq(dev->roce_cq_recv, SMC_WR_MAX_POLL_CQE, wc); in smc_wr_rx_tasklet_fn()
428 if (!rc) in smc_wr_rx_tasklet_fn()
430 smc_wr_rx_process_cqes(&wc[0], rc); in smc_wr_rx_tasklet_fn()
431 } while (rc > 0); in smc_wr_rx_tasklet_fn()
446 int rc = 0; in smc_wr_rx_post_init() local
449 rc = smc_wr_rx_post(link); in smc_wr_rx_post_init()
450 return rc; in smc_wr_rx_post_init()
683 int rc = 0; in smc_wr_create_link() local
692 rc = -EIO; in smc_wr_create_link()
699 rc = -EIO; in smc_wr_create_link()
709 return rc; in smc_wr_create_link()
717 return rc; in smc_wr_create_link()