Lines Matching refs:hpsa_sas_node
240 static int hpsa_add_sas_device(struct hpsa_sas_node *hpsa_sas_node,
9643 *hpsa_alloc_sas_port(struct hpsa_sas_node *hpsa_sas_node, in hpsa_alloc_sas_port() argument
9655 hpsa_sas_port->parent_node = hpsa_sas_node; in hpsa_alloc_sas_port()
9657 port = sas_port_alloc_num(hpsa_sas_node->parent_dev); in hpsa_alloc_sas_port()
9668 &hpsa_sas_node->port_list_head); in hpsa_alloc_sas_port()
9694 static struct hpsa_sas_node *hpsa_alloc_sas_node(struct device *parent_dev) in hpsa_alloc_sas_node()
9696 struct hpsa_sas_node *hpsa_sas_node; in hpsa_alloc_sas_node() local
9698 hpsa_sas_node = kzalloc(sizeof(*hpsa_sas_node), GFP_KERNEL); in hpsa_alloc_sas_node()
9699 if (hpsa_sas_node) { in hpsa_alloc_sas_node()
9700 hpsa_sas_node->parent_dev = parent_dev; in hpsa_alloc_sas_node()
9701 INIT_LIST_HEAD(&hpsa_sas_node->port_list_head); in hpsa_alloc_sas_node()
9704 return hpsa_sas_node; in hpsa_alloc_sas_node()
9707 static void hpsa_free_sas_node(struct hpsa_sas_node *hpsa_sas_node) in hpsa_free_sas_node() argument
9712 if (!hpsa_sas_node) in hpsa_free_sas_node()
9716 &hpsa_sas_node->port_list_head, port_list_entry) in hpsa_free_sas_node()
9719 kfree(hpsa_sas_node); in hpsa_free_sas_node()
9744 struct hpsa_sas_node *hpsa_sas_node; in hpsa_add_sas_host() local
9750 hpsa_sas_node = hpsa_alloc_sas_node(parent_dev); in hpsa_add_sas_host()
9751 if (!hpsa_sas_node) in hpsa_add_sas_host()
9754 hpsa_sas_port = hpsa_alloc_sas_port(hpsa_sas_node, h->sas_address); in hpsa_add_sas_host()
9770 h->sas_host = hpsa_sas_node; in hpsa_add_sas_host()
9780 hpsa_free_sas_node(hpsa_sas_node); in hpsa_add_sas_host()
9790 static int hpsa_add_sas_device(struct hpsa_sas_node *hpsa_sas_node, in hpsa_add_sas_device() argument
9797 hpsa_sas_port = hpsa_alloc_sas_port(hpsa_sas_node, device->sas_address); in hpsa_add_sas_device()