Lines Matching refs:ha
180 struct sas_ha_struct *sas_ha = dev->port->ha; in sas_notify_lldd_dev_found()
202 struct sas_ha_struct *sas_ha = dev->port->ha; in sas_notify_lldd_dev_gone()
249 struct Scsi_Host *shost = port->ha->core.shost; in sas_suspend_devices()
331 struct sas_ha_struct *ha = port->ha; in sas_unregister_common_dev() local
345 spin_lock_irq(&ha->lock); in sas_unregister_common_dev()
349 ha->eh_active--; in sas_unregister_common_dev()
351 spin_unlock_irq(&ha->lock); in sas_unregister_common_dev()
410 struct sas_ha_struct *ha; in sas_device_set_phy() local
416 ha = dev->port->ha; in sas_device_set_phy()
420 spin_lock_irq(&ha->phy_port_lock); in sas_device_set_phy()
425 spin_unlock_irq(&ha->phy_port_lock); in sas_device_set_phy()
502 struct sas_ha_struct *ha = port->ha; in sas_revalidate_domain() local
506 mutex_lock(&ha->disco_mutex); in sas_revalidate_domain()
507 if (test_bit(SAS_HA_ATA_EH_ACTIVE, &ha->state)) { in sas_revalidate_domain()
525 mutex_unlock(&ha->disco_mutex); in sas_revalidate_domain()
530 static void sas_chain_work(struct sas_ha_struct *ha, struct sas_work *sw) in sas_chain_work() argument
537 scsi_queue_work(ha->core.shost, &sw->work); in sas_chain_work()
542 struct sas_ha_struct *ha) in sas_chain_event() argument
547 spin_lock_irqsave(&ha->lock, flags); in sas_chain_event()
548 sas_chain_work(ha, sw); in sas_chain_event()
549 spin_unlock_irqrestore(&ha->lock, flags); in sas_chain_event()
563 sas_chain_event(ev, &disc->pending, &disc->disc_work[ev].work, port->ha); in sas_discover_event()