• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/sys/dev/isci/scil/

Lines Matching refs:port_agent

200  * @param[in] port_agent This is the port configruation agent for
212 SCIC_SDS_PORT_CONFIGURATION_AGENT_T * port_agent
223 controller, port_agent
229 (port_agent->phy_valid_port_range[0].max_index != 0)
230 || (port_agent->phy_valid_port_range[1].max_index != 1)
231 || (port_agent->phy_valid_port_range[2].max_index != 2)
232 || (port_agent->phy_valid_port_range[3].max_index != 3)
241 (port_agent->phy_valid_port_range[0].min_index == 0)
242 && (port_agent->phy_valid_port_range[1].min_index == 0)
243 && (port_agent->phy_valid_port_range[2].min_index == 0)
244 && (port_agent->phy_valid_port_range[3].min_index == 0)
254 if (port_agent->phy_valid_port_range[2].min_index == 1)
274 (port_agent->phy_valid_port_range[0].min_index == 0)
275 && (port_agent->phy_valid_port_range[1].min_index == 1)
291 (port_agent->phy_valid_port_range[2].min_index == 2)
292 && (port_agent->phy_valid_port_range[3].min_index == 3)
322 SCIC_SDS_PORT_CONFIGURATION_AGENT_T * port_agent
340 controller, port_agent
368 port_agent->phy_valid_port_range[phy_index].min_index = port_index;
369 port_agent->phy_valid_port_range[phy_index].max_index = phy_index;
399 port_agent->phy_valid_port_range[phy_index].min_index = port_index;
400 port_agent->phy_valid_port_range[phy_index].max_index = phy_index;
415 return scic_sds_port_configuration_agent_validate_ports(controller, port_agent);
433 SCIC_SDS_PORT_CONFIGURATION_AGENT_T * port_agent = &controller->port_agent;
443 port_agent->timer_pending = FALSE;
446 configure_phy_mask = ~port_agent->phy_configured_mask & port_agent->phy_ready_mask;
452 port_agent->link_up_handler(
454 port_agent,
480 SCIC_SDS_PORT_CONFIGURATION_AGENT_T * port_agent,
489 controller, port_agent, port, phy
497 port_agent->phy_ready_mask |= (1 << scic_sds_phy_get_index(phy));
503 port_agent->phy_configured_mask |= (1 << scic_sds_phy_get_index(phy));
529 SCIC_SDS_PORT_CONFIGURATION_AGENT_T * port_agent,
538 controller, port_agent, port, phy
547 port_agent->phy_ready_mask &= ~(1 << scic_sds_phy_get_index(phy));
548 port_agent->phy_configured_mask &= ~(1 << scic_sds_phy_get_index(phy));
554 (port_agent->phy_configured_mask == 0x0000)
555 && (port_agent->phy_ready_mask != 0x0000)
556 && !port_agent->timer_pending
559 port_agent->timer_pending = TRUE;
563 port_agent->timer,
583 SCIC_SDS_PORT_CONFIGURATION_AGENT_T * port_agent
595 controller, port_agent
618 port_agent->phy_valid_port_range[phy_index].min_index = port_index;
619 port_agent->phy_valid_port_range[phy_index].max_index = phy_index;
623 port_agent->phy_valid_port_range[phy_index].min_index = phy_index;
624 port_agent->phy_valid_port_range[phy_index].max_index = phy_index;
630 return scic_sds_port_configuration_agent_validate_ports(controller, port_agent);
641 * @param[in] port_agent This is the port agent that is requesting the
650 SCIC_SDS_PORT_CONFIGURATION_AGENT_T * port_agent,
659 controller, port_agent, phy, timeout
662 if (port_agent->timer_pending)
664 scic_cb_timer_stop(controller, port_agent->timer);
667 port_agent->timer_pending = TRUE;
669 scic_cb_timer_start(controller, port_agent->timer, timeout);
684 SCIC_SDS_PORT_CONFIGURATION_AGENT_T * port_agent,
699 controller, port_agent, phy, start_timer
719 port_index = port_agent->phy_valid_port_range[phy->phy_index].min_index;
720 port_index <= port_agent->phy_valid_port_range[phy->phy_index].max_index;
796 port_agent->phy_configured_mask |= (1 << phy->phy_index);
802 controller, port_agent, phy, SCIC_SDS_APC_WAIT_LINK_UP_NOTIFICATION
828 SCIC_SDS_PORT_CONFIGURATION_AGENT_T * port_agent,
837 controller, port_agent, port, phy
843 port_agent->phy_ready_mask |= (1 << scic_sds_phy_get_index(phy));
846 controller, port_agent, phy, SCIC_SDS_APC_WAIT_LINK_UP_NOTIFICATION
860 port_agent->phy_ready_mask |= (1 << scic_sds_phy_get_index(phy));
886 SCIC_SDS_PORT_CONFIGURATION_AGENT_T * port_agent,
895 controller, port_agent, port, phy
898 port_agent->phy_ready_mask &= ~(1 << scic_sds_phy_get_index(phy));
902 if (port_agent->phy_configured_mask & (1 << phy->phy_index))
910 port_agent->phy_configured_mask &= ~(1 << phy->phy_index);
928 SCIC_SDS_PORT_CONFIGURATION_AGENT_T * port_agent;
932 port_agent = scic_sds_controller_get_port_configuration_agent(controller);
941 port_agent->timer_pending = FALSE;
943 configure_phy_mask = ~port_agent->phy_configured_mask & port_agent->phy_ready_mask;
952 controller, port_agent, &controller->phy_table[index], FALSE
959 (port_agent->phy_ready_mask == port_agent->phy_configured_mask) &&
983 * @param[in] port_agent This is the port configuration agent for this
987 SCIC_SDS_PORT_CONFIGURATION_AGENT_T * port_agent
992 port_agent->phy_configured_mask = 0x00;
993 port_agent->phy_ready_mask = 0x00;
995 port_agent->link_up_handler = NULL;
996 port_agent->link_down_handler = NULL;
998 port_agent->timer_pending = FALSE;
999 port_agent->timer = NULL;
1003 port_agent->phy_valid_port_range[index].min_index = 0;
1004 port_agent->phy_valid_port_range[index].max_index = 0;
1014 * @param[in] port_agent This is the port configuration agent that is being
1023 SCIC_SDS_PORT_CONFIGURATION_AGENT_T * port_agent
1033 controller, port_agent
1040 status = scic_sds_mpc_agent_validate_phy_configuration(controller, port_agent);
1042 port_agent->link_up_handler = scic_sds_mpc_agent_link_up;
1043 port_agent->link_down_handler = scic_sds_mpc_agent_link_down;
1045 port_agent->timer = scic_cb_timer_create(
1053 status = scic_sds_apc_agent_validate_phy_configuration(controller, port_agent);
1055 port_agent->link_up_handler = scic_sds_apc_agent_link_up;
1056 port_agent->link_down_handler = scic_sds_apc_agent_link_down;
1058 port_agent->timer = scic_cb_timer_create(
1066 if (status == SCI_SUCCESS && port_agent->timer == NULL)
1087 * @param[in] port_agent This is the port configuration agent that is being
1094 SCIC_SDS_PORT_CONFIGURATION_AGENT_T * port_agent
1097 if (port_agent->timer_pending == TRUE)
1099 scic_cb_timer_stop(controller, port_agent->timer);
1102 scic_cb_timer_destroy(controller, port_agent->timer);
1104 port_agent->timer_pending = FALSE;
1105 port_agent->timer = NULL;
1119 SCIC_SDS_PORT_CONFIGURATION_AGENT_T * port_agent
1126 controller, port_agent
1130 if (port_agent->timer != NULL)
1132 scic_cb_timer_destroy(controller, port_agent->timer);
1133 port_agent->timer = NULL;