drivers/message/fusion/mptsas.c
2027
static int mptsas_get_linkerrors(struct sas_phy *phy)
drivers/message/fusion/mptsas.c
2107
static int mptsas_phy_reset(struct sas_phy *phy, int hard_reset)
drivers/message/fusion/mptsas.c
3062
struct sas_phy *phy;
drivers/message/fusion/mptsas.c
389
static inline MPT_ADAPTER *phy_to_ioc(struct sas_phy *phy)
drivers/message/fusion/mptsas.h
169
struct sas_phy *phy; /* transport layer phy object */
drivers/scsi/aic94xx/aic94xx_dump.c
754
spin_lock_irqsave(&phy->sas_phy.frame_rcvd_lock, flags);
drivers/scsi/aic94xx/aic94xx_dump.c
755
for (i = 0; i < phy->sas_phy.frame_rcvd_size; i+=4)
drivers/scsi/aic94xx/aic94xx_dump.c
762
spin_unlock_irqrestore(&phy->sas_phy.frame_rcvd_lock, flags);
drivers/scsi/aic94xx/aic94xx_hwi.c
121
phy->sas_phy.enabled = 0;
drivers/scsi/aic94xx/aic94xx_hwi.c
122
phy->sas_phy.id = i;
drivers/scsi/aic94xx/aic94xx_hwi.c
123
phy->sas_phy.sas_addr = &phy->phy_desc->sas_addr[0];
drivers/scsi/aic94xx/aic94xx_hwi.c
124
phy->sas_phy.frame_rcvd = &phy->frame_rcvd[0];
drivers/scsi/aic94xx/aic94xx_hwi.c
125
phy->sas_phy.ha = &asd_ha->sas_ha;
drivers/scsi/aic94xx/aic94xx_hwi.c
126
phy->sas_phy.lldd_phy = phy;
drivers/scsi/aic94xx/aic94xx_hwi.c
60
if (phy->sas_phy.role & PHY_ROLE_INITIATOR)
drivers/scsi/aic94xx/aic94xx_hwi.c
61
phy->identify_frame->initiator_bits = phy->sas_phy.iproto;
drivers/scsi/aic94xx/aic94xx_hwi.c
62
if (phy->sas_phy.role & PHY_ROLE_TARGET)
drivers/scsi/aic94xx/aic94xx_hwi.c
63
phy->identify_frame->target_bits = phy->sas_phy.tproto;
drivers/scsi/aic94xx/aic94xx_hwi.c
66
phy->identify_frame->phy_id = phy->sas_phy.id;
drivers/scsi/aic94xx/aic94xx_hwi.c
71
struct asd_ha_struct *asd_ha = phy->sas_phy.ha->lldd_ha;
drivers/scsi/aic94xx/aic94xx_hwi.c
72
struct asd_sas_phy *sas_phy = &phy->sas_phy;
drivers/scsi/aic94xx/aic94xx_hwi.c
74
sas_phy->enabled = 1;
drivers/scsi/aic94xx/aic94xx_hwi.c
75
sas_phy->iproto = SAS_PROTOCOL_ALL;
drivers/scsi/aic94xx/aic94xx_hwi.c
76
sas_phy->tproto = 0;
drivers/scsi/aic94xx/aic94xx_hwi.c
77
sas_phy->role = PHY_ROLE_INITIATOR;
drivers/scsi/aic94xx/aic94xx_hwi.c
78
sas_phy->oob_mode = OOB_NOT_CONNECTED;
drivers/scsi/aic94xx/aic94xx_hwi.c
79
sas_phy->linkrate = SAS_LINK_RATE_UNKNOWN;
drivers/scsi/aic94xx/aic94xx_hwi.c
85
asd_printk("no mem for IDENTIFY for phy%d\n", sas_phy->id);
drivers/scsi/aic94xx/aic94xx_init.c
659
sas_phys[i] = &asd_ha->phys[i].sas_phy;
drivers/scsi/aic94xx/aic94xx_init.c
663
asd_ha->sas_ha.sas_phy = sas_phys;
drivers/scsi/aic94xx/aic94xx_init.c
679
kfree(asd_ha->sas_ha.sas_phy);
drivers/scsi/aic94xx/aic94xx_sas.h
677
struct asd_sas_phy sas_phy;
drivers/scsi/aic94xx/aic94xx_scb.c
105
sas_phy_disconnected(&phy->sas_phy);
drivers/scsi/aic94xx/aic94xx_scb.c
106
sas_notify_phy_event(&phy->sas_phy, PHYE_OOB_ERROR, GFP_ATOMIC);
drivers/scsi/aic94xx/aic94xx_scb.c
139
if (phy->sas_phy.frame_rcvd[0] == 0x34
drivers/scsi/aic94xx/aic94xx_scb.c
140
&& phy->sas_phy.oob_mode == SATA_OOB_MODE) {
drivers/scsi/aic94xx/aic94xx_scb.c
141
struct asd_ha_struct *asd_ha = phy->sas_phy.ha->lldd_ha;
drivers/scsi/aic94xx/aic94xx_scb.c
149
(void *) phy->sas_phy.frame_rcvd;
drivers/scsi/aic94xx/aic94xx_scb.c
159
struct asd_sas_phy *sas_phy = &phy->sas_phy;
drivers/scsi/aic94xx/aic94xx_scb.c
169
memcmp(port->sas_addr, sas_phy->sas_addr,
drivers/scsi/aic94xx/aic94xx_scb.c
172
sas_phy->attached_sas_addr,
drivers/scsi/aic94xx/aic94xx_scb.c
187
memcpy(port->sas_addr, sas_phy->sas_addr,
drivers/scsi/aic94xx/aic94xx_scb.c
190
sas_phy->attached_sas_addr,
drivers/scsi/aic94xx/aic94xx_scb.c
194
port->phy_mask |= (1U << sas_phy->id);
drivers/scsi/aic94xx/aic94xx_scb.c
198
__func__, phy->asd_port->phy_mask, sas_phy->id);
drivers/scsi/aic94xx/aic94xx_scb.c
206
struct asd_sas_phy *sas_phy = &phy->sas_phy;
drivers/scsi/aic94xx/aic94xx_scb.c
212
port->phy_mask &= ~(1U << sas_phy->id);
drivers/scsi/aic94xx/aic94xx_scb.c
230
spin_lock_irqsave(&phy->sas_phy.frame_rcvd_lock, flags);
drivers/scsi/aic94xx/aic94xx_scb.c
231
memcpy(phy->sas_phy.frame_rcvd, edb->vaddr, size);
drivers/scsi/aic94xx/aic94xx_scb.c
232
phy->sas_phy.frame_rcvd_size = size;
drivers/scsi/aic94xx/aic94xx_scb.c
233
asd_get_attached_sas_addr(phy, phy->sas_phy.attached_sas_addr);
drivers/scsi/aic94xx/aic94xx_scb.c
234
spin_unlock_irqrestore(&phy->sas_phy.frame_rcvd_lock, flags);
drivers/scsi/aic94xx/aic94xx_scb.c
237
sas_notify_port_event(&phy->sas_phy, PORTE_BYTES_DMAED, GFP_ATOMIC);
drivers/scsi/aic94xx/aic94xx_scb.c
246
struct asd_sas_phy *sas_phy = sas_ha->sas_phy[phy_id];
drivers/scsi/aic94xx/aic94xx_scb.c
271
sas_phy_disconnected(sas_phy);
drivers/scsi/aic94xx/aic94xx_scb.c
273
sas_notify_port_event(sas_phy, PORTE_LINK_RESET_ERR, GFP_ATOMIC);
drivers/scsi/aic94xx/aic94xx_scb.c
299
struct asd_sas_phy *sas_phy = sas_ha->sas_phy[phy_id];
drivers/scsi/aic94xx/aic94xx_scb.c
315
spin_lock_irqsave(&sas_phy->sas_prim_lock, flags);
drivers/scsi/aic94xx/aic94xx_scb.c
316
sas_phy->sas_prim = ffs(cont);
drivers/scsi/aic94xx/aic94xx_scb.c
317
spin_unlock_irqrestore(&sas_phy->sas_prim_lock, flags);
drivers/scsi/aic94xx/aic94xx_scb.c
318
sas_notify_port_event(sas_phy, PORTE_BROADCAST_RCVD,
drivers/scsi/aic94xx/aic94xx_scb.c
340
sas_notify_port_event(sas_phy, PORTE_HARD_RESET,
drivers/scsi/aic94xx/aic94xx_scb.c
38
struct sas_phy *sas_phy = phy->sas_phy.phy;
drivers/scsi/aic94xx/aic94xx_scb.c
407
struct asd_sas_phy *sas_phy = sas_ha->sas_phy[phy_id];
drivers/scsi/aic94xx/aic94xx_scb.c
43
phy->sas_phy.linkrate = SAS_LINK_RATE_6_0_GBPS;
drivers/scsi/aic94xx/aic94xx_scb.c
44
phy->sas_phy.phy->negotiated_linkrate = SAS_LINK_RATE_6_0_GBPS;
drivers/scsi/aic94xx/aic94xx_scb.c
47
phy->sas_phy.linkrate = SAS_LINK_RATE_3_0_GBPS;
drivers/scsi/aic94xx/aic94xx_scb.c
48
phy->sas_phy.phy->negotiated_linkrate = SAS_LINK_RATE_3_0_GBPS;
drivers/scsi/aic94xx/aic94xx_scb.c
51
phy->sas_phy.linkrate = SAS_LINK_RATE_1_5_GBPS;
drivers/scsi/aic94xx/aic94xx_scb.c
52
phy->sas_phy.phy->negotiated_linkrate = SAS_LINK_RATE_1_5_GBPS;
drivers/scsi/aic94xx/aic94xx_scb.c
55
sas_phy->negotiated_linkrate = phy->sas_phy.linkrate;
drivers/scsi/aic94xx/aic94xx_scb.c
56
sas_phy->maximum_linkrate_hw = SAS_LINK_RATE_3_0_GBPS;
drivers/scsi/aic94xx/aic94xx_scb.c
57
sas_phy->minimum_linkrate_hw = SAS_LINK_RATE_1_5_GBPS;
drivers/scsi/aic94xx/aic94xx_scb.c
570
sas_phy_disconnected(sas_phy);
drivers/scsi/aic94xx/aic94xx_scb.c
572
sas_notify_port_event(sas_phy, PORTE_TIMER_EVENT, GFP_ATOMIC);
drivers/scsi/aic94xx/aic94xx_scb.c
58
sas_phy->maximum_linkrate = phy->phy_desc->max_sas_lrate;
drivers/scsi/aic94xx/aic94xx_scb.c
59
sas_phy->minimum_linkrate = phy->phy_desc->min_sas_lrate;
drivers/scsi/aic94xx/aic94xx_scb.c
62
phy->sas_phy.oob_mode = SAS_OOB_MODE;
drivers/scsi/aic94xx/aic94xx_scb.c
64
phy->sas_phy.oob_mode = SATA_OOB_MODE;
drivers/scsi/aic94xx/aic94xx_scb.c
661
__func__, phy_id,phy->sas_phy.linkrate,
drivers/scsi/aic94xx/aic94xx_scb.c
662
phy->sas_phy.iproto);
drivers/scsi/aic94xx/aic94xx_scb.c
786
if (phy->sas_phy.role == PHY_ROLE_INITIATOR)
drivers/scsi/aic94xx/aic94xx_scb.c
788
else if (phy->sas_phy.role == PHY_ROLE_TARGET)
drivers/scsi/aic94xx/aic94xx_scb.c
82
sas_phy_disconnected(&phy->sas_phy);
drivers/scsi/aic94xx/aic94xx_scb.c
83
sas_notify_phy_event(&phy->sas_phy, PHYE_LOSS_OF_SIGNAL,
drivers/scsi/aic94xx/aic94xx_scb.c
91
phy_id, phy->sas_phy.linkrate, phy->sas_phy.iproto);
drivers/scsi/aic94xx/aic94xx_scb.c
92
sas_notify_phy_event(&phy->sas_phy, PHYE_OOB_DONE, GFP_ATOMIC);
drivers/scsi/aic94xx/aic94xx_scb.c
97
sas_notify_phy_event(&phy->sas_phy, PHYE_SPINUP_HOLD,
drivers/scsi/aic94xx/aic94xx_tmf.c
165
struct sas_phy *phy = sas_get_local_phy(dev);
drivers/scsi/hisi_sas/hisi_sas.h
185
struct asd_sas_phy sas_phy;
drivers/scsi/hisi_sas/hisi_sas_main.c
1022
int phy_no = phy->sas_phy.id;
drivers/scsi/hisi_sas/hisi_sas_main.c
1065
struct asd_sas_phy *sas_phy = &phy->sas_phy;
drivers/scsi/hisi_sas/hisi_sas_main.c
1072
sas_phy->enabled = (phy_no < hisi_hba->n_phy) ? 1 : 0;
drivers/scsi/hisi_sas/hisi_sas_main.c
1073
sas_phy->iproto = SAS_PROTOCOL_ALL;
drivers/scsi/hisi_sas/hisi_sas_main.c
1074
sas_phy->tproto = 0;
drivers/scsi/hisi_sas/hisi_sas_main.c
1075
sas_phy->role = PHY_ROLE_INITIATOR;
drivers/scsi/hisi_sas/hisi_sas_main.c
1076
sas_phy->oob_mode = OOB_NOT_CONNECTED;
drivers/scsi/hisi_sas/hisi_sas_main.c
1077
sas_phy->linkrate = SAS_LINK_RATE_UNKNOWN;
drivers/scsi/hisi_sas/hisi_sas_main.c
1078
sas_phy->id = phy_no;
drivers/scsi/hisi_sas/hisi_sas_main.c
1079
sas_phy->sas_addr = &hisi_hba->sas_addr[0];
drivers/scsi/hisi_sas/hisi_sas_main.c
1080
sas_phy->frame_rcvd = &phy->frame_rcvd[0];
drivers/scsi/hisi_sas/hisi_sas_main.c
1081
sas_phy->ha = (struct sas_ha_struct *)hisi_hba->shost->hostdata;
drivers/scsi/hisi_sas/hisi_sas_main.c
1082
sas_phy->lldd_phy = phy;
drivers/scsi/hisi_sas/hisi_sas_main.c
1096
struct asd_sas_phy *aphy = &phy->sas_phy;
drivers/scsi/hisi_sas/hisi_sas_main.c
1097
struct sas_phy *sphy = aphy->phy;
drivers/scsi/hisi_sas/hisi_sas_main.c
1116
static void hisi_sas_port_notify_formed(struct asd_sas_phy *sas_phy)
drivers/scsi/hisi_sas/hisi_sas_main.c
1118
struct hisi_sas_phy *phy = sas_phy->lldd_phy;
drivers/scsi/hisi_sas/hisi_sas_main.c
1119
struct asd_sas_port *sas_port = sas_phy->port;
drivers/scsi/hisi_sas/hisi_sas_main.c
1251
struct asd_sas_phy *sas_phy = &phy->sas_phy;
drivers/scsi/hisi_sas/hisi_sas_main.c
1258
max = sas_phy->phy->maximum_linkrate;
drivers/scsi/hisi_sas/hisi_sas_main.c
1262
min = sas_phy->phy->minimum_linkrate;
drivers/scsi/hisi_sas/hisi_sas_main.c
1269
sas_phy->phy->maximum_linkrate = max;
drivers/scsi/hisi_sas/hisi_sas_main.c
1270
sas_phy->phy->minimum_linkrate = min;
drivers/scsi/hisi_sas/hisi_sas_main.c
1280
static int hisi_sas_control_phy(struct asd_sas_phy *sas_phy, enum phy_func func,
drivers/scsi/hisi_sas/hisi_sas_main.c
1283
struct hisi_sas_phy *phy = container_of(sas_phy,
drivers/scsi/hisi_sas/hisi_sas_main.c
1284
struct hisi_sas_phy, sas_phy);
drivers/scsi/hisi_sas/hisi_sas_main.c
1285
struct sas_ha_struct *sas_ha = sas_phy->ha;
drivers/scsi/hisi_sas/hisi_sas_main.c
1289
int phy_no = sas_phy->id;
drivers/scsi/hisi_sas/hisi_sas_main.c
1407
struct asd_sas_phy *sas_phy;
drivers/scsi/hisi_sas/hisi_sas_main.c
1417
list_for_each_entry(sas_phy, &sas_port->phy_list, port_phy_el)
drivers/scsi/hisi_sas/hisi_sas_main.c
1418
if (state & BIT(sas_phy->id)) {
drivers/scsi/hisi_sas/hisi_sas_main.c
1419
phy = sas_phy->lldd_phy;
drivers/scsi/hisi_sas/hisi_sas_main.c
1429
device->linkrate = phy->sas_phy.linkrate;
drivers/scsi/hisi_sas/hisi_sas_main.c
1445
struct asd_sas_phy *sas_phy = &phy->sas_phy;
drivers/scsi/hisi_sas/hisi_sas_main.c
1446
struct asd_sas_port *sas_port = sas_phy->port;
drivers/scsi/hisi_sas/hisi_sas_main.c
1449
if (!sas_phy->phy->enabled)
drivers/scsi/hisi_sas/hisi_sas_main.c
1460
sas_notify_port_event(sas_phy,
drivers/scsi/hisi_sas/hisi_sas_main.c
1593
int phy_no = phy->sas_phy.id;
drivers/scsi/hisi_sas/hisi_sas_main.c
1613
struct asd_sas_phy *sas_phy = &phy->sas_phy;
drivers/scsi/hisi_sas/hisi_sas_main.c
1615
if (!sas_phy->phy->enabled)
drivers/scsi/hisi_sas/hisi_sas_main.c
1819
struct sas_phy *local_phy = sas_get_local_phy(device);
drivers/scsi/hisi_sas/hisi_sas_main.c
1831
struct asd_sas_phy *sas_phy =
drivers/scsi/hisi_sas/hisi_sas_main.c
1832
sas_ha->sas_phy[local_phy->number];
drivers/scsi/hisi_sas/hisi_sas_main.c
1834
container_of(sas_phy, struct hisi_sas_phy, sas_phy);
drivers/scsi/hisi_sas/hisi_sas_main.c
1849
struct asd_sas_phy *sas_phy =
drivers/scsi/hisi_sas/hisi_sas_main.c
1850
sas_ha->sas_phy[local_phy->number];
drivers/scsi/hisi_sas/hisi_sas_main.c
1852
container_of(sas_phy, struct hisi_sas_phy, sas_phy);
drivers/scsi/hisi_sas/hisi_sas_main.c
1861
hisi_sas_phy_down(hisi_hba, sas_phy->id, 0, GFP_KERNEL);
drivers/scsi/hisi_sas/hisi_sas_main.c
1928
struct sas_phy *phy = sas_get_local_phy(device);
drivers/scsi/hisi_sas/hisi_sas_main.c
2067
static void hisi_sas_port_formed(struct asd_sas_phy *sas_phy)
drivers/scsi/hisi_sas/hisi_sas_main.c
2069
hisi_sas_port_notify_formed(sas_phy);
drivers/scsi/hisi_sas/hisi_sas_main.c
2086
struct asd_sas_phy *sas_phy = &phy->sas_phy;
drivers/scsi/hisi_sas/hisi_sas_main.c
2087
struct sas_phy *sphy = sas_phy->phy;
drivers/scsi/hisi_sas/hisi_sas_main.c
2106
struct asd_sas_phy *sas_phy = &phy->sas_phy;
drivers/scsi/hisi_sas/hisi_sas_main.c
2112
hisi_sas_port_notify_formed(sas_phy);
drivers/scsi/hisi_sas/hisi_sas_main.c
2122
sas_notify_phy_event(sas_phy, PHYE_LOSS_OF_SIGNAL, gfp_flags);
drivers/scsi/hisi_sas/hisi_sas_main.c
2123
sas_phy_disconnected(sas_phy);
drivers/scsi/hisi_sas/hisi_sas_main.c
2142
struct asd_sas_phy *sas_phy = &phy->sas_phy;
drivers/scsi/hisi_sas/hisi_sas_main.c
2148
sas_notify_port_event(sas_phy, PORTE_BROADCAST_RCVD, GFP_ATOMIC);
drivers/scsi/hisi_sas/hisi_sas_main.c
24
static int hisi_sas_control_phy(struct asd_sas_phy *sas_phy, enum phy_func func,
drivers/scsi/hisi_sas/hisi_sas_main.c
2574
sha->sas_phy = arr_phy;
drivers/scsi/hisi_sas/hisi_sas_main.c
2598
sha->sas_phy[i] = &hisi_hba->phy[i].sas_phy;
drivers/scsi/hisi_sas/hisi_sas_main.c
653
struct asd_sas_phy *sas_phy = &phy->sas_phy;
drivers/scsi/hisi_sas/hisi_sas_main.c
658
sas_notify_phy_event(sas_phy, PHYE_OOB_DONE, gfp_flags);
drivers/scsi/hisi_sas/hisi_sas_main.c
660
if (sas_phy->phy) {
drivers/scsi/hisi_sas/hisi_sas_main.c
661
struct sas_phy *sphy = sas_phy->phy;
drivers/scsi/hisi_sas/hisi_sas_main.c
663
sphy->negotiated_linkrate = sas_phy->linkrate;
drivers/scsi/hisi_sas/hisi_sas_main.c
685
sas_phy->frame_rcvd_size = phy->frame_rcvd_size;
drivers/scsi/hisi_sas/hisi_sas_main.c
686
sas_notify_port_event(sas_phy, PORTE_BYTES_DMAED, gfp_flags);
drivers/scsi/hisi_sas/hisi_sas_main.c
945
struct asd_sas_phy *sas_phy = &phy->sas_phy;
drivers/scsi/hisi_sas/hisi_sas_main.c
946
struct asd_sas_port *sas_port = sas_phy->port;
drivers/scsi/hisi_sas/hisi_sas_main.c
950
int phy_no = sas_phy->id;
drivers/scsi/hisi_sas/hisi_sas_main.c
983
struct asd_sas_phy *sas_phy = &phy->sas_phy;
drivers/scsi/hisi_sas/hisi_sas_main.c
985
hisi_sas_control_phy(sas_phy, PHY_FUNC_LINK_RESET, NULL);
drivers/scsi/hisi_sas/hisi_sas_v1_hw.c
1320
struct asd_sas_phy *sas_phy = &phy->sas_phy;
drivers/scsi/hisi_sas/hisi_sas_v1_hw.c
1321
int i, phy_no = sas_phy->id;
drivers/scsi/hisi_sas/hisi_sas_v1_hw.c
1323
u32 *frame_rcvd = (u32 *)sas_phy->frame_rcvd;
drivers/scsi/hisi_sas/hisi_sas_v1_hw.c
1359
sas_phy->linkrate = link_rate;
drivers/scsi/hisi_sas/hisi_sas_v1_hw.c
1360
sas_phy->oob_mode = SAS_OOB_MODE;
drivers/scsi/hisi_sas/hisi_sas_v1_hw.c
1361
memcpy(sas_phy->attached_sas_addr,
drivers/scsi/hisi_sas/hisi_sas_v1_hw.c
1399
struct asd_sas_phy *sas_phy = &phy->sas_phy;
drivers/scsi/hisi_sas/hisi_sas_v1_hw.c
1401
int phy_no = sas_phy->id;
drivers/scsi/hisi_sas/hisi_sas_v1_hw.c
1428
struct asd_sas_phy *sas_phy = &phy->sas_phy;
drivers/scsi/hisi_sas/hisi_sas_v1_hw.c
1430
int phy_no = sas_phy->id;
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
1230
struct asd_sas_phy *sas_phy = &phy->sas_phy;
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
1233
if (!sas_phy->phy || (sas_phy->phy->maximum_linkrate <
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
1237
enum sas_linkrate max = sas_phy->phy->maximum_linkrate;
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
1561
struct asd_sas_phy *sas_phy = &phy->sas_phy;
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
1562
struct sas_phy *sphy = sas_phy->phy;
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
1583
struct asd_sas_phy *sas_phy = &phy->sas_phy;
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
1585
if (!sas_phy->phy->enabled)
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
2586
struct asd_sas_phy *sas_phy;
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
2594
list_for_each_entry(sas_phy, &asd_sas_port->phy_list, port_phy_el) {
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
2595
struct hisi_sas_phy *phy = sas_phy->lldd_phy;
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
2597
int phy_no = sas_phy->id;
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
2651
struct asd_sas_phy *sas_phy = &phy->sas_phy;
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
2653
u32 *frame_rcvd = (u32 *)sas_phy->frame_rcvd;
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
2689
sas_phy->linkrate = link_rate;
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
2690
sas_phy->oob_mode = SAS_OOB_MODE;
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
2691
memcpy(sas_phy->attached_sas_addr, &id->sas_addr, SAS_ADDR_SIZE);
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
3202
struct asd_sas_phy *sas_phy = &phy->sas_phy;
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
3213
phy_no = sas_phy->id;
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
3261
sas_phy->linkrate = link_rate;
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
3267
sas_phy->oob_mode = SATA_OOB_MODE;
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
3272
memcpy(sas_phy->attached_sas_addr, attached_sas_addr, SAS_ADDR_SIZE);
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
3273
memcpy(sas_phy->frame_rcvd, fis, sizeof(struct dev_to_host_fis));
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
1126
struct asd_sas_phy *sas_phy = &phy->sas_phy;
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
1128
if (!sas_phy->phy->enabled)
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
1588
struct asd_sas_phy *sas_phy = &phy->sas_phy;
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
1603
sas_phy->linkrate = link_rate;
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
1627
sas_phy->oob_mode = SATA_OOB_MODE;
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
1631
memcpy(sas_phy->attached_sas_addr,
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
1634
memcpy(sas_phy->frame_rcvd, fis,
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
1641
u32 *frame_rcvd = (u32 *)sas_phy->frame_rcvd;
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
1651
sas_phy->oob_mode = SAS_OOB_MODE;
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
1652
memcpy(sas_phy->attached_sas_addr,
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
1857
struct asd_sas_phy *sas_phy = &phy->sas_phy;
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
1858
struct sas_phy *sphy = sas_phy->phy;
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
1921
struct asd_sas_phy *sas_phy = &phy->sas_phy;
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
1922
struct sas_phy *sphy = sas_phy->phy;
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
4456
int phy_no = phy->sas_phy.id;
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
4528
int phy_no = phy->sas_phy.id;
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
4988
sha->sas_phy = arr_phy;
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
5011
sha->sas_phy[i] = &hisi_hba->phy[i].sas_phy;
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
715
struct asd_sas_phy *sas_phy = &phy->sas_phy;
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
720
if (!sas_phy->phy || (sas_phy->phy->maximum_linkrate <
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
724
max = sas_phy->phy->maximum_linkrate;
drivers/scsi/hpsa.c
9554
struct sas_phy *phy;
drivers/scsi/hpsa.c
9576
struct sas_phy *phy = hpsa_sas_phy->phy;
drivers/scsi/hpsa.c
9589
struct sas_phy *phy;
drivers/scsi/hpsa.c
9825
hpsa_sas_get_linkerrors(struct sas_phy *phy)
drivers/scsi/hpsa.c
9861
hpsa_sas_phy_reset(struct sas_phy *phy, int hard_reset)
drivers/scsi/hpsa.c
9867
hpsa_sas_phy_enable(struct sas_phy *phy, int enable)
drivers/scsi/hpsa.c
9873
hpsa_sas_phy_setup(struct sas_phy *phy)
drivers/scsi/hpsa.c
9879
hpsa_sas_phy_release(struct sas_phy *phy)
drivers/scsi/hpsa.c
9884
hpsa_sas_phy_speed(struct sas_phy *phy, struct sas_phy_linkrates *rates)
drivers/scsi/hpsa.h
56
struct sas_phy *phy;
drivers/scsi/isci/init.c
239
sas_phys[i] = &isci_host->phys[i].sas_phy;
drivers/scsi/isci/init.c
243
sas_ha->sas_phy = sas_phys;
drivers/scsi/isci/phy.c
1032
spin_lock_irqsave(&iphy->sas_phy.frame_rcvd_lock, flags);
drivers/scsi/isci/phy.c
1036
spin_unlock_irqrestore(&iphy->sas_phy.frame_rcvd_lock, flags);
drivers/scsi/isci/phy.c
1400
iphy->sas_phy.enabled = 0;
drivers/scsi/isci/phy.c
1401
iphy->sas_phy.id = index;
drivers/scsi/isci/phy.c
1402
iphy->sas_phy.sas_addr = &iphy->sas_addr[0];
drivers/scsi/isci/phy.c
1403
iphy->sas_phy.frame_rcvd = (u8 *)&iphy->frame_rcvd;
drivers/scsi/isci/phy.c
1404
iphy->sas_phy.ha = &ihost->sas_ha;
drivers/scsi/isci/phy.c
1405
iphy->sas_phy.lldd_phy = iphy;
drivers/scsi/isci/phy.c
1406
iphy->sas_phy.enabled = 1;
drivers/scsi/isci/phy.c
1407
iphy->sas_phy.iproto = SAS_PROTOCOL_ALL;
drivers/scsi/isci/phy.c
1408
iphy->sas_phy.tproto = 0;
drivers/scsi/isci/phy.c
1409
iphy->sas_phy.role = PHY_ROLE_INITIATOR;
drivers/scsi/isci/phy.c
1410
iphy->sas_phy.oob_mode = OOB_NOT_CONNECTED;
drivers/scsi/isci/phy.c
1411
iphy->sas_phy.linkrate = SAS_LINK_RATE_UNKNOWN;
drivers/scsi/isci/phy.c
1425
int isci_phy_control(struct asd_sas_phy *sas_phy,
drivers/scsi/isci/phy.c
1430
struct isci_phy *iphy = sas_phy->lldd_phy;
drivers/scsi/isci/phy.c
1431
struct asd_sas_port *port = sas_phy->port;
drivers/scsi/isci/phy.c
1432
struct isci_host *ihost = sas_phy->ha->lldd_ha;
drivers/scsi/isci/phy.c
1437
__func__, sas_phy, func, buf, iphy, port);
drivers/scsi/isci/phy.c
1464
struct sas_phy *phy = sas_phy->phy;
drivers/scsi/isci/phy.c
1477
__func__, sas_phy, func);
drivers/scsi/isci/phy.c
989
spin_lock_irqsave(&iphy->sas_phy.frame_rcvd_lock, flags);
drivers/scsi/isci/phy.c
991
spin_unlock_irqrestore(&iphy->sas_phy.frame_rcvd_lock, flags);
drivers/scsi/isci/phy.h
106
static inline struct isci_phy *to_iphy(struct asd_sas_phy *sas_phy)
drivers/scsi/isci/phy.h
108
struct isci_phy *iphy = container_of(sas_phy, typeof(*iphy), sas_phy);
drivers/scsi/isci/phy.h
98
struct asd_sas_phy sas_phy;
drivers/scsi/isci/port.c
165
__func__, iphy, &iphy->sas_phy);
drivers/scsi/isci/port.c
167
sas_notify_port_event(&iphy->sas_phy,
drivers/scsi/isci/port.c
184
spin_lock_irqsave(&iphy->sas_phy.frame_rcvd_lock, flags);
drivers/scsi/isci/port.c
191
iphy->sas_phy.oob_mode = SATA_OOB_MODE;
drivers/scsi/isci/port.c
192
iphy->sas_phy.frame_rcvd_size = sizeof(struct dev_to_host_fis);
drivers/scsi/isci/port.c
206
memcpy(&iphy->sas_phy.attached_sas_addr,
drivers/scsi/isci/port.c
209
iphy->sas_phy.oob_mode = SAS_OOB_MODE;
drivers/scsi/isci/port.c
210
iphy->sas_phy.frame_rcvd_size = sizeof(struct sas_identify_frame);
drivers/scsi/isci/port.c
213
memcpy(iphy->sas_phy.attached_sas_addr,
drivers/scsi/isci/port.c
220
iphy->sas_phy.phy->negotiated_linkrate = sci_phy_linkrate(iphy);
drivers/scsi/isci/port.c
222
spin_unlock_irqrestore(&iphy->sas_phy.frame_rcvd_lock, flags);
drivers/scsi/isci/port.c
227
sas_notify_port_event(&iphy->sas_phy,
drivers/scsi/isci/port.c
252
if (isci_phy->sas_phy.port &&
drivers/scsi/isci/port.c
253
isci_phy->sas_phy.port->num_phys == 1) {
drivers/scsi/isci/port.c
273
sas_phy_disconnected(&isci_phy->sas_phy);
drivers/scsi/isci/port.c
274
sas_notify_phy_event(&isci_phy->sas_phy,
drivers/scsi/isci/task.c
720
struct sas_phy *phy = sas_get_local_phy(dev);
drivers/scsi/libsas/sas_ata.c
304
struct sas_phy *phy = sas_get_local_phy(dev);
drivers/scsi/libsas/sas_ata.c
332
struct sas_phy *phy = sas_get_local_phy(dev);
drivers/scsi/libsas/sas_ata.c
403
struct sas_phy *phy;
drivers/scsi/libsas/sas_ata.c
551
struct sas_phy *local_phy = sas_get_local_phy(dev);
drivers/scsi/libsas/sas_ata.c
678
struct sas_phy *cphy = child->phy;
drivers/scsi/libsas/sas_discover.c
429
struct sas_phy *new_phy;
drivers/scsi/libsas/sas_event.c
103
struct asd_sas_phy *sas_phy;
drivers/scsi/libsas/sas_event.c
114
sas_phy = container_of(port->phy_list.next, struct asd_sas_phy,
drivers/scsi/libsas/sas_event.c
117
sas_notify_port_event(sas_phy,
drivers/scsi/libsas/sas_expander.c
658
int sas_smp_get_phy_events(struct sas_phy *phy)
drivers/scsi/libsas/sas_host_smp.c
151
if (!sas_ha->sas_phy[phy_id]->port)
drivers/scsi/libsas/sas_host_smp.c
154
rphy = sas_ha->sas_phy[phy_id]->port->port_dev->rphy;
drivers/scsi/libsas/sas_host_smp.c
156
sas_ha->sas_phy[phy_id]->port->port_dev->frame_rcvd;
drivers/scsi/libsas/sas_host_smp.c
162
memcpy(resp_data + 16, sas_ha->sas_phy[phy_id]->attached_sas_addr,
drivers/scsi/libsas/sas_host_smp.c
172
&sas_ha->sas_phy[phy_id]->port->port_dev->frame_rcvd[i];
drivers/scsi/libsas/sas_host_smp.c
194
asd_phy = sas_ha->sas_phy[phy_id];
drivers/scsi/libsas/sas_host_smp.c
22
struct sas_phy *phy;
drivers/scsi/libsas/sas_host_smp.c
31
phy = sas_ha->sas_phy[phy_id]->phy;
drivers/scsi/libsas/sas_host_smp.c
35
memcpy(resp_data + 24, sas_ha->sas_phy[phy_id]->attached_sas_addr,
drivers/scsi/libsas/sas_host_smp.c
42
if (!sas_ha->sas_phy[phy_id]->port ||
drivers/scsi/libsas/sas_host_smp.c
43
!sas_ha->sas_phy[phy_id]->port->port_dev)
drivers/scsi/libsas/sas_host_smp.c
46
rphy = sas_ha->sas_phy[phy_id]->port->port_dev->rphy;
drivers/scsi/libsas/sas_init.c
180
static int sas_get_linkerrors(struct sas_phy *phy)
drivers/scsi/libsas/sas_init.c
185
struct asd_sas_phy *asd_phy = sas_ha->sas_phy[phy->number];
drivers/scsi/libsas/sas_init.c
222
static int transport_sas_phy_reset(struct sas_phy *phy, int hard_reset)
drivers/scsi/libsas/sas_init.c
234
struct asd_sas_phy *asd_phy = sas_ha->sas_phy[phy->number];
drivers/scsi/libsas/sas_init.c
255
int sas_phy_enable(struct sas_phy *phy, int enable)
drivers/scsi/libsas/sas_init.c
268
struct asd_sas_phy *asd_phy = sas_ha->sas_phy[phy->number];
drivers/scsi/libsas/sas_init.c
289
int sas_phy_reset(struct sas_phy *phy, int hard_reset)
drivers/scsi/libsas/sas_init.c
305
struct asd_sas_phy *asd_phy = sas_ha->sas_phy[phy->number];
drivers/scsi/libsas/sas_init.c
319
static int sas_set_phy_speed(struct sas_phy *phy,
drivers/scsi/libsas/sas_init.c
341
struct asd_sas_phy *asd_phy = sas_ha->sas_phy[phy->number];
drivers/scsi/libsas/sas_init.c
367
struct asd_sas_phy *phy = ha->sas_phy[i];
drivers/scsi/libsas/sas_init.c
380
struct asd_sas_phy *phy = ha->sas_phy[i];
drivers/scsi/libsas/sas_init.c
430
struct asd_sas_phy *phy = ha->sas_phy[i];
drivers/scsi/libsas/sas_init.c
486
static void sas_phy_release(struct sas_phy *phy)
drivers/scsi/libsas/sas_init.c
506
static int sas_phy_setup(struct sas_phy *phy)
drivers/scsi/libsas/sas_init.c
522
static int queue_phy_reset(struct sas_phy *phy, int hard_reset)
drivers/scsi/libsas/sas_init.c
551
static int queue_phy_enable(struct sas_phy *phy, int enable)
drivers/scsi/libsas/sas_internal.h
179
struct sas_phy *phy = p->phy;
drivers/scsi/libsas/sas_internal.h
32
struct sas_phy *phy;
drivers/scsi/libsas/sas_internal.h
90
int sas_smp_get_phy_events(struct sas_phy *phy);
drivers/scsi/libsas/sas_phy.c
123
struct asd_sas_phy *phy = sas_ha->sas_phy[i];
drivers/scsi/libsas/sas_phy.c
162
struct asd_sas_phy *phy = sas_ha->sas_phy[i];
drivers/scsi/libsas/sas_phy.c
175
struct asd_sas_phy *phy = sas_ha->sas_phy[i];
drivers/scsi/libsas/sas_port.c
360
if (sas_ha->sas_phy[i]->port)
drivers/scsi/libsas/sas_port.c
361
sas_deform_port(sas_ha->sas_phy[i], false);
drivers/scsi/libsas/sas_scsi_host.c
371
struct sas_phy *sas_get_local_phy(struct domain_device *dev)
drivers/scsi/libsas/sas_scsi_host.c
374
struct sas_phy *phy;
drivers/scsi/mpi3mr/mpi3mr.h
585
struct sas_phy *phy;
drivers/scsi/mpi3mr/mpi3mr_transport.c
2454
static inline u8 mpi3mr_get_port_id_by_sas_phy(struct sas_phy *phy)
drivers/scsi/mpi3mr/mpi3mr_transport.c
2512
static inline struct mpi3mr_ioc *phy_to_mrioc(struct sas_phy *phy)
drivers/scsi/mpi3mr/mpi3mr_transport.c
2563
struct sas_phy *phy)
drivers/scsi/mpi3mr/mpi3mr_transport.c
2677
static int mpi3mr_transport_get_linkerrors(struct sas_phy *phy)
drivers/scsi/mpi3mr/mpi3mr_transport.c
2824
struct sas_phy *phy, u8 phy_operation)
drivers/scsi/mpi3mr/mpi3mr_transport.c
2937
mpi3mr_transport_phy_reset(struct sas_phy *phy, int hard_reset)
drivers/scsi/mpi3mr/mpi3mr_transport.c
2997
mpi3mr_transport_phy_enable(struct sas_phy *phy, int enable)
drivers/scsi/mpi3mr/mpi3mr_transport.c
3106
mpi3mr_transport_phy_speed(struct sas_phy *phy, struct sas_phy_linkrates *rates)
drivers/scsi/mpi3mr/mpi3mr_transport.c
524
static int mpi3mr_parent_present(struct mpi3mr_ioc *mrioc, struct sas_phy *phy)
drivers/scsi/mpi3mr/mpi3mr_transport.c
885
struct sas_phy *phy;
drivers/scsi/mpi3mr/mpi3mr_transport.c
956
struct sas_phy *phy;
drivers/scsi/mpt3sas/mpt3sas_base.h
787
struct sas_phy *phy;
drivers/scsi/mpt3sas/mpt3sas_transport.c
1021
struct sas_phy *phy;
drivers/scsi/mpt3sas/mpt3sas_transport.c
1091
struct sas_phy *phy;
drivers/scsi/mpt3sas/mpt3sas_transport.c
1217
phy_to_ioc(struct sas_phy *phy)
drivers/scsi/mpt3sas/mpt3sas_transport.c
1267
struct sas_phy *phy)
drivers/scsi/mpt3sas/mpt3sas_transport.c
1416
_transport_get_linkerrors(struct sas_phy *phy)
drivers/scsi/mpt3sas/mpt3sas_transport.c
1558
struct sas_phy *phy, u8 phy_operation)
drivers/scsi/mpt3sas/mpt3sas_transport.c
1705
_transport_phy_reset(struct sas_phy *phy, int hard_reset)
drivers/scsi/mpt3sas/mpt3sas_transport.c
1759
_transport_phy_enable(struct sas_phy *phy, int enable)
drivers/scsi/mpt3sas/mpt3sas_transport.c
1897
_transport_phy_speed(struct sas_phy *phy, struct sas_phy_linkrates *rates)
drivers/scsi/mpt3sas/mpt3sas_transport.c
70
_transport_get_port_id_by_sas_phy(struct sas_phy *phy)
drivers/scsi/mvsas/mv_64xx.c
579
struct asd_sas_phy *sas_phy = &phy->sas_phy;
drivers/scsi/mvsas/mv_64xx.c
581
sas_phy->linkrate =
drivers/scsi/mvsas/mv_94xx.c
868
struct asd_sas_phy *sas_phy = &phy->sas_phy;
drivers/scsi/mvsas/mv_94xx.c
870
sas_phy->linkrate =
drivers/scsi/mvsas/mv_94xx.c
873
sas_phy->linkrate += 0x8;
drivers/scsi/mvsas/mv_94xx.c
874
mv_dprintk("get link rate is %d\n", sas_phy->linkrate);
drivers/scsi/mvsas/mv_init.c
400
sha->sas_phy = arr_phy;
drivers/scsi/mvsas/mv_init.c
435
sha->sas_phy[j * chip_info->n_phy + i] =
drivers/scsi/mvsas/mv_init.c
436
&mvi->phy[i].sas_phy;
drivers/scsi/mvsas/mv_init.c
604
kfree(sha->sas_phy);
drivers/scsi/mvsas/mv_init.c
66
struct asd_sas_phy *sas_phy = &phy->sas_phy;
drivers/scsi/mvsas/mv_init.c
71
sas_phy->enabled = (phy_id < mvi->chip->n_phy) ? 1 : 0;
drivers/scsi/mvsas/mv_init.c
72
sas_phy->iproto = SAS_PROTOCOL_ALL;
drivers/scsi/mvsas/mv_init.c
73
sas_phy->tproto = 0;
drivers/scsi/mvsas/mv_init.c
74
sas_phy->role = PHY_ROLE_INITIATOR;
drivers/scsi/mvsas/mv_init.c
75
sas_phy->oob_mode = OOB_NOT_CONNECTED;
drivers/scsi/mvsas/mv_init.c
76
sas_phy->linkrate = SAS_LINK_RATE_UNKNOWN;
drivers/scsi/mvsas/mv_init.c
78
sas_phy->id = phy_id;
drivers/scsi/mvsas/mv_init.c
79
sas_phy->sas_addr = &mvi->sas_addr[0];
drivers/scsi/mvsas/mv_init.c
80
sas_phy->frame_rcvd = &phy->frame_rcvd[0];
drivers/scsi/mvsas/mv_init.c
81
sas_phy->ha = (struct sas_ha_struct *)mvi->shost->hostdata;
drivers/scsi/mvsas/mv_init.c
82
sas_phy->lldd_phy = phy;
drivers/scsi/mvsas/mv_sas.c
1010
sas_phy->oob_mode = SATA_OOB_MODE;
drivers/scsi/mvsas/mv_sas.c
102
while (sha->sas_phy[j]) {
drivers/scsi/mvsas/mv_sas.c
103
if (sha->sas_phy[j] == phy)
drivers/scsi/mvsas/mv_sas.c
1038
sas_phy->oob_mode = SAS_OOB_MODE;
drivers/scsi/mvsas/mv_sas.c
1042
memcpy(sas_phy->attached_sas_addr,
drivers/scsi/mvsas/mv_sas.c
1057
static void mvs_port_notify_formed(struct asd_sas_phy *sas_phy, int lock)
drivers/scsi/mvsas/mv_sas.c
1059
struct sas_ha_struct *sas_ha = sas_phy->ha;
drivers/scsi/mvsas/mv_sas.c
1061
struct mvs_phy *phy = sas_phy->lldd_phy;
drivers/scsi/mvsas/mv_sas.c
1062
struct asd_sas_port *sas_port = sas_phy->port;
drivers/scsi/mvsas/mv_sas.c
1068
while (sas_ha->sas_phy[i]) {
drivers/scsi/mvsas/mv_sas.c
1069
if (sas_ha->sas_phy[i] == sas_phy)
drivers/scsi/mvsas/mv_sas.c
1087
mvs_update_wideport(mvi, sas_phy->id);
drivers/scsi/mvsas/mv_sas.c
1099
static void mvs_port_notify_deformed(struct asd_sas_phy *sas_phy, int lock)
drivers/scsi/mvsas/mv_sas.c
1102
struct mvs_phy *phy = sas_phy->lldd_phy;
drivers/scsi/mvsas/mv_sas.c
1104
struct asd_sas_port *port = sas_phy->port;
drivers/scsi/mvsas/mv_sas.c
1118
void mvs_port_formed(struct asd_sas_phy *sas_phy)
drivers/scsi/mvsas/mv_sas.c
1120
mvs_port_notify_formed(sas_phy, 1);
drivers/scsi/mvsas/mv_sas.c
1123
void mvs_port_deformed(struct asd_sas_phy *sas_phy)
drivers/scsi/mvsas/mv_sas.c
1125
mvs_port_notify_deformed(sas_phy, 1);
drivers/scsi/mvsas/mv_sas.c
1242
struct sas_phy *phy = sas_get_local_phy(dev);
drivers/scsi/mvsas/mv_sas.c
154
int mvs_phy_control(struct asd_sas_phy *sas_phy, enum phy_func func,
drivers/scsi/mvsas/mv_sas.c
157
int rc = 0, phy_id = sas_phy->id;
drivers/scsi/mvsas/mv_sas.c
159
struct sas_ha_struct *sha = sas_phy->ha;
drivers/scsi/mvsas/mv_sas.c
162
while (sha->sas_phy[i]) {
drivers/scsi/mvsas/mv_sas.c
163
if (sha->sas_phy[i] == sas_phy)
drivers/scsi/mvsas/mv_sas.c
1702
struct asd_sas_phy *sas_phy = &phy->sas_phy;
drivers/scsi/mvsas/mv_sas.c
1713
sas_phy_disconnected(sas_phy);
drivers/scsi/mvsas/mv_sas.c
1715
sas_notify_phy_event(sas_phy,
drivers/scsi/mvsas/mv_sas.c
1722
mvs_port_notify_formed(sas_phy, 0);
drivers/scsi/mvsas/mv_sas.c
1728
sas_notify_port_event(sas_phy,
drivers/scsi/mvsas/mv_sas.c
1849
mvs_port_notify_formed(&phy->sas_phy, 0);
drivers/scsi/mvsas/mv_sas.c
213
struct asd_sas_phy *sas_phy = &phy->sas_phy;
drivers/scsi/mvsas/mv_sas.c
223
sas_notify_phy_event(sas_phy, PHYE_OOB_DONE, gfp_flags);
drivers/scsi/mvsas/mv_sas.c
225
if (sas_phy->phy) {
drivers/scsi/mvsas/mv_sas.c
226
struct sas_phy *sphy = sas_phy->phy;
drivers/scsi/mvsas/mv_sas.c
228
sphy->negotiated_linkrate = sas_phy->linkrate;
drivers/scsi/mvsas/mv_sas.c
253
sas_phy->frame_rcvd_size = phy->frame_rcvd_size;
drivers/scsi/mvsas/mv_sas.c
255
sas_notify_port_event(sas_phy, PORTE_BYTES_DMAED, gfp_flags);
drivers/scsi/mvsas/mv_sas.c
297
struct sas_phy *sphy = dev->phy;
drivers/scsi/mvsas/mv_sas.c
298
struct asd_sas_phy *sas_phy = sha->sas_phy[sphy->number];
drivers/scsi/mvsas/mv_sas.c
71
while (sha->sas_phy[j]) {
drivers/scsi/mvsas/mv_sas.c
72
if (sha->sas_phy[j] == phy)
drivers/scsi/mvsas/mv_sas.c
997
struct asd_sas_phy *sas_phy = &mvi->phy[i].sas_phy;
drivers/scsi/mvsas/mv_sas.h
205
struct asd_sas_phy sas_phy;
drivers/scsi/mvsas/mv_sas.h
428
int mvs_phy_control(struct asd_sas_phy *sas_phy, enum phy_func func,
drivers/scsi/mvsas/mv_sas.h
436
void mvs_port_formed(struct asd_sas_phy *sas_phy);
drivers/scsi/mvsas/mv_sas.h
437
void mvs_port_deformed(struct asd_sas_phy *sas_phy);
drivers/scsi/mvsas/mv_sas.h
60
#define MVS_PHY_ID (1U << sas_phy->id)
drivers/scsi/pm8001/pm8001_hwi.c
2996
struct asd_sas_phy *sas_phy = &phy->sas_phy;
drivers/scsi/pm8001/pm8001_hwi.c
3011
sas_phy->frame_rcvd_size = phy->frame_rcvd_size;
drivers/scsi/pm8001/pm8001_hwi.c
3012
sas_notify_port_event(sas_phy, PORTE_BYTES_DMAED, GFP_ATOMIC);
drivers/scsi/pm8001/pm8001_hwi.c
3018
struct sas_phy *sas_phy = phy->sas_phy.phy;
drivers/scsi/pm8001/pm8001_hwi.c
3022
phy->sas_phy.linkrate = SAS_LINK_RATE_12_0_GBPS;
drivers/scsi/pm8001/pm8001_hwi.c
3025
phy->sas_phy.linkrate = SAS_LINK_RATE_6_0_GBPS;
drivers/scsi/pm8001/pm8001_hwi.c
3028
phy->sas_phy.linkrate = SAS_LINK_RATE_3_0_GBPS;
drivers/scsi/pm8001/pm8001_hwi.c
3031
phy->sas_phy.linkrate = SAS_LINK_RATE_1_5_GBPS;
drivers/scsi/pm8001/pm8001_hwi.c
3034
sas_phy->negotiated_linkrate = phy->sas_phy.linkrate;
drivers/scsi/pm8001/pm8001_hwi.c
3035
sas_phy->maximum_linkrate_hw = phy->maximum_linkrate;
drivers/scsi/pm8001/pm8001_hwi.c
3036
sas_phy->minimum_linkrate_hw = SAS_LINK_RATE_1_5_GBPS;
drivers/scsi/pm8001/pm8001_hwi.c
3037
sas_phy->maximum_linkrate = phy->maximum_linkrate;
drivers/scsi/pm8001/pm8001_hwi.c
3038
sas_phy->minimum_linkrate = phy->minimum_linkrate;
drivers/scsi/pm8001/pm8001_hwi.c
3056
if (phy->sas_phy.frame_rcvd[0] == 0x34
drivers/scsi/pm8001/pm8001_hwi.c
3057
&& phy->sas_phy.oob_mode == SATA_OOB_MODE) {
drivers/scsi/pm8001/pm8001_hwi.c
3058
struct pm8001_hba_info *pm8001_ha = phy->sas_phy.ha->lldd_ha;
drivers/scsi/pm8001/pm8001_hwi.c
3061
addr += phy->sas_phy.id;
drivers/scsi/pm8001/pm8001_hwi.c
3065
(void *) phy->sas_phy.frame_rcvd;
drivers/scsi/pm8001/pm8001_hwi.c
3163
phy->sas_phy.oob_mode = SAS_OOB_MODE;
drivers/scsi/pm8001/pm8001_hwi.c
3164
sas_notify_phy_event(&phy->sas_phy, PHYE_OOB_DONE, GFP_ATOMIC);
drivers/scsi/pm8001/pm8001_hwi.c
3165
spin_lock_irqsave(&phy->sas_phy.frame_rcvd_lock, flags);
drivers/scsi/pm8001/pm8001_hwi.c
3169
pm8001_get_attached_sas_addr(phy, phy->sas_phy.attached_sas_addr);
drivers/scsi/pm8001/pm8001_hwi.c
3170
spin_unlock_irqrestore(&phy->sas_phy.frame_rcvd_lock, flags);
drivers/scsi/pm8001/pm8001_hwi.c
3208
phy->sas_phy.oob_mode = SATA_OOB_MODE;
drivers/scsi/pm8001/pm8001_hwi.c
3209
sas_notify_phy_event(&phy->sas_phy, PHYE_OOB_DONE, GFP_ATOMIC);
drivers/scsi/pm8001/pm8001_hwi.c
3210
spin_lock_irqsave(&phy->sas_phy.frame_rcvd_lock, flags);
drivers/scsi/pm8001/pm8001_hwi.c
3216
pm8001_get_attached_sas_addr(phy, phy->sas_phy.attached_sas_addr);
drivers/scsi/pm8001/pm8001_hwi.c
3217
spin_unlock_irqrestore(&phy->sas_phy.frame_rcvd_lock, flags);
drivers/scsi/pm8001/pm8001_hwi.c
3517
struct asd_sas_phy *sas_phy = sas_ha->sas_phy[phy_id];
drivers/scsi/pm8001/pm8001_hwi.c
3550
sas_notify_phy_event(&phy->sas_phy, PHYE_SPINUP_HOLD,
drivers/scsi/pm8001/pm8001_hwi.c
3555
sas_notify_phy_event(&phy->sas_phy, PHYE_LOSS_OF_SIGNAL,
drivers/scsi/pm8001/pm8001_hwi.c
3563
sas_phy_disconnected(sas_phy);
drivers/scsi/pm8001/pm8001_hwi.c
3565
sas_notify_port_event(sas_phy, PORTE_LINK_RESET_ERR,
drivers/scsi/pm8001/pm8001_hwi.c
3574
spin_lock_irqsave(&sas_phy->sas_prim_lock, flags);
drivers/scsi/pm8001/pm8001_hwi.c
3575
sas_phy->sas_prim = HW_EVENT_BROADCAST_CHANGE;
drivers/scsi/pm8001/pm8001_hwi.c
3576
spin_unlock_irqrestore(&sas_phy->sas_prim_lock, flags);
drivers/scsi/pm8001/pm8001_hwi.c
3577
sas_notify_port_event(sas_phy, PORTE_BROADCAST_RCVD,
drivers/scsi/pm8001/pm8001_hwi.c
3582
sas_phy_disconnected(&phy->sas_phy);
drivers/scsi/pm8001/pm8001_hwi.c
3584
sas_notify_phy_event(&phy->sas_phy, PHYE_OOB_ERROR, GFP_ATOMIC);
drivers/scsi/pm8001/pm8001_hwi.c
3588
spin_lock_irqsave(&sas_phy->sas_prim_lock, flags);
drivers/scsi/pm8001/pm8001_hwi.c
3589
sas_phy->sas_prim = HW_EVENT_BROADCAST_EXP;
drivers/scsi/pm8001/pm8001_hwi.c
3590
spin_unlock_irqrestore(&sas_phy->sas_prim_lock, flags);
drivers/scsi/pm8001/pm8001_hwi.c
3591
sas_notify_port_event(sas_phy, PORTE_BROADCAST_RCVD,
drivers/scsi/pm8001/pm8001_hwi.c
3599
sas_phy_disconnected(sas_phy);
drivers/scsi/pm8001/pm8001_hwi.c
3601
sas_notify_port_event(sas_phy, PORTE_LINK_RESET_ERR,
drivers/scsi/pm8001/pm8001_hwi.c
3610
sas_phy_disconnected(sas_phy);
drivers/scsi/pm8001/pm8001_hwi.c
3612
sas_notify_port_event(sas_phy, PORTE_LINK_RESET_ERR,
drivers/scsi/pm8001/pm8001_hwi.c
3621
sas_phy_disconnected(sas_phy);
drivers/scsi/pm8001/pm8001_hwi.c
3623
sas_notify_port_event(sas_phy, PORTE_LINK_RESET_ERR,
drivers/scsi/pm8001/pm8001_hwi.c
3632
sas_phy_disconnected(sas_phy);
drivers/scsi/pm8001/pm8001_hwi.c
3634
sas_notify_port_event(sas_phy, PORTE_LINK_RESET_ERR,
drivers/scsi/pm8001/pm8001_hwi.c
3642
spin_lock_irqsave(&sas_phy->sas_prim_lock, flags);
drivers/scsi/pm8001/pm8001_hwi.c
3643
sas_phy->sas_prim = HW_EVENT_BROADCAST_SES;
drivers/scsi/pm8001/pm8001_hwi.c
3644
spin_unlock_irqrestore(&sas_phy->sas_prim_lock, flags);
drivers/scsi/pm8001/pm8001_hwi.c
3645
sas_notify_port_event(sas_phy, PORTE_BROADCAST_RCVD,
drivers/scsi/pm8001/pm8001_hwi.c
3656
sas_notify_port_event(sas_phy, PORTE_HARD_RESET, GFP_ATOMIC);
drivers/scsi/pm8001/pm8001_hwi.c
3660
sas_phy_disconnected(sas_phy);
drivers/scsi/pm8001/pm8001_hwi.c
3662
sas_notify_port_event(sas_phy, PORTE_LINK_RESET_ERR,
drivers/scsi/pm8001/pm8001_hwi.c
3671
sas_phy_disconnected(sas_phy);
drivers/scsi/pm8001/pm8001_hwi.c
3673
sas_notify_port_event(sas_phy, PORTE_LINK_RESET_ERR,
drivers/scsi/pm8001/pm8001_hwi.c
3678
sas_phy_disconnected(sas_phy);
drivers/scsi/pm8001/pm8001_hwi.c
3680
sas_notify_port_event(sas_phy, PORTE_LINK_RESET_ERR,
drivers/scsi/pm8001/pm8001_hwi.c
3686
sas_phy_disconnected(sas_phy);
drivers/scsi/pm8001/pm8001_hwi.c
3688
sas_notify_port_event(sas_phy, PORTE_LINK_RESET_ERR,
drivers/scsi/pm8001/pm8001_init.c
1322
kfree(sha->sas_phy);
drivers/scsi/pm8001/pm8001_init.c
161
struct asd_sas_phy *sas_phy = &phy->sas_phy;
drivers/scsi/pm8001/pm8001_init.c
166
sas_phy->enabled = (phy_id < pm8001_ha->chip->n_phy) ? 1 : 0;
drivers/scsi/pm8001/pm8001_init.c
167
sas_phy->iproto = SAS_PROTOCOL_ALL;
drivers/scsi/pm8001/pm8001_init.c
168
sas_phy->tproto = 0;
drivers/scsi/pm8001/pm8001_init.c
169
sas_phy->role = PHY_ROLE_INITIATOR;
drivers/scsi/pm8001/pm8001_init.c
170
sas_phy->oob_mode = OOB_NOT_CONNECTED;
drivers/scsi/pm8001/pm8001_init.c
171
sas_phy->linkrate = SAS_LINK_RATE_UNKNOWN;
drivers/scsi/pm8001/pm8001_init.c
172
sas_phy->id = phy_id;
drivers/scsi/pm8001/pm8001_init.c
173
sas_phy->sas_addr = (u8 *)&phy->dev_sas_addr;
drivers/scsi/pm8001/pm8001_init.c
174
sas_phy->frame_rcvd = &phy->frame_rcvd[0];
drivers/scsi/pm8001/pm8001_init.c
175
sas_phy->ha = (struct sas_ha_struct *)pm8001_ha->shost->hostdata;
drivers/scsi/pm8001/pm8001_init.c
176
sas_phy->lldd_phy = phy;
drivers/scsi/pm8001/pm8001_init.c
623
sha->sas_phy = arr_phy;
drivers/scsi/pm8001/pm8001_init.c
656
sha->sas_phy[i] = &pm8001_ha->phy[i].sas_phy;
drivers/scsi/pm8001/pm8001_init.c
658
sha->sas_phy[i]->sas_addr =
drivers/scsi/pm8001/pm8001_sas.c
1003
struct sas_phy *phy = sas_get_local_phy(dev);
drivers/scsi/pm8001/pm8001_sas.c
1229
void pm8001_port_formed(struct asd_sas_phy *sas_phy)
drivers/scsi/pm8001/pm8001_sas.c
1231
struct sas_ha_struct *sas_ha = sas_phy->ha;
drivers/scsi/pm8001/pm8001_sas.c
1233
struct pm8001_phy *phy = sas_phy->lldd_phy;
drivers/scsi/pm8001/pm8001_sas.c
1234
struct asd_sas_port *sas_port = sas_phy->port;
drivers/scsi/pm8001/pm8001_sas.c
225
int pm8001_phy_control(struct asd_sas_phy *sas_phy, enum phy_func func,
drivers/scsi/pm8001/pm8001_sas.c
228
int rc = 0, phy_id = sas_phy->id;
drivers/scsi/pm8001/pm8001_sas.c
234
pm8001_ha = sas_phy->ha->lldd_ha;
drivers/scsi/pm8001/pm8001_sas.c
292
sas_phy_disconnected(&phy->sas_phy);
drivers/scsi/pm8001/pm8001_sas.c
293
sas_notify_phy_event(&phy->sas_phy,
drivers/scsi/pm8001/pm8001_sas.c
300
sas_phy_disconnected(&phy->sas_phy);
drivers/scsi/pm8001/pm8001_sas.c
301
sas_notify_phy_event(&phy->sas_phy,
drivers/scsi/pm8001/pm8001_sas.c
318
struct sas_phy *phy = sas_phy->phy;
drivers/scsi/pm8001/pm8001_sas.c
883
struct sas_phy *phy;
drivers/scsi/pm8001/pm8001_sas.c
932
struct sas_phy *phy;
drivers/scsi/pm8001/pm8001_sas.h
248
struct asd_sas_phy sas_phy;
drivers/scsi/pm8001/pm8001_sas.h
645
int pm8001_phy_control(struct asd_sas_phy *sas_phy, enum phy_func func,
drivers/scsi/pm8001/pm8001_sas.h
658
void pm8001_port_formed(struct asd_sas_phy *sas_phy);
drivers/scsi/pm8001/pm80xx_hwi.c
3168
phy->sas_phy.oob_mode = SAS_OOB_MODE;
drivers/scsi/pm8001/pm80xx_hwi.c
3240
phy->sas_phy.oob_mode = SAS_OOB_MODE;
drivers/scsi/pm8001/pm80xx_hwi.c
3241
sas_notify_phy_event(&phy->sas_phy, PHYE_OOB_DONE, GFP_ATOMIC);
drivers/scsi/pm8001/pm80xx_hwi.c
3242
spin_lock_irqsave(&phy->sas_phy.frame_rcvd_lock, flags);
drivers/scsi/pm8001/pm80xx_hwi.c
3246
pm8001_get_attached_sas_addr(phy, phy->sas_phy.attached_sas_addr);
drivers/scsi/pm8001/pm80xx_hwi.c
3247
spin_unlock_irqrestore(&phy->sas_phy.frame_rcvd_lock, flags);
drivers/scsi/pm8001/pm80xx_hwi.c
3289
phy->sas_phy.oob_mode = SATA_OOB_MODE;
drivers/scsi/pm8001/pm80xx_hwi.c
3290
sas_notify_phy_event(&phy->sas_phy, PHYE_OOB_DONE, GFP_ATOMIC);
drivers/scsi/pm8001/pm80xx_hwi.c
3291
spin_lock_irqsave(&phy->sas_phy.frame_rcvd_lock, flags);
drivers/scsi/pm8001/pm80xx_hwi.c
3297
pm8001_get_attached_sas_addr(phy, phy->sas_phy.attached_sas_addr);
drivers/scsi/pm8001/pm80xx_hwi.c
3298
spin_unlock_irqrestore(&phy->sas_phy.frame_rcvd_lock, flags);
drivers/scsi/pm8001/pm80xx_hwi.c
3345
sas_phy_disconnected(&phy->sas_phy);
drivers/scsi/pm8001/pm80xx_hwi.c
3369
sas_phy_disconnected(&phy->sas_phy);
drivers/scsi/pm8001/pm80xx_hwi.c
3380
sas_notify_phy_event(&phy->sas_phy, PHYE_LOSS_OF_SIGNAL,
drivers/scsi/pm8001/pm80xx_hwi.c
3466
struct asd_sas_phy *sas_phy = sas_ha->sas_phy[phy_id];
drivers/scsi/pm8001/pm80xx_hwi.c
3486
sas_notify_phy_event(&phy->sas_phy, PHYE_SPINUP_HOLD,
drivers/scsi/pm8001/pm80xx_hwi.c
3497
sas_phy_disconnected(sas_phy);
drivers/scsi/pm8001/pm80xx_hwi.c
3499
sas_notify_port_event(sas_phy, PORTE_LINK_RESET_ERR,
drivers/scsi/pm8001/pm80xx_hwi.c
3508
spin_lock_irqsave(&sas_phy->sas_prim_lock, flags);
drivers/scsi/pm8001/pm80xx_hwi.c
3509
sas_phy->sas_prim = HW_EVENT_BROADCAST_CHANGE;
drivers/scsi/pm8001/pm80xx_hwi.c
3510
spin_unlock_irqrestore(&sas_phy->sas_prim_lock, flags);
drivers/scsi/pm8001/pm80xx_hwi.c
3511
sas_notify_port_event(sas_phy, PORTE_BROADCAST_RCVD,
drivers/scsi/pm8001/pm80xx_hwi.c
3518
sas_phy_disconnected(&phy->sas_phy);
drivers/scsi/pm8001/pm80xx_hwi.c
3520
sas_notify_phy_event(&phy->sas_phy, PHYE_OOB_ERROR, GFP_ATOMIC);
drivers/scsi/pm8001/pm80xx_hwi.c
3524
spin_lock_irqsave(&sas_phy->sas_prim_lock, flags);
drivers/scsi/pm8001/pm80xx_hwi.c
3525
sas_phy->sas_prim = HW_EVENT_BROADCAST_EXP;
drivers/scsi/pm8001/pm80xx_hwi.c
3526
spin_unlock_irqrestore(&sas_phy->sas_prim_lock, flags);
drivers/scsi/pm8001/pm80xx_hwi.c
3527
sas_notify_port_event(sas_phy, PORTE_BROADCAST_RCVD,
drivers/scsi/pm8001/pm80xx_hwi.c
3567
spin_lock_irqsave(&sas_phy->sas_prim_lock, flags);
drivers/scsi/pm8001/pm80xx_hwi.c
3568
sas_phy->sas_prim = HW_EVENT_BROADCAST_SES;
drivers/scsi/pm8001/pm80xx_hwi.c
3569
spin_unlock_irqrestore(&sas_phy->sas_prim_lock, flags);
drivers/scsi/pm8001/pm80xx_hwi.c
3570
sas_notify_port_event(sas_phy, PORTE_BROADCAST_RCVD,
drivers/scsi/pm8001/pm80xx_hwi.c
3584
sas_notify_port_event(sas_phy, PORTE_HARD_RESET, GFP_ATOMIC);
drivers/scsi/pm8001/pm80xx_hwi.c
3589
sas_phy_disconnected(sas_phy);
drivers/scsi/pm8001/pm80xx_hwi.c
3591
sas_notify_port_event(sas_phy, PORTE_LINK_RESET_ERR,
drivers/scsi/pm8001/pm80xx_hwi.c
3601
sas_phy_disconnected(sas_phy);
drivers/scsi/pm8001/pm80xx_hwi.c
3603
sas_notify_port_event(sas_phy, PORTE_LINK_RESET_ERR,
drivers/scsi/pm8001/pm80xx_hwi.c
3614
sas_phy_disconnected(sas_phy);
drivers/scsi/pm8001/pm80xx_hwi.c
3617
sas_notify_port_event(sas_phy, PORTE_LINK_RESET_ERR,
drivers/scsi/pm8001/pm80xx_hwi.c
3636
sas_notify_phy_event(&phy->sas_phy,
drivers/scsi/pm8001/pm80xx_hwi.c
3695
phy->sas_phy.phy->negotiated_linkrate = SAS_PHY_DISABLED;
drivers/scsi/pm8001/pm80xx_hwi.c
3696
phy->sas_phy.linkrate = SAS_PHY_DISABLED;
drivers/scsi/scsi_transport_sas.c
1023
struct sas_phy *phy, *tmp_phy;
drivers/scsi/scsi_transport_sas.c
1069
struct sas_phy *sas_port_get_phy(struct sas_port *port)
drivers/scsi/scsi_transport_sas.c
1071
struct sas_phy *phy;
drivers/scsi/scsi_transport_sas.c
1100
void sas_port_add_phy(struct sas_port *port, struct sas_phy *phy)
drivers/scsi/scsi_transport_sas.c
1105
struct sas_phy *tmp;
drivers/scsi/scsi_transport_sas.c
1134
void sas_port_delete_phy(struct sas_port *port, struct sas_phy *phy)
drivers/scsi/scsi_transport_sas.c
1220
struct sas_phy *phy = dev_to_phy(rphy->dev.parent);
drivers/scsi/scsi_transport_sas.c
1240
struct sas_phy *phy = dev_to_phy(rphy->dev.parent);
drivers/scsi/scsi_transport_sas.c
453
struct sas_phy *phy = transport_class_to_phy(dev); \
drivers/scsi/scsi_transport_sas.c
467
struct sas_phy *phy = transport_class_to_phy(dev); \
drivers/scsi/scsi_transport_sas.c
483
struct sas_phy *phy = transport_class_to_phy(dev); \
drivers/scsi/scsi_transport_sas.c
495
struct sas_phy *phy = transport_class_to_phy(dev); \
drivers/scsi/scsi_transport_sas.c
527
struct sas_phy *phy = transport_class_to_phy(dev); \
drivers/scsi/scsi_transport_sas.c
547
struct sas_phy *phy = transport_class_to_phy(dev);
drivers/scsi/scsi_transport_sas.c
558
struct sas_phy *phy = transport_class_to_phy(dev);
drivers/scsi/scsi_transport_sas.c
595
struct sas_phy *phy = transport_class_to_phy(dev);
drivers/scsi/scsi_transport_sas.c
606
struct sas_phy *phy = transport_class_to_phy(dev);
drivers/scsi/scsi_transport_sas.c
654
struct sas_phy *phy = dev_to_phy(dev);
drivers/scsi/scsi_transport_sas.c
688
struct sas_phy *phy = dev_to_phy(dev);
drivers/scsi/scsi_transport_sas.c
710
struct sas_phy *sas_phy_alloc(struct device *parent, int number)
drivers/scsi/scsi_transport_sas.c
713
struct sas_phy *phy;
drivers/scsi/scsi_transport_sas.c
745
int sas_phy_add(struct sas_phy *phy)
drivers/scsi/scsi_transport_sas.c
774
void sas_phy_free(struct sas_phy *phy)
drivers/scsi/scsi_transport_sas.c
789
sas_phy_delete(struct sas_phy *phy)
drivers/scsi/scsi_transport_sas.c
869
struct sas_phy *phy)
drivers/scsi/scsi_transport_sas.c
887
struct sas_phy *phy)
drivers/scsi/smartpqi/smartpqi.h
1257
struct sas_phy *phy;
drivers/scsi/smartpqi/smartpqi_sas_transport.c
23
struct sas_phy *phy;
drivers/scsi/smartpqi/smartpqi_sas_transport.c
317
static int pqi_sas_get_linkerrors(struct sas_phy *phy)
drivers/scsi/smartpqi/smartpqi_sas_transport.c
428
static int pqi_sas_phy_reset(struct sas_phy *phy, int hard_reset)
drivers/scsi/smartpqi/smartpqi_sas_transport.c
433
static int pqi_sas_phy_enable(struct sas_phy *phy, int enable)
drivers/scsi/smartpqi/smartpqi_sas_transport.c
438
static int pqi_sas_phy_setup(struct sas_phy *phy)
drivers/scsi/smartpqi/smartpqi_sas_transport.c
443
static void pqi_sas_phy_release(struct sas_phy *phy)
drivers/scsi/smartpqi/smartpqi_sas_transport.c
447
static int pqi_sas_phy_speed(struct sas_phy *phy,
drivers/scsi/smartpqi/smartpqi_sas_transport.c
45
struct sas_phy *phy = pqi_sas_phy->phy;
drivers/scsi/smartpqi/smartpqi_sas_transport.c
58
struct sas_phy *phy;
include/scsi/libsas.h
106
struct sas_phy *phy;
include/scsi/libsas.h
169
struct sas_phy *phy;
include/scsi/libsas.h
312
struct sas_phy *phy;
include/scsi/libsas.h
377
struct asd_sas_phy **sas_phy; /* array of valid pointers, must be set */
include/scsi/libsas.h
431
static inline void sas_put_local_phy(struct sas_phy *phy)
include/scsi/libsas.h
690
int sas_phy_reset(struct sas_phy *phy, int hard_reset);
include/scsi/libsas.h
691
int sas_phy_enable(struct sas_phy *phy, int enable);
include/scsi/libsas.h
721
struct sas_phy *sas_get_local_phy(struct domain_device *dev);
include/scsi/scsi_transport_sas.h
175
int (*get_linkerrors)(struct sas_phy *);
include/scsi/scsi_transport_sas.h
178
int (*phy_reset)(struct sas_phy *, int);
include/scsi/scsi_transport_sas.h
179
int (*phy_enable)(struct sas_phy *, int);
include/scsi/scsi_transport_sas.h
180
int (*phy_setup)(struct sas_phy *);
include/scsi/scsi_transport_sas.h
181
void (*phy_release)(struct sas_phy *);
include/scsi/scsi_transport_sas.h
182
int (*set_phy_speed)(struct sas_phy *, struct sas_phy_linkrates *);
include/scsi/scsi_transport_sas.h
191
extern struct sas_phy *sas_phy_alloc(struct device *, int);
include/scsi/scsi_transport_sas.h
192
extern void sas_phy_free(struct sas_phy *);
include/scsi/scsi_transport_sas.h
193
extern int sas_phy_add(struct sas_phy *);
include/scsi/scsi_transport_sas.h
194
extern void sas_phy_delete(struct sas_phy *);
include/scsi/scsi_transport_sas.h
218
void sas_port_add_phy(struct sas_port *, struct sas_phy *);
include/scsi/scsi_transport_sas.h
219
void sas_port_delete_phy(struct sas_port *, struct sas_phy *);
include/scsi/scsi_transport_sas.h
222
struct sas_phy *sas_port_get_phy(struct sas_port *port);
include/scsi/scsi_transport_sas.h
223
static inline void sas_port_put_phy(struct sas_phy *phy)
include/scsi/scsi_transport_sas.h
89
container_of((d), struct sas_phy, dev)