/linux/drivers/scsi/smartpqi/ |
H A D | smartpqi_sas_transport.c | 89 struct sas_rphy *rphy) in pqi_sas_port_add_rphy() argument 93 identify = &rphy->identify; in pqi_sas_port_add_rphy() 114 return sas_rphy_add(rphy); in pqi_sas_port_add_rphy() 208 struct pqi_ctrl_info *ctrl_info, struct sas_rphy *rphy) in pqi_find_device_by_sas_rphy() argument 216 if (device->sas_port->rphy == rphy) in pqi_find_device_by_sas_rphy() 278 struct sas_rphy *rphy; in pqi_add_sas_device() local 285 rphy = pqi_sas_rphy_alloc(pqi_sas_port); in pqi_add_sas_device() 286 if (!rphy) { in pqi_add_sas_device() 291 pqi_sas_port->rphy = rphy; in pqi_add_sas_device() 294 rc = pqi_sas_port_add_rphy(pqi_sas_port, rphy); in pqi_add_sas_device() [all …]
|
H A D | smartpqi.h | 1252 struct sas_rphy *rphy; member 1702 struct sas_rphy *rphy); 1710 struct pqi_ctrl_info *ctrl_info, struct sas_rphy *rphy);
|
H A D | smartpqi_init.c | 6499 struct sas_rphy *rphy; in pqi_slave_alloc() local 6507 rphy = target_to_rphy(starget); in pqi_slave_alloc() 6508 device = pqi_find_device_by_sas_rphy(ctrl_info, rphy); in pqi_slave_alloc()
|
/linux/include/scsi/ |
H A D | scsi_transport_sas.h | 108 #define rphy_to_shost(rphy) \ argument 109 dev_to_shost((rphy)->dev.parent) 114 struct sas_rphy rphy; member 124 container_of((r), struct sas_end_device, rphy) 141 struct sas_rphy rphy; member 145 container_of((r), struct sas_expander_device, rphy) 156 struct sas_rphy *rphy; member 237 struct sas_rphy *rphy; in scsi_is_sas_expander_device() 240 rphy = dev_to_rphy(dev); in scsi_is_sas_expander_device() 241 return rphy in scsi_is_sas_expander_device() 235 struct sas_rphy *rphy; scsi_is_sas_expander_device() local [all...] |
H A D | libsas.h | 177 struct sas_rphy *rphy; member
|
/linux/drivers/scsi/libsas/ |
H A D | sas_discover.c | 52 struct sas_rphy *rphy; in sas_get_port_device() local 107 rphy = NULL; in sas_get_port_device() 112 rphy = sas_end_device_alloc(port->port); in sas_get_port_device() 115 rphy = sas_expander_alloc(port->port, in sas_get_port_device() 119 rphy = sas_expander_alloc(port->port, in sas_get_port_device() 124 rphy = NULL; in sas_get_port_device() 128 if (!rphy) { in sas_get_port_device() 133 rphy->identify.phy_identifier = phy->phy->identify.phy_identifier; in sas_get_port_device() 135 sas_fill_in_rphy(dev, rphy); in sas_get_port_device() 148 dev->rphy = rphy; in sas_get_port_device() [all …]
|
H A D | sas_internal.h | 86 struct sas_rphy *rphy); 92 struct domain_device *sas_find_dev_by_rphy(struct sas_rphy *rphy); 166 struct sas_rphy *rphy) in sas_fill_in_rphy() argument 168 rphy->identify.sas_address = SAS_ADDR(dev->sas_addr); in sas_fill_in_rphy() 169 rphy->identify.initiator_port_protocols = dev->iproto; in sas_fill_in_rphy() 170 rphy->identify.target_port_protocols = dev->tproto; in sas_fill_in_rphy() 176 rphy->identify.device_type = SAS_END_DEVICE; in sas_fill_in_rphy() 179 rphy->identify.device_type = SAS_EDGE_EXPANDER_DEVICE; in sas_fill_in_rphy() 182 rphy->identify.device_type = SAS_FANOUT_EXPANDER_DEVICE; in sas_fill_in_rphy() 185 rphy->identify.device_type = SAS_PHY_UNUSED; in sas_fill_in_rphy()
|
H A D | sas_host_smp.c | 23 struct sas_rphy *rphy; in sas_host_smp_discover() local 46 rphy = sas_ha->sas_phy[phy_id]->port->port_dev->rphy; in sas_host_smp_discover() 47 resp_data[12] = rphy->identify.device_type << 4; in sas_host_smp_discover() 48 resp_data[14] = rphy->identify.initiator_port_protocols; in sas_host_smp_discover() 49 resp_data[15] = rphy->identify.target_port_protocols; in sas_host_smp_discover() 140 struct sas_rphy *rphy; in sas_report_phy_sata() local 154 rphy = sas_ha->sas_phy[phy_id]->port->port_dev->rphy; in sas_report_phy_sata() 157 if (rphy->identify.target_port_protocols != SAS_PROTOCOL_SATA) in sas_report_phy_sata()
|
H A D | sas_expander.c | 42 ex->parent_port = sas_port_alloc(&dev->rphy->dev, phy_id); in sas_ex_add_parent_port() 210 struct sas_rphy *rphy = dev->rphy; in sas_set_ex_phy() local 217 phy->phy = sas_phy_alloc(&rphy->dev, phy_id); in sas_set_ex_phy() 353 struct sas_rphy *rphy; in sas_ex_to_ata() local 358 rphy = ex_phy->port->rphy; in sas_ex_to_ata() 359 if (!rphy) in sas_ex_to_ata() 362 dev = sas_find_dev_by_rphy(rphy); in sas_ex_to_ata() 518 struct sas_rphy *rphy = dev->rphy; in ex_assign_manuf_info() local 519 struct sas_expander_device *edev = rphy_to_expander_device(rphy); in ex_assign_manuf_info() 663 struct sas_rphy *rphy = dev_to_rphy(phy->dev.parent); in sas_smp_get_phy_events() local [all …]
|
H A D | sas_init.c | 204 dev = sas_find_dev_by_rphy(dev->rphy); in sas_try_ata_reset() 241 struct sas_rphy *rphy = dev_to_rphy(phy->dev.parent); in transport_sas_phy_reset() local 242 struct domain_device *ddev = sas_find_dev_by_rphy(rphy); in transport_sas_phy_reset() 276 struct sas_rphy *rphy = dev_to_rphy(phy->dev.parent); in sas_phy_enable() local 277 struct domain_device *ddev = sas_find_dev_by_rphy(rphy); in sas_phy_enable() 310 struct sas_rphy *rphy = dev_to_rphy(phy->dev.parent); in sas_phy_reset() local 311 struct domain_device *ddev = sas_find_dev_by_rphy(rphy); in sas_phy_reset() 347 struct sas_rphy *rphy = dev_to_rphy(phy->dev.parent); in sas_set_phy_speed() local 348 struct domain_device *ddev = sas_find_dev_by_rphy(rphy); in sas_set_phy_speed()
|
H A D | sas_ata.c | 379 struct device *dev = &ddev->rphy->dev; in sas_ata_printk() 674 struct sas_rphy *rphy; in sas_ata_add_dev() local 710 rphy = sas_end_device_alloc(phy->port); in sas_ata_add_dev() 711 if (!rphy) in sas_ata_add_dev() 714 rphy->identify.phy_identifier = phy_id; in sas_ata_add_dev() 715 child->rphy = rphy; in sas_ata_add_dev() 716 get_device(&rphy->dev); in sas_ata_add_dev() 725 sas_rphy_free(child->rphy); in sas_ata_add_dev() 807 sas_fill_in_rphy(dev, dev->rphy); in sas_discover_sata()
|
H A D | sas_scsi_host.c | 420 dev_name(&dev->rphy->dev)); in sas_queue_reset() 762 struct domain_device *sas_find_dev_by_rphy(struct sas_rphy *rphy) in sas_find_dev_by_rphy() argument 764 struct Scsi_Host *shost = dev_to_shost(rphy->dev.parent); in sas_find_dev_by_rphy() 777 if (rphy == dev->rphy) { in sas_find_dev_by_rphy() 793 struct sas_rphy *rphy = dev_to_rphy(starget->dev.parent); in sas_target_alloc() local 794 struct domain_device *found_dev = sas_find_dev_by_rphy(rphy); in sas_target_alloc() 812 BUG_ON(dev->rphy->identify.device_type != SAS_END_DEVICE); in sas_device_configure()
|
/linux/drivers/scsi/mpt3sas/ |
H A D | mpt3sas_transport.c | 111 struct sas_rphy *rphy) in _transport_get_port_id_by_rphy() argument 118 if (!rphy) in _transport_get_port_id_by_rphy() 121 if (rphy->identify.device_type == SAS_EDGE_EXPANDER_DEVICE || in _transport_get_port_id_by_rphy() 122 rphy->identify.device_type == SAS_FANOUT_EXPANDER_DEVICE) { in _transport_get_port_id_by_rphy() 126 if (sas_expander->rphy == rphy) { in _transport_get_port_id_by_rphy() 132 } else if (rphy->identify.device_type == SAS_END_DEVICE) { in _transport_get_port_id_by_rphy() 134 sas_device = __mpt3sas_get_sdev_by_rphy(ioc, rphy); in _transport_get_port_id_by_rphy() 686 struct sas_rphy *rphy; in mpt3sas_transport_port_add() local 805 rphy = sas_end_device_alloc(port); in mpt3sas_transport_port_add() 806 sas_device->rphy = rphy; in mpt3sas_transport_port_add() [all …]
|
H A D | mpt3sas_base.h | 583 struct sas_rphy *rphy; member 761 struct sas_rphy *rphy; member 823 struct sas_rphy *rphy; member 1846 __mpt3sas_get_sdev_by_rphy(struct MPT3SAS_ADAPTER *ioc, struct sas_rphy *rphy);
|
H A D | mpt3sas_scsih.c | 727 struct sas_rphy *rphy) in __mpt3sas_get_sdev_by_rphy() argument 734 if (sas_device->rphy != rphy) in __mpt3sas_get_sdev_by_rphy() 742 if (sas_device->rphy != rphy) in __mpt3sas_get_sdev_by_rphy() 1877 struct sas_rphy *rphy; in scsih_target_alloc() local 1930 rphy = dev_to_rphy(starget->dev.parent); in scsih_target_alloc() 1931 sas_device = __mpt3sas_get_sdev_by_rphy(ioc, rphy); in scsih_target_alloc() 6985 sas_expander->parent_dev = &mpt3sas_port->rphy->dev; in _scsih_expander_add() 6986 sas_expander->rphy = mpt3sas_port->rphy; in _scsih_expander_add()
|
/linux/drivers/scsi/mpi3mr/ |
H A D | mpi3mr_transport.c | 441 struct mpi3mr_ioc *mrioc, u64 sas_address, struct sas_rphy *rphy) in __mpi3mr_get_tgtdev_by_addr_and_rphy() argument 450 && (tgtdev->dev_spec.sas_sata_inf.rphy == rphy)) in __mpi3mr_get_tgtdev_by_addr_and_rphy() 1334 struct sas_rphy *rphy; in mpi3mr_sas_port_add() local 1452 rphy = sas_end_device_alloc(port); in mpi3mr_sas_port_add() 1453 tgtdev->dev_spec.sas_sata_inf.rphy = rphy; in mpi3mr_sas_port_add() 1455 rphy = sas_expander_alloc(port, in mpi3mr_sas_port_add() 1458 rphy->identify = mr_sas_port->remote_identify; in mpi3mr_sas_port_add() 1463 if ((sas_rphy_add(rphy))) { in mpi3mr_sas_port_add() 1473 dev_info(&rphy->dev, in mpi3mr_sas_port_add() 1478 mr_sas_port->rphy = rphy; in mpi3mr_sas_port_add() [all …]
|
H A D | mpi3mr.h | 559 struct sas_rphy *rphy; member 619 struct sas_rphy *rphy; member 655 struct sas_rphy *rphy; member 1534 struct mpi3mr_ioc *mrioc, u64 sas_address, struct sas_rphy *rphy);
|
H A D | mpi3mr_os.c | 4483 struct sas_rphy *rphy = NULL; in mpi3mr_slave_destroy() local 4499 rphy = dev_to_rphy(starget->dev.parent); in mpi3mr_slave_destroy() 4501 rphy->identify.sas_address, rphy); in mpi3mr_slave_destroy() 4573 struct sas_rphy *rphy = NULL; in mpi3mr_device_configure() local 4583 rphy = dev_to_rphy(starget->dev.parent); in mpi3mr_device_configure() 4585 rphy->identify.sas_address, rphy); in mpi3mr_device_configure() 4619 struct sas_rphy *rphy = NULL; in mpi3mr_slave_alloc() local 4631 rphy = dev_to_rphy(starget->dev.parent); in mpi3mr_slave_alloc() 4633 rphy->identify.sas_address, rphy); in mpi3mr_slave_alloc() 4677 struct sas_rphy *rphy = NULL; in mpi3mr_target_alloc() local [all …]
|
/linux/drivers/message/fusion/ |
H A D | mptsas.c | 113 struct mptsas_phyinfo *phy_info, struct sas_rphy *rphy); 395 static inline MPT_ADAPTER *rphy_to_ioc(struct sas_rphy *rphy) in rphy_to_ioc() argument 397 struct Scsi_Host *shost = dev_to_shost(rphy->dev.parent->parent); in rphy_to_ioc() 509 return phy_info->port_details->rphy; in mptsas_get_rphy() 515 mptsas_set_rphy(MPT_ADAPTER *ioc, struct mptsas_phyinfo *phy_info, struct sas_rphy *rphy) in mptsas_set_rphy() argument 518 phy_info->port_details->rphy = rphy; in mptsas_set_rphy() 520 ioc->name, rphy)); in mptsas_set_rphy() 523 if (rphy) { in mptsas_set_rphy() 525 &rphy->dev, MYIOC_s_FMT "add:", ioc->name)); in mptsas_set_rphy() 527 ioc->name, rphy, rphy->dev.release)); in mptsas_set_rphy() [all …]
|
H A D | mptsas.h | 153 struct sas_rphy *rphy; /* transport layer rphy object */ member
|
/linux/drivers/scsi/ |
H A D | hpsa.c | 245 struct sas_rphy *rphy); 2120 struct sas_rphy *rphy; in hpsa_slave_alloc() local 2123 rphy = target_to_rphy(starget); in hpsa_slave_alloc() 2124 sd = hpsa_find_device_by_sas_rphy(h, rphy); in hpsa_slave_alloc() 9637 struct sas_rphy *rphy) in hpsa_sas_port_add_rphy() argument 9641 identify = &rphy->identify; in hpsa_sas_port_add_rphy() 9646 return sas_rphy_add(rphy); in hpsa_sas_port_add_rphy() 9731 struct sas_rphy *rphy) in hpsa_find_device_by_sas_rphy() argument 9740 if (device->sas_port->rphy == rphy) in hpsa_find_device_by_sas_rphy() 9802 struct sas_rphy *rphy; in hpsa_add_sas_device() local [all …]
|
H A D | hpsa.h | 51 struct sas_rphy *rphy; member
|
/linux/drivers/scsi/aic94xx/ |
H A D | aic94xx_dev.c | 204 struct sas_end_device *rdev = rphy_to_end_device(dev->rphy); in asd_init_target_ddb()
|