Lines Matching refs:sas_phy
3148 struct asd_sas_phy *sas_phy = &phy->sas_phy; in pm8001_bytes_dmaed() local
3163 sas_phy->frame_rcvd_size = phy->frame_rcvd_size; in pm8001_bytes_dmaed()
3164 sas_notify_port_event(sas_phy, PORTE_BYTES_DMAED, GFP_ATOMIC); in pm8001_bytes_dmaed()
3170 struct sas_phy *sas_phy = phy->sas_phy.phy; in pm8001_get_lrate_mode() local
3174 phy->sas_phy.linkrate = SAS_LINK_RATE_12_0_GBPS; in pm8001_get_lrate_mode()
3177 phy->sas_phy.linkrate = SAS_LINK_RATE_6_0_GBPS; in pm8001_get_lrate_mode()
3180 phy->sas_phy.linkrate = SAS_LINK_RATE_3_0_GBPS; in pm8001_get_lrate_mode()
3183 phy->sas_phy.linkrate = SAS_LINK_RATE_1_5_GBPS; in pm8001_get_lrate_mode()
3186 sas_phy->negotiated_linkrate = phy->sas_phy.linkrate; in pm8001_get_lrate_mode()
3187 sas_phy->maximum_linkrate_hw = phy->maximum_linkrate; in pm8001_get_lrate_mode()
3188 sas_phy->minimum_linkrate_hw = SAS_LINK_RATE_1_5_GBPS; in pm8001_get_lrate_mode()
3189 sas_phy->maximum_linkrate = phy->maximum_linkrate; in pm8001_get_lrate_mode()
3190 sas_phy->minimum_linkrate = phy->minimum_linkrate; in pm8001_get_lrate_mode()
3208 if (phy->sas_phy.frame_rcvd[0] == 0x34 in pm8001_get_attached_sas_addr()
3209 && phy->sas_phy.oob_mode == SATA_OOB_MODE) { in pm8001_get_attached_sas_addr()
3210 struct pm8001_hba_info *pm8001_ha = phy->sas_phy.ha->lldd_ha; in pm8001_get_attached_sas_addr()
3213 addr += phy->sas_phy.id; in pm8001_get_attached_sas_addr()
3217 (void *) phy->sas_phy.frame_rcvd; in pm8001_get_attached_sas_addr()
3315 phy->sas_phy.oob_mode = SAS_OOB_MODE; in hw_event_sas_phy_up()
3316 sas_notify_phy_event(&phy->sas_phy, PHYE_OOB_DONE, GFP_ATOMIC); in hw_event_sas_phy_up()
3317 spin_lock_irqsave(&phy->sas_phy.frame_rcvd_lock, flags); in hw_event_sas_phy_up()
3321 pm8001_get_attached_sas_addr(phy, phy->sas_phy.attached_sas_addr); in hw_event_sas_phy_up()
3322 spin_unlock_irqrestore(&phy->sas_phy.frame_rcvd_lock, flags); in hw_event_sas_phy_up()
3360 phy->sas_phy.oob_mode = SATA_OOB_MODE; in hw_event_sata_phy_up()
3361 sas_notify_phy_event(&phy->sas_phy, PHYE_OOB_DONE, GFP_ATOMIC); in hw_event_sata_phy_up()
3362 spin_lock_irqsave(&phy->sas_phy.frame_rcvd_lock, flags); in hw_event_sata_phy_up()
3368 pm8001_get_attached_sas_addr(phy, phy->sas_phy.attached_sas_addr); in hw_event_sata_phy_up()
3369 spin_unlock_irqrestore(&phy->sas_phy.frame_rcvd_lock, flags); in hw_event_sata_phy_up()
3672 struct asd_sas_phy *sas_phy = sas_ha->sas_phy[phy_id]; in mpi_hw_event() local
3705 sas_notify_phy_event(&phy->sas_phy, PHYE_SPINUP_HOLD, in mpi_hw_event()
3710 sas_notify_phy_event(&phy->sas_phy, PHYE_LOSS_OF_SIGNAL, in mpi_hw_event()
3718 sas_phy_disconnected(sas_phy); in mpi_hw_event()
3720 sas_notify_port_event(sas_phy, PORTE_LINK_RESET_ERR, in mpi_hw_event()
3729 spin_lock_irqsave(&sas_phy->sas_prim_lock, flags); in mpi_hw_event()
3730 sas_phy->sas_prim = HW_EVENT_BROADCAST_CHANGE; in mpi_hw_event()
3731 spin_unlock_irqrestore(&sas_phy->sas_prim_lock, flags); in mpi_hw_event()
3732 sas_notify_port_event(sas_phy, PORTE_BROADCAST_RCVD, in mpi_hw_event()
3737 sas_phy_disconnected(&phy->sas_phy); in mpi_hw_event()
3739 sas_notify_phy_event(&phy->sas_phy, PHYE_OOB_ERROR, GFP_ATOMIC); in mpi_hw_event()
3743 spin_lock_irqsave(&sas_phy->sas_prim_lock, flags); in mpi_hw_event()
3744 sas_phy->sas_prim = HW_EVENT_BROADCAST_EXP; in mpi_hw_event()
3745 spin_unlock_irqrestore(&sas_phy->sas_prim_lock, flags); in mpi_hw_event()
3746 sas_notify_port_event(sas_phy, PORTE_BROADCAST_RCVD, in mpi_hw_event()
3754 sas_phy_disconnected(sas_phy); in mpi_hw_event()
3756 sas_notify_port_event(sas_phy, PORTE_LINK_RESET_ERR, in mpi_hw_event()
3765 sas_phy_disconnected(sas_phy); in mpi_hw_event()
3767 sas_notify_port_event(sas_phy, PORTE_LINK_RESET_ERR, in mpi_hw_event()
3776 sas_phy_disconnected(sas_phy); in mpi_hw_event()
3778 sas_notify_port_event(sas_phy, PORTE_LINK_RESET_ERR, in mpi_hw_event()
3787 sas_phy_disconnected(sas_phy); in mpi_hw_event()
3789 sas_notify_port_event(sas_phy, PORTE_LINK_RESET_ERR, in mpi_hw_event()
3797 spin_lock_irqsave(&sas_phy->sas_prim_lock, flags); in mpi_hw_event()
3798 sas_phy->sas_prim = HW_EVENT_BROADCAST_SES; in mpi_hw_event()
3799 spin_unlock_irqrestore(&sas_phy->sas_prim_lock, flags); in mpi_hw_event()
3800 sas_notify_port_event(sas_phy, PORTE_BROADCAST_RCVD, in mpi_hw_event()
3811 sas_notify_port_event(sas_phy, PORTE_HARD_RESET, GFP_ATOMIC); in mpi_hw_event()
3815 sas_phy_disconnected(sas_phy); in mpi_hw_event()
3817 sas_notify_port_event(sas_phy, PORTE_LINK_RESET_ERR, in mpi_hw_event()
3826 sas_phy_disconnected(sas_phy); in mpi_hw_event()
3828 sas_notify_port_event(sas_phy, PORTE_LINK_RESET_ERR, in mpi_hw_event()
3833 sas_phy_disconnected(sas_phy); in mpi_hw_event()
3835 sas_notify_port_event(sas_phy, PORTE_LINK_RESET_ERR, in mpi_hw_event()
3841 sas_phy_disconnected(sas_phy); in mpi_hw_event()
3843 sas_notify_port_event(sas_phy, PORTE_LINK_RESET_ERR, in mpi_hw_event()