Lines Matching refs:hpsa_sas_node
240 static int hpsa_add_sas_device(struct hpsa_sas_node *hpsa_sas_node,
9598 *hpsa_alloc_sas_port(struct hpsa_sas_node *hpsa_sas_node, in hpsa_alloc_sas_port() argument
9610 hpsa_sas_port->parent_node = hpsa_sas_node; in hpsa_alloc_sas_port()
9612 port = sas_port_alloc_num(hpsa_sas_node->parent_dev); in hpsa_alloc_sas_port()
9623 &hpsa_sas_node->port_list_head); in hpsa_alloc_sas_port()
9649 static struct hpsa_sas_node *hpsa_alloc_sas_node(struct device *parent_dev) in hpsa_alloc_sas_node()
9651 struct hpsa_sas_node *hpsa_sas_node; in hpsa_alloc_sas_node() local
9653 hpsa_sas_node = kzalloc(sizeof(*hpsa_sas_node), GFP_KERNEL); in hpsa_alloc_sas_node()
9654 if (hpsa_sas_node) { in hpsa_alloc_sas_node()
9655 hpsa_sas_node->parent_dev = parent_dev; in hpsa_alloc_sas_node()
9656 INIT_LIST_HEAD(&hpsa_sas_node->port_list_head); in hpsa_alloc_sas_node()
9659 return hpsa_sas_node; in hpsa_alloc_sas_node()
9662 static void hpsa_free_sas_node(struct hpsa_sas_node *hpsa_sas_node) in hpsa_free_sas_node() argument
9667 if (!hpsa_sas_node) in hpsa_free_sas_node()
9671 &hpsa_sas_node->port_list_head, port_list_entry) in hpsa_free_sas_node()
9674 kfree(hpsa_sas_node); in hpsa_free_sas_node()
9699 struct hpsa_sas_node *hpsa_sas_node; in hpsa_add_sas_host() local
9705 hpsa_sas_node = hpsa_alloc_sas_node(parent_dev); in hpsa_add_sas_host()
9706 if (!hpsa_sas_node) in hpsa_add_sas_host()
9709 hpsa_sas_port = hpsa_alloc_sas_port(hpsa_sas_node, h->sas_address); in hpsa_add_sas_host()
9725 h->sas_host = hpsa_sas_node; in hpsa_add_sas_host()
9734 hpsa_free_sas_node(hpsa_sas_node); in hpsa_add_sas_host()
9744 static int hpsa_add_sas_device(struct hpsa_sas_node *hpsa_sas_node, in hpsa_add_sas_device() argument
9751 hpsa_sas_port = hpsa_alloc_sas_port(hpsa_sas_node, device->sas_address); in hpsa_add_sas_device()