Lines Matching defs:hpsa_sas_port
9567 struct hpsa_sas_port *hpsa_sas_port)
9576 phy = sas_phy_alloc(hpsa_sas_port->parent_node->parent_dev,
9577 hpsa_sas_port->next_phy_index);
9583 hpsa_sas_port->next_phy_index++;
9585 hpsa_sas_phy->parent_port = hpsa_sas_port;
9604 struct hpsa_sas_port *hpsa_sas_port;
9608 hpsa_sas_port = hpsa_sas_phy->parent_port;
9613 identify->sas_address = hpsa_sas_port->sas_address;
9627 sas_port_add_phy(hpsa_sas_port->port, hpsa_sas_phy->phy);
9629 &hpsa_sas_port->phy_list_head);
9636 hpsa_sas_port_add_rphy(struct hpsa_sas_port *hpsa_sas_port,
9642 identify->sas_address = hpsa_sas_port->sas_address;
9649 static struct hpsa_sas_port
9654 struct hpsa_sas_port *hpsa_sas_port;
9657 hpsa_sas_port = kzalloc(sizeof(*hpsa_sas_port), GFP_KERNEL);
9658 if (!hpsa_sas_port)
9661 INIT_LIST_HEAD(&hpsa_sas_port->phy_list_head);
9662 hpsa_sas_port->parent_node = hpsa_sas_node;
9672 hpsa_sas_port->port = port;
9673 hpsa_sas_port->sas_address = sas_address;
9674 list_add_tail(&hpsa_sas_port->port_list_entry,
9677 return hpsa_sas_port;
9682 kfree(hpsa_sas_port);
9687 static void hpsa_free_sas_port(struct hpsa_sas_port *hpsa_sas_port)
9693 &hpsa_sas_port->phy_list_head, phy_list_entry)
9696 sas_port_delete(hpsa_sas_port->port);
9697 list_del(&hpsa_sas_port->port_list_entry);
9698 kfree(hpsa_sas_port);
9716 struct hpsa_sas_port *hpsa_sas_port;
9717 struct hpsa_sas_port *next;
9722 list_for_each_entry_safe(hpsa_sas_port, next,
9724 hpsa_free_sas_port(hpsa_sas_port);
9752 struct hpsa_sas_port *hpsa_sas_port;
9761 hpsa_sas_port = hpsa_alloc_sas_port(hpsa_sas_node, h->sas_address);
9762 if (!hpsa_sas_port) {
9767 hpsa_sas_phy = hpsa_alloc_sas_phy(hpsa_sas_port);
9785 hpsa_free_sas_port(hpsa_sas_port);
9801 struct hpsa_sas_port *hpsa_sas_port;
9804 hpsa_sas_port = hpsa_alloc_sas_port(hpsa_sas_node, device->sas_address);
9805 if (!hpsa_sas_port)
9808 rphy = sas_end_device_alloc(hpsa_sas_port->port);
9814 hpsa_sas_port->rphy = rphy;
9815 device->sas_port = hpsa_sas_port;
9817 rc = hpsa_sas_port_add_rphy(hpsa_sas_port, rphy);
9826 hpsa_free_sas_port(hpsa_sas_port);