Lines Matching +full:per +full:- +full:context
1 /*-
67 ocs_t *ocs = io->ocs; in ocs_d_send_prli_rsp()
68 ocs_node_t *node = io->node; in ocs_d_send_prli_rsp()
70 /* If the back-end doesn't support the fc-type, we send an LS_RJT */ in ocs_d_send_prli_rsp()
71 if (ocs->fc_type != node->fc_type) { in ocs_d_send_prli_rsp()
72 node_printf(node, "PRLI rejected by target-server, fc-type not supported\n"); in ocs_d_send_prli_rsp()
75 node->shutdown_reason = OCS_NODE_SHUTDOWN_DEFAULT; in ocs_d_send_prli_rsp()
79 /* If the back-end doesn't want to talk to this initiator, we send an LS_RJT */ in ocs_d_send_prli_rsp()
80 if (node->sport->enable_tgt && (ocs_scsi_validate_initiator(node) == 0)) { in ocs_d_send_prli_rsp()
81 node_printf(node, "PRLI rejected by target-server\n"); in ocs_d_send_prli_rsp()
84 node->shutdown_reason = OCS_NODE_SHUTDOWN_DEFAULT; in ocs_d_send_prli_rsp()
88 ocs_send_prli_acc(io, ox_id, ocs->fc_type, NULL, NULL); in ocs_d_send_prli_rsp()
101 * @param ctx Remote node state machine context.
103 * @param arg Per event optional argument.
122 if (node->init && !node->targ) { in __ocs_d_initiate_shutdown()
123 ocs_log_debug(node->ocs, in __ocs_d_initiate_shutdown()
125 node->display_name, node->wwpn, node->wwnn); in __ocs_d_initiate_shutdown()
127 if (node->sport->enable_tgt) { in __ocs_d_initiate_shutdown()
135 } else if (node->targ && !node->init) { in __ocs_d_initiate_shutdown()
136 ocs_log_debug(node->ocs, in __ocs_d_initiate_shutdown()
138 node->display_name, node->wwpn, node->wwnn); in __ocs_d_initiate_shutdown()
140 if (node->sport->enable_ini) { in __ocs_d_initiate_shutdown()
148 } else if (node->init && node->targ) { in __ocs_d_initiate_shutdown()
149 ocs_log_debug(node->ocs, in __ocs_d_initiate_shutdown()
151 node->display_name, node->wwpn, node->wwnn); in __ocs_d_initiate_shutdown()
153 if (node->sport->enable_tgt) { in __ocs_d_initiate_shutdown()
162 if (node->sport->enable_ini) { in __ocs_d_initiate_shutdown()
180 if (node->attached) { in __ocs_d_initiate_shutdown()
182 * or sometime later, will check node->attached later in in __ocs_d_initiate_shutdown()
185 rc = ocs_hw_node_detach(&ocs->hw, &node->rnode); in __ocs_d_initiate_shutdown()
186 if (node->rnode.free_group) { in __ocs_d_initiate_shutdown()
187 ocs_remote_node_group_free(node->node_group); in __ocs_d_initiate_shutdown()
188 node->node_group = NULL; in __ocs_d_initiate_shutdown()
189 node->rnode.free_group = FALSE; in __ocs_d_initiate_shutdown()
199 if (!node->init && !node->targ){ in __ocs_d_initiate_shutdown()
228 * @param ctx Remote node state machine context.
230 * @param arg Per event optional argument.
241 node = ctx->app; in __ocs_d_common()
243 ocs = node->ocs; in __ocs_d_common()
249 ocs_log_debug(ocs, "[%s] %-20s %-20s\n", node->display_name, funcname, ocs_sm_event_name(evt)); in __ocs_d_common()
250 node->shutdown_reason = OCS_NODE_SHUTDOWN_DEFAULT; in __ocs_d_common()
254 ocs_log_debug(ocs, "[%s] %-20s %-20s\n", node->display_name, funcname, ocs_sm_event_name(evt)); in __ocs_d_common()
255 node->shutdown_reason = OCS_NODE_SHUTDOWN_EXPLICIT_LOGO; in __ocs_d_common()
259 ocs_log_debug(ocs, "[%s] %-20s %-20s\n", node->display_name, funcname, ocs_sm_event_name(evt)); in __ocs_d_common()
260 node->shutdown_reason = OCS_NODE_SHUTDOWN_IMPLICIT_LOGO; in __ocs_d_common()
274 * @brief Device node state machine: Wait for a domain-attach completion in loop topology.
277 * State waits for a domain-attached completion while in loop topology.
279 * @param ctx Remote node state machine context.
281 * @param arg Per event optional argument.
320 * call to the target-server/initiator-client and needs to wait for that work to complete.
322 * @param ctx Remote node state machine context.
324 * @param arg per event optional argument
357 ocs_assert(node->els_req_cnt, NULL); in __ocs_d_wait_del_ini_tgt()
358 node->els_req_cnt--; in __ocs_d_wait_del_ini_tgt()
364 node->shutdown_reason = OCS_NODE_SHUTDOWN_DEFAULT; in __ocs_d_wait_del_ini_tgt()
386 * target-server/initiator-client and needs to wait for that work to complete.
388 * @param ctx Remote node state machine context.
390 * @param arg Per event optional argument.
427 ocs_assert(node->els_req_cnt, NULL); in __ocs_d_wait_del_node()
428 node->els_req_cnt--; in __ocs_d_wait_del_node()
434 node->shutdown_reason = OCS_NODE_SHUTDOWN_DEFAULT; in __ocs_d_wait_del_node()
469 ocs_node_t *node = io->node; in ocs_send_ls_acc_after_attach()
470 uint16_t ox_id = ocs_be16toh(hdr->ox_id); in ocs_send_ls_acc_after_attach()
472 ocs_assert(node->send_ls_acc == OCS_NODE_SEND_LS_ACC_NONE); in ocs_send_ls_acc_after_attach()
474 node->ls_acc_oxid = ox_id; in ocs_send_ls_acc_after_attach()
475 node->send_ls_acc = ls; in ocs_send_ls_acc_after_attach()
476 node->ls_acc_io = io; in ocs_send_ls_acc_after_attach()
477 node->ls_acc_did = fc_be24toh(hdr->d_id); in ocs_send_ls_acc_after_attach()
496 node->init = (ocs_be16toh(prli->service_params) & FC_PRLI_INITIATOR_FUNCTION) != 0; in ocs_process_prli_payload()
497 node->targ = (ocs_be16toh(prli->service_params) & FC_PRLI_TARGET_FUNCTION) != 0; in ocs_process_prli_payload()
498 node->fcp2device = (ocs_be16toh(prli->service_params) & FC_PRLI_RETRY) != 0; in ocs_process_prli_payload()
499 node->fc_type = prli->type; in ocs_process_prli_payload()
519 ocs_node_t *node = io->node; in ocs_process_abts()
520 ocs_t *ocs = node->ocs; in ocs_process_abts()
521 uint16_t ox_id = ocs_be16toh(hdr->ox_id); in ocs_process_abts()
522 uint16_t rx_id = ocs_be16toh(hdr->rx_id); in ocs_process_abts()
528 if (abortio != NULL && (ocs_ref_get_unless_zero(&abortio->ref) != 0)) { in ocs_process_abts()
537 io->display_name = "abts"; in ocs_process_abts()
538 io->init_task_tag = ox_id; in ocs_process_abts()
543 * regardless of the IO context's rx_id in ocs_process_abts()
545 io->abort_rx_id = rx_id; in ocs_process_abts()
548 io->tmf_cmd = OCS_SCSI_TMF_ABORT_TASK; in ocs_process_abts()
549 ocs_scsi_recv_tmf(io, abortio->tgt_io.lun, OCS_SCSI_TMF_ABORT_TASK, abortio, 0); in ocs_process_abts()
555 ocs_ref_put(&abortio->ref); /* ocs_ref_get(): same function */ in ocs_process_abts()
574 * @param ctx Remote node state machine context.
576 * @param arg Per event optional argument.
598 ocs_assert(node->els_cmpl_cnt, NULL); in __ocs_d_wait_plogi_acc_cmpl()
599 node->els_cmpl_cnt--; in __ocs_d_wait_plogi_acc_cmpl()
600 node->shutdown_reason = OCS_NODE_SHUTDOWN_DEFAULT; in __ocs_d_wait_plogi_acc_cmpl()
605 ocs_assert(node->els_cmpl_cnt, NULL); in __ocs_d_wait_plogi_acc_cmpl()
606 node->els_cmpl_cnt--; in __ocs_d_wait_plogi_acc_cmpl()
622 * @param ctx Remote node state machine context.
624 * @param arg Per event optional argument.
654 ocs_assert(node->els_req_cnt, NULL); in __ocs_d_wait_logo_rsp()
655 node->els_req_cnt--; in __ocs_d_wait_logo_rsp()
674 * @param ctx Remote node state machine context.
676 * @param arg Per event optional argument.
703 ocs_assert(node->els_req_cnt, NULL); in __ocs_d_wait_prlo_rsp()
704 node->els_req_cnt--; in __ocs_d_wait_prlo_rsp()
731 node->send_plogi = send_plogi; in ocs_node_init_device()
732 …if ((node->ocs->nodedb_mask & OCS_NODEDB_PAUSE_NEW_NODES) && !FC_ADDR_IS_DOMAIN_CTRL(node->rnode.f… in ocs_node_init_device()
733 node->nodedb_state = __ocs_d_init; in ocs_node_init_device()
748 * @param ctx Remote node state machine context.
750 * @param arg Per event optional argument.
751 * - OCS_EVT_ENTER: (uint8_t *) - 1 to send a PLOGI on
752 * entry (initiator-only); 0 indicates a PLOGI is
753 * not sent on entry (initiator-only). Not applicable for a target.
770 if (node->send_plogi) { in __ocs_d_init()
772 if (node->sport->enable_ini && node->sport->domain->attached) { in __ocs_d_init()
778 node->sport->enable_ini, node->sport->domain->attached); in __ocs_d_init()
784 fc_header_t *hdr = cbdata->header->dma.virt; in __ocs_d_init()
785 uint32_t d_id = fc_be24toh(hdr->d_id); in __ocs_d_init()
787 ocs_node_save_sparms(node, cbdata->payload->dma.virt); in __ocs_d_init()
788 ocs_send_ls_acc_after_attach(cbdata->io, cbdata->header->dma.virt, OCS_NODE_SEND_LS_ACC_PLOGI); in __ocs_d_init()
791 if (node->sport->domain->attached) { in __ocs_d_init()
801 switch (node->sport->topology) { in __ocs_d_init()
804 ocs_domain_attach(node->sport->domain, d_id); in __ocs_d_init()
829 node->sport->topology); in __ocs_d_init()
842 fc_header_t *hdr = cbdata->header->dma.virt; in __ocs_d_init()
845 ocs_assert(ocs_rnode_is_nport(cbdata->payload->dma.virt), NULL); in __ocs_d_init()
848 ocs_domain_save_sparms(node->sport->domain, cbdata->payload->dma.virt); in __ocs_d_init()
852 ocs_send_flogi_p2p_acc(cbdata->io, ocs_be16toh(hdr->ox_id), fc_be24toh(hdr->d_id), NULL, NULL); in __ocs_d_init()
853 if (ocs_p2p_setup(node->sport)) { in __ocs_d_init()
864 fc_header_t *hdr = cbdata->header->dma.virt; in __ocs_d_init()
866 if (!node->sport->domain->attached) { in __ocs_d_init()
873 ocs_send_logo_acc(cbdata->io, ocs_be16toh(hdr->ox_id), NULL, NULL); in __ocs_d_init()
883 fc_header_t *hdr = cbdata->header->dma.virt; in __ocs_d_init()
884 if (!node->sport->domain->attached) { in __ocs_d_init()
892 ocs_send_ls_rjt(cbdata->io, ocs_be16toh(hdr->ox_id), in __ocs_d_init()
902 if (!node->sport->domain->attached) { in __ocs_d_init()
939 * State is entered when an initiator-capable node has sent
942 * @param ctx Remote node state machine context.
944 * @param arg Per event optional argument.
962 * when PLOGI that was sent ultimately completes, it'll be a no-op in __ocs_d_wait_plogi_rsp()
967 ocs_node_save_sparms(node, cbdata->payload->dma.virt); in __ocs_d_wait_plogi_rsp()
968 ocs_send_ls_acc_after_attach(cbdata->io, cbdata->header->dma.virt, OCS_NODE_SEND_LS_ACC_PLOGI); in __ocs_d_wait_plogi_rsp()
969 /* sm: domain->attached / ocs_node_attach */ in __ocs_d_wait_plogi_rsp()
986 ocs_process_prli_payload(node, cbdata->payload->dma.virt); in __ocs_d_wait_plogi_rsp()
987 if (ocs->fc_type == node->fc_type) { in __ocs_d_wait_plogi_rsp()
988 ocs_send_ls_acc_after_attach(cbdata->io, cbdata->header->dma.virt, OCS_NODE_SEND_LS_ACC_PRLI); in __ocs_d_wait_plogi_rsp()
1003 fc_header_t *hdr = cbdata->header->dma.virt; in __ocs_d_wait_plogi_rsp()
1005 ocs_send_ls_rjt(cbdata->io, ocs_be16toh(hdr->ox_id), in __ocs_d_wait_plogi_rsp()
1017 ocs_assert(node->els_req_cnt, NULL); in __ocs_d_wait_plogi_rsp()
1018 node->els_req_cnt--; in __ocs_d_wait_plogi_rsp()
1020 ocs_node_save_sparms(node, cbdata->els->els_rsp.virt); in __ocs_d_wait_plogi_rsp()
1021 ocs_display_sparams(node->display_name, "plogi rcvd resp", 0, NULL, in __ocs_d_wait_plogi_rsp()
1022 ((uint8_t*)cbdata->els->els_rsp.virt) + 4); in __ocs_d_wait_plogi_rsp()
1035 ocs_assert(node->els_req_cnt, NULL); in __ocs_d_wait_plogi_rsp()
1036 node->els_req_cnt--; in __ocs_d_wait_plogi_rsp()
1044 ocs_assert(node->els_req_cnt, NULL); in __ocs_d_wait_plogi_rsp()
1045 node->els_req_cnt--; in __ocs_d_wait_plogi_rsp()
1070 * State is entered when an initiator-capable node has sent
1075 * @param ctx Remote node state machine context.
1077 * @param arg Per event optional argument.
1115 ocs_assert(node->els_req_cnt, NULL); in __ocs_d_wait_plogi_rsp_recvd_prli()
1116 node->els_req_cnt--; in __ocs_d_wait_plogi_rsp_recvd_prli()
1118 ocs_node_save_sparms(node, cbdata->els->els_rsp.virt); in __ocs_d_wait_plogi_rsp_recvd_prli()
1119 ocs_display_sparams(node->display_name, "plogi rcvd resp", 0, NULL, in __ocs_d_wait_plogi_rsp_recvd_prli()
1120 ((uint8_t*)cbdata->els->els_rsp.virt) + 4); in __ocs_d_wait_plogi_rsp_recvd_prli()
1134 ocs_assert(node->els_req_cnt, NULL); in __ocs_d_wait_plogi_rsp_recvd_prli()
1135 node->els_req_cnt--; in __ocs_d_wait_plogi_rsp_recvd_prli()
1152 * Waits for a domain-attach complete ok event.
1154 * @param ctx Remote node state machine context.
1156 * @param arg Per event optional argument.
1179 ocs_assert(node->sport->domain->attached, NULL); in __ocs_d_wait_domain_attach()
1204 * @param ctx Remote node state machine context.
1206 * @param arg Per event optional argument.
1230 ocs_assert(!node->sport->domain->attached, NULL); in __ocs_d_wait_topology_notify()
1231 ocs_assert(node->send_ls_acc == OCS_NODE_SEND_LS_ACC_PLOGI, NULL); in __ocs_d_wait_topology_notify()
1243 ocs_domain_attach(node->sport->domain, node->ls_acc_did); in __ocs_d_wait_topology_notify()
1254 ocs_assert(node->sport->domain->attached, NULL); in __ocs_d_wait_topology_notify()
1275 * @param ctx Remote node state machine context.
1277 * @param arg Per event optional argument.
1299 node->attached = TRUE; in __ocs_d_wait_node_attach()
1300 switch (node->send_ls_acc) { in __ocs_d_wait_node_attach()
1304 ocs_send_plogi_acc(node->ls_acc_io, node->ls_acc_oxid, NULL, NULL); in __ocs_d_wait_node_attach()
1306 node->send_ls_acc = OCS_NODE_SEND_LS_ACC_NONE; in __ocs_d_wait_node_attach()
1307 node->ls_acc_io = NULL; in __ocs_d_wait_node_attach()
1311 ocs_d_send_prli_rsp(node->ls_acc_io, node->ls_acc_oxid); in __ocs_d_wait_node_attach()
1312 node->send_ls_acc = OCS_NODE_SEND_LS_ACC_NONE; in __ocs_d_wait_node_attach()
1313 node->ls_acc_io = NULL; in __ocs_d_wait_node_attach()
1327 node->attached = FALSE; in __ocs_d_wait_node_attach()
1329 node->shutdown_reason = OCS_NODE_SHUTDOWN_DEFAULT; in __ocs_d_wait_node_attach()
1336 node->shutdown_reason = OCS_NODE_SHUTDOWN_DEFAULT; in __ocs_d_wait_node_attach()
1341 node->shutdown_reason = OCS_NODE_SHUTDOWN_EXPLICIT_LOGO; in __ocs_d_wait_node_attach()
1346 node->shutdown_reason = OCS_NODE_SHUTDOWN_IMPLICIT_LOGO; in __ocs_d_wait_node_attach()
1362 * @param ctx Remote node state machine context.
1364 * @param arg Per event optional argument.
1387 node->attached = TRUE; in __ocs_d_wait_attach_evt_shutdown()
1394 node->attached = FALSE; in __ocs_d_wait_attach_evt_shutdown()
1402 node->shutdown_reason = OCS_NODE_SHUTDOWN_DEFAULT; in __ocs_d_wait_attach_evt_shutdown()
1424 * @param ctx Remote node state machine context.
1426 * @param arg Per event optional argument
1443 if (node->sport->enable_ini && !FC_ADDR_IS_DOMAIN_CTRL(node->rnode.fc_id) in __ocs_d_port_logged_in()
1444 && !node->sent_prli) { in __ocs_d_port_logged_in()
1447 node->sent_prli = TRUE; in __ocs_d_port_logged_in()
1454 if (node->sport->enable_tgt) { in __ocs_d_port_logged_in()
1464 fc_header_t *hdr = cbdata->header->dma.virt; in __ocs_d_port_logged_in()
1468 ocs_process_prli_payload(node, cbdata->payload->dma.virt); in __ocs_d_port_logged_in()
1469 ocs_d_send_prli_rsp(cbdata->io, ocs_be16toh(hdr->ox_id)); in __ocs_d_port_logged_in()
1478 ocs_assert(node->els_req_cnt, NULL); in __ocs_d_port_logged_in()
1479 node->els_req_cnt--; in __ocs_d_port_logged_in()
1481 ocs_process_prli_payload(node, cbdata->els->els_rsp.virt); in __ocs_d_port_logged_in()
1491 ocs_assert(node->els_req_cnt, NULL); in __ocs_d_port_logged_in()
1492 node->els_req_cnt--; in __ocs_d_port_logged_in()
1504 ocs_assert(node->els_req_cnt, NULL); in __ocs_d_port_logged_in()
1505 node->els_req_cnt--; in __ocs_d_port_logged_in()
1510 /* Normal T, I+T, target-server rejected the process login */ in __ocs_d_port_logged_in()
1514 ocs_assert(node->els_cmpl_cnt, NULL); in __ocs_d_port_logged_in()
1515 node->els_cmpl_cnt--; in __ocs_d_port_logged_in()
1522 ocs_node_save_sparms(node, cbdata->payload->dma.virt); in __ocs_d_port_logged_in()
1523 ocs_send_ls_acc_after_attach(cbdata->io, cbdata->header->dma.virt, OCS_NODE_SEND_LS_ACC_PLOGI); in __ocs_d_port_logged_in()
1532 fc_header_t *hdr = cbdata->header->dma.virt; in __ocs_d_port_logged_in()
1533 node_printf(node, "%s received attached=%d\n", ocs_sm_event_name(evt), node->attached); in __ocs_d_port_logged_in()
1534 ocs_send_logo_acc(cbdata->io, ocs_be16toh(hdr->ox_id), NULL, NULL); in __ocs_d_port_logged_in()
1554 * @param ctx Remote node state machine context.
1556 * @param arg Per event optional argument
1580 ocs_assert(node->els_cmpl_cnt, NULL); in __ocs_d_wait_logo_acc_cmpl()
1581 node->els_cmpl_cnt--; in __ocs_d_wait_logo_acc_cmpl()
1596 * @param ctx Remote node state machine context.
1598 * @param arg Per event optional argument.
1615 node->fcp_enabled = TRUE; in __ocs_d_device_ready()
1616 if (node->init) { in __ocs_d_device_ready()
1617 device_printf(ocs->dev, "[%s] found (initiator) WWPN %s WWNN %s\n", node->display_name, in __ocs_d_device_ready()
1618 node->wwpn, node->wwnn); in __ocs_d_device_ready()
1619 if (node->sport->enable_tgt) in __ocs_d_device_ready()
1622 if (node->targ) { in __ocs_d_device_ready()
1623 device_printf(ocs->dev, "[%s] found (target) WWPN %s WWNN %s\n", node->display_name, in __ocs_d_device_ready()
1624 node->wwpn, node->wwnn); in __ocs_d_device_ready()
1625 if (node->sport->enable_ini) in __ocs_d_device_ready()
1631 node->fcp_enabled = FALSE; in __ocs_d_device_ready()
1637 ocs_node_save_sparms(node, cbdata->payload->dma.virt); in __ocs_d_device_ready()
1638 ocs_send_ls_acc_after_attach(cbdata->io, cbdata->header->dma.virt, OCS_NODE_SEND_LS_ACC_PLOGI); in __ocs_d_device_ready()
1646 fc_header_t *hdr = cbdata->header->dma.virt; in __ocs_d_device_ready()
1647 ocs_send_plogi_acc(cbdata->io, ocs_be16toh(hdr->ox_id), NULL, NULL); in __ocs_d_device_ready()
1653 fc_header_t *hdr = cbdata->header->dma.virt; in __ocs_d_device_ready()
1655 ocs_process_prli_payload(node, cbdata->payload->dma.virt); in __ocs_d_device_ready()
1658 if (ocs->fc_type == node->fc_type) in __ocs_d_device_ready()
1659 ocs_send_prli_acc(cbdata->io, ocs_be16toh(hdr->ox_id), ocs->fc_type, NULL, NULL); in __ocs_d_device_ready()
1661 ocs_send_ls_rjt(cbdata->io, ocs_be16toh(hdr->ox_id), FC_REASON_UNABLE_TO_PERFORM, in __ocs_d_device_ready()
1667 fc_header_t *hdr = cbdata->header->dma.virt; in __ocs_d_device_ready()
1668 fc_prlo_payload_t *prlo = cbdata->payload->dma.virt; in __ocs_d_device_ready()
1671 if (ocs->fc_type == prlo->type) in __ocs_d_device_ready()
1672 ocs_send_prlo_acc(cbdata->io, ocs_be16toh(hdr->ox_id), ocs->fc_type, NULL, NULL); in __ocs_d_device_ready()
1674 ocs_send_ls_rjt(cbdata->io, ocs_be16toh(hdr->ox_id), FC_REASON_UNABLE_TO_PERFORM, in __ocs_d_device_ready()
1681 fc_header_t *hdr = cbdata->header->dma.virt; in __ocs_d_device_ready()
1682 node_printf(node, "%s received attached=%d\n", ocs_sm_event_name(evt), node->attached); in __ocs_d_device_ready()
1683 ocs_send_logo_acc(cbdata->io, ocs_be16toh(hdr->ox_id), NULL, NULL); in __ocs_d_device_ready()
1689 fc_header_t *hdr = cbdata->header->dma.virt; in __ocs_d_device_ready()
1690 ocs_send_adisc_acc(cbdata->io, ocs_be16toh(hdr->ox_id), NULL, NULL); in __ocs_d_device_ready()
1695 fc_header_t *hdr = cbdata->header->dma.virt; in __ocs_d_device_ready()
1697 ocs_send_ls_acc(cbdata->io, ocs_be16toh(hdr->ox_id), NULL, NULL); in __ocs_d_device_ready()
1702 ocs_process_abts(cbdata->io, cbdata->header->dma.virt); in __ocs_d_device_ready()
1712 if (node->sport->enable_rscn) { in __ocs_d_device_ready()
1719 ocs_assert(node->els_cmpl_cnt, NULL); in __ocs_d_device_ready()
1720 node->els_cmpl_cnt--; in __ocs_d_device_ready()
1725 ocs_assert(node->els_cmpl_cnt, NULL); in __ocs_d_device_ready()
1726 node->els_cmpl_cnt--; in __ocs_d_device_ready()
1745 * @param ctx Remote node state machine context.
1747 * @param arg Per event optional argument
1766 device_printf(ocs->dev, "[%s] missing (%s) WWPN %s WWNN %s\n", node->display_name, in __ocs_d_device_gone()
1767 labels[(node->targ << 1) | (node->init)], node->wwpn, node->wwnn); in __ocs_d_device_gone()
1821 ocs_node_save_sparms(node, cbdata->payload->dma.virt); in __ocs_d_device_gone()
1822 ocs_send_ls_acc_after_attach(cbdata->io, cbdata->header->dma.virt, OCS_NODE_SEND_LS_ACC_PLOGI); in __ocs_d_device_gone()
1838 fc_header_t *hdr = cbdata->header->dma.virt; in __ocs_d_device_gone()
1839 node_printf(node, "%s received attached=%d\n", ocs_sm_event_name(evt), node->attached); in __ocs_d_device_gone()
1841 ocs_send_logo_acc(cbdata->io, ocs_be16toh(hdr->ox_id), NULL, NULL); in __ocs_d_device_gone()
1860 * @param ctx Remote node state machine context.
1862 * @param arg Per event optional argument.
1880 ocs_assert(node->els_req_cnt, NULL); in __ocs_d_wait_adisc_rsp()
1881 node->els_req_cnt--; in __ocs_d_wait_adisc_rsp()
1892 ocs_assert(node->els_req_cnt, NULL); in __ocs_d_wait_adisc_rsp()
1893 node->els_req_cnt--; in __ocs_d_wait_adisc_rsp()
1900 * so we need to abort the ADISC, and re-login with PLOGI in __ocs_d_wait_adisc_rsp()
1903 fc_header_t *hdr = cbdata->header->dma.virt; in __ocs_d_wait_adisc_rsp()
1904 node_printf(node, "%s received attached=%d\n", ocs_sm_event_name(evt), node->attached); in __ocs_d_wait_adisc_rsp()
1905 ocs_send_logo_acc(cbdata->io, ocs_be16toh(hdr->ox_id), NULL, NULL); in __ocs_d_wait_adisc_rsp()