Lines Matching refs:hpsa_sas_port

9552 				struct hpsa_sas_port *hpsa_sas_port)  in hpsa_alloc_sas_phy()  argument
9561 phy = sas_phy_alloc(hpsa_sas_port->parent_node->parent_dev, in hpsa_alloc_sas_phy()
9562 hpsa_sas_port->next_phy_index); in hpsa_alloc_sas_phy()
9568 hpsa_sas_port->next_phy_index++; in hpsa_alloc_sas_phy()
9570 hpsa_sas_phy->parent_port = hpsa_sas_port; in hpsa_alloc_sas_phy()
9589 struct hpsa_sas_port *hpsa_sas_port; in hpsa_sas_port_add_phy() local
9593 hpsa_sas_port = hpsa_sas_phy->parent_port; in hpsa_sas_port_add_phy()
9598 identify->sas_address = hpsa_sas_port->sas_address; in hpsa_sas_port_add_phy()
9612 sas_port_add_phy(hpsa_sas_port->port, hpsa_sas_phy->phy); in hpsa_sas_port_add_phy()
9614 &hpsa_sas_port->phy_list_head); in hpsa_sas_port_add_phy()
9621 hpsa_sas_port_add_rphy(struct hpsa_sas_port *hpsa_sas_port, in hpsa_sas_port_add_rphy() argument
9627 identify->sas_address = hpsa_sas_port->sas_address; in hpsa_sas_port_add_rphy()
9634 static struct hpsa_sas_port
9639 struct hpsa_sas_port *hpsa_sas_port; in hpsa_alloc_sas_port() local
9642 hpsa_sas_port = kzalloc(sizeof(*hpsa_sas_port), GFP_KERNEL); in hpsa_alloc_sas_port()
9643 if (!hpsa_sas_port) in hpsa_alloc_sas_port()
9646 INIT_LIST_HEAD(&hpsa_sas_port->phy_list_head); in hpsa_alloc_sas_port()
9647 hpsa_sas_port->parent_node = hpsa_sas_node; in hpsa_alloc_sas_port()
9657 hpsa_sas_port->port = port; in hpsa_alloc_sas_port()
9658 hpsa_sas_port->sas_address = sas_address; in hpsa_alloc_sas_port()
9659 list_add_tail(&hpsa_sas_port->port_list_entry, in hpsa_alloc_sas_port()
9662 return hpsa_sas_port; in hpsa_alloc_sas_port()
9667 kfree(hpsa_sas_port); in hpsa_alloc_sas_port()
9672 static void hpsa_free_sas_port(struct hpsa_sas_port *hpsa_sas_port) in hpsa_free_sas_port() argument
9678 &hpsa_sas_port->phy_list_head, phy_list_entry) in hpsa_free_sas_port()
9681 sas_port_delete(hpsa_sas_port->port); in hpsa_free_sas_port()
9682 list_del(&hpsa_sas_port->port_list_entry); in hpsa_free_sas_port()
9683 kfree(hpsa_sas_port); in hpsa_free_sas_port()
9701 struct hpsa_sas_port *hpsa_sas_port; in hpsa_free_sas_node() local
9702 struct hpsa_sas_port *next; in hpsa_free_sas_node()
9707 list_for_each_entry_safe(hpsa_sas_port, next, in hpsa_free_sas_node()
9709 hpsa_free_sas_port(hpsa_sas_port); in hpsa_free_sas_node()
9737 struct hpsa_sas_port *hpsa_sas_port; in hpsa_add_sas_host() local
9746 hpsa_sas_port = hpsa_alloc_sas_port(hpsa_sas_node, h->sas_address); in hpsa_add_sas_host()
9747 if (!hpsa_sas_port) { in hpsa_add_sas_host()
9752 hpsa_sas_phy = hpsa_alloc_sas_phy(hpsa_sas_port); in hpsa_add_sas_host()
9769 hpsa_free_sas_port(hpsa_sas_port); in hpsa_add_sas_host()
9785 struct hpsa_sas_port *hpsa_sas_port; in hpsa_add_sas_device() local
9788 hpsa_sas_port = hpsa_alloc_sas_port(hpsa_sas_node, device->sas_address); in hpsa_add_sas_device()
9789 if (!hpsa_sas_port) in hpsa_add_sas_device()
9792 rphy = sas_end_device_alloc(hpsa_sas_port->port); in hpsa_add_sas_device()
9798 hpsa_sas_port->rphy = rphy; in hpsa_add_sas_device()
9799 device->sas_port = hpsa_sas_port; in hpsa_add_sas_device()
9801 rc = hpsa_sas_port_add_rphy(hpsa_sas_port, rphy); in hpsa_add_sas_device()
9808 hpsa_free_sas_port(hpsa_sas_port); in hpsa_add_sas_device()