Lines Matching refs:port

79 	struct sas_ha_struct *sas_ha = dev->port->ha;
109 /* if eh is not involved and the port is frozen then the
164 struct sas_ha_struct *sas_ha = dev->port->ha;
240 return to_sas_internal(dev->port->ha->shost->transportt);
496 * has decided to kill the qc and has frozen the port.
525 struct sas_ha_struct *ha = dev->port->ha;
538 struct sas_ha_struct *ha = dev->port->ha;
586 struct sas_ha_struct *ha = found_dev->port->ha;
646 void sas_probe_sata(struct asd_sas_port *port)
650 mutex_lock(&port->ha->disco_mutex);
651 list_for_each_entry(dev, &port->disco_list, disco_list_node) {
657 mutex_unlock(&port->ha->disco_mutex);
659 list_for_each_entry_safe(dev, n, &port->disco_list, disco_list_node) {
713 rphy = sas_end_device_alloc(phy->port);
721 list_add_tail(&child->disco_list_node, &parent->port->disco_list);
736 static void sas_ata_flush_pm_eh(struct asd_sas_port *port, const char *func)
740 list_for_each_entry_safe(dev, n, &port->dev_list, dev_list_node) {
752 void sas_suspend_sata(struct asd_sas_port *port)
756 mutex_lock(&port->ha->disco_mutex);
757 list_for_each_entry(dev, &port->dev_list, dev_list_node) {
769 mutex_unlock(&port->ha->disco_mutex);
771 sas_ata_flush_pm_eh(port, __func__);
774 void sas_resume_sata(struct asd_sas_port *port)
778 mutex_lock(&port->ha->disco_mutex);
779 list_for_each_entry(dev, &port->dev_list, dev_list_node) {
791 mutex_unlock(&port->ha->disco_mutex);
793 sas_ata_flush_pm_eh(port, __func__);
800 * Devices directly attached to a HA port, have no parents. All other
819 struct sas_ha_struct *ha = dev->port->ha;
844 struct asd_sas_port *port = sas_ha->sas_port[i];
847 spin_lock(&port->dev_list_lock);
848 list_for_each_entry(dev, &port->dev_list, dev_list_node) {
860 spin_unlock(&port->dev_list_lock);