drivers/scsi/hpsa.c
9555
struct hpsa_sas_port *hpsa_sas_port)
drivers/scsi/hpsa.c
9564
phy = sas_phy_alloc(hpsa_sas_port->parent_node->parent_dev,
drivers/scsi/hpsa.c
9565
hpsa_sas_port->next_phy_index);
drivers/scsi/hpsa.c
9571
hpsa_sas_port->next_phy_index++;
drivers/scsi/hpsa.c
9573
hpsa_sas_phy->parent_port = hpsa_sas_port;
drivers/scsi/hpsa.c
9592
struct hpsa_sas_port *hpsa_sas_port;
drivers/scsi/hpsa.c
9596
hpsa_sas_port = hpsa_sas_phy->parent_port;
drivers/scsi/hpsa.c
9601
identify->sas_address = hpsa_sas_port->sas_address;
drivers/scsi/hpsa.c
9615
sas_port_add_phy(hpsa_sas_port->port, hpsa_sas_phy->phy);
drivers/scsi/hpsa.c
9617
&hpsa_sas_port->phy_list_head);
drivers/scsi/hpsa.c
9624
hpsa_sas_port_add_rphy(struct hpsa_sas_port *hpsa_sas_port,
drivers/scsi/hpsa.c
9630
identify->sas_address = hpsa_sas_port->sas_address;
drivers/scsi/hpsa.c
9637
static struct hpsa_sas_port
drivers/scsi/hpsa.c
9642
struct hpsa_sas_port *hpsa_sas_port;
drivers/scsi/hpsa.c
9645
hpsa_sas_port = kzalloc_obj(*hpsa_sas_port);
drivers/scsi/hpsa.c
9646
if (!hpsa_sas_port)
drivers/scsi/hpsa.c
9649
INIT_LIST_HEAD(&hpsa_sas_port->phy_list_head);
drivers/scsi/hpsa.c
9650
hpsa_sas_port->parent_node = hpsa_sas_node;
drivers/scsi/hpsa.c
9660
hpsa_sas_port->port = port;
drivers/scsi/hpsa.c
9661
hpsa_sas_port->sas_address = sas_address;
drivers/scsi/hpsa.c
9662
list_add_tail(&hpsa_sas_port->port_list_entry,
drivers/scsi/hpsa.c
9665
return hpsa_sas_port;
drivers/scsi/hpsa.c
9670
kfree(hpsa_sas_port);
drivers/scsi/hpsa.c
9675
static void hpsa_free_sas_port(struct hpsa_sas_port *hpsa_sas_port)
drivers/scsi/hpsa.c
9681
&hpsa_sas_port->phy_list_head, phy_list_entry)
drivers/scsi/hpsa.c
9684
sas_port_delete(hpsa_sas_port->port);
drivers/scsi/hpsa.c
9685
list_del(&hpsa_sas_port->port_list_entry);
drivers/scsi/hpsa.c
9686
kfree(hpsa_sas_port);
drivers/scsi/hpsa.c
9704
struct hpsa_sas_port *hpsa_sas_port;
drivers/scsi/hpsa.c
9705
struct hpsa_sas_port *next;
drivers/scsi/hpsa.c
9710
list_for_each_entry_safe(hpsa_sas_port, next,
drivers/scsi/hpsa.c
9712
hpsa_free_sas_port(hpsa_sas_port);
drivers/scsi/hpsa.c
9740
struct hpsa_sas_port *hpsa_sas_port;
drivers/scsi/hpsa.c
9749
hpsa_sas_port = hpsa_alloc_sas_port(hpsa_sas_node, h->sas_address);
drivers/scsi/hpsa.c
9750
if (!hpsa_sas_port) {
drivers/scsi/hpsa.c
9755
hpsa_sas_phy = hpsa_alloc_sas_phy(hpsa_sas_port);
drivers/scsi/hpsa.c
9773
hpsa_free_sas_port(hpsa_sas_port);
drivers/scsi/hpsa.c
9789
struct hpsa_sas_port *hpsa_sas_port;
drivers/scsi/hpsa.c
9792
hpsa_sas_port = hpsa_alloc_sas_port(hpsa_sas_node, device->sas_address);
drivers/scsi/hpsa.c
9793
if (!hpsa_sas_port)
drivers/scsi/hpsa.c
9796
rphy = sas_end_device_alloc(hpsa_sas_port->port);
drivers/scsi/hpsa.c
9802
hpsa_sas_port->rphy = rphy;
drivers/scsi/hpsa.c
9803
device->sas_port = hpsa_sas_port;
drivers/scsi/hpsa.c
9805
rc = hpsa_sas_port_add_rphy(hpsa_sas_port, rphy);
drivers/scsi/hpsa.c
9814
hpsa_free_sas_port(hpsa_sas_port);
drivers/scsi/hpsa.h
112
struct hpsa_sas_port *sas_port;
drivers/scsi/hpsa.h
57
struct hpsa_sas_port *parent_port;