Lines Matching refs:port
64 * _transport_get_port_id_by_sas_phy - get zone's port id that Phy belong to
73 struct hba_port *port = phy->hostdata;
75 if (port)
76 port_id = port->port_id;
85 * @port: hba port entry
93 u64 sas_address, struct hba_port *port)
99 sas_address, port);
127 port_id = sas_expander->port->port_id;
136 port_id = sas_device->port->port_id;
348 * Fills in the sas_expander_device object when SMP port is created.
496 * _transport_delete_port - helper function to removing a port
498 * @mpt3sas_port: mpt3sas per port object
505 struct hba_port *port = mpt3sas_port->hba_port;
509 dev_printk(KERN_INFO, &mpt3sas_port->port->dev,
516 sas_address, port);
519 mpt3sas_expander_remove(ioc, sas_address, port);
524 * _transport_delete_phy - helper function to removing single phy from port
526 * @mpt3sas_port: mpt3sas per port object
541 sas_port_delete_phy(mpt3sas_port->port, mpt3sas_phy->phy);
546 * _transport_add_phy - helper function to adding single phy to port
548 * @mpt3sas_port: mpt3sas per port object
563 sas_port_add_phy(mpt3sas_port->port, mpt3sas_phy->phy);
568 * mpt3sas_transport_add_phy_to_an_existing_port - adding new phy to existing port
573 * @port: hba port entry
578 u64 sas_address, struct hba_port *port)
586 if (!port)
594 if (mpt3sas_port->hba_port != port)
608 * mpt3sas_transport_del_phy_from_an_existing_port - delete phy from existing port
631 * Don't delete port during host reset,
645 * _transport_sanity_check - sanity check when adding a new port
649 * @port: hba port entry
655 u64 sas_address, struct hba_port *port)
662 if (sas_node->phy[i].port != port)
671 * mpt3sas_transport_port_add - insert port to the list
675 * @hba_port: hba port entry
678 * Adding new port object to the sas_node->sas_port_list.
693 struct sas_port *port;
744 if (sas_node->phy[i].port != hba_port)
787 port = sas_port_alloc_num(sas_node->parent_dev);
788 if (!port || (sas_port_add(port))) {
797 dev_printk(KERN_INFO, &port->dev,
802 sas_port_add_phy(port, mpt3sas_phy->phy);
804 mpt3sas_phy->port = hba_port;
807 mpt3sas_port->port = port;
809 rphy = sas_end_device_alloc(port);
820 rphy = sas_expander_alloc(port,
868 sas_port_delete(port);
879 * mpt3sas_transport_port_remove - remove port from the list
883 * @port: hba port entry
891 u64 sas_address_parent, struct hba_port *port)
902 if (!port)
907 sas_address_parent, port);
916 if (mpt3sas_port->hba_port != port)
930 if (port->vphys_mask) {
932 &port->vphys_list, list) {
936 "remove vphy entry: %p of port:%p,from %d port's vphys list\n",
937 vphy, port, port->port_id);
938 port->vphys_mask &= ~vphy->phy_mask;
946 if (hba_port != port)
955 * this vSES device's port number (hence hba_port
961 "remove hba_port entry: %p port: %d from hba_port list\n",
969 * and a vSES device has the same port number
970 * as of current device's port number. Hence
975 "clearing sas_address from hba_port entry: %p port: %d from hba_port list\n",
977 port->sas_address = 0;
994 dev_printk(KERN_INFO, &mpt3sas_port->port->dev,
1001 sas_port_delete_phy(mpt3sas_port->port,
1006 sas_port_delete(mpt3sas_port->port);
1059 phy->hostdata = mpt3sas_phy->port;
1130 phy->hostdata = mpt3sas_phy->port;
1158 * @port: hba port entry
1165 struct hba_port *port)
1177 sas_address, port);
1194 hba_port == port)
1201 port);
1426 struct hba_port *port = phy->hostdata;
1427 int port_id = port->port_id;
1714 struct hba_port *port = phy->hostdata;
1715 int port_id = port->port_id;
1774 struct hba_port *port = phy->hostdata;
1775 int port_id = port->port_id;
1824 ioc_err(ioc, "discovery is active on port = %d, phy = %d: unable to enable/disable phys, try again later!\n",
1914 struct hba_port *port = phy->hostdata;
1915 int port_id = port->port_id;