Lines Matching refs:hpsa_sas_node
215 static int hpsa_add_sas_device(struct hpsa_sas_node *hpsa_sas_node,
9312 *hpsa_alloc_sas_port(struct hpsa_sas_node *hpsa_sas_node, in hpsa_alloc_sas_port() argument
9324 hpsa_sas_port->parent_node = hpsa_sas_node; in hpsa_alloc_sas_port()
9326 port = sas_port_alloc_num(hpsa_sas_node->parent_dev); in hpsa_alloc_sas_port()
9337 &hpsa_sas_node->port_list_head); in hpsa_alloc_sas_port()
9363 static struct hpsa_sas_node *hpsa_alloc_sas_node(struct device *parent_dev) in hpsa_alloc_sas_node()
9365 struct hpsa_sas_node *hpsa_sas_node; in hpsa_alloc_sas_node() local
9367 hpsa_sas_node = kzalloc(sizeof(*hpsa_sas_node), GFP_KERNEL); in hpsa_alloc_sas_node()
9368 if (hpsa_sas_node) { in hpsa_alloc_sas_node()
9369 hpsa_sas_node->parent_dev = parent_dev; in hpsa_alloc_sas_node()
9370 INIT_LIST_HEAD(&hpsa_sas_node->port_list_head); in hpsa_alloc_sas_node()
9373 return hpsa_sas_node; in hpsa_alloc_sas_node()
9376 static void hpsa_free_sas_node(struct hpsa_sas_node *hpsa_sas_node) in hpsa_free_sas_node() argument
9381 if (!hpsa_sas_node) in hpsa_free_sas_node()
9385 &hpsa_sas_node->port_list_head, port_list_entry) in hpsa_free_sas_node()
9388 kfree(hpsa_sas_node); in hpsa_free_sas_node()
9413 struct hpsa_sas_node *hpsa_sas_node; in hpsa_add_sas_host() local
9419 hpsa_sas_node = hpsa_alloc_sas_node(parent_dev); in hpsa_add_sas_host()
9420 if (!hpsa_sas_node) in hpsa_add_sas_host()
9423 hpsa_sas_port = hpsa_alloc_sas_port(hpsa_sas_node, h->sas_address); in hpsa_add_sas_host()
9439 h->sas_host = hpsa_sas_node; in hpsa_add_sas_host()
9448 hpsa_free_sas_node(hpsa_sas_node); in hpsa_add_sas_host()
9458 static int hpsa_add_sas_device(struct hpsa_sas_node *hpsa_sas_node, in hpsa_add_sas_device() argument
9465 hpsa_sas_port = hpsa_alloc_sas_port(hpsa_sas_node, device->sas_address); in hpsa_add_sas_device()