Lines Matching refs:ihost

116 	struct isci_host *ihost,  in sci_port_configuration_agent_find_port()  argument
133 for (i = 0; i < ihost->logical_port_entries; i++) { in sci_port_configuration_agent_find_port()
134 struct isci_port *iport = &ihost->ports[i]; in sci_port_configuration_agent_find_port()
160 struct isci_host *ihost, in sci_port_configuration_agent_validate_ports() argument
197 sci_phy_get_sas_address(&ihost->phys[0], &first_address); in sci_port_configuration_agent_validate_ports()
198 sci_phy_get_sas_address(&ihost->phys[3], &second_address); in sci_port_configuration_agent_validate_ports()
210 sci_phy_get_sas_address(&ihost->phys[0], &first_address); in sci_port_configuration_agent_validate_ports()
211 sci_phy_get_sas_address(&ihost->phys[2], &second_address); in sci_port_configuration_agent_validate_ports()
224 sci_phy_get_sas_address(&ihost->phys[1], &first_address); in sci_port_configuration_agent_validate_ports()
225 sci_phy_get_sas_address(&ihost->phys[3], &second_address); in sci_port_configuration_agent_validate_ports()
242 sci_mpc_agent_validate_phy_configuration(struct isci_host *ihost, in sci_mpc_agent_validate_phy_configuration() argument
257 phy_mask = ihost->oem_parameters.ports[port_index].phy_mask; in sci_mpc_agent_validate_phy_configuration()
272 sci_phy_get_sas_address(&ihost->phys[phy_index], in sci_mpc_agent_validate_phy_configuration()
297 sci_phy_get_sas_address(&ihost->phys[phy_index], in sci_mpc_agent_validate_phy_configuration()
310 sci_port_add_phy(&ihost->ports[port_index], in sci_mpc_agent_validate_phy_configuration()
311 &ihost->phys[phy_index]); in sci_mpc_agent_validate_phy_configuration()
318 return sci_port_configuration_agent_validate_ports(ihost, port_agent); in sci_mpc_agent_validate_phy_configuration()
326 struct isci_host *ihost; in mpc_agent_timeout() local
331 ihost = container_of(port_agent, typeof(*ihost), port_agent); in mpc_agent_timeout()
333 spin_lock_irqsave(&ihost->scic_lock, flags); in mpc_agent_timeout()
344 struct isci_phy *iphy = &ihost->phys[index]; in mpc_agent_timeout()
347 port_agent->link_up_handler(ihost, port_agent, in mpc_agent_timeout()
354 spin_unlock_irqrestore(&ihost->scic_lock, flags); in mpc_agent_timeout()
357 static void sci_mpc_agent_link_up(struct isci_host *ihost, in sci_mpc_agent_link_up() argument
394 struct isci_host *ihost, in sci_mpc_agent_link_down() argument
433 sci_apc_agent_validate_phy_configuration(struct isci_host *ihost, in sci_apc_agent_validate_phy_configuration() argument
447 sci_phy_get_sas_address(&ihost->phys[phy_index], in sci_apc_agent_validate_phy_configuration()
451 sci_phy_get_sas_address(&ihost->phys[phy_index], in sci_apc_agent_validate_phy_configuration()
466 return sci_port_configuration_agent_validate_ports(ihost, port_agent); in sci_apc_agent_validate_phy_configuration()
482 static void sci_apc_agent_configure_ports(struct isci_host *ihost, in sci_apc_agent_configure_ports() argument
492 iport = sci_port_configuration_agent_find_port(ihost, iphy); in sci_apc_agent_configure_ports()
510 iport = &ihost->ports[port_index]; in sci_apc_agent_configure_ports()
605 static void sci_apc_agent_link_up(struct isci_host *ihost, in sci_apc_agent_link_up() argument
639 struct isci_host *ihost, in sci_apc_agent_link_down() argument
664 struct isci_host *ihost; in apc_agent_timeout() local
669 ihost = container_of(port_agent, typeof(*ihost), port_agent); in apc_agent_timeout()
671 spin_lock_irqsave(&ihost->scic_lock, flags); in apc_agent_timeout()
687 sci_apc_agent_configure_ports(ihost, port_agent, in apc_agent_timeout()
688 &ihost->phys[index], false); in apc_agent_timeout()
691 if (is_controller_start_complete(ihost)) in apc_agent_timeout()
692 sci_controller_transition_to_ready(ihost, SCI_SUCCESS); in apc_agent_timeout()
695 spin_unlock_irqrestore(&ihost->scic_lock, flags); in apc_agent_timeout()
727 bool is_port_config_apc(struct isci_host *ihost) in is_port_config_apc() argument
729 return ihost->port_agent.link_up_handler == sci_apc_agent_link_up; in is_port_config_apc()
733 struct isci_host *ihost, in sci_port_configuration_agent_initialize() argument
739 mode = ihost->oem_parameters.controller.mode_type; in sci_port_configuration_agent_initialize()
743 ihost, port_agent); in sci_port_configuration_agent_initialize()
751 ihost, port_agent); in sci_port_configuration_agent_initialize()