Lines Matching refs:rval

764 	fct_status_t rval;  in emlxs_fct_unsol_flush()  local
797 rval = emlxs_fct_cmd_acquire(port, fct_cmd, 0); in emlxs_fct_unsol_flush()
798 if (rval) { in emlxs_fct_unsol_flush()
1300 fct_status_t rval = FCT_SUCCESS; in emlxs_fct_port_info() local
1314 rval = FCT_FAILURE; in emlxs_fct_port_info()
1322 rval = FCT_ALLOC_FAILURE; in emlxs_fct_port_info()
1333 rval = FCT_BUSY; in emlxs_fct_port_info()
1358 rval = FCT_FAILURE; in emlxs_fct_port_info()
1363 return (rval); in emlxs_fct_port_info()
1478 int32_t rval; in emlxs_fct_ctl() local
1581 rval = emlxs_reset(port, FC_FCA_RESET); in emlxs_fct_ctl()
1587 rval = emlxs_reset(port, FC_FCA_LINK_RESET); in emlxs_fct_ctl()
1589 *((fct_status_t *)arg) = (rval == FC_SUCCESS) ? FCT_SUCCESS: in emlxs_fct_ctl()
1703 fct_status_t rval; in emlxs_fct_send_cmd_rsp() local
1710 rval = emlxs_fct_cmd_accept(port, fct_cmd, EMLXS_FCT_SEND_CMD_RSP); in emlxs_fct_send_cmd_rsp()
1711 if (rval) { in emlxs_fct_send_cmd_rsp()
1717 return (rval); in emlxs_fct_send_cmd_rsp()
1763 rval = emlxs_fct_send_fcp_status(fct_cmd); in emlxs_fct_send_cmd_rsp()
1764 if (rval == FCT_NOT_FOUND) { in emlxs_fct_send_cmd_rsp()
1769 return (rval); in emlxs_fct_send_cmd_rsp()
1777 rval = emlxs_fct_send_els_rsp(fct_cmd); in emlxs_fct_send_cmd_rsp()
1780 return (rval); in emlxs_fct_send_cmd_rsp()
1822 fct_status_t rval = FCT_SUCCESS; in emlxs_fct_flogi_xchg() local
1835 rval = FCT_FAILURE; in emlxs_fct_flogi_xchg()
1855 rval = FCT_FAILURE; in emlxs_fct_flogi_xchg()
1891 rval = FCT_FAILURE; in emlxs_fct_flogi_xchg()
1898 rval = FCT_TIMEOUT; in emlxs_fct_flogi_xchg()
1901 rval = FCT_NOT_FOUND; in emlxs_fct_flogi_xchg()
1903 rval = FCT_FAILURE; in emlxs_fct_flogi_xchg()
1908 "rval=%llx", pkt->pkt_state, pkt->pkt_reason, rval); in emlxs_fct_flogi_xchg()
1936 if ((rval == FCT_SUCCESS) || (rval == FCT_NOT_FOUND)) { in emlxs_fct_flogi_xchg()
1940 ((rval == FCT_SUCCESS)? "FCT_SUCCESS":"FCT_NOT_FOUND")); in emlxs_fct_flogi_xchg()
1955 return (rval); in emlxs_fct_flogi_xchg()
2057 fct_status_t rval; in emlxs_fct_register_remote_port() local
2077 rval = emlxs_fct_cmd_accept(port, fct_cmd, in emlxs_fct_register_remote_port()
2079 if (rval) { in emlxs_fct_register_remote_port()
2085 return (rval); in emlxs_fct_register_remote_port()
2547 fct_status_t rval = 0; in emlxs_fct_send_fcp_data() local
2549 rval = emlxs_fct_cmd_accept(port, fct_cmd, EMLXS_FCT_SEND_FCP_DATA); in emlxs_fct_send_fcp_data()
2550 if (rval) { in emlxs_fct_send_fcp_data()
2556 return (rval); in emlxs_fct_send_fcp_data()
2641 fct_status_t rval; in emlxs_fct_send_fcp_status() local
2767 rval = emlxs_fct_cmd_acquire(port, fct_cmd, 0); in emlxs_fct_send_fcp_status()
2768 if (rval) { in emlxs_fct_send_fcp_status()
2772 return (rval); in emlxs_fct_send_fcp_status()
2878 fct_status_t rval; in emlxs_fct_handle_fcp_event() local
2919 rval = emlxs_fct_cmd_acquire(port, fct_cmd, EMLXS_FCT_REQ_COMPLETE); in emlxs_fct_handle_fcp_event()
2920 if (rval) { in emlxs_fct_handle_fcp_event()
3178 uint32_t rval; in emlxs_fct_handle_unsol_els() local
3234 rval = emlxs_fct_process_unsol_flogi(port, cp, iocbq, mp, size); in emlxs_fct_handle_unsol_els()
3236 if (!rval) { in emlxs_fct_handle_unsol_els()
3259 rval = in emlxs_fct_handle_unsol_els()
3266 rval = 0; in emlxs_fct_handle_unsol_els()
3270 if (rval) { in emlxs_fct_handle_unsol_els()
3813 fct_status_t rval; in emlxs_fct_pkt_comp() local
3822 rval = emlxs_fct_cmd_acquire(port, fct_cmd, EMLXS_FCT_PKT_COMPLETE); in emlxs_fct_pkt_comp()
3823 if (rval) { in emlxs_fct_pkt_comp()
4046 fct_status_t rval; in emlxs_fct_send_els_cmd() local
4107 rval = emlxs_fct_cmd_acquire(port, fct_cmd, 0); in emlxs_fct_send_els_cmd()
4108 if (rval) { in emlxs_fct_send_els_cmd()
4112 return (rval); in emlxs_fct_send_els_cmd()
4140 fct_status_t rval; in emlxs_fct_send_els_rsp() local
4199 rval = emlxs_fct_cmd_acquire(port, fct_cmd, 0); in emlxs_fct_send_els_rsp()
4200 if (rval) { in emlxs_fct_send_els_rsp()
4204 return (rval); in emlxs_fct_send_els_rsp()
4230 fct_status_t rval; in emlxs_fct_send_ct_cmd() local
4285 rval = emlxs_fct_cmd_acquire(port, fct_cmd, 0); in emlxs_fct_send_ct_cmd()
4286 if (rval) { in emlxs_fct_send_ct_cmd()
4291 return (rval); in emlxs_fct_send_ct_cmd()
4989 uint32_t rval; in emlxs_fct_memseg_init() local
5008 rval = ddi_prop_lookup_string_array(DDI_DEV_T_ANY, hba->dip, in emlxs_fct_memseg_init()
5011 if ((rval != DDI_PROP_SUCCESS) || !cnt || !arrayp) { in emlxs_fct_memseg_init()
5015 rval = ddi_prop_lookup_string_array(DDI_DEV_T_ANY, hba->dip, in emlxs_fct_memseg_init()
5019 if ((rval != DDI_PROP_SUCCESS) || !cnt || !arrayp) { in emlxs_fct_memseg_init()