Lines Matching refs:port_agent

198  * @param[in] port_agent This is the port configruation agent for
210 SCIC_SDS_PORT_CONFIGURATION_AGENT_T * port_agent
221 controller, port_agent
227 (port_agent->phy_valid_port_range[0].max_index != 0)
228 || (port_agent->phy_valid_port_range[1].max_index != 1)
229 || (port_agent->phy_valid_port_range[2].max_index != 2)
230 || (port_agent->phy_valid_port_range[3].max_index != 3)
239 (port_agent->phy_valid_port_range[0].min_index == 0)
240 && (port_agent->phy_valid_port_range[1].min_index == 0)
241 && (port_agent->phy_valid_port_range[2].min_index == 0)
242 && (port_agent->phy_valid_port_range[3].min_index == 0)
252 if (port_agent->phy_valid_port_range[2].min_index == 1)
272 (port_agent->phy_valid_port_range[0].min_index == 0)
273 && (port_agent->phy_valid_port_range[1].min_index == 1)
289 (port_agent->phy_valid_port_range[2].min_index == 2)
290 && (port_agent->phy_valid_port_range[3].min_index == 3)
320 SCIC_SDS_PORT_CONFIGURATION_AGENT_T * port_agent
338 controller, port_agent
366 port_agent->phy_valid_port_range[phy_index].min_index = port_index;
367 port_agent->phy_valid_port_range[phy_index].max_index = phy_index;
397 port_agent->phy_valid_port_range[phy_index].min_index = port_index;
398 port_agent->phy_valid_port_range[phy_index].max_index = phy_index;
413 return scic_sds_port_configuration_agent_validate_ports(controller, port_agent);
431 SCIC_SDS_PORT_CONFIGURATION_AGENT_T * port_agent = &controller->port_agent;
441 port_agent->timer_pending = FALSE;
444 configure_phy_mask = ~port_agent->phy_configured_mask & port_agent->phy_ready_mask;
450 port_agent->link_up_handler(
452 port_agent,
478 SCIC_SDS_PORT_CONFIGURATION_AGENT_T * port_agent,
487 controller, port_agent, port, phy
495 port_agent->phy_ready_mask |= (1 << scic_sds_phy_get_index(phy));
501 port_agent->phy_configured_mask |= (1 << scic_sds_phy_get_index(phy));
527 SCIC_SDS_PORT_CONFIGURATION_AGENT_T * port_agent,
536 controller, port_agent, port, phy
545 port_agent->phy_ready_mask &= ~(1 << scic_sds_phy_get_index(phy));
546 port_agent->phy_configured_mask &= ~(1 << scic_sds_phy_get_index(phy));
552 (port_agent->phy_configured_mask == 0x0000)
553 && (port_agent->phy_ready_mask != 0x0000)
554 && !port_agent->timer_pending
557 port_agent->timer_pending = TRUE;
561 port_agent->timer,
581 SCIC_SDS_PORT_CONFIGURATION_AGENT_T * port_agent
593 controller, port_agent
616 port_agent->phy_valid_port_range[phy_index].min_index = port_index;
617 port_agent->phy_valid_port_range[phy_index].max_index = phy_index;
621 port_agent->phy_valid_port_range[phy_index].min_index = phy_index;
622 port_agent->phy_valid_port_range[phy_index].max_index = phy_index;
628 return scic_sds_port_configuration_agent_validate_ports(controller, port_agent);
639 * @param[in] port_agent This is the port agent that is requesting the
648 SCIC_SDS_PORT_CONFIGURATION_AGENT_T * port_agent,
657 controller, port_agent, phy, timeout
660 if (port_agent->timer_pending)
662 scic_cb_timer_stop(controller, port_agent->timer);
665 port_agent->timer_pending = TRUE;
667 scic_cb_timer_start(controller, port_agent->timer, timeout);
682 SCIC_SDS_PORT_CONFIGURATION_AGENT_T * port_agent,
697 controller, port_agent, phy, start_timer
717 port_index = port_agent->phy_valid_port_range[phy->phy_index].min_index;
718 port_index <= port_agent->phy_valid_port_range[phy->phy_index].max_index;
794 port_agent->phy_configured_mask |= (1 << phy->phy_index);
800 controller, port_agent, phy, SCIC_SDS_APC_WAIT_LINK_UP_NOTIFICATION
826 SCIC_SDS_PORT_CONFIGURATION_AGENT_T * port_agent,
835 controller, port_agent, port, phy
841 port_agent->phy_ready_mask |= (1 << scic_sds_phy_get_index(phy));
844 controller, port_agent, phy, SCIC_SDS_APC_WAIT_LINK_UP_NOTIFICATION
858 port_agent->phy_ready_mask |= (1 << scic_sds_phy_get_index(phy));
884 SCIC_SDS_PORT_CONFIGURATION_AGENT_T * port_agent,
893 controller, port_agent, port, phy
896 port_agent->phy_ready_mask &= ~(1 << scic_sds_phy_get_index(phy));
900 if (port_agent->phy_configured_mask & (1 << phy->phy_index))
908 port_agent->phy_configured_mask &= ~(1 << phy->phy_index);
926 SCIC_SDS_PORT_CONFIGURATION_AGENT_T * port_agent;
930 port_agent = scic_sds_controller_get_port_configuration_agent(controller);
939 port_agent->timer_pending = FALSE;
941 configure_phy_mask = ~port_agent->phy_configured_mask & port_agent->phy_ready_mask;
950 controller, port_agent, &controller->phy_table[index], FALSE
957 (port_agent->phy_ready_mask == port_agent->phy_configured_mask) &&
981 * @param[in] port_agent This is the port configuration agent for this
985 SCIC_SDS_PORT_CONFIGURATION_AGENT_T * port_agent
990 port_agent->phy_configured_mask = 0x00;
991 port_agent->phy_ready_mask = 0x00;
993 port_agent->link_up_handler = NULL;
994 port_agent->link_down_handler = NULL;
996 port_agent->timer_pending = FALSE;
997 port_agent->timer = NULL;
1001 port_agent->phy_valid_port_range[index].min_index = 0;
1002 port_agent->phy_valid_port_range[index].max_index = 0;
1012 * @param[in] port_agent This is the port configuration agent that is being
1021 SCIC_SDS_PORT_CONFIGURATION_AGENT_T * port_agent
1031 controller, port_agent
1038 status = scic_sds_mpc_agent_validate_phy_configuration(controller, port_agent);
1040 port_agent->link_up_handler = scic_sds_mpc_agent_link_up;
1041 port_agent->link_down_handler = scic_sds_mpc_agent_link_down;
1043 port_agent->timer = scic_cb_timer_create(
1051 status = scic_sds_apc_agent_validate_phy_configuration(controller, port_agent);
1053 port_agent->link_up_handler = scic_sds_apc_agent_link_up;
1054 port_agent->link_down_handler = scic_sds_apc_agent_link_down;
1056 port_agent->timer = scic_cb_timer_create(
1064 if (status == SCI_SUCCESS && port_agent->timer == NULL)
1085 * @param[in] port_agent This is the port configuration agent that is being
1092 SCIC_SDS_PORT_CONFIGURATION_AGENT_T * port_agent
1095 if (port_agent->timer_pending == TRUE)
1097 scic_cb_timer_stop(controller, port_agent->timer);
1100 scic_cb_timer_destroy(controller, port_agent->timer);
1102 port_agent->timer_pending = FALSE;
1103 port_agent->timer = NULL;
1117 SCIC_SDS_PORT_CONFIGURATION_AGENT_T * port_agent
1124 controller, port_agent
1128 if (port_agent->timer != NULL)
1130 scic_cb_timer_destroy(controller, port_agent->timer);
1131 port_agent->timer = NULL;