| /linux/drivers/phy/rockchip/ |
| A D | phy-rockchip-inno-usb2.c | 227 return rphy->usbgrf == NULL ? rphy->grf : rphy->usbgrf; in get_reg_base() 333 if (rphy->clk) { in rockchip_usb2phy_clk480m_register() 345 rphy->clk480m = clk_register(rphy->dev, &rphy->clk480m_hw); in rockchip_usb2phy_clk480m_register() 391 rphy->edev = edev; in rockchip_usb2phy_extcon_register() 687 rphy->chg_state); in rockchip_chg_detect_work() 1045 ret = devm_extcon_register_notifier(rphy->dev, rphy->edev, in rockchip_usb2phy_otg_port_init() 1067 rphy = devm_kzalloc(dev, sizeof(*rphy), GFP_KERNEL); in rockchip_usb2phy_probe() 1068 if (!rphy) in rockchip_usb2phy_probe() 1085 rphy->usbgrf = in rockchip_usb2phy_probe() 1100 rphy->dev = dev; in rockchip_usb2phy_probe() [all …]
|
| /linux/drivers/scsi/ |
| A D | scsi_transport_sas.c | 200 if (rphy) { in sas_bsg_initialize() 201 q = bsg_setup_queue(&rphy->dev, dev_name(&rphy->dev), in sas_bsg_initialize() 205 rphy->q = q; in sas_bsg_initialize() 988 if (port->rphy) { in sas_port_delete() 990 port->rphy = NULL; in sas_port_delete() 1453 return &rdev->rphy; in sas_end_device_alloc() 1494 return &rdev->rphy; in sas_expander_alloc() 1512 if (parent->rphy) in sas_rphy_add() 1514 parent->rphy = rphy; in sas_rphy_add() 1544 scsi_scan_target(&rphy->dev, 0, rphy->scsi_target_id, lun, in sas_rphy_add() [all …]
|
| 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() 9650 struct sas_rphy *rphy) in hpsa_sas_port_add_rphy() argument 9654 identify = &rphy->identify; in hpsa_sas_port_add_rphy() 9659 return sas_rphy_add(rphy); in hpsa_sas_port_add_rphy() 9744 struct sas_rphy *rphy) in hpsa_find_device_by_sas_rphy() argument 9753 if (device->sas_port->rphy == rphy) in hpsa_find_device_by_sas_rphy() 9814 struct sas_rphy *rphy; in hpsa_add_sas_device() local 9821 if (!rphy) { in hpsa_add_sas_device() [all …]
|
| A D | hpsa.h | 51 struct sas_rphy *rphy; member
|
| /linux/drivers/scsi/smartpqi/ |
| 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() 116 return sas_rphy_add(rphy); in pqi_sas_port_add_rphy() 218 if (device->sas_port->rphy == rphy) in pqi_find_device_by_sas_rphy() 280 struct sas_rphy *rphy; in pqi_add_sas_device() local 288 if (!rphy) { in pqi_add_sas_device() 293 pqi_sas_port->rphy = rphy; in pqi_add_sas_device() 332 if (!rphy) in pqi_sas_get_enclosure_identifier() 404 if (!rphy) in pqi_sas_get_bay_identifier() 518 struct sas_rphy *rphy) in pqi_sas_smp_handler() argument [all …]
|
| A D | smartpqi.h | 1221 struct sas_rphy *rphy; member 1666 struct sas_rphy *rphy); 1674 struct pqi_ctrl_info *ctrl_info, struct sas_rphy *rphy);
|
| A D | smartpqi_init.c | 6289 struct sas_rphy *rphy; in pqi_slave_alloc() local 6297 rphy = target_to_rphy(starget); in pqi_slave_alloc() 6298 device = pqi_find_device_by_sas_rphy(ctrl_info, rphy); in pqi_slave_alloc()
|
| /linux/include/scsi/ |
| 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 235 struct sas_rphy *rphy; in scsi_is_sas_expander_device() local 238 rphy = dev_to_rphy(dev); in scsi_is_sas_expander_device() 239 return rphy->identify.device_type == SAS_FANOUT_EXPANDER_DEVICE || in scsi_is_sas_expander_device() [all …]
|
| A D | libsas.h | 187 struct sas_rphy *rphy; member
|
| /linux/drivers/scsi/libsas/ |
| A D | sas_discover.c | 53 struct sas_rphy *rphy; in sas_get_port_device() local 108 rphy = NULL; in sas_get_port_device() 125 rphy = NULL; in sas_get_port_device() 129 if (!rphy) { in sas_get_port_device() 136 sas_fill_in_rphy(dev, rphy); in sas_get_port_device() 149 dev->rphy = rphy; in sas_get_port_device() 150 get_device(&dev->rphy->dev); in sas_get_port_device() 291 dev->rphy = NULL; in sas_free_device() 370 sas_rphy_free(dev->rphy); in sas_unregister_dev() 394 port->port->rphy = NULL; in sas_unregister_domain_devices() [all …]
|
| A D | sas_internal.h | 74 struct sas_rphy *rphy); 82 struct domain_device *sas_find_dev_by_rphy(struct sas_rphy *rphy); 118 struct sas_rphy *rphy) in sas_fill_in_rphy() argument 120 rphy->identify.sas_address = SAS_ADDR(dev->sas_addr); in sas_fill_in_rphy() 121 rphy->identify.initiator_port_protocols = dev->iproto; in sas_fill_in_rphy() 122 rphy->identify.target_port_protocols = dev->tproto; in sas_fill_in_rphy() 128 rphy->identify.device_type = SAS_END_DEVICE; in sas_fill_in_rphy() 131 rphy->identify.device_type = SAS_EDGE_EXPANDER_DEVICE; in sas_fill_in_rphy() 134 rphy->identify.device_type = SAS_FANOUT_EXPANDER_DEVICE; in sas_fill_in_rphy() 137 rphy->identify.device_type = SAS_PHY_UNUSED; in sas_fill_in_rphy() [all …]
|
| A D | sas_expander.c | 205 struct sas_rphy *rphy = dev->rphy; in sas_set_ex_phy() local 349 struct sas_rphy *rphy; in sas_ex_to_ata() local 354 rphy = ex_phy->port->rphy; in sas_ex_to_ata() 355 if (!rphy) in sas_ex_to_ata() 519 struct sas_rphy *rphy = dev->rphy; in ex_assign_manuf_info() local 848 if (!rphy) in sas_ex_discover_end_dev() 852 child->rphy = rphy; in sas_ex_discover_end_dev() 875 child->rphy = rphy; in sas_ex_discover_end_dev() 978 child->rphy = rphy; in sas_ex_discover_expander() 995 sas_rphy_add(rphy); in sas_ex_discover_expander() [all …]
|
| 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()
|
| A D | sas_init.c | 207 dev = sas_find_dev_by_rphy(dev->rphy); in sas_try_ata_reset() 244 struct sas_rphy *rphy = dev_to_rphy(phy->dev.parent); in transport_sas_phy_reset() local 245 struct domain_device *ddev = sas_find_dev_by_rphy(rphy); in transport_sas_phy_reset() 279 struct sas_rphy *rphy = dev_to_rphy(phy->dev.parent); in sas_phy_enable() local 280 struct domain_device *ddev = sas_find_dev_by_rphy(rphy); in sas_phy_enable() 313 struct sas_rphy *rphy = dev_to_rphy(phy->dev.parent); in sas_phy_reset() local 314 struct domain_device *ddev = sas_find_dev_by_rphy(rphy); in sas_phy_reset() 350 struct sas_rphy *rphy = dev_to_rphy(phy->dev.parent); in sas_set_phy_speed() local 351 struct domain_device *ddev = sas_find_dev_by_rphy(rphy); in sas_set_phy_speed()
|
| A D | sas_scsi_host.c | 456 dev_name(&dev->rphy->dev)); in sas_queue_reset() 798 struct domain_device *sas_find_dev_by_rphy(struct sas_rphy *rphy) in sas_find_dev_by_rphy() argument 800 struct Scsi_Host *shost = dev_to_shost(rphy->dev.parent); in sas_find_dev_by_rphy() 813 if (rphy == dev->rphy) { in sas_find_dev_by_rphy() 829 struct sas_rphy *rphy = dev_to_rphy(starget->dev.parent); in sas_target_alloc() local 830 struct domain_device *found_dev = sas_find_dev_by_rphy(rphy); in sas_target_alloc() 847 BUG_ON(dev->rphy->identify.device_type != SAS_END_DEVICE); in sas_slave_configure()
|
| A D | sas_ata.c | 351 struct device *dev = &ddev->rphy->dev; in sas_ata_printk() 727 sas_fill_in_rphy(dev, dev->rphy); in sas_discover_sata()
|
| /linux/drivers/phy/renesas/ |
| A D | phy-rcar-gen3-usb2.c | 437 struct rcar_gen3_chan *channel = rphy->ch; in rcar_gen3_phy_usb2_init() 463 rphy->otg_initialized = true; in rcar_gen3_phy_usb2_init() 466 rphy->initialized = true; in rcar_gen3_phy_usb2_init() 474 struct rcar_gen3_chan *channel = rphy->ch; in rcar_gen3_phy_usb2_exit() 478 rphy->initialized = false; in rcar_gen3_phy_usb2_exit() 481 rphy->otg_initialized = false; in rcar_gen3_phy_usb2_exit() 484 val &= ~rphy->int_enable_bits; in rcar_gen3_phy_usb2_exit() 498 struct rcar_gen3_chan *channel = rphy->ch; in rcar_gen3_phy_usb2_power_on() 521 rphy->powered = true; in rcar_gen3_phy_usb2_power_on() 530 struct rcar_gen3_chan *channel = rphy->ch; in rcar_gen3_phy_usb2_power_off() [all …]
|
| /linux/drivers/scsi/mpt3sas/ |
| 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() 126 if (sas_expander->rphy == rphy) { in _transport_get_port_id_by_rphy() 690 struct sas_rphy *rphy; in mpt3sas_transport_port_add() local 810 sas_device->rphy = rphy; in mpt3sas_transport_port_add() 820 rphy = sas_expander_alloc(port, in mpt3sas_transport_port_add() 829 if ((sas_rphy_add(rphy))) { in mpt3sas_transport_port_add() 839 dev_info(&rphy->dev, in mpt3sas_transport_port_add() 843 mpt3sas_port->rphy = rphy; in mpt3sas_transport_port_add() 1216 rphy_to_ioc(struct sas_rphy *rphy) in rphy_to_ioc() argument [all …]
|
| A D | mpt3sas_base.h | 583 struct sas_rphy *rphy; member 761 struct sas_rphy *rphy; member 823 struct sas_rphy *rphy; member 1819 __mpt3sas_get_sdev_by_rphy(struct MPT3SAS_ADAPTER *ioc, struct sas_rphy *rphy);
|
| A D | mpt3sas_scsih.c | 728 struct sas_rphy *rphy) in __mpt3sas_get_sdev_by_rphy() argument 735 if (sas_device->rphy != rphy) in __mpt3sas_get_sdev_by_rphy() 743 if (sas_device->rphy != rphy) in __mpt3sas_get_sdev_by_rphy() 1878 struct sas_rphy *rphy; in scsih_target_alloc() local 1931 rphy = dev_to_rphy(starget->dev.parent); in scsih_target_alloc() 1932 sas_device = __mpt3sas_get_sdev_by_rphy(ioc, rphy); in scsih_target_alloc() 6987 sas_expander->parent_dev = &mpt3sas_port->rphy->dev; in _scsih_expander_add() 6988 sas_expander->rphy = mpt3sas_port->rphy; in _scsih_expander_add()
|
| /linux/drivers/message/fusion/ |
| A D | mptsas.c | 518 phy_info->port_details->rphy = rphy; in mptsas_set_rphy() 523 if (rphy) { in mptsas_set_rphy() 527 ioc->name, rphy, rphy->dev.release)); in mptsas_set_rphy() 589 struct sas_rphy *rphy; in mptsas_add_device_component() local 1494 if (!rphy) { in mptsas_add_end_device() 1544 if (!rphy) { in mptsas_del_end_device() 2279 if (rphy) in mptsas_smp_handler() 3266 rphy = NULL; in mptsas_probe_one_phy() 3269 if (!rphy) { in mptsas_probe_one_phy() 3495 if (!rphy) in mptsas_delete_expander_siblings() [all …]
|
| A D | mptsas.h | 153 struct sas_rphy *rphy; /* transport layer rphy object */ member
|
| /linux/drivers/scsi/aic94xx/ |
| A D | aic94xx_dev.c | 204 struct sas_end_device *rdev = rphy_to_end_device(dev->rphy); in asd_init_target_ddb()
|
| /linux/drivers/scsi/pm8001/ |
| A D | pm8001_sas.c | 663 dev->rphy->identify.phy_identifier; in pm8001_dev_found_notify()
|