Lines Matching refs:rval

2179 	uint32_t rval = 0;  in emlxs_fcf_shutdown_notify()  local
2203 rval = emlxs_fcftab_event(port, FCF_EVENT_SHUTDOWN, 0); in emlxs_fcf_shutdown_notify()
2205 if (wait && (rval == 0)) { in emlxs_fcf_shutdown_notify()
2220 rval = 1; in emlxs_fcf_shutdown_notify()
2226 return (rval); in emlxs_fcf_shutdown_notify()
2237 uint32_t rval = 0; in emlxs_fcf_linkup_notify() local
2256 rval = emlxs_fcftab_event(port, FCF_EVENT_LINKUP, 0); in emlxs_fcf_linkup_notify()
2260 return (rval); in emlxs_fcf_linkup_notify()
2271 uint32_t rval = 0; in emlxs_fcf_linkdown_notify() local
2290 rval = emlxs_fcftab_event(port, FCF_EVENT_LINKDOWN, 0); in emlxs_fcf_linkdown_notify()
2294 return (rval); in emlxs_fcf_linkdown_notify()
2305 uint32_t rval = 0; in emlxs_fcf_cvl_notify() local
2324 rval = emlxs_fcftab_event(port, FCF_EVENT_CVL, in emlxs_fcf_cvl_notify()
2329 return (rval); in emlxs_fcf_cvl_notify()
2340 uint32_t rval = 0; in emlxs_fcf_full_notify() local
2359 rval = emlxs_fcftab_event(port, FCF_EVENT_FCFTAB_FULL, 0); in emlxs_fcf_full_notify()
2363 return (rval); in emlxs_fcf_full_notify()
2374 uint32_t rval = 0; in emlxs_fcf_found_notify() local
2393 rval = emlxs_fcftab_event(port, FCF_EVENT_FCF_FOUND, in emlxs_fcf_found_notify()
2398 return (rval); in emlxs_fcf_found_notify()
2409 uint32_t rval = 0; in emlxs_fcf_changed_notify() local
2428 rval = emlxs_fcftab_event(port, FCF_EVENT_FCF_CHANGED, in emlxs_fcf_changed_notify()
2433 return (rval); in emlxs_fcf_changed_notify()
2444 uint32_t rval = 0; in emlxs_fcf_lost_notify() local
2463 rval = emlxs_fcftab_event(port, FCF_EVENT_FCF_LOST, in emlxs_fcf_lost_notify()
2468 return (rval); in emlxs_fcf_lost_notify()
2647 uint32_t rval = 0; in emlxs_fc_fcftab_action() local
2694 rval = (func)(port, evt, arg1); in emlxs_fc_fcftab_action()
2696 return (rval); in emlxs_fc_fcftab_action()
2707 uint32_t rval = 0; in emlxs_fc_fcftab_event() local
2728 rval = emlxs_fc_fcftab_action(port, evt, arg1); in emlxs_fc_fcftab_event()
2730 return (rval); in emlxs_fc_fcftab_event()
2743 uint32_t rval = 0; in emlxs_fc_fcftab_state() local
2797 rval = emlxs_fc_fcftab_action(port, FCF_EVENT_STATE_ENTER, arg1); in emlxs_fc_fcftab_state()
2799 return (rval); in emlxs_fc_fcftab_state()
2855 uint32_t rval = 0; in emlxs_fc_fcftab_offline_action() local
2878 rval = emlxs_fc_fcftab_req_handler(port, arg1); in emlxs_fc_fcftab_offline_action()
2879 return (rval); in emlxs_fc_fcftab_offline_action()
2903 uint32_t rval = 0; in emlxs_fc_fcftab_online_action() local
2922 rval = emlxs_fc_fcftab_req_handler(port, arg1); in emlxs_fc_fcftab_online_action()
2923 return (rval); in emlxs_fc_fcftab_online_action()
3136 uint32_t rval = 0; in emlxs_fc_fcftab_topo_action() local
3165 rval = emlxs_fc_fcftab_req_handler(port, arg1); in emlxs_fc_fcftab_topo_action()
3166 return (rval); in emlxs_fc_fcftab_topo_action()
3188 rval = emlxs_fc_fcftab_state(port, FC_FCFTAB_STATE_CFGLINK, in emlxs_fc_fcftab_topo_action()
3190 return (rval); in emlxs_fc_fcftab_topo_action()
3203 rval = emlxs_fc_fcftab_state(port, FC_FCFTAB_STATE_TOPO_FAILED, in emlxs_fc_fcftab_topo_action()
3205 return (rval); in emlxs_fc_fcftab_topo_action()
3213 rval = emlxs_fc_fcftab_state(port, FC_FCFTAB_STATE_TOPO_FAILED, in emlxs_fc_fcftab_topo_action()
3215 return (rval); in emlxs_fc_fcftab_topo_action()
3233 rval = EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_NOWAIT, 0); in emlxs_fc_fcftab_topo_action()
3234 if ((rval != MBX_BUSY) && (rval != MBX_SUCCESS)) { in emlxs_fc_fcftab_topo_action()
3238 rval = emlxs_fc_fcftab_state(port, FC_FCFTAB_STATE_TOPO_FAILED, in emlxs_fc_fcftab_topo_action()
3239 FCF_REASON_SEND_FAILED, rval, arg1); in emlxs_fc_fcftab_topo_action()
3241 return (rval); in emlxs_fc_fcftab_topo_action()
3256 uint32_t rval = 0; in emlxs_fc_fcftab_topo_failed_action() local
3283 rval = emlxs_fc_fcftab_state(port, FC_FCFTAB_STATE_TOPO_CMPL, in emlxs_fc_fcftab_topo_failed_action()
3296 rval = emlxs_fc_fcftab_state(port, FC_FCFTAB_STATE_TOPO, in emlxs_fc_fcftab_topo_failed_action()
3300 return (rval); in emlxs_fc_fcftab_topo_failed_action()
3312 uint32_t rval = 0; in emlxs_fc_fcftab_topo_cmpl_action() local
3330 rval = emlxs_fc_fcftab_state(port, FC_FCFTAB_STATE_CFGLINK, in emlxs_fc_fcftab_topo_cmpl_action()
3333 return (rval); in emlxs_fc_fcftab_topo_cmpl_action()
3416 uint32_t rval = 0; in emlxs_fc_fcftab_cfglink_action() local
3444 rval = emlxs_fc_fcftab_req_handler(port, arg1); in emlxs_fc_fcftab_cfglink_action()
3445 return (rval); in emlxs_fc_fcftab_cfglink_action()
3462 rval = emlxs_fc_fcftab_state(port, FC_FCFTAB_STATE_SPARM, in emlxs_fc_fcftab_cfglink_action()
3464 return (rval); in emlxs_fc_fcftab_cfglink_action()
3477 rval = emlxs_fc_fcftab_state(port, in emlxs_fc_fcftab_cfglink_action()
3480 return (rval); in emlxs_fc_fcftab_cfglink_action()
3514 rval = EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_NOWAIT, 0); in emlxs_fc_fcftab_cfglink_action()
3515 if ((rval != MBX_BUSY) && (rval != MBX_SUCCESS)) { in emlxs_fc_fcftab_cfglink_action()
3518 rval = emlxs_fc_fcftab_state(port, in emlxs_fc_fcftab_cfglink_action()
3520 FCF_REASON_SEND_FAILED, rval, arg1); in emlxs_fc_fcftab_cfglink_action()
3522 return (rval); in emlxs_fc_fcftab_cfglink_action()
3537 uint32_t rval = 0; in emlxs_fc_fcftab_cfglink_failed_action() local
3564 rval = emlxs_fc_fcftab_state(port, FC_FCFTAB_STATE_CFGLINK_CMPL, in emlxs_fc_fcftab_cfglink_failed_action()
3577 rval = emlxs_fc_fcftab_state(port, FC_FCFTAB_STATE_CFGLINK, in emlxs_fc_fcftab_cfglink_failed_action()
3581 return (rval); in emlxs_fc_fcftab_cfglink_failed_action()
3593 uint32_t rval = 0; in emlxs_fc_fcftab_cfglink_cmpl_action() local
3611 rval = emlxs_fc_fcftab_state(port, FC_FCFTAB_STATE_SPARM, in emlxs_fc_fcftab_cfglink_cmpl_action()
3614 return (rval); in emlxs_fc_fcftab_cfglink_cmpl_action()
3746 uint32_t rval = 0; in emlxs_fc_fcftab_sparm_action() local
3774 rval = emlxs_fc_fcftab_req_handler(port, arg1); in emlxs_fc_fcftab_sparm_action()
3775 return (rval); in emlxs_fc_fcftab_sparm_action()
3791 rval = emlxs_fc_fcftab_state(port, in emlxs_fc_fcftab_sparm_action()
3794 return (rval); in emlxs_fc_fcftab_sparm_action()
3802 rval = emlxs_fc_fcftab_state(port, in emlxs_fc_fcftab_sparm_action()
3805 return (rval); in emlxs_fc_fcftab_sparm_action()
3823 rval = EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_NOWAIT, 0); in emlxs_fc_fcftab_sparm_action()
3824 if ((rval != MBX_BUSY) && (rval != MBX_SUCCESS)) { in emlxs_fc_fcftab_sparm_action()
3828 rval = emlxs_fc_fcftab_state(port, in emlxs_fc_fcftab_sparm_action()
3830 FCF_REASON_SEND_FAILED, rval, arg1); in emlxs_fc_fcftab_sparm_action()
3832 return (rval); in emlxs_fc_fcftab_sparm_action()
3847 uint32_t rval = 0; in emlxs_fc_fcftab_sparm_failed_action() local
3874 rval = emlxs_fc_fcftab_state(port, FC_FCFTAB_STATE_SPARM_CMPL, in emlxs_fc_fcftab_sparm_failed_action()
3886 rval = emlxs_fc_fcftab_state(port, FC_FCFTAB_STATE_SPARM, in emlxs_fc_fcftab_sparm_failed_action()
3890 return (rval); in emlxs_fc_fcftab_sparm_failed_action()
3902 uint32_t rval = 0; in emlxs_fc_fcftab_sparm_cmpl_action() local
3920 rval = emlxs_fc_fcftab_state(port, FC_FCFTAB_STATE_FCFI_ONLINE, in emlxs_fc_fcftab_sparm_cmpl_action()
3923 return (rval); in emlxs_fc_fcftab_sparm_cmpl_action()
4039 uint32_t rval = 0; in emlxs_fc_fcftab_fcfi_online_action() local
4059 rval = emlxs_fc_fcftab_req_handler(port, arg1); in emlxs_fc_fcftab_fcfi_online_action()
4060 return (rval); in emlxs_fc_fcftab_fcfi_online_action()
4074 rval = emlxs_fc_fcftab_req_handler(port, arg1); in emlxs_fc_fcftab_fcfi_online_action()
4077 return (rval); in emlxs_fc_fcftab_fcfi_online_action()
4089 rval = emlxs_fc_fcftab_state(port, FC_FCFTAB_STATE_FCFI_ONLINE_CMPL, in emlxs_fc_fcftab_fcfi_online_action()
4092 return (rval); in emlxs_fc_fcftab_fcfi_online_action()
4104 uint32_t rval = 0; in emlxs_fc_fcftab_fcfi_online_cmpl_action() local
4125 rval = emlxs_fc_fcftab_req_handler(port, arg1); in emlxs_fc_fcftab_fcfi_online_cmpl_action()
4126 return (rval); in emlxs_fc_fcftab_fcfi_online_cmpl_action()
4136 rval = emlxs_fc_fcftab_state(port, FC_FCFTAB_STATE_ONLINE, in emlxs_fc_fcftab_fcfi_online_cmpl_action()
4139 return (rval); in emlxs_fc_fcftab_fcfi_online_cmpl_action()
4151 uint32_t rval = 0; in emlxs_fc_fcftab_fcfi_offline_action() local
4174 rval = emlxs_fcfi_event(port, in emlxs_fc_fcftab_fcfi_offline_action()
4177 return (rval); in emlxs_fc_fcftab_fcfi_offline_action()
4195 rval = emlxs_fc_fcftab_state(port, FC_FCFTAB_STATE_FCFI_OFFLINE_CMPL, in emlxs_fc_fcftab_fcfi_offline_action()
4198 return (rval); in emlxs_fc_fcftab_fcfi_offline_action()
4210 uint32_t rval = 0; in emlxs_fc_fcftab_fcfi_offline_cmpl_action() local
4230 rval = emlxs_fc_fcftab_req_handler(port, arg1); in emlxs_fc_fcftab_fcfi_offline_cmpl_action()
4231 return (rval); in emlxs_fc_fcftab_fcfi_offline_cmpl_action()
4241 rval = emlxs_fc_fcftab_state(port, FC_FCFTAB_STATE_FCFI_ONLINE, in emlxs_fc_fcftab_fcfi_offline_cmpl_action()
4244 return (rval); in emlxs_fc_fcftab_fcfi_offline_cmpl_action()
4256 uint32_t rval = 0; in emlxs_fc_fcftab_linkup_evt_action() local
4291 rval = emlxs_fc_fcftab_state(port, FC_FCFTAB_STATE_TOPO, in emlxs_fc_fcftab_linkup_evt_action()
4296 rval = emlxs_fc_fcftab_state(port, FC_FCFTAB_STATE_TOPO, in emlxs_fc_fcftab_linkup_evt_action()
4301 return (rval); in emlxs_fc_fcftab_linkup_evt_action()
4313 uint32_t rval = 0; in emlxs_fc_fcftab_linkdown_evt_action() local
4365 rval = emlxs_fc_fcftab_state(port, FC_FCFTAB_STATE_OFFLINE, in emlxs_fc_fcftab_linkdown_evt_action()
4370 rval = emlxs_fc_fcftab_state(port, FC_FCFTAB_STATE_OFFLINE, in emlxs_fc_fcftab_linkdown_evt_action()
4375 return (rval); in emlxs_fc_fcftab_linkdown_evt_action()
4387 uint32_t rval = 0; in emlxs_fc_fcftab_fcfi_offline_evt_action() local
4412 rval = emlxs_fc_fcftab_state(port, FC_FCFTAB_STATE_SHUTDOWN, in emlxs_fc_fcftab_fcfi_offline_evt_action()
4422 rval = emlxs_fc_fcftab_state(port, FC_FCFTAB_STATE_FCFI_OFFLINE, in emlxs_fc_fcftab_fcfi_offline_evt_action()
4435 rval = emlxs_fc_fcftab_state(port, FC_FCFTAB_STATE_FCFI_ONLINE, in emlxs_fc_fcftab_fcfi_offline_evt_action()
4445 rval = emlxs_fc_fcftab_state(port, FC_FCFTAB_STATE_ONLINE, in emlxs_fc_fcftab_fcfi_offline_evt_action()
4458 return (rval); in emlxs_fc_fcftab_fcfi_offline_evt_action()
4470 uint32_t rval = 0; in emlxs_fc_fcftab_fcfi_online_evt_action() local
4491 return (rval); in emlxs_fc_fcftab_fcfi_online_evt_action()
4503 uint32_t rval = 0; in emlxs_fc_fcftab_shutdown_evt_action() local
4548 rval = emlxs_fc_fcftab_state(port, FC_FCFTAB_STATE_SHUTDOWN, in emlxs_fc_fcftab_shutdown_evt_action()
4551 return (rval); in emlxs_fc_fcftab_shutdown_evt_action()
4561 uint32_t rval = 0; in emlxs_fc_fcftab_req_handler() local
4568 rval = emlxs_fc_fcftab_state(port, FC_FCFTAB_STATE_OFFLINE, in emlxs_fc_fcftab_req_handler()
4573 rval = emlxs_fc_fcftab_state(port, FC_FCFTAB_STATE_TOPO, in emlxs_fc_fcftab_req_handler()
4578 rval = emlxs_fc_fcftab_state(port, FC_FCFTAB_STATE_CFGLINK, in emlxs_fc_fcftab_req_handler()
4583 rval = emlxs_fc_fcftab_state(port, FC_FCFTAB_STATE_SPARM, in emlxs_fc_fcftab_req_handler()
4587 return (rval); in emlxs_fc_fcftab_req_handler()
4623 uint32_t rval = 0; in emlxs_fcoe_fcftab_action() local
4685 rval = (func)(port, evt, arg1); in emlxs_fcoe_fcftab_action()
4687 return (rval); in emlxs_fcoe_fcftab_action()
4698 uint32_t rval = 0; in emlxs_fcoe_fcftab_event() local
4724 rval = emlxs_fcoe_fcftab_action(port, evt, arg1); in emlxs_fcoe_fcftab_event()
4726 return (rval); in emlxs_fcoe_fcftab_event()
4739 uint32_t rval = 0; in emlxs_fcoe_fcftab_state() local
4793 rval = emlxs_fcoe_fcftab_action(port, FCF_EVENT_STATE_ENTER, arg1); in emlxs_fcoe_fcftab_state()
4795 return (rval); in emlxs_fcoe_fcftab_state()
4807 uint32_t rval = 0; in emlxs_fcoe_fcftab_fcfi_offline_evt_action() local
4832 rval = emlxs_fcoe_fcftab_state(port, FCOE_FCFTAB_STATE_SHUTDOWN, in emlxs_fcoe_fcftab_fcfi_offline_evt_action()
4843 rval = emlxs_fcoe_fcftab_state(port, in emlxs_fcoe_fcftab_fcfi_offline_evt_action()
4857 rval = emlxs_fcoe_fcftab_state(port, in emlxs_fcoe_fcftab_fcfi_offline_evt_action()
4868 rval = emlxs_fcoe_fcftab_state(port, FCOE_FCFTAB_STATE_ONLINE, in emlxs_fcoe_fcftab_fcfi_offline_evt_action()
4881 return (rval); in emlxs_fcoe_fcftab_fcfi_offline_evt_action()
4893 uint32_t rval = 0; in emlxs_fcoe_fcftab_fcfi_online_evt_action() local
4914 return (rval); in emlxs_fcoe_fcftab_fcfi_online_evt_action()
4926 uint32_t rval = 0; in emlxs_fcoe_fcftab_cvl_evt_action() local
4954 rval = emlxs_vpi_event(vport, FCF_EVENT_VPI_PAUSE, vpip); in emlxs_fcoe_fcftab_cvl_evt_action()
4977 rval = emlxs_fcoe_fcftab_state(port, FCOE_FCFTAB_STATE_SOLICIT, in emlxs_fcoe_fcftab_cvl_evt_action()
4982 return (rval); in emlxs_fcoe_fcftab_cvl_evt_action()
4994 uint32_t rval = 0; in emlxs_fcoe_fcftab_linkup_evt_action() local
5037 rval = emlxs_fcoe_fcftab_state(port, FCOE_FCFTAB_STATE_SOLICIT, in emlxs_fcoe_fcftab_linkup_evt_action()
5042 return (rval); in emlxs_fcoe_fcftab_linkup_evt_action()
5054 uint32_t rval = 0; in emlxs_fcoe_fcftab_linkdown_evt_action() local
5106 rval = emlxs_fcoe_fcftab_state(port, FCOE_FCFTAB_STATE_OFFLINE, in emlxs_fcoe_fcftab_linkdown_evt_action()
5111 rval = emlxs_fcoe_fcftab_state(port, FCOE_FCFTAB_STATE_OFFLINE, in emlxs_fcoe_fcftab_linkdown_evt_action()
5116 return (rval); in emlxs_fcoe_fcftab_linkdown_evt_action()
5128 uint32_t rval = 0; in emlxs_fcoe_fcftab_shutdown_evt_action() local
5173 rval = emlxs_fcoe_fcftab_state(port, FCOE_FCFTAB_STATE_SHUTDOWN, in emlxs_fcoe_fcftab_shutdown_evt_action()
5176 return (rval); in emlxs_fcoe_fcftab_shutdown_evt_action()
5186 uint32_t rval = 0; in emlxs_fcoe_fcftab_req_handler() local
5193 rval = emlxs_fcoe_fcftab_state(port, FCOE_FCFTAB_STATE_OFFLINE, in emlxs_fcoe_fcftab_req_handler()
5198 rval = emlxs_fcoe_fcftab_state(port, FCOE_FCFTAB_STATE_SOLICIT, in emlxs_fcoe_fcftab_req_handler()
5203 rval = emlxs_fcoe_fcftab_state(port, FCOE_FCFTAB_STATE_READ, in emlxs_fcoe_fcftab_req_handler()
5207 return (rval); in emlxs_fcoe_fcftab_req_handler()
5330 uint32_t rval = 0; in emlxs_fcoe_fcftab_sol_failed_action() local
5357 rval = emlxs_fcoe_fcftab_state(port, in emlxs_fcoe_fcftab_sol_failed_action()
5370 rval = emlxs_fcoe_fcftab_state(port, in emlxs_fcoe_fcftab_sol_failed_action()
5375 return (rval); in emlxs_fcoe_fcftab_sol_failed_action()
5487 uint32_t rval = 0; in emlxs_fcoe_fcftab_sol_action() local
5515 rval = emlxs_fcoe_fcftab_req_handler(port, arg1); in emlxs_fcoe_fcftab_sol_action()
5516 return (rval); in emlxs_fcoe_fcftab_sol_action()
5533 rval = emlxs_fcoe_fcftab_state(port, in emlxs_fcoe_fcftab_sol_action()
5536 return (rval); in emlxs_fcoe_fcftab_sol_action()
5582 rval = emlxs_fcoe_fcftab_state(port, in emlxs_fcoe_fcftab_sol_action()
5585 return (rval); in emlxs_fcoe_fcftab_sol_action()
5650 rval = EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_NOWAIT, 0); in emlxs_fcoe_fcftab_sol_action()
5651 if ((rval != MBX_BUSY) && (rval != MBX_SUCCESS)) { in emlxs_fcoe_fcftab_sol_action()
5657 rval = emlxs_fcoe_fcftab_state(port, in emlxs_fcoe_fcftab_sol_action()
5659 FCF_REASON_SEND_FAILED, rval, 0); in emlxs_fcoe_fcftab_sol_action()
5661 return (rval); in emlxs_fcoe_fcftab_sol_action()
5676 uint32_t rval = 0; in emlxs_fcoe_fcftab_sol_cmpl_action() local
5699 rval = emlxs_fcoe_fcftab_req_handler(port, arg1); in emlxs_fcoe_fcftab_sol_cmpl_action()
5700 return (rval); in emlxs_fcoe_fcftab_sol_cmpl_action()
5883 uint32_t rval = 0; in emlxs_fcoe_fcftab_read_action() local
5914 rval = emlxs_fcoe_fcftab_req_handler(port, arg1); in emlxs_fcoe_fcftab_read_action()
5915 return (rval); in emlxs_fcoe_fcftab_read_action()
5931 rval = emlxs_fcoe_fcftab_state(port, in emlxs_fcoe_fcftab_read_action()
5934 return (rval); in emlxs_fcoe_fcftab_read_action()
5942 rval = emlxs_fcoe_fcftab_state(port, in emlxs_fcoe_fcftab_read_action()
5945 return (rval); in emlxs_fcoe_fcftab_read_action()
5969 rval = EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_NOWAIT, 0); in emlxs_fcoe_fcftab_read_action()
5970 if ((rval != MBX_BUSY) && (rval != MBX_SUCCESS)) { in emlxs_fcoe_fcftab_read_action()
5974 rval = emlxs_fcoe_fcftab_state(port, in emlxs_fcoe_fcftab_read_action()
5976 FCF_REASON_SEND_FAILED, rval, arg1); in emlxs_fcoe_fcftab_read_action()
5978 return (rval); in emlxs_fcoe_fcftab_read_action()
5993 uint32_t rval = 0; in emlxs_fcoe_fcftab_read_failed_action() local
6020 rval = emlxs_fcoe_fcftab_state(port, in emlxs_fcoe_fcftab_read_failed_action()
6033 rval = emlxs_fcoe_fcftab_state(port, FCOE_FCFTAB_STATE_READ, in emlxs_fcoe_fcftab_read_failed_action()
6037 return (rval); in emlxs_fcoe_fcftab_read_failed_action()
6049 uint32_t rval = 0; in emlxs_fcoe_fcftab_read_cmpl_action() local
6102 rval = emlxs_fcoe_fcftab_state(port, FCOE_FCFTAB_STATE_FCFI_ONLINE, in emlxs_fcoe_fcftab_read_cmpl_action()
6105 return (rval); in emlxs_fcoe_fcftab_read_cmpl_action()
6429 uint32_t rval = 0; in emlxs_fcoe_fcftab_fcfi_online_action() local
6451 rval = emlxs_fcoe_fcftab_req_handler(port, arg1); in emlxs_fcoe_fcftab_fcfi_online_action()
6452 return (rval); in emlxs_fcoe_fcftab_fcfi_online_action()
6486 rval = emlxs_fcoe_fcftab_state(port, in emlxs_fcoe_fcftab_fcfi_online_action()
6493 return (rval); in emlxs_fcoe_fcftab_fcfi_online_action()
6503 rval = emlxs_fcoe_fcftab_state(port, in emlxs_fcoe_fcftab_fcfi_online_action()
6507 return (rval); in emlxs_fcoe_fcftab_fcfi_online_action()
6519 uint32_t rval = 0; in emlxs_fcoe_fcftab_fcfi_online_cmpl_action() local
6540 rval = emlxs_fcoe_fcftab_req_handler(port, arg1); in emlxs_fcoe_fcftab_fcfi_online_cmpl_action()
6541 return (rval); in emlxs_fcoe_fcftab_fcfi_online_cmpl_action()
6551 rval = emlxs_fcoe_fcftab_state(port, FCOE_FCFTAB_STATE_ONLINE, in emlxs_fcoe_fcftab_fcfi_online_cmpl_action()
6554 return (rval); in emlxs_fcoe_fcftab_fcfi_online_cmpl_action()
6567 uint32_t rval = 0; in emlxs_fcoe_fcftab_fcfi_offline_action() local
6614 rval = emlxs_fcoe_fcftab_state(port, in emlxs_fcoe_fcftab_fcfi_offline_action()
6618 return (rval); in emlxs_fcoe_fcftab_fcfi_offline_action()
6630 uint32_t rval = 0; in emlxs_fcoe_fcftab_fcfi_offline_cmpl_action() local
6650 rval = emlxs_fcoe_fcftab_req_handler(port, arg1); in emlxs_fcoe_fcftab_fcfi_offline_cmpl_action()
6651 return (rval); in emlxs_fcoe_fcftab_fcfi_offline_cmpl_action()
6661 rval = emlxs_fcoe_fcftab_state(port, FCOE_FCFTAB_STATE_FCFI_ONLINE, in emlxs_fcoe_fcftab_fcfi_offline_cmpl_action()
6664 return (rval); in emlxs_fcoe_fcftab_fcfi_offline_cmpl_action()
6678 uint32_t rval = 0; in emlxs_fcoe_fcftab_found_evt_action() local
6726 rval = emlxs_fcoe_fcftab_state(port, in emlxs_fcoe_fcftab_found_evt_action()
6751 rval = emlxs_fcoe_fcftab_state(port, in emlxs_fcoe_fcftab_found_evt_action()
6769 return (rval); in emlxs_fcoe_fcftab_found_evt_action()
6786 uint32_t rval = 0; in emlxs_fcoe_fcftab_lost_evt_action() local
6873 rval = emlxs_fcoe_fcftab_state(port, FCOE_FCFTAB_STATE_SOLICIT, in emlxs_fcoe_fcftab_lost_evt_action()
6878 return (rval); in emlxs_fcoe_fcftab_lost_evt_action()
6892 uint32_t rval = 0; in emlxs_fcoe_fcftab_changed_evt_action() local
6940 rval = emlxs_fcoe_fcftab_state(port, in emlxs_fcoe_fcftab_changed_evt_action()
6965 rval = emlxs_fcoe_fcftab_state(port, in emlxs_fcoe_fcftab_changed_evt_action()
6983 return (rval); in emlxs_fcoe_fcftab_changed_evt_action()
6997 uint32_t rval = 0; in emlxs_fcoe_fcftab_fcf_delete() local
7061 rval = EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_NOWAIT, 0); in emlxs_fcoe_fcftab_fcf_delete()
7062 if ((rval != MBX_BUSY) && (rval != MBX_SUCCESS)) { in emlxs_fcoe_fcftab_fcf_delete()
7091 uint32_t rval = 0; in emlxs_fcoe_fcftab_full_evt_action() local
7194 rval = emlxs_fcoe_fcftab_state(port, FCOE_FCFTAB_STATE_SOLICIT, in emlxs_fcoe_fcftab_full_evt_action()
7199 return (rval); in emlxs_fcoe_fcftab_full_evt_action()
7213 uint32_t rval = 0; in emlxs_fcoe_fcftab_online_action() local
7236 rval = emlxs_fcoe_fcftab_req_handler(port, arg1); in emlxs_fcoe_fcftab_online_action()
7237 return (rval); in emlxs_fcoe_fcftab_online_action()
7295 return (rval); in emlxs_fcoe_fcftab_online_action()
7307 uint32_t rval = 0; in emlxs_fcoe_fcftab_offline_action() local
7331 rval = emlxs_fcoe_fcftab_req_handler(port, arg1); in emlxs_fcoe_fcftab_offline_action()
7332 return (rval); in emlxs_fcoe_fcftab_offline_action()
7343 return (rval); in emlxs_fcoe_fcftab_offline_action()
7376 uint32_t rval = 0; in emlxs_fcfi_action() local
7423 rval = (func)(port, fcfp, evt, arg1); in emlxs_fcfi_action()
7425 return (rval); in emlxs_fcfi_action()
7436 uint32_t rval = 0; in emlxs_fcfi_event() local
7485 rval = emlxs_fcfi_action(port, fcfp, evt, arg1); in emlxs_fcfi_event()
7487 return (rval); in emlxs_fcfi_event()
7498 uint32_t rval = 0; in emlxs_fcfi_state() local
7552 rval = emlxs_fcfi_action(port, fcfp, FCF_EVENT_STATE_ENTER, arg1); in emlxs_fcfi_state()
7554 return (rval); in emlxs_fcfi_state()
7597 uint32_t rval = 0; in emlxs_fcfi_free() local
7599 rval = emlxs_fcfi_state(port, fcfp, FCFI_STATE_FREE, 0, 0, 0); in emlxs_fcfi_free()
7601 return (rval); in emlxs_fcfi_free()
7698 uint32_t rval = 0; in emlxs_fcfi_offline_action() local
7745 rval = emlxs_fcfi_state(port, fcfp, FCFI_STATE_REG, in emlxs_fcfi_offline_action()
7747 return (rval); in emlxs_fcfi_offline_action()
7757 rval = emlxs_fcftab_event(port, FCF_EVENT_FCFI_OFFLINE, fcfp); in emlxs_fcfi_offline_action()
7759 return (rval); in emlxs_fcfi_offline_action()
7769 uint32_t rval = 0; in emlxs_fcfi_vfi_online_evt_action() local
7791 rval = emlxs_fcfi_state(port, fcfp, FCFI_STATE_ONLINE, in emlxs_fcfi_vfi_online_evt_action()
7803 rval = emlxs_fcfi_state(port, fcfp, FCFI_STATE_VFI_ONLINE_CMPL, in emlxs_fcfi_vfi_online_evt_action()
7816 return (rval); in emlxs_fcfi_vfi_online_evt_action()
7825 uint32_t rval = 0; in emlxs_fcfi_offline_handler() local
7833 rval = emlxs_fcfi_state(port, fcfp, FCFI_STATE_PAUSED, in emlxs_fcfi_offline_handler()
7836 rval = emlxs_fcfi_state(port, fcfp, in emlxs_fcfi_offline_handler()
7842 rval = emlxs_fcfi_state(port, fcfp, FCFI_STATE_UNREG, in emlxs_fcfi_offline_handler()
7846 rval = emlxs_fcfi_state(port, fcfp, FCFI_STATE_OFFLINE, in emlxs_fcfi_offline_handler()
7850 return (rval); in emlxs_fcfi_offline_handler()
7860 uint32_t rval = 0; in emlxs_fcfi_vfi_offline_evt_action() local
7890 rval = emlxs_fcfi_offline_handler(port, fcfp, arg1); in emlxs_fcfi_vfi_offline_evt_action()
7913 rval = emlxs_fcfi_state(port, fcfp, FCFI_STATE_VFI_OFFLINE_CMPL, in emlxs_fcfi_vfi_offline_evt_action()
7923 rval = emlxs_fcfi_state(port, fcfp, FCFI_STATE_VFI_OFFLINE_CMPL, in emlxs_fcfi_vfi_offline_evt_action()
7947 return (rval); in emlxs_fcfi_vfi_offline_evt_action()
7957 uint32_t rval = 0; in emlxs_fcfi_online_evt_action() local
7987 rval = emlxs_fcfi_state(port, fcfp, FCFI_STATE_REG, in emlxs_fcfi_online_evt_action()
7998 rval = emlxs_fcfi_state(port, fcfp, FCFI_STATE_VFI_ONLINE, in emlxs_fcfi_online_evt_action()
8008 rval = emlxs_fcfi_state(port, fcfp, FCFI_STATE_ONLINE, in emlxs_fcfi_online_evt_action()
8020 return (rval); in emlxs_fcfi_online_evt_action()
8032 uint32_t rval = 0; in emlxs_fcfi_vfi_online_action() local
8050 rval = emlxs_fcfi_offline_handler(port, fcfp, arg1); in emlxs_fcfi_vfi_online_action()
8051 return (rval); in emlxs_fcfi_vfi_online_action()
8087 rval = emlxs_fcfi_offline_handler(port, fcfp, arg1); in emlxs_fcfi_vfi_online_action()
8088 return (rval); in emlxs_fcfi_vfi_online_action()
8097 rval = emlxs_vfi_event(port, FCF_EVENT_VFI_ONLINE, vfip); in emlxs_fcfi_vfi_online_action()
8101 return (rval); in emlxs_fcfi_vfi_online_action()
8111 uint32_t rval = 0; in emlxs_fcfi_vfi_online_cmpl_action() local
8127 rval = emlxs_fcfi_state(port, fcfp, FCFI_STATE_ONLINE, in emlxs_fcfi_vfi_online_cmpl_action()
8130 return (rval); in emlxs_fcfi_vfi_online_cmpl_action()
8142 uint32_t rval = 0; in emlxs_fcfi_vfi_offline_action() local
8162 rval = emlxs_fcfi_state(port, fcfp, FCFI_STATE_PAUSED, in emlxs_fcfi_vfi_offline_action()
8165 return (rval); in emlxs_fcfi_vfi_offline_action()
8174 rval = emlxs_fcfi_state(port, fcfp, FCFI_STATE_UNREG, in emlxs_fcfi_vfi_offline_action()
8177 return (rval); in emlxs_fcfi_vfi_offline_action()
8261 uint32_t rval = 0; in emlxs_fcfi_vfi_offline_cmpl_action() local
8281 rval = emlxs_fcfi_state(port, fcfp, FCFI_STATE_UNREG, in emlxs_fcfi_vfi_offline_cmpl_action()
8290 return (rval); in emlxs_fcfi_vfi_offline_cmpl_action()
8300 uint32_t rval = 0; in emlxs_fcfi_offline_evt_action() local
8343 rval = emlxs_fcfi_offline_handler(port, fcfp, arg1); in emlxs_fcfi_offline_evt_action()
8358 return (rval); in emlxs_fcfi_offline_evt_action()
8368 uint32_t rval = 0; in emlxs_fcfi_pause_evt_action() local
8423 rval = emlxs_fcfi_offline_handler(port, fcfp, arg1); in emlxs_fcfi_pause_evt_action()
8438 return (rval); in emlxs_fcfi_pause_evt_action()
8448 uint32_t rval = 0; in emlxs_fcfi_unreg_failed_action() local
8474 rval = emlxs_fcfi_state(port, fcfp, FCFI_STATE_UNREG_CMPL, in emlxs_fcfi_unreg_failed_action()
8482 rval = emlxs_fcfi_state(port, fcfp, FCFI_STATE_UNREG, in emlxs_fcfi_unreg_failed_action()
8486 return (rval); in emlxs_fcfi_unreg_failed_action()
8496 uint32_t rval = 0; in emlxs_fcfi_reg_failed_action() local
8522 rval = emlxs_fcfi_state(port, fcfp, FCFI_STATE_REG_CMPL, in emlxs_fcfi_reg_failed_action()
8530 rval = emlxs_fcfi_state(port, fcfp, FCFI_STATE_REG, in emlxs_fcfi_reg_failed_action()
8534 return (rval); in emlxs_fcfi_reg_failed_action()
8601 uint32_t rval = 0; in emlxs_fcfi_reg_action() local
8628 rval = emlxs_fcfi_offline_handler(port, fcfp, arg1); in emlxs_fcfi_reg_action()
8629 return (rval); in emlxs_fcfi_reg_action()
8638 rval = emlxs_fcfi_state(port, fcfp, FCFI_STATE_VFI_ONLINE, in emlxs_fcfi_reg_action()
8640 return (rval); in emlxs_fcfi_reg_action()
8649 rval = emlxs_fcfi_state(port, fcfp, FCFI_STATE_REG_FAILED, in emlxs_fcfi_reg_action()
8652 return (rval); in emlxs_fcfi_reg_action()
8684 rval = EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_NOWAIT, 0); in emlxs_fcfi_reg_action()
8685 if ((rval != MBX_BUSY) && (rval != MBX_SUCCESS)) { in emlxs_fcfi_reg_action()
8688 rval = emlxs_fcfi_state(port, fcfp, FCFI_STATE_REG_FAILED, in emlxs_fcfi_reg_action()
8689 FCF_REASON_SEND_FAILED, rval, arg1); in emlxs_fcfi_reg_action()
8691 return (rval); in emlxs_fcfi_reg_action()
8704 uint32_t rval = 0; in emlxs_fcfi_reg_cmpl_action() local
8721 rval = emlxs_fcfi_offline_handler(port, fcfp, arg1); in emlxs_fcfi_reg_cmpl_action()
8722 return (rval); in emlxs_fcfi_reg_cmpl_action()
8730 rval = emlxs_fcfi_state(port, fcfp, FCFI_STATE_VFI_ONLINE, in emlxs_fcfi_reg_cmpl_action()
8733 return (rval); in emlxs_fcfi_reg_cmpl_action()
8796 uint32_t rval = 0; in emlxs_fcfi_unreg_action() local
8814 rval = emlxs_fcfi_state(port, fcfp, FCFI_STATE_OFFLINE, in emlxs_fcfi_unreg_action()
8816 return (rval); in emlxs_fcfi_unreg_action()
8829 rval = emlxs_fcfi_state(port, fcfp, FCFI_STATE_UNREG_FAILED, in emlxs_fcfi_unreg_action()
8831 return (rval); in emlxs_fcfi_unreg_action()
8844 rval = EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_NOWAIT, 0); in emlxs_fcfi_unreg_action()
8845 if ((rval != MBX_BUSY) && (rval != MBX_SUCCESS)) { in emlxs_fcfi_unreg_action()
8848 rval = emlxs_fcfi_state(port, fcfp, FCFI_STATE_UNREG_FAILED, in emlxs_fcfi_unreg_action()
8849 FCF_REASON_SEND_FAILED, rval, arg1); in emlxs_fcfi_unreg_action()
8851 return (rval); in emlxs_fcfi_unreg_action()
8864 uint32_t rval = 0; in emlxs_fcfi_unreg_cmpl_action() local
8883 rval = emlxs_fcfi_state(port, fcfp, FCFI_STATE_OFFLINE, in emlxs_fcfi_unreg_cmpl_action()
8886 return (rval); in emlxs_fcfi_unreg_cmpl_action()
8897 uint32_t rval = 0; in emlxs_fcfi_online_action() local
8919 rval = emlxs_fcfi_offline_handler(port, fcfp, arg1); in emlxs_fcfi_online_action()
8920 return (rval); in emlxs_fcfi_online_action()
8961 rval = emlxs_fcftab_event(port, FCF_EVENT_FCFI_ONLINE, fcfp); in emlxs_fcfi_online_action()
8963 return (rval); in emlxs_fcfi_online_action()
9218 uint32_t rval = 0; in emlxs_vfi_action() local
9265 rval = (func)(port, vfip, evt, arg1); in emlxs_vfi_action()
9267 return (rval); in emlxs_vfi_action()
9278 uint32_t rval = 0; in emlxs_vfi_event() local
9329 rval = emlxs_vfi_action(port, vfip, evt, arg1); in emlxs_vfi_event()
9331 return (rval); in emlxs_vfi_event()
9341 uint32_t rval = 0; in emlxs_vfi_state() local
9401 rval = emlxs_vfi_action(port, vfip, FCF_EVENT_STATE_ENTER, arg1); in emlxs_vfi_state()
9403 return (rval); in emlxs_vfi_state()
9413 uint32_t rval = 0; in emlxs_vfi_vpi_online_evt_action() local
9435 rval = emlxs_vfi_state(port, vfip, VFI_STATE_ONLINE, in emlxs_vfi_vpi_online_evt_action()
9447 rval = emlxs_vfi_state(port, vfip, VFI_STATE_VPI_ONLINE_CMPL, in emlxs_vfi_vpi_online_evt_action()
9461 return (rval); in emlxs_vfi_vpi_online_evt_action()
9470 uint32_t rval = 0; in emlxs_vfi_offline_handler() local
9478 rval = emlxs_vfi_state(port, vfip, VFI_STATE_PAUSED, in emlxs_vfi_offline_handler()
9481 rval = emlxs_vfi_state(port, vfip, in emlxs_vfi_offline_handler()
9487 rval = emlxs_vfi_state(port, vfip, VFI_STATE_UNREG, in emlxs_vfi_offline_handler()
9491 rval = emlxs_vfi_state(port, vfip, VFI_STATE_UNREG, in emlxs_vfi_offline_handler()
9495 rval = emlxs_vfi_state(port, vfip, VFI_STATE_OFFLINE, in emlxs_vfi_offline_handler()
9499 return (rval); in emlxs_vfi_offline_handler()
9509 uint32_t rval = 0; in emlxs_vfi_vpi_offline_evt_action() local
9539 rval = emlxs_vfi_offline_handler(port, vfip, arg1); in emlxs_vfi_vpi_offline_evt_action()
9562 rval = emlxs_vfi_state(port, vfip, VFI_STATE_VPI_OFFLINE_CMPL, in emlxs_vfi_vpi_offline_evt_action()
9572 rval = emlxs_vfi_state(port, vfip, VFI_STATE_VPI_OFFLINE_CMPL, in emlxs_vfi_vpi_offline_evt_action()
9596 return (rval); in emlxs_vfi_vpi_offline_evt_action()
9609 uint32_t rval = 0; in emlxs_vfi_online_evt_action() local
9642 rval = emlxs_vfi_state(port, vfip, VFI_STATE_INIT, in emlxs_vfi_online_evt_action()
9654 rval = emlxs_vfi_state(port, vfip, VFI_STATE_VPI_ONLINE, in emlxs_vfi_online_evt_action()
9692 return (rval); in emlxs_vfi_online_evt_action()
9702 uint32_t rval = 0; in emlxs_vfi_offline_evt_action() local
9751 rval = emlxs_vfi_offline_handler(port, vfip, arg1); in emlxs_vfi_offline_evt_action()
9765 return (rval); in emlxs_vfi_offline_evt_action()
9775 uint32_t rval = 0; in emlxs_vfi_pause_evt_action() local
9838 rval = emlxs_vfi_offline_handler(port, vfip, arg1); in emlxs_vfi_pause_evt_action()
9852 return (rval); in emlxs_vfi_pause_evt_action()
9862 uint32_t rval = 0; in emlxs_vfi_offline_action() local
9918 rval = emlxs_vfi_state(port, vfip, VFI_STATE_INIT, in emlxs_vfi_offline_action()
9920 return (rval); in emlxs_vfi_offline_action()
9931 rval = emlxs_fcfi_event(port, FCF_EVENT_VFI_OFFLINE, vfip); in emlxs_vfi_offline_action()
9933 return (rval); in emlxs_vfi_offline_action()
9996 uint32_t rval = 0; in emlxs_vfi_init_action() local
10023 rval = emlxs_vfi_offline_handler(port, vfip, arg1); in emlxs_vfi_init_action()
10024 return (rval); in emlxs_vfi_init_action()
10033 rval = emlxs_vfi_state(port, vfip, VFI_STATE_VPI_ONLINE, in emlxs_vfi_init_action()
10035 return (rval); in emlxs_vfi_init_action()
10044 rval = emlxs_vfi_state(port, vfip, VFI_STATE_VPI_ONLINE, in emlxs_vfi_init_action()
10046 return (rval); in emlxs_vfi_init_action()
10056 rval = emlxs_vfi_state(port, vfip, FCFI_STATE_REG_FAILED, in emlxs_vfi_init_action()
10058 return (rval); in emlxs_vfi_init_action()
10075 rval = EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_NOWAIT, 0); in emlxs_vfi_init_action()
10076 if ((rval != MBX_BUSY) && (rval != MBX_SUCCESS)) { in emlxs_vfi_init_action()
10079 rval = emlxs_vfi_state(port, vfip, VFI_STATE_INIT_FAILED, in emlxs_vfi_init_action()
10080 FCF_REASON_SEND_FAILED, rval, arg1); in emlxs_vfi_init_action()
10082 return (rval); in emlxs_vfi_init_action()
10095 uint32_t rval = 0; in emlxs_vfi_init_failed_action() local
10122 rval = emlxs_vfi_state(port, vfip, VFI_STATE_INIT_CMPL, in emlxs_vfi_init_failed_action()
10130 rval = emlxs_vfi_state(port, vfip, VFI_STATE_INIT, in emlxs_vfi_init_failed_action()
10134 return (rval); in emlxs_vfi_init_failed_action()
10144 uint32_t rval = 0; in emlxs_vfi_init_cmpl_action() local
10161 rval = emlxs_vfi_state(port, vfip, VFI_STATE_VPI_ONLINE, in emlxs_vfi_init_cmpl_action()
10164 return (rval); in emlxs_vfi_init_cmpl_action()
10175 uint32_t rval = 0; in emlxs_vfi_vpi_online_action() local
10195 rval = emlxs_vfi_offline_handler(port, vfip, arg1); in emlxs_vfi_vpi_online_action()
10196 return (rval); in emlxs_vfi_vpi_online_action()
10255 rval = emlxs_vfi_offline_handler(port, vfip, arg1); in emlxs_vfi_vpi_online_action()
10256 return (rval); in emlxs_vfi_vpi_online_action()
10267 rval = emlxs_vpi_event(port, FCF_EVENT_VPI_ONLINE, vpip); in emlxs_vfi_vpi_online_action()
10271 return (rval); in emlxs_vfi_vpi_online_action()
10281 uint32_t rval = 0; in emlxs_vfi_vpi_online_cmpl_action() local
10303 rval = emlxs_vfi_state(port, vfip, VFI_STATE_REG, in emlxs_vfi_vpi_online_cmpl_action()
10315 rval = emlxs_vfi_state(port, vfip, VFI_STATE_ONLINE, in emlxs_vfi_vpi_online_cmpl_action()
10319 return (rval); in emlxs_vfi_vpi_online_cmpl_action()
10329 uint32_t rval = 0; in emlxs_vfi_vpi_offline_cmpl_action() local
10349 rval = emlxs_vfi_state(port, vfip, VFI_STATE_UNREG, in emlxs_vfi_vpi_offline_cmpl_action()
10358 return (rval); in emlxs_vfi_vpi_offline_cmpl_action()
10370 uint32_t rval = 0; in emlxs_vfi_vpi_offline_action() local
10390 rval = emlxs_vfi_state(port, vfip, VFI_STATE_PAUSED, in emlxs_vfi_vpi_offline_action()
10393 return (rval); in emlxs_vfi_vpi_offline_action()
10403 rval = emlxs_vfi_state(port, vfip, VFI_STATE_UNREG, in emlxs_vfi_vpi_offline_action()
10406 return (rval); in emlxs_vfi_vpi_offline_action()
10490 uint32_t rval = 0; in emlxs_vfi_unreg_failed_action() local
10513 rval = emlxs_vfi_state(port, vfip, VFI_STATE_UNREG_CMPL, in emlxs_vfi_unreg_failed_action()
10521 rval = emlxs_vfi_state(port, vfip, VFI_STATE_UNREG, in emlxs_vfi_unreg_failed_action()
10525 return (rval); in emlxs_vfi_unreg_failed_action()
10588 uint32_t rval = 0; in emlxs_vfi_unreg_action() local
10605 rval = emlxs_vfi_state(port, vfip, VFI_STATE_OFFLINE, in emlxs_vfi_unreg_action()
10607 return (rval); in emlxs_vfi_unreg_action()
10620 rval = emlxs_vfi_state(port, vfip, VFI_STATE_UNREG_FAILED, in emlxs_vfi_unreg_action()
10623 return (rval); in emlxs_vfi_unreg_action()
10637 rval = EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_NOWAIT, 0); in emlxs_vfi_unreg_action()
10638 if ((rval != MBX_BUSY) && (rval != MBX_SUCCESS)) { in emlxs_vfi_unreg_action()
10641 rval = emlxs_vfi_state(port, vfip, VFI_STATE_UNREG_FAILED, in emlxs_vfi_unreg_action()
10642 FCF_REASON_SEND_FAILED, rval, arg1); in emlxs_vfi_unreg_action()
10644 return (rval); in emlxs_vfi_unreg_action()
10657 uint32_t rval = 0; in emlxs_vfi_unreg_cmpl_action() local
10674 rval = emlxs_vfi_state(port, vfip, VFI_STATE_OFFLINE, in emlxs_vfi_unreg_cmpl_action()
10677 return (rval); in emlxs_vfi_unreg_cmpl_action()
10687 uint32_t rval = 0; in emlxs_vfi_reg_failed_action() local
10712 rval = emlxs_vfi_state(port, vfip, VFI_STATE_REG_CMPL, in emlxs_vfi_reg_failed_action()
10720 rval = emlxs_vfi_state(port, vfip, VFI_STATE_REG, in emlxs_vfi_reg_failed_action()
10724 return (rval); in emlxs_vfi_reg_failed_action()
10801 uint32_t rval = 0; in emlxs_vfi_reg_action() local
10827 rval = emlxs_vfi_offline_handler(port, vfip, arg1); in emlxs_vfi_reg_action()
10828 return (rval); in emlxs_vfi_reg_action()
10840 rval = emlxs_vfi_offline_handler(port, vfip, arg1); in emlxs_vfi_reg_action()
10841 return (rval); in emlxs_vfi_reg_action()
10851 rval = emlxs_vfi_state(port, vfip, VFI_STATE_ONLINE, in emlxs_vfi_reg_action()
10853 return (rval); in emlxs_vfi_reg_action()
10885 rval = emlxs_vfi_state(port, vfip, VFI_STATE_REG_FAILED, in emlxs_vfi_reg_action()
10888 return (rval); in emlxs_vfi_reg_action()
10896 rval = emlxs_vfi_state(port, vfip, VFI_STATE_REG_FAILED, in emlxs_vfi_reg_action()
10936 rval = EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_NOWAIT, 0); in emlxs_vfi_reg_action()
10937 if ((rval != MBX_BUSY) && (rval != MBX_SUCCESS)) { in emlxs_vfi_reg_action()
10941 rval = emlxs_vfi_state(port, vfip, VFI_STATE_REG_FAILED, in emlxs_vfi_reg_action()
10942 FCF_REASON_SEND_FAILED, rval, arg1); in emlxs_vfi_reg_action()
10944 return (rval); in emlxs_vfi_reg_action()
10957 uint32_t rval = 0; in emlxs_vfi_reg_cmpl_action() local
10975 rval = emlxs_vfi_offline_handler(port, vfip, arg1); in emlxs_vfi_reg_cmpl_action()
10976 return (rval); in emlxs_vfi_reg_cmpl_action()
10984 rval = emlxs_vfi_state(port, vfip, VFI_STATE_ONLINE, in emlxs_vfi_reg_cmpl_action()
10987 return (rval); in emlxs_vfi_reg_cmpl_action()
10999 uint32_t rval = 0; in emlxs_vfi_online_action() local
11021 rval = emlxs_vfi_offline_handler(port, vfip, arg1); in emlxs_vfi_online_action()
11022 return (rval); in emlxs_vfi_online_action()
11074 rval = emlxs_fcfi_event(port, FCF_EVENT_VFI_ONLINE, vfip); in emlxs_vfi_online_action()
11076 return (rval); in emlxs_vfi_online_action()
11109 uint32_t rval = 0; in emlxs_vpi_action() local
11159 rval = (func)(port, vpip, evt, arg1); in emlxs_vpi_action()
11161 return (rval); in emlxs_vpi_action()
11172 uint32_t rval = 0; in emlxs_vpi_event() local
11217 rval = emlxs_vpi_action(port, vpip, evt, arg1); in emlxs_vpi_event()
11219 return (rval); in emlxs_vpi_event()
11229 uint32_t rval = 0; in emlxs_vpi_state() local
11283 rval = emlxs_vpi_action(port, vpip, FCF_EVENT_STATE_ENTER, arg1); in emlxs_vpi_state()
11285 return (rval); in emlxs_vpi_state()
11296 uint32_t rval = 0; in emlxs_vpi_port_bind_notify() local
11388 rval = emlxs_vpi_event(port, FCF_EVENT_VPI_ONLINE, vpip); in emlxs_vpi_port_bind_notify()
11392 return (rval); in emlxs_vpi_port_bind_notify()
11402 uint32_t rval = 0; in emlxs_vpi_port_unbind_notify() local
11440 rval = emlxs_vpi_event(port, FCF_EVENT_VPI_OFFLINE, vpip); in emlxs_vpi_port_unbind_notify()
11442 if (wait && (rval == 0)) { in emlxs_vpi_port_unbind_notify()
11471 return (rval); in emlxs_vpi_port_unbind_notify()
11481 uint32_t rval = 0; in emlxs_vpi_rpi_offline_evt_action() local
11505 rval = 0; in emlxs_vpi_rpi_offline_evt_action()
11516 rval = emlxs_vpi_state(port, vpip, VPI_STATE_PORT_OFFLINE, in emlxs_vpi_rpi_offline_evt_action()
11528 rval = 0; in emlxs_vpi_rpi_offline_evt_action()
11539 rval = 0; in emlxs_vpi_rpi_offline_evt_action()
11551 rval = 1; in emlxs_vpi_rpi_offline_evt_action()
11555 return (rval); in emlxs_vpi_rpi_offline_evt_action()
11565 uint32_t rval = 0; in emlxs_vpi_rpi_pause_evt_action() local
11589 rval = 0; in emlxs_vpi_rpi_pause_evt_action()
11600 rval = emlxs_vpi_state(port, vpip, VPI_STATE_PORT_OFFLINE, in emlxs_vpi_rpi_pause_evt_action()
11612 rval = 0; in emlxs_vpi_rpi_pause_evt_action()
11624 rval = 1; in emlxs_vpi_rpi_pause_evt_action()
11628 return (rval); in emlxs_vpi_rpi_pause_evt_action()
11667 uint32_t rval = 0; in emlxs_vpi_online_evt_action() local
11699 rval = emlxs_vpi_state(port, vpip, VPI_STATE_INIT, in emlxs_vpi_online_evt_action()
11710 rval = emlxs_vpi_state(port, vpip, VPI_STATE_PORT_ONLINE, in emlxs_vpi_online_evt_action()
11722 return (rval); in emlxs_vpi_online_evt_action()
11731 uint32_t rval = 0; in emlxs_vpi_offline_handler() local
11738 rval = emlxs_vpi_state(port, vpip, VPI_STATE_PORT_OFFLINE, in emlxs_vpi_offline_handler()
11742 rval = emlxs_vpi_state(port, vpip, VPI_STATE_LOGO, in emlxs_vpi_offline_handler()
11746 rval = emlxs_vpi_state(port, vpip, VPI_STATE_UNREG, in emlxs_vpi_offline_handler()
11750 rval = emlxs_vpi_state(port, vpip, VPI_STATE_UNREG, in emlxs_vpi_offline_handler()
11754 rval = emlxs_vpi_state(port, vpip, VPI_STATE_OFFLINE, in emlxs_vpi_offline_handler()
11758 return (rval); in emlxs_vpi_offline_handler()
11768 uint32_t rval = 0; in emlxs_vpi_offline_evt_action() local
11807 rval = emlxs_vpi_state(port, vpip, in emlxs_vpi_offline_evt_action()
11820 rval = emlxs_vpi_offline_handler(port, vpip, arg1); in emlxs_vpi_offline_evt_action()
11832 rval = emlxs_vpi_state(port, vpip, in emlxs_vpi_offline_evt_action()
11845 rval = emlxs_vpi_offline_handler(port, vpip, arg1); in emlxs_vpi_offline_evt_action()
11861 rval = emlxs_vpi_offline_handler(port, vpip, arg1); in emlxs_vpi_offline_evt_action()
11873 return (rval); in emlxs_vpi_offline_evt_action()
11884 uint32_t rval = 0; in emlxs_vpi_pause_evt_action() local
11953 rval = emlxs_vpi_offline_handler(port, vpip, arg1); in emlxs_vpi_pause_evt_action()
11968 return (rval); in emlxs_vpi_pause_evt_action()
12057 uint32_t rval = 0; in emlxs_vpi_port_offline_action() local
12089 rval = emlxs_vpi_state(port, vpip, VPI_STATE_LOGO, in emlxs_vpi_port_offline_action()
12092 return (rval); in emlxs_vpi_port_offline_action()
12122 rval = emlxs_vpi_state(port, vpip, VPI_STATE_PAUSED, in emlxs_vpi_port_offline_action()
12125 return (rval); in emlxs_vpi_port_offline_action()
12154 rval = emlxs_vpi_state(port, vpip, VPI_STATE_UNREG, in emlxs_vpi_port_offline_action()
12157 return (rval); in emlxs_vpi_port_offline_action()
12194 uint32_t rval = 0; in emlxs_vpi_offline_action() local
12244 rval = emlxs_vpi_state(port, vpip, VPI_STATE_INIT, in emlxs_vpi_offline_action()
12246 return (rval); in emlxs_vpi_offline_action()
12257 rval = emlxs_vfi_event(port, FCF_EVENT_VPI_OFFLINE, vpip); in emlxs_vpi_offline_action()
12259 return (rval); in emlxs_vpi_offline_action()
12323 uint32_t rval = 0; in emlxs_vpi_init_action() local
12345 rval = emlxs_vpi_offline_handler(port, vpip, arg1); in emlxs_vpi_init_action()
12346 return (rval); in emlxs_vpi_init_action()
12360 rval = emlxs_vpi_state(port, vpip, VPI_STATE_PORT_ONLINE, in emlxs_vpi_init_action()
12362 return (rval); in emlxs_vpi_init_action()
12371 rval = emlxs_vpi_state(port, vpip, VPI_STATE_PORT_ONLINE, in emlxs_vpi_init_action()
12373 return (rval); in emlxs_vpi_init_action()
12383 rval = emlxs_vpi_state(port, vpip, FCFI_STATE_REG_FAILED, in emlxs_vpi_init_action()
12385 return (rval); in emlxs_vpi_init_action()
12400 rval = EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_NOWAIT, 0); in emlxs_vpi_init_action()
12401 if ((rval != MBX_BUSY) && (rval != MBX_SUCCESS)) { in emlxs_vpi_init_action()
12404 rval = emlxs_vpi_state(port, vpip, VPI_STATE_INIT_FAILED, in emlxs_vpi_init_action()
12405 FCF_REASON_SEND_FAILED, rval, arg1); in emlxs_vpi_init_action()
12407 return (rval); in emlxs_vpi_init_action()
12420 uint32_t rval = 0; in emlxs_vpi_init_failed_action() local
12447 rval = emlxs_vpi_state(port, vpip, VPI_STATE_INIT_CMPL, in emlxs_vpi_init_failed_action()
12455 rval = emlxs_vpi_state(port, vpip, VPI_STATE_INIT, in emlxs_vpi_init_failed_action()
12459 return (rval); in emlxs_vpi_init_failed_action()
12469 uint32_t rval = 0; in emlxs_vpi_init_cmpl_action() local
12486 rval = emlxs_vpi_state(port, vpip, VPI_STATE_PORT_ONLINE, in emlxs_vpi_init_cmpl_action()
12488 return (rval); in emlxs_vpi_init_cmpl_action()
12500 uint32_t rval = 0; in emlxs_vpi_port_online_action() local
12523 rval = emlxs_vpi_offline_handler(port, vpip, arg1); in emlxs_vpi_port_online_action()
12524 return (rval); in emlxs_vpi_port_online_action()
12555 rval = emlxs_vpi_state(port, vpip, VPI_STATE_REG, in emlxs_vpi_port_online_action()
12558 return (rval); in emlxs_vpi_port_online_action()
12592 uint32_t rval = 0; in emlxs_vpi_logi_notify() local
12629 rval = emlxs_vpi_state(port, vpip, VPI_STATE_LOGI, in emlxs_vpi_logi_notify()
12632 if (rval) { in emlxs_vpi_logi_notify()
12637 rval); in emlxs_vpi_logi_notify()
12642 return (rval); in emlxs_vpi_logi_notify()
12652 uint32_t rval = 0; in emlxs_vpi_logi_cmpl_notify() local
12695 rval = emlxs_vpi_state(port, vpip, VPI_STATE_LOGI_CMPL, in emlxs_vpi_logi_cmpl_notify()
12698 if (rval) { in emlxs_vpi_logi_cmpl_notify()
12703 rval); in emlxs_vpi_logi_cmpl_notify()
12706 return (rval); in emlxs_vpi_logi_cmpl_notify()
12733 rval = emlxs_vpi_state(port, vpip, VPI_STATE_LOGI_CMPL, in emlxs_vpi_logi_cmpl_notify()
12736 if (rval) { in emlxs_vpi_logi_cmpl_notify()
12741 rval); in emlxs_vpi_logi_cmpl_notify()
12744 return (rval); in emlxs_vpi_logi_cmpl_notify()
12758 uint32_t rval = 0; in emlxs_vpi_logi_failed_notify() local
12805 rval = emlxs_vpi_state(port, vpip, VPI_STATE_LOGI_FAILED, in emlxs_vpi_logi_failed_notify()
12808 if (rval && rpip->cmpl) { in emlxs_vpi_logi_failed_notify()
12814 return (rval); in emlxs_vpi_logi_failed_notify()
12824 uint32_t rval = 0; in emlxs_vpi_logo_cmpl_notify() local
12856 rval = emlxs_vpi_event(port, FCF_EVENT_VPI_OFFLINE, vpip); in emlxs_vpi_logo_cmpl_notify()
12860 return (rval); in emlxs_vpi_logo_cmpl_notify()
12873 uint32_t rval = 0; in emlxs_vpi_logi_action() local
12890 rval = emlxs_vpi_offline_handler(port, vpip, arg1); in emlxs_vpi_logi_action()
12891 return (rval); in emlxs_vpi_logi_action()
12955 uint32_t rval = 0; in emlxs_vpi_logi_failed_action() local
12988 rval = emlxs_vpi_state(port, vpip, VPI_STATE_REG, in emlxs_vpi_logi_failed_action()
12990 return (rval); in emlxs_vpi_logi_failed_action()
12999 rval = emlxs_vpi_offline_handler(port, vpip, arg1); in emlxs_vpi_logi_failed_action()
13001 return (rval); in emlxs_vpi_logi_failed_action()
13012 uint32_t rval = 0; in emlxs_vpi_logi_cmpl_action() local
13076 rval = emlxs_vpi_offline_handler(port, vpip, arg1); in emlxs_vpi_logi_cmpl_action()
13078 return (rval); in emlxs_vpi_logi_cmpl_action()
13085 rval = emlxs_vpi_state(port, vpip, VPI_STATE_REG, in emlxs_vpi_logi_cmpl_action()
13088 return (rval); in emlxs_vpi_logi_cmpl_action()
13099 uint32_t rval = 0; in emlxs_vpi_logo_failed_action() local
13120 rval = emlxs_vpi_state(port, vpip, VPI_STATE_LOGO_CMPL, in emlxs_vpi_logo_failed_action()
13128 rval = emlxs_vpi_state(port, vpip, VPI_STATE_LOGO_CMPL, in emlxs_vpi_logo_failed_action()
13136 rval = emlxs_vpi_state(port, vpip, VPI_STATE_LOGO, in emlxs_vpi_logo_failed_action()
13140 return (rval); in emlxs_vpi_logo_failed_action()
13152 uint32_t rval = 0; in emlxs_vpi_logo_action() local
13173 rval = emlxs_vpi_state(port, vpip, VPI_STATE_PORT_OFFLINE, in emlxs_vpi_logo_action()
13175 return (rval); in emlxs_vpi_logo_action()
13187 rval = emlxs_vpi_state(port, vpip, VPI_STATE_PORT_OFFLINE, in emlxs_vpi_logo_action()
13189 return (rval); in emlxs_vpi_logo_action()
13200 rval = emlxs_vpi_state(port, vpip, VPI_STATE_PORT_OFFLINE, in emlxs_vpi_logo_action()
13202 return (rval); in emlxs_vpi_logo_action()
13223 rval = emlxs_vpi_state(port, vpip, VPI_STATE_LOGO_FAILED, in emlxs_vpi_logo_action()
13226 return (rval); in emlxs_vpi_logo_action()
13255 rval = emlxs_pkt_send(pkt, 0); in emlxs_vpi_logo_action()
13256 if (rval != FC_SUCCESS) { in emlxs_vpi_logo_action()
13260 rval = emlxs_vpi_state(port, vpip, VPI_STATE_LOGO_FAILED, in emlxs_vpi_logo_action()
13261 FCF_REASON_SEND_FAILED, rval, arg1); in emlxs_vpi_logo_action()
13263 return (rval); in emlxs_vpi_logo_action()
13267 rval = emlxs_vpi_state(port, vpip, VPI_STATE_LOGO_CMPL, in emlxs_vpi_logo_action()
13270 return (rval); in emlxs_vpi_logo_action()
13280 uint32_t rval = 0; in emlxs_vpi_logo_cmpl_action() local
13300 rval = emlxs_vpi_state(port, vpip, VPI_STATE_PORT_OFFLINE, in emlxs_vpi_logo_cmpl_action()
13303 return (rval); in emlxs_vpi_logo_cmpl_action()
13313 uint32_t rval = 0; in emlxs_vpi_unreg_failed_action() local
13339 rval = emlxs_vpi_state(port, vpip, VPI_STATE_UNREG_CMPL, in emlxs_vpi_unreg_failed_action()
13347 rval = emlxs_vpi_state(port, vpip, VPI_STATE_UNREG, in emlxs_vpi_unreg_failed_action()
13351 return (rval); in emlxs_vpi_unreg_failed_action()
13413 uint32_t rval = 0; in emlxs_vpi_unreg_action() local
13432 rval = emlxs_vpi_state(port, vpip, VPI_STATE_PORT_OFFLINE, in emlxs_vpi_unreg_action()
13434 return (rval); in emlxs_vpi_unreg_action()
13442 rval = emlxs_vpi_state(port, vpip, VPI_STATE_OFFLINE, in emlxs_vpi_unreg_action()
13444 return (rval); in emlxs_vpi_unreg_action()
13453 rval = emlxs_vpi_state(port, vpip, VPI_STATE_PAUSED, in emlxs_vpi_unreg_action()
13455 return (rval); in emlxs_vpi_unreg_action()
13468 rval = emlxs_vpi_state(port, vpip, VPI_STATE_UNREG_FAILED, in emlxs_vpi_unreg_action()
13471 return (rval); in emlxs_vpi_unreg_action()
13486 rval = EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_NOWAIT, 0); in emlxs_vpi_unreg_action()
13487 if ((rval != MBX_BUSY) && (rval != MBX_SUCCESS)) { in emlxs_vpi_unreg_action()
13490 rval = emlxs_vpi_state(port, vpip, VPI_STATE_UNREG_FAILED, in emlxs_vpi_unreg_action()
13491 FCF_REASON_SEND_FAILED, rval, arg1); in emlxs_vpi_unreg_action()
13493 return (rval); in emlxs_vpi_unreg_action()
13506 uint32_t rval = 0; in emlxs_vpi_unreg_cmpl_action() local
13523 rval = emlxs_vpi_state(port, vpip, VPI_STATE_OFFLINE, in emlxs_vpi_unreg_cmpl_action()
13526 return (rval); in emlxs_vpi_unreg_cmpl_action()
13536 uint32_t rval = 0; in emlxs_vpi_reg_failed_action() local
13561 rval = emlxs_vpi_state(port, vpip, VPI_STATE_REG_CMPL, in emlxs_vpi_reg_failed_action()
13569 rval = emlxs_vpi_state(port, vpip, VPI_STATE_REG, in emlxs_vpi_reg_failed_action()
13573 return (rval); in emlxs_vpi_reg_failed_action()
13641 uint32_t rval = 0; in emlxs_vpi_reg_action() local
13663 rval = emlxs_vpi_offline_handler(port, vpip, 0); in emlxs_vpi_reg_action()
13664 return (rval); in emlxs_vpi_reg_action()
13677 rval = emlxs_vpi_state(port, vpip, VPI_STATE_ONLINE, in emlxs_vpi_reg_action()
13680 return (rval); in emlxs_vpi_reg_action()
13691 rval = emlxs_vpi_offline_handler(port, vpip, 0); in emlxs_vpi_reg_action()
13692 return (rval); in emlxs_vpi_reg_action()
13708 rval = emlxs_vpi_state(port, vpip, VPI_STATE_REG_FAILED, in emlxs_vpi_reg_action()
13711 return (rval); in emlxs_vpi_reg_action()
13734 rval = EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_NOWAIT, 0); in emlxs_vpi_reg_action()
13735 if ((rval != MBX_BUSY) && (rval != MBX_SUCCESS)) { in emlxs_vpi_reg_action()
13738 rval = emlxs_vpi_state(port, vpip, VPI_STATE_REG_FAILED, in emlxs_vpi_reg_action()
13739 FCF_REASON_SEND_FAILED, rval, arg1); in emlxs_vpi_reg_action()
13741 return (rval); in emlxs_vpi_reg_action()
13754 uint32_t rval = 0; in emlxs_vpi_reg_cmpl_action() local
13772 rval = emlxs_vpi_offline_handler(port, vpip, arg1); in emlxs_vpi_reg_cmpl_action()
13773 return (rval); in emlxs_vpi_reg_cmpl_action()
13781 rval = emlxs_vpi_state(port, vpip, VPI_STATE_ONLINE, in emlxs_vpi_reg_cmpl_action()
13784 return (rval); in emlxs_vpi_reg_cmpl_action()
13794 uint32_t rval = 0; in emlxs_vpi_online_action() local
13814 rval = emlxs_vpi_offline_handler(port, vpip, arg1); in emlxs_vpi_online_action()
13815 return (rval); in emlxs_vpi_online_action()
13824 rval = emlxs_vfi_event(port, FCF_EVENT_VPI_ONLINE, vpip); in emlxs_vpi_online_action()
13826 return (rval); in emlxs_vpi_online_action()
13859 uint32_t rval = 0; in emlxs_rpi_action() local
13903 rval = (func)(port, rpip, evt, arg1); in emlxs_rpi_action()
13905 return (rval); in emlxs_rpi_action()
13915 uint32_t rval = 0; in emlxs_rpi_event() local
13945 rval = emlxs_rpi_action(port, rpip, evt, arg1); in emlxs_rpi_event()
13947 return (rval); in emlxs_rpi_event()
13957 uint32_t rval = 0; in emlxs_rpi_state() local
14010 rval = emlxs_rpi_action(port, rpip, FCF_EVENT_STATE_ENTER, arg1); in emlxs_rpi_state()
14012 return (rval); in emlxs_rpi_state()
14171 uint32_t rval = 0; in emlxs_rpi_free() local
14177 rval = emlxs_rpi_state(port, rpip, RPI_STATE_FREE, 0, 0, 0); in emlxs_rpi_free()
14179 return (rval); in emlxs_rpi_free()
14321 uint32_t rval = 0; in emlxs_rpi_free_notify() local
14338 rval = emlxs_rpi_free(port, rpip); in emlxs_rpi_free_notify()
14342 return (rval); in emlxs_rpi_free_notify()
14390 uint32_t rval = 0; in emlxs_rpi_online_notify() local
14455 rval = emlxs_vpi_logi_cmpl_notify(port, rpip); in emlxs_rpi_online_notify()
14457 if (rval && rpip->cmpl) { in emlxs_rpi_online_notify()
14463 return (rval); in emlxs_rpi_online_notify()
14715 uint32_t rval = 1; in emlxs_rpi_online_evt_action() local
14734 rval = emlxs_rpi_state(port, rpip, RPI_STATE_REG, in emlxs_rpi_online_evt_action()
14744 rval = emlxs_rpi_state(port, rpip, RPI_STATE_REG, in emlxs_rpi_online_evt_action()
14749 return (rval); in emlxs_rpi_online_evt_action()
14759 uint32_t rval = 1; in emlxs_rpi_offline_evt_action() local
14778 rval = emlxs_rpi_state(port, rpip, RPI_STATE_FREE, in emlxs_rpi_offline_evt_action()
14797 rval = emlxs_rpi_state(port, rpip, RPI_STATE_UNREG, in emlxs_rpi_offline_evt_action()
14803 return (rval); in emlxs_rpi_offline_evt_action()
14814 uint32_t rval = 1; in emlxs_rpi_pause_evt_action() local
14836 rval = emlxs_rpi_state(port, rpip, RPI_STATE_FREE, in emlxs_rpi_pause_evt_action()
14873 rval = emlxs_rpi_state(port, rpip, RPI_STATE_UNREG, in emlxs_rpi_pause_evt_action()
14878 rval = emlxs_rpi_state(port, rpip, RPI_STATE_PAUSED, in emlxs_rpi_pause_evt_action()
14890 return (rval); in emlxs_rpi_pause_evt_action()
14900 uint32_t rval = 1; in emlxs_rpi_resume_evt_action() local
14920 rval = emlxs_rpi_state(port, rpip, RPI_STATE_RESUME, in emlxs_rpi_resume_evt_action()
14932 return (rval); in emlxs_rpi_resume_evt_action()
14983 uint32_t rval = 0; in emlxs_rpi_offline_action() local
15028 rval = emlxs_rpi_state(port, rpip, RPI_STATE_FREE, 0, 0, 0); in emlxs_rpi_offline_action()
15030 return (rval); in emlxs_rpi_offline_action()
15057 rval = emlxs_rpi_state(port, rpip, RPI_STATE_FREE, 0, 0, 0); in emlxs_rpi_offline_action()
15059 return (rval); in emlxs_rpi_offline_action()
15070 uint32_t rval = 0; in emlxs_rpi_paused_action() local
15093 rval = emlxs_rpi_state(port, rpip, RPI_STATE_UNREG, in emlxs_rpi_paused_action()
15095 return (rval); in emlxs_rpi_paused_action()
15136 uint32_t rval = 0; in emlxs_rpi_unreg_failed_action() local
15163 rval = emlxs_rpi_state(port, rpip, RPI_STATE_OFFLINE, in emlxs_rpi_unreg_failed_action()
15171 rval = emlxs_rpi_state(port, rpip, RPI_STATE_ONLINE, in emlxs_rpi_unreg_failed_action()
15175 return (rval); in emlxs_rpi_unreg_failed_action()
15321 uint32_t rval = 0; in emlxs_rpi_unreg_action() local
15339 rval = emlxs_rpi_state(port, rpip, RPI_STATE_OFFLINE, in emlxs_rpi_unreg_action()
15342 return (rval); in emlxs_rpi_unreg_action()
15360 rval = emlxs_rpi_state(port, rpip, RPI_STATE_OFFLINE, in emlxs_rpi_unreg_action()
15363 return (rval); in emlxs_rpi_unreg_action()
15373 rval = emlxs_rpi_state(port, rpip, RPI_STATE_UNREG_FAILED, in emlxs_rpi_unreg_action()
15376 return (rval); in emlxs_rpi_unreg_action()
15397 rval = EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_NOWAIT, 0); in emlxs_rpi_unreg_action()
15398 if ((rval != MBX_BUSY) && (rval != MBX_SUCCESS)) { in emlxs_rpi_unreg_action()
15401 rval = emlxs_rpi_state(port, rpip, RPI_STATE_UNREG_FAILED, in emlxs_rpi_unreg_action()
15402 FCF_REASON_SEND_FAILED, rval, arg1); in emlxs_rpi_unreg_action()
15404 return (rval); in emlxs_rpi_unreg_action()
15422 uint32_t rval = 0; in emlxs_rpi_unreg_cmpl_action() local
15439 rval = emlxs_rpi_state(port, rpip, RPI_STATE_OFFLINE, in emlxs_rpi_unreg_cmpl_action()
15442 return (rval); in emlxs_rpi_unreg_cmpl_action()
15452 uint32_t rval = 0; in emlxs_rpi_reg_failed_action() local
15478 rval = emlxs_rpi_state(port, rpip, RPI_STATE_OFFLINE, in emlxs_rpi_reg_failed_action()
15486 rval = emlxs_rpi_state(port, rpip, RPI_STATE_UNREG, in emlxs_rpi_reg_failed_action()
15490 return (rval); in emlxs_rpi_reg_failed_action()
15548 uint32_t rval = 0; in emlxs_rpi_reg_mbcmpl() local
15578 rval = emlxs_rpi_reg_handler(port, rpip); in emlxs_rpi_reg_mbcmpl()
15580 if (rval) { in emlxs_rpi_reg_mbcmpl()
15588 rval, 0, 0); in emlxs_rpi_reg_mbcmpl()
15635 uint32_t rval = 0; in emlxs_rpi_reg_action() local
15656 rval = emlxs_rpi_reg_handler(port, rpip); in emlxs_rpi_reg_action()
15658 if (rval) { in emlxs_rpi_reg_action()
15659 rval = emlxs_rpi_state(port, rpip, RPI_STATE_REG_FAILED, in emlxs_rpi_reg_action()
15660 rval, 0, 0); in emlxs_rpi_reg_action()
15662 return (rval); in emlxs_rpi_reg_action()
15665 rval = emlxs_rpi_state(port, rpip, RPI_STATE_ONLINE, in emlxs_rpi_reg_action()
15668 return (rval); in emlxs_rpi_reg_action()
15691 rval = emlxs_rpi_state(port, rpip, RPI_STATE_REG_FAILED, in emlxs_rpi_reg_action()
15694 return (rval); in emlxs_rpi_reg_action()
15703 rval = emlxs_rpi_state(port, rpip, RPI_STATE_REG_FAILED, in emlxs_rpi_reg_action()
15706 return (rval); in emlxs_rpi_reg_action()
15737 rval = EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_NOWAIT, 0); in emlxs_rpi_reg_action()
15738 if ((rval != MBX_BUSY) && (rval != MBX_SUCCESS)) { in emlxs_rpi_reg_action()
15742 rval = emlxs_rpi_state(port, rpip, RPI_STATE_REG_FAILED, in emlxs_rpi_reg_action()
15743 FCF_REASON_SEND_FAILED, rval, arg1); in emlxs_rpi_reg_action()
15745 return (rval); in emlxs_rpi_reg_action()
15763 uint32_t rval = 0; in emlxs_rpi_reg_cmpl_action() local
15781 rval = emlxs_rpi_state(port, rpip, RPI_STATE_ONLINE, in emlxs_rpi_reg_cmpl_action()
15789 rval = emlxs_rpi_state(port, rpip, RPI_STATE_OFFLINE, in emlxs_rpi_reg_cmpl_action()
15793 return (rval); in emlxs_rpi_reg_cmpl_action()
15803 uint32_t rval = 0; in emlxs_rpi_resume_failed_action() local
15823 rval = emlxs_rpi_state(port, rpip, RPI_STATE_UNREG, in emlxs_rpi_resume_failed_action()
15826 return (rval); in emlxs_rpi_resume_failed_action()
15908 uint32_t rval = 0; in emlxs_rpi_resume_action() local
15925 rval = emlxs_rpi_state(port, rpip, RPI_STATE_ONLINE, in emlxs_rpi_resume_action()
15928 return (rval); in emlxs_rpi_resume_action()
15940 rval = emlxs_rpi_state(port, rpip, RPI_STATE_ONLINE, in emlxs_rpi_resume_action()
15943 return (rval); in emlxs_rpi_resume_action()
15957 rval = emlxs_rpi_state(port, rpip, RPI_STATE_RESUME_FAILED, in emlxs_rpi_resume_action()
15960 return (rval); in emlxs_rpi_resume_action()
15982 rval = EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_NOWAIT, 0); in emlxs_rpi_resume_action()
15983 if ((rval != MBX_BUSY) && (rval != MBX_SUCCESS)) { in emlxs_rpi_resume_action()
15986 rval = emlxs_rpi_state(port, rpip, RPI_STATE_RESUME_FAILED, in emlxs_rpi_resume_action()
15987 FCF_REASON_SEND_FAILED, rval, arg1); in emlxs_rpi_resume_action()
15989 return (rval); in emlxs_rpi_resume_action()
16006 uint32_t rval = 0; in emlxs_rpi_resume_cmpl_action() local
16025 rval = emlxs_rpi_state(port, rpip, RPI_STATE_UNREG, in emlxs_rpi_resume_cmpl_action()
16033 rval = emlxs_rpi_state(port, rpip, RPI_STATE_OFFLINE, in emlxs_rpi_resume_cmpl_action()
16042 rval = emlxs_rpi_state(port, rpip, RPI_STATE_ONLINE, in emlxs_rpi_resume_cmpl_action()
16046 return (rval); in emlxs_rpi_resume_cmpl_action()
16057 uint32_t rval = 0; in emlxs_rpi_online_action() local
16082 rval = emlxs_rpi_state(port, p2p_rpip, RPI_STATE_REG, in emlxs_rpi_online_action()
16102 rval = emlxs_vpi_event(port, FCF_EVENT_RPI_ONLINE, rpip); in emlxs_rpi_online_action()
16104 return (rval); in emlxs_rpi_online_action()