Lines Matching defs:hpsa_sas_port
9552 struct hpsa_sas_port *hpsa_sas_port)
9561 phy = sas_phy_alloc(hpsa_sas_port->parent_node->parent_dev,
9562 hpsa_sas_port->next_phy_index);
9568 hpsa_sas_port->next_phy_index++;
9570 hpsa_sas_phy->parent_port = hpsa_sas_port;
9589 struct hpsa_sas_port *hpsa_sas_port;
9593 hpsa_sas_port = hpsa_sas_phy->parent_port;
9598 identify->sas_address = hpsa_sas_port->sas_address;
9612 sas_port_add_phy(hpsa_sas_port->port, hpsa_sas_phy->phy);
9614 &hpsa_sas_port->phy_list_head);
9621 hpsa_sas_port_add_rphy(struct hpsa_sas_port *hpsa_sas_port,
9627 identify->sas_address = hpsa_sas_port->sas_address;
9634 static struct hpsa_sas_port
9639 struct hpsa_sas_port *hpsa_sas_port;
9642 hpsa_sas_port = kzalloc(sizeof(*hpsa_sas_port), GFP_KERNEL);
9643 if (!hpsa_sas_port)
9646 INIT_LIST_HEAD(&hpsa_sas_port->phy_list_head);
9647 hpsa_sas_port->parent_node = hpsa_sas_node;
9657 hpsa_sas_port->port = port;
9658 hpsa_sas_port->sas_address = sas_address;
9659 list_add_tail(&hpsa_sas_port->port_list_entry,
9662 return hpsa_sas_port;
9667 kfree(hpsa_sas_port);
9672 static void hpsa_free_sas_port(struct hpsa_sas_port *hpsa_sas_port)
9678 &hpsa_sas_port->phy_list_head, phy_list_entry)
9681 sas_port_delete(hpsa_sas_port->port);
9682 list_del(&hpsa_sas_port->port_list_entry);
9683 kfree(hpsa_sas_port);
9701 struct hpsa_sas_port *hpsa_sas_port;
9702 struct hpsa_sas_port *next;
9707 list_for_each_entry_safe(hpsa_sas_port, next,
9709 hpsa_free_sas_port(hpsa_sas_port);
9737 struct hpsa_sas_port *hpsa_sas_port;
9746 hpsa_sas_port = hpsa_alloc_sas_port(hpsa_sas_node, h->sas_address);
9747 if (!hpsa_sas_port) {
9752 hpsa_sas_phy = hpsa_alloc_sas_phy(hpsa_sas_port);
9770 hpsa_free_sas_port(hpsa_sas_port);
9786 struct hpsa_sas_port *hpsa_sas_port;
9789 hpsa_sas_port = hpsa_alloc_sas_port(hpsa_sas_node, device->sas_address);
9790 if (!hpsa_sas_port)
9793 rphy = sas_end_device_alloc(hpsa_sas_port->port);
9799 hpsa_sas_port->rphy = rphy;
9800 device->sas_port = hpsa_sas_port;
9802 rc = hpsa_sas_port_add_rphy(hpsa_sas_port, rphy);
9811 hpsa_free_sas_port(hpsa_sas_port);