/linux-4.4.14/drivers/scsi/ |
D | scsi_transport_sas.c | 161 struct sas_rphy *rphy = target_to_rphy(sdev->sdev_target); in sas_bitfield_name_search() local 164 BUG_ON(rphy->identify.device_type != SAS_END_DEVICE); in sas_bitfield_name_search() 166 rdev = rphy_to_end_device(rphy); in sas_bitfield_name_search() 171 struct sas_rphy *rphy) in sas_smp_request() argument 181 ret = handler(shost, rphy, req); in sas_smp_request() 197 struct sas_rphy *rphy = q->queuedata; in sas_non_host_smp_request() local 198 sas_smp_request(q, rphy_to_shost(rphy), rphy); in sas_non_host_smp_request() 211 static int sas_bsg_initialize(struct Scsi_Host *shost, struct sas_rphy *rphy) in sas_bsg_initialize() argument 225 if (rphy) { in sas_bsg_initialize() 227 dev = &rphy->dev; in sas_bsg_initialize() [all …]
|
D | hpsa.c | 220 struct sas_rphy *rphy); 1939 struct sas_rphy *rphy; in hpsa_slave_alloc() local 1942 rphy = target_to_rphy(starget); in hpsa_slave_alloc() 1943 sd = hpsa_find_device_by_sas_rphy(h, rphy); in hpsa_slave_alloc() 9299 struct sas_rphy *rphy) in hpsa_sas_port_add_rphy() argument 9303 identify = &rphy->identify; in hpsa_sas_port_add_rphy() 9308 return sas_rphy_add(rphy); in hpsa_sas_port_add_rphy() 9393 struct sas_rphy *rphy) in hpsa_find_device_by_sas_rphy() argument 9402 if (device->sas_port->rphy == rphy) in hpsa_find_device_by_sas_rphy() 9463 struct sas_rphy *rphy; in hpsa_add_sas_device() local [all …]
|
D | hpsa.h | 49 struct sas_rphy *rphy; member
|
/linux-4.4.14/include/scsi/ |
D | scsi_transport_sas.h | 96 #define rphy_to_shost(rphy) \ argument 97 dev_to_shost((rphy)->dev.parent) 102 struct sas_rphy rphy; member 112 container_of((r), struct sas_end_device, rphy) 129 struct sas_rphy rphy; member 133 container_of((r), struct sas_expander_device, rphy) 144 struct sas_rphy *rphy; member 221 struct sas_rphy *rphy; in scsi_is_sas_expander_device() local 224 rphy = dev_to_rphy(dev); in scsi_is_sas_expander_device() 225 return rphy->identify.device_type == SAS_FANOUT_EXPANDER_DEVICE || in scsi_is_sas_expander_device() [all …]
|
D | libsas.h | 211 struct sas_rphy *rphy; member 725 extern int sas_smp_handler(struct Scsi_Host *shost, struct sas_rphy *rphy,
|
/linux-4.4.14/drivers/scsi/libsas/ |
D | sas_internal.h | 92 struct domain_device *sas_find_dev_by_rphy(struct sas_rphy *rphy); 126 struct sas_rphy *rphy) in sas_fill_in_rphy() argument 128 rphy->identify.sas_address = SAS_ADDR(dev->sas_addr); in sas_fill_in_rphy() 129 rphy->identify.initiator_port_protocols = dev->iproto; in sas_fill_in_rphy() 130 rphy->identify.target_port_protocols = dev->tproto; in sas_fill_in_rphy() 136 rphy->identify.device_type = SAS_END_DEVICE; in sas_fill_in_rphy() 139 rphy->identify.device_type = SAS_EDGE_EXPANDER_DEVICE; in sas_fill_in_rphy() 142 rphy->identify.device_type = SAS_FANOUT_EXPANDER_DEVICE; in sas_fill_in_rphy() 145 rphy->identify.device_type = SAS_PHY_UNUSED; in sas_fill_in_rphy() 172 ex->parent_port = sas_port_alloc(&dev->rphy->dev, phy_id); in sas_add_parent_port()
|
D | sas_discover.c | 69 struct sas_rphy *rphy; in sas_get_port_device() local 115 rphy = NULL; in sas_get_port_device() 120 rphy = sas_end_device_alloc(port->port); in sas_get_port_device() 123 rphy = sas_expander_alloc(port->port, in sas_get_port_device() 127 rphy = sas_expander_alloc(port->port, in sas_get_port_device() 132 rphy = NULL; in sas_get_port_device() 136 if (!rphy) { in sas_get_port_device() 141 rphy->identify.phy_identifier = phy->phy->identify.phy_identifier; in sas_get_port_device() 143 sas_fill_in_rphy(dev, rphy); in sas_get_port_device() 156 dev->rphy = rphy; in sas_get_port_device() [all …]
|
D | sas_host_smp.c | 26 struct sas_rphy *rphy; in sas_host_smp_discover() local 49 rphy = sas_ha->sas_phy[phy_id]->port->port_dev->rphy; in sas_host_smp_discover() 50 resp_data[12] = rphy->identify.device_type << 4; in sas_host_smp_discover() 51 resp_data[14] = rphy->identify.initiator_port_protocols; in sas_host_smp_discover() 52 resp_data[15] = rphy->identify.target_port_protocols; in sas_host_smp_discover() 143 struct sas_rphy *rphy; in sas_report_phy_sata() local 157 rphy = sas_ha->sas_phy[phy_id]->port->port_dev->rphy; in sas_report_phy_sata() 160 if (rphy->identify.target_port_protocols != SAS_PROTOCOL_SATA) in sas_report_phy_sata()
|
D | sas_expander.c | 208 struct sas_rphy *rphy = dev->rphy; in sas_set_ex_phy() local 215 phy->phy = sas_phy_alloc(&rphy->dev, phy_id); in sas_set_ex_phy() 351 struct sas_rphy *rphy; in sas_ex_to_ata() local 356 rphy = ex_phy->port->rphy; in sas_ex_to_ata() 357 if (!rphy) in sas_ex_to_ata() 360 dev = sas_find_dev_by_rphy(rphy); in sas_ex_to_ata() 521 struct sas_rphy *rphy = dev->rphy; in ex_assign_manuf_info() local 522 struct sas_expander_device *edev = rphy_to_expander_device(rphy); in ex_assign_manuf_info() 659 struct sas_rphy *rphy = dev_to_rphy(phy->dev.parent); in sas_smp_get_phy_events() local 660 struct domain_device *dev = sas_find_dev_by_rphy(rphy); in sas_smp_get_phy_events() [all …]
|
D | sas_init.c | 216 dev = sas_find_dev_by_rphy(dev->rphy); in sas_try_ata_reset() 253 struct sas_rphy *rphy = dev_to_rphy(phy->dev.parent); in transport_sas_phy_reset() local 254 struct domain_device *ddev = sas_find_dev_by_rphy(rphy); in transport_sas_phy_reset() 288 struct sas_rphy *rphy = dev_to_rphy(phy->dev.parent); in sas_phy_enable() local 289 struct domain_device *ddev = sas_find_dev_by_rphy(rphy); in sas_phy_enable() 321 struct sas_rphy *rphy = dev_to_rphy(phy->dev.parent); in sas_phy_reset() local 322 struct domain_device *ddev = sas_find_dev_by_rphy(rphy); in sas_phy_reset() 357 struct sas_rphy *rphy = dev_to_rphy(phy->dev.parent); in sas_set_phy_speed() local 358 struct domain_device *ddev = sas_find_dev_by_rphy(rphy); in sas_set_phy_speed()
|
D | sas_scsi_host.c | 482 dev_name(&dev->rphy->dev)); in sas_queue_reset() 823 struct domain_device *sas_find_dev_by_rphy(struct sas_rphy *rphy) in sas_find_dev_by_rphy() argument 825 struct Scsi_Host *shost = dev_to_shost(rphy->dev.parent); in sas_find_dev_by_rphy() 838 if (rphy == dev->rphy) { in sas_find_dev_by_rphy() 854 struct sas_rphy *rphy = dev_to_rphy(starget->dev.parent); in sas_target_alloc() local 855 struct domain_device *found_dev = sas_find_dev_by_rphy(rphy); in sas_target_alloc() 872 BUG_ON(dev->rphy->identify.device_type != SAS_END_DEVICE); in sas_slave_configure()
|
D | sas_ata.c | 375 struct device *dev = &ddev->rphy->dev; in sas_ata_printk() 729 sas_fill_in_rphy(dev, dev->rphy); in sas_discover_sata()
|
/linux-4.4.14/drivers/message/fusion/ |
D | mptsas.c | 113 struct mptsas_phyinfo *phy_info, struct sas_rphy *rphy); 370 static inline MPT_ADAPTER *rphy_to_ioc(struct sas_rphy *rphy) in rphy_to_ioc() argument 372 struct Scsi_Host *shost = dev_to_shost(rphy->dev.parent->parent); in rphy_to_ioc() 482 return phy_info->port_details->rphy; in mptsas_get_rphy() 488 mptsas_set_rphy(MPT_ADAPTER *ioc, struct mptsas_phyinfo *phy_info, struct sas_rphy *rphy) in mptsas_set_rphy() argument 491 phy_info->port_details->rphy = rphy; in mptsas_set_rphy() 493 ioc->name, rphy)); in mptsas_set_rphy() 496 if (rphy) { in mptsas_set_rphy() 498 &rphy->dev, MYIOC_s_FMT "add:", ioc->name)); in mptsas_set_rphy() 500 ioc->name, rphy, rphy->dev.release)); in mptsas_set_rphy() [all …]
|
D | mptsas.h | 152 struct sas_rphy *rphy; /* transport layer rphy object */ member
|
/linux-4.4.14/Documentation/DocBook/ |
D | scsi.xml.db | 136 API-sas-rphy-add 137 API-sas-rphy-free 138 API-sas-rphy-delete 139 API-sas-rphy-unlink 140 API-sas-rphy-remove 141 API-scsi-is-sas-rphy
|
/linux-4.4.14/drivers/scsi/mpt3sas/ |
D | mpt3sas_transport.c | 651 struct sas_rphy *rphy; in mpt3sas_transport_port_add() local 729 rphy = sas_end_device_alloc(port); in mpt3sas_transport_port_add() 731 rphy = sas_expander_alloc(port, in mpt3sas_transport_port_add() 734 rphy->identify = mpt3sas_port->remote_identify; in mpt3sas_transport_port_add() 748 if ((sas_rphy_add(rphy))) { in mpt3sas_transport_port_add() 759 dev_printk(KERN_INFO, &rphy->dev, in mpt3sas_transport_port_add() 763 mpt3sas_port->rphy = rphy; in mpt3sas_transport_port_add() 775 rphy_to_expander_device(rphy)); in mpt3sas_transport_port_add() 1053 rphy_to_ioc(struct sas_rphy *rphy) in rphy_to_ioc() argument 1055 struct Scsi_Host *shost = dev_to_shost(rphy->dev.parent->parent); in rphy_to_ioc() [all …]
|
D | mpt3sas_base.h | 562 struct sas_rphy *rphy; member
|
D | mpt3sas_scsih.c | 1258 struct sas_rphy *rphy; in scsih_target_alloc() local 1288 rphy = dev_to_rphy(starget->dev.parent); in scsih_target_alloc() 1290 rphy->identify.sas_address); in scsih_target_alloc() 1325 struct sas_rphy *rphy; in scsih_target_destroy() local 1344 rphy = dev_to_rphy(starget->dev.parent); in scsih_target_destroy() 4946 sas_expander->parent_dev = &mpt3sas_port->rphy->dev; in _scsih_expander_add()
|
/linux-4.4.14/drivers/scsi/aic94xx/ |
D | aic94xx_dev.c | 223 struct sas_end_device *rdev = rphy_to_end_device(dev->rphy); in asd_init_target_ddb()
|
/linux-4.4.14/drivers/scsi/pm8001/ |
D | pm8001_sas.c | 627 dev->rphy->identify.phy_identifier; in pm8001_dev_found_notify()
|