Lines Matching defs:mpt2sas_phy
490 struct _sas_phy *mpt2sas_phy;
503 list_for_each_entry(mpt2sas_phy, &mpt2sas_port->phy_list,
505 dev_printk(KERN_ERR, &mpt2sas_phy->phy->dev,
506 "phy_number(%d)\n", mpt2sas_phy->phy_id);
507 if (mpt2sas_phy->phy_id == phy_num)
562 struct _sas_phy *mpt2sas_phy, *next;
629 list_for_each_entry(mpt2sas_phy, &mpt2sas_port->phy_list,
636 mpt2sas_phy->phy_id);
637 sas_port_add_phy(port, mpt2sas_phy->phy);
638 mpt2sas_phy->phy_belongs_to_port = 1;
675 list_for_each_entry_safe(mpt2sas_phy, next, &mpt2sas_port->phy_list,
677 list_del(&mpt2sas_phy->port_siblings);
703 struct _sas_phy *mpt2sas_phy, *next_phy;
729 list_for_each_entry_safe(mpt2sas_phy, next_phy,
736 mpt2sas_phy->phy_id);
737 mpt2sas_phy->phy_belongs_to_port = 0;
738 sas_port_delete_phy(mpt2sas_port->port, mpt2sas_phy->phy);
739 list_del(&mpt2sas_phy->port_siblings);
748 * @mpt2sas_phy: mpt2sas per phy object
756 *mpt2sas_phy, Mpi2SasPhyPage0_t phy_pg0, struct device *parent_dev)
759 int phy_index = mpt2sas_phy->phy_id;
762 INIT_LIST_HEAD(&mpt2sas_phy->port_siblings);
769 if ((_transport_set_identify(ioc, mpt2sas_phy->handle,
770 &mpt2sas_phy->identify))) {
775 phy->identify = mpt2sas_phy->identify;
776 mpt2sas_phy->attached_handle = le16_to_cpu(phy_pg0.AttachedDevHandle);
777 if (mpt2sas_phy->attached_handle)
778 _transport_set_identify(ioc, mpt2sas_phy->attached_handle,
779 &mpt2sas_phy->remote_identify);
780 phy->identify.phy_identifier = mpt2sas_phy->phy_id;
802 mpt2sas_phy->handle, (unsigned long long)
803 mpt2sas_phy->identify.sas_address,
804 mpt2sas_phy->attached_handle,
806 mpt2sas_phy->remote_identify.sas_address);
807 mpt2sas_phy->phy = phy;
815 * @mpt2sas_phy: mpt2sas per phy object
823 *mpt2sas_phy, Mpi2ExpanderPage1_t expander_pg1, struct device *parent_dev)
826 int phy_index = mpt2sas_phy->phy_id;
828 INIT_LIST_HEAD(&mpt2sas_phy->port_siblings);
835 if ((_transport_set_identify(ioc, mpt2sas_phy->handle,
836 &mpt2sas_phy->identify))) {
841 phy->identify = mpt2sas_phy->identify;
842 mpt2sas_phy->attached_handle =
844 if (mpt2sas_phy->attached_handle)
845 _transport_set_identify(ioc, mpt2sas_phy->attached_handle,
846 &mpt2sas_phy->remote_identify);
847 phy->identify.phy_identifier = mpt2sas_phy->phy_id;
870 mpt2sas_phy->handle, (unsigned long long)
871 mpt2sas_phy->identify.sas_address,
872 mpt2sas_phy->attached_handle,
874 mpt2sas_phy->remote_identify.sas_address);
875 mpt2sas_phy->phy = phy;
895 struct _sas_phy *mpt2sas_phy;
906 mpt2sas_phy = &sas_node->phy[phy_number];
907 mpt2sas_phy->attached_handle = handle;
910 &mpt2sas_phy->remote_identify);
912 memset(&mpt2sas_phy->remote_identify, 0 , sizeof(struct
915 if (mpt2sas_phy->phy)
916 mpt2sas_phy->phy->negotiated_linkrate =
920 dev_printk(KERN_INFO, &mpt2sas_phy->phy->dev,
926 mpt2sas_phy->remote_identify.sas_address);