• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/scsi/libsas/

Lines Matching refs:phy

37 	struct asd_sas_phy *phy = ev->phy;
39 sas_begin_event(PHYE_LOSS_OF_SIGNAL, &phy->ha->event_lock,
40 &phy->phy_events_pending);
41 phy->error = 0;
42 sas_deform_port(phy);
49 struct asd_sas_phy *phy = ev->phy;
51 sas_begin_event(PHYE_OOB_DONE, &phy->ha->event_lock,
52 &phy->phy_events_pending);
53 phy->error = 0;
60 struct asd_sas_phy *phy = ev->phy;
61 struct sas_ha_struct *sas_ha = phy->ha;
62 struct asd_sas_port *port = phy->port;
66 sas_begin_event(PHYE_OOB_ERROR, &phy->ha->event_lock,
67 &phy->phy_events_pending);
69 sas_deform_port(phy);
71 if (!port && phy->enabled && i->dft->lldd_control_phy) {
72 phy->error++;
73 switch (phy->error) {
76 i->dft->lldd_control_phy(phy, PHY_FUNC_HARD_RESET,
81 phy->error = 0;
82 phy->enabled = 0;
83 i->dft->lldd_control_phy(phy, PHY_FUNC_DISABLE, NULL);
93 struct asd_sas_phy *phy = ev->phy;
94 struct sas_ha_struct *sas_ha = phy->ha;
98 sas_begin_event(PHYE_SPINUP_HOLD, &phy->ha->event_lock,
99 &phy->phy_events_pending);
101 phy->error = 0;
102 i->dft->lldd_control_phy(phy, PHY_FUNC_RELEASE_SPINUP_HOLD, NULL);
129 struct asd_sas_phy *phy = sas_ha->sas_phy[i];
131 phy->error = 0;
132 INIT_LIST_HEAD(&phy->port_phy_el);
134 INIT_WORK(&phy->port_events[k].work,
136 phy->port_events[k].phy = phy;
140 INIT_WORK(&phy->phy_events[k].work,
142 phy->phy_events[k].phy = phy;
145 phy->port = NULL;
146 phy->ha = sas_ha;
147 spin_lock_init(&phy->frame_rcvd_lock);
148 spin_lock_init(&phy->sas_prim_lock);
149 phy->frame_rcvd_size = 0;
151 phy->phy = sas_phy_alloc(&sas_ha->core.shost->shost_gendev,
153 if (!phy->phy)
156 phy->phy->identify.initiator_port_protocols =
157 phy->iproto;
158 phy->phy->identify.target_port_protocols = phy->tproto;
159 phy->phy->identify.sas_address = SAS_ADDR(sas_ha->sas_addr);
160 phy->phy->identify.phy_identifier = i;
161 phy->phy->minimum_linkrate_hw = SAS_LINK_RATE_UNKNOWN;
162 phy->phy->maximum_linkrate_hw = SAS_LINK_RATE_UNKNOWN;
163 phy->phy->minimum_linkrate = SAS_LINK_RATE_UNKNOWN;
164 phy->phy->maximum_linkrate = SAS_LINK_RATE_UNKNOWN;
165 phy->phy->negotiated_linkrate = SAS_LINK_RATE_UNKNOWN;
167 sas_phy_add(phy->phy);