Lines Matching defs:ihost
106 * @ihost: The controller object used for the port search.
116 struct isci_host *ihost,
133 for (i = 0; i < ihost->logical_port_entries; i++) {
134 struct isci_port *iport = &ihost->ports[i];
149 * @ihost: This is the controller object that contains the port agent
160 struct isci_host *ihost,
197 sci_phy_get_sas_address(&ihost->phys[0], &first_address);
198 sci_phy_get_sas_address(&ihost->phys[3], &second_address);
210 sci_phy_get_sas_address(&ihost->phys[0], &first_address);
211 sci_phy_get_sas_address(&ihost->phys[2], &second_address);
224 sci_phy_get_sas_address(&ihost->phys[1], &first_address);
225 sci_phy_get_sas_address(&ihost->phys[3], &second_address);
242 sci_mpc_agent_validate_phy_configuration(struct isci_host *ihost,
257 phy_mask = ihost->oem_parameters.ports[port_index].phy_mask;
272 sci_phy_get_sas_address(&ihost->phys[phy_index],
297 sci_phy_get_sas_address(&ihost->phys[phy_index],
310 sci_port_add_phy(&ihost->ports[port_index],
311 &ihost->phys[phy_index]);
318 return sci_port_configuration_agent_validate_ports(ihost, port_agent);
326 struct isci_host *ihost;
331 ihost = container_of(port_agent, typeof(*ihost), port_agent);
333 spin_lock_irqsave(&ihost->scic_lock, flags);
344 struct isci_phy *iphy = &ihost->phys[index];
347 port_agent->link_up_handler(ihost, port_agent,
354 spin_unlock_irqrestore(&ihost->scic_lock, flags);
357 static void sci_mpc_agent_link_up(struct isci_host *ihost,
377 * @ihost: This is the controller object that receives the link down
394 struct isci_host *ihost,
433 sci_apc_agent_validate_phy_configuration(struct isci_host *ihost,
447 sci_phy_get_sas_address(&ihost->phys[phy_index],
451 sci_phy_get_sas_address(&ihost->phys[phy_index],
466 return sci_port_configuration_agent_validate_ports(ihost, port_agent);
482 static void sci_apc_agent_configure_ports(struct isci_host *ihost,
492 iport = sci_port_configuration_agent_find_port(ihost, iphy);
510 iport = &ihost->ports[port_index];
594 * @ihost: This is the controller object that receives the link up
605 static void sci_apc_agent_link_up(struct isci_host *ihost,
626 * @ihost: This is the controller object that receives the link down
639 struct isci_host *ihost,
664 struct isci_host *ihost;
669 ihost = container_of(port_agent, typeof(*ihost), port_agent);
671 spin_lock_irqsave(&ihost->scic_lock, flags);
687 sci_apc_agent_configure_ports(ihost, port_agent,
688 &ihost->phys[index], false);
691 if (is_controller_start_complete(ihost))
692 sci_controller_transition_to_ready(ihost, SCI_SUCCESS);
695 spin_unlock_irqrestore(&ihost->scic_lock, flags);
727 bool is_port_config_apc(struct isci_host *ihost)
729 return ihost->port_agent.link_up_handler == sci_apc_agent_link_up;
733 struct isci_host *ihost,
739 mode = ihost->oem_parameters.controller.mode_type;
743 ihost, port_agent);
751 ihost, port_agent);