Lines Matching refs:hpsa_sas_node
240 static int hpsa_add_sas_device(struct hpsa_sas_node *hpsa_sas_node,
9650 *hpsa_alloc_sas_port(struct hpsa_sas_node *hpsa_sas_node, in hpsa_alloc_sas_port() argument
9662 hpsa_sas_port->parent_node = hpsa_sas_node; in hpsa_alloc_sas_port()
9664 port = sas_port_alloc_num(hpsa_sas_node->parent_dev); in hpsa_alloc_sas_port()
9675 &hpsa_sas_node->port_list_head); in hpsa_alloc_sas_port()
9701 static struct hpsa_sas_node *hpsa_alloc_sas_node(struct device *parent_dev) in hpsa_alloc_sas_node()
9703 struct hpsa_sas_node *hpsa_sas_node; in hpsa_alloc_sas_node() local
9705 hpsa_sas_node = kzalloc(sizeof(*hpsa_sas_node), GFP_KERNEL); in hpsa_alloc_sas_node()
9706 if (hpsa_sas_node) { in hpsa_alloc_sas_node()
9707 hpsa_sas_node->parent_dev = parent_dev; in hpsa_alloc_sas_node()
9708 INIT_LIST_HEAD(&hpsa_sas_node->port_list_head); in hpsa_alloc_sas_node()
9711 return hpsa_sas_node; in hpsa_alloc_sas_node()
9714 static void hpsa_free_sas_node(struct hpsa_sas_node *hpsa_sas_node) in hpsa_free_sas_node() argument
9719 if (!hpsa_sas_node) in hpsa_free_sas_node()
9723 &hpsa_sas_node->port_list_head, port_list_entry) in hpsa_free_sas_node()
9726 kfree(hpsa_sas_node); in hpsa_free_sas_node()
9751 struct hpsa_sas_node *hpsa_sas_node; in hpsa_add_sas_host() local
9757 hpsa_sas_node = hpsa_alloc_sas_node(parent_dev); in hpsa_add_sas_host()
9758 if (!hpsa_sas_node) in hpsa_add_sas_host()
9761 hpsa_sas_port = hpsa_alloc_sas_port(hpsa_sas_node, h->sas_address); in hpsa_add_sas_host()
9777 h->sas_host = hpsa_sas_node; in hpsa_add_sas_host()
9787 hpsa_free_sas_node(hpsa_sas_node); in hpsa_add_sas_host()
9797 static int hpsa_add_sas_device(struct hpsa_sas_node *hpsa_sas_node, in hpsa_add_sas_device() argument
9804 hpsa_sas_port = hpsa_alloc_sas_port(hpsa_sas_node, device->sas_address); in hpsa_add_sas_device()