Lines Matching refs:mpt3sas_phy

523  * @mpt3sas_phy: mpt3sas per phy object
527 struct _sas_port *mpt3sas_port, struct _sas_phy *mpt3sas_phy)
531 dev_printk(KERN_INFO, &mpt3sas_phy->phy->dev,
533 (unsigned long long) sas_address, mpt3sas_phy->phy_id);
535 list_del(&mpt3sas_phy->port_siblings);
537 sas_port_delete_phy(mpt3sas_port->port, mpt3sas_phy->phy);
538 mpt3sas_phy->phy_belongs_to_port = 0;
545 * @mpt3sas_phy: mpt3sas per phy object
549 struct _sas_phy *mpt3sas_phy)
553 dev_printk(KERN_INFO, &mpt3sas_phy->phy->dev,
555 sas_address, mpt3sas_phy->phy_id);
557 list_add_tail(&mpt3sas_phy->port_siblings, &mpt3sas_port->phy_list);
559 sas_port_add_phy(mpt3sas_port->port, mpt3sas_phy->phy);
560 mpt3sas_phy->phy_belongs_to_port = 1;
567 * @mpt3sas_phy: mpt3sas per phy object
573 struct _sas_node *sas_node, struct _sas_phy *mpt3sas_phy,
579 if (mpt3sas_phy->phy_belongs_to_port == 1)
594 if (phy_srch == mpt3sas_phy)
597 _transport_add_phy(ioc, mpt3sas_port, mpt3sas_phy);
607 * @mpt3sas_phy: mpt3sas per phy object
611 struct _sas_node *sas_node, struct _sas_phy *mpt3sas_phy)
616 if (mpt3sas_phy->phy_belongs_to_port == 0)
623 if (phy_srch != mpt3sas_phy)
634 mpt3sas_phy);
682 struct _sas_phy *mpt3sas_phy, *next;
790 list_for_each_entry(mpt3sas_phy, &mpt3sas_port->phy_list,
797 mpt3sas_phy->phy_id);
798 sas_port_add_phy(port, mpt3sas_phy->phy);
799 mpt3sas_phy->phy_belongs_to_port = 1;
800 mpt3sas_phy->port = hba_port;
867 list_for_each_entry_safe(mpt3sas_phy, next, &mpt3sas_port->phy_list,
869 list_del(&mpt3sas_phy->port_siblings);
894 struct _sas_phy *mpt3sas_phy, *next_phy;
987 list_for_each_entry_safe(mpt3sas_phy, next_phy,
994 mpt3sas_phy->phy_id);
995 mpt3sas_phy->phy_belongs_to_port = 0;
998 mpt3sas_phy->phy);
999 list_del(&mpt3sas_phy->port_siblings);
1011 * @mpt3sas_phy: mpt3sas per phy object
1019 *mpt3sas_phy, Mpi2SasPhyPage0_t phy_pg0, struct device *parent_dev)
1022 int phy_index = mpt3sas_phy->phy_id;
1025 INIT_LIST_HEAD(&mpt3sas_phy->port_siblings);
1032 if ((_transport_set_identify(ioc, mpt3sas_phy->handle,
1033 &mpt3sas_phy->identify))) {
1039 phy->identify = mpt3sas_phy->identify;
1040 mpt3sas_phy->attached_handle = le16_to_cpu(phy_pg0.AttachedDevHandle);
1041 if (mpt3sas_phy->attached_handle)
1042 _transport_set_identify(ioc, mpt3sas_phy->attached_handle,
1043 &mpt3sas_phy->remote_identify);
1044 phy->identify.phy_identifier = mpt3sas_phy->phy_id;
1055 phy->hostdata = mpt3sas_phy->port;
1067 mpt3sas_phy->handle, (unsigned long long)
1068 mpt3sas_phy->identify.sas_address,
1069 mpt3sas_phy->attached_handle,
1071 mpt3sas_phy->remote_identify.sas_address);
1072 mpt3sas_phy->phy = phy;
1080 * @mpt3sas_phy: mpt3sas per phy object
1088 *mpt3sas_phy, Mpi2ExpanderPage1_t expander_pg1,
1092 int phy_index = mpt3sas_phy->phy_id;
1094 INIT_LIST_HEAD(&mpt3sas_phy->port_siblings);
1101 if ((_transport_set_identify(ioc, mpt3sas_phy->handle,
1102 &mpt3sas_phy->identify))) {
1108 phy->identify = mpt3sas_phy->identify;
1109 mpt3sas_phy->attached_handle =
1111 if (mpt3sas_phy->attached_handle)
1112 _transport_set_identify(ioc, mpt3sas_phy->attached_handle,
1113 &mpt3sas_phy->remote_identify);
1114 phy->identify.phy_identifier = mpt3sas_phy->phy_id;
1126 phy->hostdata = mpt3sas_phy->port;
1138 mpt3sas_phy->handle, (unsigned long long)
1139 mpt3sas_phy->identify.sas_address,
1140 mpt3sas_phy->attached_handle,
1142 mpt3sas_phy->remote_identify.sas_address);
1143 mpt3sas_phy->phy = phy;
1165 struct _sas_phy *mpt3sas_phy;
1179 mpt3sas_phy = &sas_node->phy[phy_number];
1180 mpt3sas_phy->attached_handle = handle;
1184 &mpt3sas_phy->remote_identify);
1192 (1 << mpt3sas_phy->phy_id);
1196 mpt3sas_phy, mpt3sas_phy->remote_identify.sas_address,
1199 memset(&mpt3sas_phy->remote_identify, 0 , sizeof(struct
1202 if (mpt3sas_phy->phy)
1203 mpt3sas_phy->phy->negotiated_linkrate =
1207 dev_printk(KERN_INFO, &mpt3sas_phy->phy->dev,
1213 mpt3sas_phy->remote_identify.sas_address);