Lines Matching +full:per +full:- +full:context

1 /*-
36 * - Fabric logins.
37 * - Fabric controller events.
38 * - Name/directory services interaction.
39 * - Point-to-point logins.
45 @defgroup p2p_sm Node State Machine: Point-to-Point Node States
67 * Send an FLOGI to a well-known fabric.
69 * @param ctx Remote node sm context.
71 * @param arg Per event optional argument.
84 ocs_log_debug(node->ocs, ">>> reenter !!\n"); in __ocs_fabric_init()
115 node->sport->topology = topology; in ocs_fabric_set_topology()
131 ocs_sport_topology_e topology = node->sport->topology; in ocs_fabric_notify_topology()
134 ocs_sport_lock(node->sport); in ocs_fabric_notify_topology()
135 ocs_list_foreach_safe(&node->sport->node_list, tmp_node, next) { in ocs_fabric_notify_topology()
140 ocs_sport_unlock(node->sport); in ocs_fabric_notify_topology()
150 * @param ctx Remote node state machine context.
152 * @param arg Per event optional argument.
170 ocs_assert(node->els_req_cnt, NULL); in __ocs_fabric_flogi_wait_rsp()
171 node->els_req_cnt--; in __ocs_fabric_flogi_wait_rsp()
173 ocs_domain_save_sparms(node->sport->domain, cbdata->els->els_rsp.virt); in __ocs_fabric_flogi_wait_rsp()
175 ocs_display_sparams(node->display_name, "flogi rcvd resp", 0, NULL, in __ocs_fabric_flogi_wait_rsp()
176 ((uint8_t*)cbdata->els->els_rsp.virt) + 4); in __ocs_fabric_flogi_wait_rsp()
179 if (ocs_rnode_is_nport(cbdata->els->els_rsp.virt)) { in __ocs_fabric_flogi_wait_rsp()
182 if (ocs_p2p_setup(node->sport)) { in __ocs_fabric_flogi_wait_rsp()
184 node->shutdown_reason = OCS_NODE_SHUTDOWN_DEFAULT; in __ocs_fabric_flogi_wait_rsp()
187 if (node->sport->p2p_winner) { in __ocs_fabric_flogi_wait_rsp()
189 if (!node->sport->domain->attached) { in __ocs_fabric_flogi_wait_rsp()
191 ocs_domain_attach(node->sport->domain, node->sport->p2p_port_id); in __ocs_fabric_flogi_wait_rsp()
201 node->shutdown_reason = OCS_NODE_SHUTDOWN_DEFAULT; in __ocs_fabric_flogi_wait_rsp()
210 ocs_assert(!node->sport->domain->attached, NULL); in __ocs_fabric_flogi_wait_rsp()
211 ocs_domain_attach(node->sport->domain, cbdata->ext_status); in __ocs_fabric_flogi_wait_rsp()
221 ocs_sport_t *sport = node->sport; in __ocs_fabric_flogi_wait_rsp()
229 ocs_assert(node->els_req_cnt, NULL); in __ocs_fabric_flogi_wait_rsp()
230 node->els_req_cnt--; in __ocs_fabric_flogi_wait_rsp()
232 if (node->sport->topology == OCS_SPORT_TOPOLOGY_P2P && !node->sport->p2p_winner) { in __ocs_fabric_flogi_wait_rsp()
234 node->shutdown_reason = OCS_NODE_SHUTDOWN_DEFAULT; in __ocs_fabric_flogi_wait_rsp()
240 sport->display_name); in __ocs_fabric_flogi_wait_rsp()
241 ocs_sm_post_event(&sport->sm, OCS_EVT_SHUTDOWN, NULL); in __ocs_fabric_flogi_wait_rsp()
260 * @param ctx Remote node state machine context.
262 * @param arg Per event optional argument.
295 * @param ctx Remote node state machine context.
297 * @param arg Per event optional argument.
316 ocs_display_sparams(node->display_name, "fdisc rcvd resp", 0, NULL, in __ocs_fabric_fdisc_wait_rsp()
317 ((uint8_t*)cbdata->els->els_rsp.virt) + 4); in __ocs_fabric_fdisc_wait_rsp()
319 ocs_assert(node->els_req_cnt, NULL); in __ocs_fabric_fdisc_wait_rsp()
320 node->els_req_cnt--; in __ocs_fabric_fdisc_wait_rsp()
322 ocs_sport_attach(node->sport, cbdata->ext_status); in __ocs_fabric_fdisc_wait_rsp()
332 ocs_assert(node->els_req_cnt, NULL); in __ocs_fabric_fdisc_wait_rsp()
333 node->els_req_cnt--; in __ocs_fabric_fdisc_wait_rsp()
336 ocs_sm_post_event(&node->sport->sm, OCS_EVT_SHUTDOWN, NULL); in __ocs_fabric_fdisc_wait_rsp()
355 * @param ctx Remote node state machine context.
357 * @param arg Per event optional argument.
380 rc = ocs_start_ns_node(node->sport); in __ocs_fabric_wait_domain_attach()
386 if (node->sport->enable_rscn) { in __ocs_fabric_wait_domain_attach()
387 rc = ocs_start_fabctl_node(node->sport); in __ocs_fabric_wait_domain_attach()
409 * @param ctx Remote node state machine context.
411 * @param arg Per event optional argument.
438 * A PLOGI is sent to the well-known name/directory services node.
440 * @param ctx Remote node state machine context.
442 * @param arg Per event optional argument.
475 * @param ctx Remote node state machine context.
477 * @param arg Per event optional argument.
496 ocs_assert(node->els_req_cnt, NULL); in __ocs_ns_plogi_wait_rsp()
497 node->els_req_cnt--; in __ocs_ns_plogi_wait_rsp()
499 ocs_node_save_sparms(node, cbdata->els->els_rsp.virt); in __ocs_ns_plogi_wait_rsp()
500 ocs_display_sparams(node->display_name, "plogi rcvd resp", 0, NULL, in __ocs_ns_plogi_wait_rsp()
501 ((uint8_t*)cbdata->els->els_rsp.virt) + 4); in __ocs_ns_plogi_wait_rsp()
525 * @param ctx Remote node state machine context.
527 * @param arg Per event optional argument.
548 node->attached = TRUE; in __ocs_ns_wait_node_attach()
557 node->attached = FALSE; in __ocs_ns_wait_node_attach()
559 node->shutdown_reason = OCS_NODE_SHUTDOWN_DEFAULT; in __ocs_ns_wait_node_attach()
565 node->shutdown_reason = OCS_NODE_SHUTDOWN_DEFAULT; in __ocs_ns_wait_node_attach()
591 * @param ctx Remote node state machine context.
593 * @param arg Per event optional argument.
615 node->attached = TRUE; in __ocs_fabric_wait_attach_evt_shutdown()
621 node->attached = FALSE; in __ocs_fabric_wait_attach_evt_shutdown()
647 * @param ctx Remote node state machine context.
649 * @param arg Per event optional argument.
665 ocs_assert(node->els_req_cnt, NULL); in __ocs_ns_rftid_wait_rsp()
666 node->els_req_cnt--; in __ocs_ns_rftid_wait_rsp()
694 * @param ctx Remote node state machine context.
696 * @param arg Per event optional argument.
712 ocs_assert(node->els_req_cnt, NULL); in __ocs_ns_rffid_wait_rsp()
713 node->els_req_cnt--; in __ocs_ns_rffid_wait_rsp()
714 if (node->sport->enable_rscn) { in __ocs_ns_rffid_wait_rsp()
746 * @param ctx Remote node state machine context.
748 * @param arg Per event optional argument.
765 ocs_assert(node->els_req_cnt, NULL); in __ocs_ns_gidpt_wait_rsp()
766 node->els_req_cnt--; in __ocs_ns_gidpt_wait_rsp()
768 ocs_process_gidpt_payload(node, cbdata->els->els_rsp.virt, cbdata->els->els_rsp.len); in __ocs_ns_gidpt_wait_rsp()
777 ocs_assert(node->els_req_cnt, NULL); in __ocs_ns_gidpt_wait_rsp()
778 node->els_req_cnt--; in __ocs_ns_gidpt_wait_rsp()
786 node->rscn_pending = 1; in __ocs_ns_gidpt_wait_rsp()
806 * @param ctx Remote node state machine context.
808 * @param arg Per event optional argument.
821 if (!node->rscn_pending) { in __ocs_ns_idle()
825 node->rscn_pending = 0; in __ocs_ns_idle()
832 * (not initiator), and tgt_rscn_delay is non-zero, in __ocs_ns_idle()
835 if ((ocs->tgt_rscn_delay_msec != 0) && !node->sport->enable_ini && node->sport->enable_tgt && in __ocs_ns_idle()
870 ocs_del_timer(&node->gidpt_delay_timer); in gidpt_delay_timer_cb()
871 …rc = ocs_xport_control(node->ocs->xport, OCS_XPORT_POST_NODE_EVENT, node, OCS_EVT_GIDPT_DELAY_EXPI… in gidpt_delay_timer_cb()
873 ocs_log_err(node->ocs, "ocs_xport_control(OCS_XPORT_POST_NODE_EVENT) failed: %d\n", rc); in gidpt_delay_timer_cb()
884 * @param ctx Remote node state machine context.
886 * @param arg Per event optional argument.
901 ocs_assert(ocs->tgt_rscn_delay_msec != 0, NULL); in __ocs_ns_gidpt_delay()
907 delay_msec = ocs->tgt_rscn_delay_msec; in __ocs_ns_gidpt_delay()
908 if ((ocs_msectime() - node->time_last_gidpt_msec) < ocs->tgt_rscn_period_msec) { in __ocs_ns_gidpt_delay()
909 delay_msec = ocs->tgt_rscn_period_msec; in __ocs_ns_gidpt_delay()
912 ocs_setup_timer(ocs, &node->gidpt_delay_timer, gidpt_delay_timer_cb, node, delay_msec); in __ocs_ns_gidpt_delay()
918 node->time_last_gidpt_msec = ocs_msectime(); in __ocs_ns_gidpt_delay()
925 ocs_log_debug(ocs, "RSCN received while in GIDPT delay - no action\n"); in __ocs_ns_gidpt_delay()
942 * Issue a PLOGI to a well-known fabric controller address.
944 * @param ctx Remote node state machine context.
946 * @param arg Per event optional argument.
953 ocs_node_t *node = ctx->app; in __ocs_fabctl_init()
965 node->attached = TRUE; in __ocs_fabctl_init()
985 * @param ctx Remote node state machine context.
987 * @param arg Per event optional argument.
1009 node->attached = TRUE; in __ocs_fabctl_wait_node_attach()
1017 node->attached = FALSE; in __ocs_fabctl_wait_node_attach()
1019 node->shutdown_reason = OCS_NODE_SHUTDOWN_DEFAULT; in __ocs_fabctl_wait_node_attach()
1025 node->shutdown_reason = OCS_NODE_SHUTDOWN_DEFAULT; in __ocs_fabctl_wait_node_attach()
1045 * @param ctx Remote node state machine context.
1047 * @param arg Per event optional argument.
1063 ocs_assert(node->els_req_cnt, NULL); in __ocs_fabctl_wait_scr_rsp()
1064 node->els_req_cnt--; in __ocs_fabctl_wait_scr_rsp()
1085 * @param ctx Remote node state machine context.
1087 * @param arg Per event optional argument.
1102 fc_header_t *hdr = cbdata->header->dma.virt; in __ocs_fabctl_ready()
1107 ocs_send_ls_acc(cbdata->io, ocs_be16toh(hdr->ox_id), NULL, NULL); in __ocs_fabctl_ready()
1127 * @param ctx Remote node state machine context.
1129 * @param arg Per event optional argument.
1151 ocs_assert(node->els_cmpl_cnt, NULL); in __ocs_fabctl_wait_ls_acc_cmpl()
1152 node->els_cmpl_cnt--; in __ocs_fabctl_wait_ls_acc_cmpl()
1177 ocs_t *ocs = node->ocs; in ocs_fabric_initiate_shutdown()
1180 if (node->attached) { in ocs_fabric_initiate_shutdown()
1182 * or sometime later, will check node->attached later in in ocs_fabric_initiate_shutdown()
1185 rc = ocs_hw_node_detach(&ocs->hw, &node->rnode); in ocs_fabric_initiate_shutdown()
1186 if (node->rnode.free_group) { in ocs_fabric_initiate_shutdown()
1187 ocs_remote_node_group_free(node->node_group); in ocs_fabric_initiate_shutdown()
1188 node->node_group = NULL; in ocs_fabric_initiate_shutdown()
1189 node->rnode.free_group = FALSE; in ocs_fabric_initiate_shutdown()
1207 * @param ctx Remote node state machine context.
1209 * @param arg Per event optional argument.
1219 ocs_assert(ctx->app, NULL); in __ocs_fabric_common()
1220 node = ctx->app; in __ocs_fabric_common()
1226 node->shutdown_reason = OCS_NODE_SHUTDOWN_DEFAULT; in __ocs_fabric_common()
1253 return (ocs_be32toh(remote_sparms->common_service_parameters[1]) & (1U << 28)) == 0; in ocs_rnode_is_nport()
1271 return (((uint64_t)ocs_be32toh(sp->port_name_hi) << 32ll) | (ocs_be32toh(sp->port_name_lo))); in ocs_get_wwpn()
1275 * @brief Return TRUE if the remote node is the point-to-point winner.
1284 * - 0, if the remote node is the loser.
1285 * - 1, if the remote node is the winner.
1286 * - (-1), if remote node is neither the loser nor the winner
1293 fc_plogi_payload_t *remote_sparms = (fc_plogi_payload_t*) sport->domain->flogi_service_params; in ocs_rnode_is_winner()
1295 uint64_t local_wwpn = sport->wwpn; in ocs_rnode_is_winner()
1306 …ocs_log_debug(sport->ocs, "r: %08x %08x\n", ocs_be32toh(remote_sparms->port_name_hi), ocs_be32toh(… in ocs_rnode_is_winner()
1307 …ocs_log_debug(sport->ocs, "l: %08x %08x\n", (uint32_t) (local_wwpn >> 32ll), (uint32_t) local_wwpn… in ocs_rnode_is_winner()
1310 ocs_log_warn(sport->ocs, "WWPN of remote node [%08x %08x] matches local WWPN\n", in ocs_rnode_is_winner()
1312 return (-1); in ocs_rnode_is_winner()
1320 * @brief Point-to-point state machine: Wait for the domain attach to complete.
1324 * winning point-to-point node).
1326 * @param ctx Remote node state machine context.
1328 * @param arg Per event optional argument.
1350 ocs_sport_t *sport = node->sport; in __ocs_p2p_wait_domain_attach()
1356 ocs_assert (node->sport->p2p_winner, NULL); in __ocs_p2p_wait_domain_attach()
1358 rnode = ocs_node_find(sport, node->sport->p2p_remote_port_id); in __ocs_p2p_wait_domain_attach()
1362 node_printf(node, "Node with fc_id x%x already exists\n", rnode->rnode.fc_id); in __ocs_p2p_wait_domain_attach()
1366 rnode = ocs_node_alloc(sport, sport->p2p_remote_port_id, FALSE, FALSE); in __ocs_p2p_wait_domain_attach()
1378 if (node->rnode.fc_id == 0) { in __ocs_p2p_wait_domain_attach()
1386 node->shutdown_reason = OCS_NODE_SHUTDOWN_DEFAULT; in __ocs_p2p_wait_domain_attach()
1402 * @brief Point-to-point state machine: Remote node initialization state.
1405 * This state is entered after winning point-to-point, and the remote node
1408 * @param ctx Remote node state machine context.
1410 * @param arg Per event optional argument.
1432 ocs_bls_send_acc_hdr(cbdata->io, cbdata->header->dma.virt); in __ocs_p2p_rnode_init()
1445 * @brief Point-to-point node state machine: Wait for the FLOGI accept completion.
1450 * @param ctx Remote node state machine context.
1452 * @param arg Per event optional argument.
1475 ocs_assert(node->els_cmpl_cnt, NULL); in __ocs_p2p_wait_flogi_acc_cmpl()
1476 node->els_cmpl_cnt--; in __ocs_p2p_wait_flogi_acc_cmpl()
1479 if (node->sport->p2p_winner) { in __ocs_p2p_wait_flogi_acc_cmpl()
1481 if (node->sport->domain->attached && in __ocs_p2p_wait_flogi_acc_cmpl()
1482 !(node->sport->domain->domain_notify_pend)) { in __ocs_p2p_wait_flogi_acc_cmpl()
1489 * restarts discovery -- it may already have (pending frames may exist). in __ocs_p2p_wait_flogi_acc_cmpl()
1500 ocs_assert(node->els_cmpl_cnt, NULL); in __ocs_p2p_wait_flogi_acc_cmpl()
1501 node->els_cmpl_cnt--; in __ocs_p2p_wait_flogi_acc_cmpl()
1502 node->shutdown_reason = OCS_NODE_SHUTDOWN_DEFAULT; in __ocs_p2p_wait_flogi_acc_cmpl()
1508 ocs_bls_send_acc_hdr(cbdata->io, cbdata->header->dma.virt); in __ocs_p2p_wait_flogi_acc_cmpl()
1522 * @brief Point-to-point node state machine: Wait for a PLOGI response
1523 * as a point-to-point winner.
1526 * Wait for a PLOGI response from the remote node as a point-to-point winner.
1529 * @param ctx Remote node state machine context.
1531 * @param arg Per event optional argument.
1550 ocs_assert(node->els_req_cnt, NULL); in __ocs_p2p_wait_plogi_rsp()
1551 node->els_req_cnt--; in __ocs_p2p_wait_plogi_rsp()
1553 ocs_node_save_sparms(node, cbdata->els->els_rsp.virt); in __ocs_p2p_wait_plogi_rsp()
1566 ocs_assert(node->els_req_cnt, NULL); in __ocs_p2p_wait_plogi_rsp()
1567 node->els_req_cnt--; in __ocs_p2p_wait_plogi_rsp()
1568 node->shutdown_reason = OCS_NODE_SHUTDOWN_DEFAULT; in __ocs_p2p_wait_plogi_rsp()
1574 fc_header_t *hdr = cbdata->header->dma.virt; in __ocs_p2p_wait_plogi_rsp()
1576 if (node->ocs->external_loopback) { in __ocs_p2p_wait_plogi_rsp()
1577 ocs_send_plogi_acc(cbdata->io, ocs_be16toh(hdr->ox_id), NULL, NULL); in __ocs_p2p_wait_plogi_rsp()
1593 ocs_process_prli_payload(node, cbdata->payload->dma.virt); in __ocs_p2p_wait_plogi_rsp()
1594 ocs_send_ls_acc_after_attach(cbdata->io, cbdata->header->dma.virt, OCS_NODE_SEND_LS_ACC_PRLI); in __ocs_p2p_wait_plogi_rsp()
1607 * @brief Point-to-point node state machine: Waiting on a response for a
1611 * State is entered when the point-to-point winner has sent
1616 * @param ctx Remote node state machine context.
1618 * @param arg Per event optional argument.
1656 ocs_assert(node->els_req_cnt, NULL); in __ocs_p2p_wait_plogi_rsp_recvd_prli()
1657 node->els_req_cnt--; in __ocs_p2p_wait_plogi_rsp_recvd_prli()
1659 ocs_node_save_sparms(node, cbdata->els->els_rsp.virt); in __ocs_p2p_wait_plogi_rsp_recvd_prli()
1660 ocs_display_sparams(node->display_name, "plogi rcvd resp", 0, NULL, in __ocs_p2p_wait_plogi_rsp_recvd_prli()
1661 ((uint8_t*)cbdata->els->els_rsp.virt) + 4); in __ocs_p2p_wait_plogi_rsp_recvd_prli()
1675 ocs_assert(node->els_req_cnt, NULL); in __ocs_p2p_wait_plogi_rsp_recvd_prli()
1676 node->els_req_cnt--; in __ocs_p2p_wait_plogi_rsp_recvd_prli()
1677 node->shutdown_reason = OCS_NODE_SHUTDOWN_DEFAULT; in __ocs_p2p_wait_plogi_rsp_recvd_prli()
1691 * @brief Point-to-point node state machine: Wait for a point-to-point node attach
1695 * Waits for the point-to-point node attach to complete.
1697 * @param ctx Remote node state machine context.
1699 * @param arg Per event optional argument.
1722 node->attached = TRUE; in __ocs_p2p_wait_node_attach()
1723 switch (node->send_ls_acc) { in __ocs_p2p_wait_node_attach()
1725 ocs_d_send_prli_rsp(node->ls_acc_io, node->ls_acc_oxid); in __ocs_p2p_wait_node_attach()
1726 node->send_ls_acc = OCS_NODE_SEND_LS_ACC_NONE; in __ocs_p2p_wait_node_attach()
1727 node->ls_acc_io = NULL; in __ocs_p2p_wait_node_attach()
1742 node->attached = FALSE; in __ocs_p2p_wait_node_attach()
1744 node->shutdown_reason = OCS_NODE_SHUTDOWN_DEFAULT; in __ocs_p2p_wait_node_attach()
1750 node->shutdown_reason = OCS_NODE_SHUTDOWN_DEFAULT; in __ocs_p2p_wait_node_attach()
1755 ocs_process_prli_payload(node, cbdata->payload->dma.virt); in __ocs_p2p_wait_node_attach()
1756 ocs_send_ls_acc_after_attach(cbdata->io, cbdata->header->dma.virt, OCS_NODE_SEND_LS_ACC_PRLI); in __ocs_p2p_wait_node_attach()
1787 return -1; in ocs_start_ns_node()
1794 if (ns->ocs->nodedb_mask & OCS_NODEDB_PAUSE_NAMESERVER) { in ocs_start_ns_node()
1822 return -1; in ocs_start_fabctl_node()
1852 ocs_sport_t *sport = node->sport; in ocs_process_gidpt_payload()
1853 ocs_t *ocs = node->ocs; in ocs_process_gidpt_payload()
1861 residual = ocs_be16toh(gidpt->hdr.max_residual_size); in ocs_process_gidpt_payload()
1864 ocs_log_debug(node->ocs, "residual is %u words\n", residual); in ocs_process_gidpt_payload()
1867 if (ocs_be16toh(gidpt->hdr.cmd_rsp_code) == FCCT_HDR_CMDRSP_REJECT) { in ocs_process_gidpt_payload()
1869 gidpt->hdr.reason_code, gidpt->hdr.reason_code_explanation); in ocs_process_gidpt_payload()
1870 return -1; in ocs_process_gidpt_payload()
1873 portlist_count = (gidpt_len - sizeof(fcct_iu_header_t)) / sizeof(gidpt->port_list); in ocs_process_gidpt_payload()
1878 ocs_list_foreach(&sport->node_list, n) { in ocs_process_gidpt_payload()
1883 …active_nodes = ocs_malloc(node->ocs, port_count * sizeof(*active_nodes), OCS_M_NOWAIT | OCS_M_ZERO… in ocs_process_gidpt_payload()
1887 return -1; in ocs_process_gidpt_payload()
1892 ocs_list_foreach(&sport->node_list, n) { in ocs_process_gidpt_payload()
1893 port_id = n->rnode.fc_id; in ocs_process_gidpt_payload()
1909 port_id = fc_be24toh(gidpt->port_list[i].port_id); in ocs_process_gidpt_payload()
1912 if ((active_nodes[j] != NULL) && (port_id == active_nodes[j]->rnode.fc_id)) { in ocs_process_gidpt_payload()
1917 if (gidpt->port_list[i].ctl & FCCT_GID_PT_LAST_ID) in ocs_process_gidpt_payload()
1928 if ((node->sport->enable_ini && active_nodes[i]->targ) || in ocs_process_gidpt_payload()
1929 (node->sport->enable_tgt && enable_target_rscn(ocs))) { in ocs_process_gidpt_payload()
1932 node_printf(node, "GID_PT: skipping non-tgt port_id x%06x\n", in ocs_process_gidpt_payload()
1933 active_nodes[i]->rnode.fc_id); in ocs_process_gidpt_payload()
1940 uint32_t port_id = fc_be24toh(gidpt->port_list[i].port_id); in ocs_process_gidpt_payload()
1945 if (port_id != node->rnode.sport->fc_id && !ocs_sport_find(sport->domain, port_id)) { in ocs_process_gidpt_payload()
1949 if (node->sport->enable_ini && newnode->targ) { in ocs_process_gidpt_payload()
1954 if (node->sport->enable_ini) { in ocs_process_gidpt_payload()
1959 return -1; in ocs_process_gidpt_payload()
1967 if (gidpt->port_list[i].ctl & FCCT_GID_PT_LAST_ID) { in ocs_process_gidpt_payload()
1976 * @brief Set up the domain point-to-point parameters.
1979 * The remote node service parameters are examined, and various point-to-point
1990 ocs_t *ocs = sport->ocs; in ocs_p2p_setup()
1996 sport->p2p_remote_port_id = 0; in ocs_p2p_setup()
1997 sport->p2p_port_id = 0; in ocs_p2p_setup()
1998 sport->p2p_winner = FALSE; in ocs_p2p_setup()
2000 sport->p2p_remote_port_id = 2; in ocs_p2p_setup()
2001 sport->p2p_port_id = 1; in ocs_p2p_setup()
2002 sport->p2p_winner = TRUE; in ocs_p2p_setup()
2005 if (sport->ocs->external_loopback) { in ocs_p2p_setup()
2011 sport->p2p_remote_port_id = 1; in ocs_p2p_setup()
2012 sport->p2p_port_id = 1; in ocs_p2p_setup()
2013 sport->p2p_winner = TRUE; in ocs_p2p_setup()
2037 ocs_t *ocs = node->ocs; in ocs_process_rscn()
2038 ocs_sport_t *sport = node->sport; in ocs_process_rscn()
2041 /* Forward this event to the name-services node */ in ocs_process_rscn()