pqi_sas_phy 20 drivers/scsi/smartpqi/smartpqi_sas_transport.c static struct pqi_sas_phy *pqi_alloc_sas_phy(struct pqi_sas_port *pqi_sas_port) pqi_sas_phy 22 drivers/scsi/smartpqi/smartpqi_sas_transport.c struct pqi_sas_phy *pqi_sas_phy; pqi_sas_phy 25 drivers/scsi/smartpqi/smartpqi_sas_transport.c pqi_sas_phy = kzalloc(sizeof(*pqi_sas_phy), GFP_KERNEL); pqi_sas_phy 26 drivers/scsi/smartpqi/smartpqi_sas_transport.c if (!pqi_sas_phy) pqi_sas_phy 32 drivers/scsi/smartpqi/smartpqi_sas_transport.c kfree(pqi_sas_phy); pqi_sas_phy 37 drivers/scsi/smartpqi/smartpqi_sas_transport.c pqi_sas_phy->phy = phy; pqi_sas_phy 38 drivers/scsi/smartpqi/smartpqi_sas_transport.c pqi_sas_phy->parent_port = pqi_sas_port; pqi_sas_phy 40 drivers/scsi/smartpqi/smartpqi_sas_transport.c return pqi_sas_phy; pqi_sas_phy 43 drivers/scsi/smartpqi/smartpqi_sas_transport.c static void pqi_free_sas_phy(struct pqi_sas_phy *pqi_sas_phy) pqi_sas_phy 45 drivers/scsi/smartpqi/smartpqi_sas_transport.c struct sas_phy *phy = pqi_sas_phy->phy; pqi_sas_phy 47 drivers/scsi/smartpqi/smartpqi_sas_transport.c sas_port_delete_phy(pqi_sas_phy->parent_port->port, phy); pqi_sas_phy 48 drivers/scsi/smartpqi/smartpqi_sas_transport.c if (pqi_sas_phy->added_to_port) pqi_sas_phy 49 drivers/scsi/smartpqi/smartpqi_sas_transport.c list_del(&pqi_sas_phy->phy_list_entry); pqi_sas_phy 51 drivers/scsi/smartpqi/smartpqi_sas_transport.c kfree(pqi_sas_phy); pqi_sas_phy 54 drivers/scsi/smartpqi/smartpqi_sas_transport.c static int pqi_sas_port_add_phy(struct pqi_sas_phy *pqi_sas_phy) pqi_sas_phy 61 drivers/scsi/smartpqi/smartpqi_sas_transport.c pqi_sas_port = pqi_sas_phy->parent_port; pqi_sas_phy 62 drivers/scsi/smartpqi/smartpqi_sas_transport.c phy = pqi_sas_phy->phy; pqi_sas_phy 76 drivers/scsi/smartpqi/smartpqi_sas_transport.c rc = sas_phy_add(pqi_sas_phy->phy); pqi_sas_phy 80 drivers/scsi/smartpqi/smartpqi_sas_transport.c sas_port_add_phy(pqi_sas_port->port, pqi_sas_phy->phy); pqi_sas_phy 81 drivers/scsi/smartpqi/smartpqi_sas_transport.c list_add_tail(&pqi_sas_phy->phy_list_entry, pqi_sas_phy 83 drivers/scsi/smartpqi/smartpqi_sas_transport.c pqi_sas_phy->added_to_port = true; pqi_sas_phy 159 drivers/scsi/smartpqi/smartpqi_sas_transport.c struct pqi_sas_phy *pqi_sas_phy; pqi_sas_phy 160 drivers/scsi/smartpqi/smartpqi_sas_transport.c struct pqi_sas_phy *next; pqi_sas_phy 162 drivers/scsi/smartpqi/smartpqi_sas_transport.c list_for_each_entry_safe(pqi_sas_phy, next, pqi_sas_phy 164 drivers/scsi/smartpqi/smartpqi_sas_transport.c pqi_free_sas_phy(pqi_sas_phy); pqi_sas_phy 221 drivers/scsi/smartpqi/smartpqi_sas_transport.c struct pqi_sas_phy *pqi_sas_phy; pqi_sas_phy 236 drivers/scsi/smartpqi/smartpqi_sas_transport.c pqi_sas_phy = pqi_alloc_sas_phy(pqi_sas_port); pqi_sas_phy 237 drivers/scsi/smartpqi/smartpqi_sas_transport.c if (!pqi_sas_phy) { pqi_sas_phy 242 drivers/scsi/smartpqi/smartpqi_sas_transport.c rc = pqi_sas_port_add_phy(pqi_sas_phy); pqi_sas_phy 251 drivers/scsi/smartpqi/smartpqi_sas_transport.c pqi_free_sas_phy(pqi_sas_phy);