Lines Matching refs:hpsa_sas_node

241 static int hpsa_add_sas_device(struct hpsa_sas_node *hpsa_sas_node,
9635 *hpsa_alloc_sas_port(struct hpsa_sas_node *hpsa_sas_node, in hpsa_alloc_sas_port() argument
9647 hpsa_sas_port->parent_node = hpsa_sas_node; in hpsa_alloc_sas_port()
9649 port = sas_port_alloc_num(hpsa_sas_node->parent_dev); in hpsa_alloc_sas_port()
9660 &hpsa_sas_node->port_list_head); in hpsa_alloc_sas_port()
9686 static struct hpsa_sas_node *hpsa_alloc_sas_node(struct device *parent_dev) in hpsa_alloc_sas_node()
9688 struct hpsa_sas_node *hpsa_sas_node; in hpsa_alloc_sas_node() local
9690 hpsa_sas_node = kzalloc(sizeof(*hpsa_sas_node), GFP_KERNEL); in hpsa_alloc_sas_node()
9691 if (hpsa_sas_node) { in hpsa_alloc_sas_node()
9692 hpsa_sas_node->parent_dev = parent_dev; in hpsa_alloc_sas_node()
9693 INIT_LIST_HEAD(&hpsa_sas_node->port_list_head); in hpsa_alloc_sas_node()
9696 return hpsa_sas_node; in hpsa_alloc_sas_node()
9699 static void hpsa_free_sas_node(struct hpsa_sas_node *hpsa_sas_node) in hpsa_free_sas_node() argument
9704 if (!hpsa_sas_node) in hpsa_free_sas_node()
9708 &hpsa_sas_node->port_list_head, port_list_entry) in hpsa_free_sas_node()
9711 kfree(hpsa_sas_node); in hpsa_free_sas_node()
9736 struct hpsa_sas_node *hpsa_sas_node; in hpsa_add_sas_host() local
9742 hpsa_sas_node = hpsa_alloc_sas_node(parent_dev); in hpsa_add_sas_host()
9743 if (!hpsa_sas_node) in hpsa_add_sas_host()
9746 hpsa_sas_port = hpsa_alloc_sas_port(hpsa_sas_node, h->sas_address); in hpsa_add_sas_host()
9762 h->sas_host = hpsa_sas_node; in hpsa_add_sas_host()
9771 hpsa_free_sas_node(hpsa_sas_node); in hpsa_add_sas_host()
9781 static int hpsa_add_sas_device(struct hpsa_sas_node *hpsa_sas_node, in hpsa_add_sas_device() argument
9788 hpsa_sas_port = hpsa_alloc_sas_port(hpsa_sas_node, device->sas_address); in hpsa_add_sas_device()