Lines Matching refs:hpsa_sas_node
239 static int hpsa_add_sas_device(struct hpsa_sas_node *hpsa_sas_node,
9504 *hpsa_alloc_sas_port(struct hpsa_sas_node *hpsa_sas_node, in hpsa_alloc_sas_port() argument
9516 hpsa_sas_port->parent_node = hpsa_sas_node; in hpsa_alloc_sas_port()
9518 port = sas_port_alloc_num(hpsa_sas_node->parent_dev); in hpsa_alloc_sas_port()
9529 &hpsa_sas_node->port_list_head); in hpsa_alloc_sas_port()
9555 static struct hpsa_sas_node *hpsa_alloc_sas_node(struct device *parent_dev) in hpsa_alloc_sas_node()
9557 struct hpsa_sas_node *hpsa_sas_node; in hpsa_alloc_sas_node() local
9559 hpsa_sas_node = kzalloc(sizeof(*hpsa_sas_node), GFP_KERNEL); in hpsa_alloc_sas_node()
9560 if (hpsa_sas_node) { in hpsa_alloc_sas_node()
9561 hpsa_sas_node->parent_dev = parent_dev; in hpsa_alloc_sas_node()
9562 INIT_LIST_HEAD(&hpsa_sas_node->port_list_head); in hpsa_alloc_sas_node()
9565 return hpsa_sas_node; in hpsa_alloc_sas_node()
9568 static void hpsa_free_sas_node(struct hpsa_sas_node *hpsa_sas_node) in hpsa_free_sas_node() argument
9573 if (!hpsa_sas_node) in hpsa_free_sas_node()
9577 &hpsa_sas_node->port_list_head, port_list_entry) in hpsa_free_sas_node()
9580 kfree(hpsa_sas_node); in hpsa_free_sas_node()
9605 struct hpsa_sas_node *hpsa_sas_node; in hpsa_add_sas_host() local
9611 hpsa_sas_node = hpsa_alloc_sas_node(parent_dev); in hpsa_add_sas_host()
9612 if (!hpsa_sas_node) in hpsa_add_sas_host()
9615 hpsa_sas_port = hpsa_alloc_sas_port(hpsa_sas_node, h->sas_address); in hpsa_add_sas_host()
9631 h->sas_host = hpsa_sas_node; in hpsa_add_sas_host()
9640 hpsa_free_sas_node(hpsa_sas_node); in hpsa_add_sas_host()
9650 static int hpsa_add_sas_device(struct hpsa_sas_node *hpsa_sas_node, in hpsa_add_sas_device() argument
9657 hpsa_sas_port = hpsa_alloc_sas_port(hpsa_sas_node, device->sas_address); in hpsa_add_sas_device()