Home
last modified time | relevance | path

Searched refs:rphy (Results 1 – 25 of 25) sorted by relevance

/linux/drivers/scsi/
H A Dscsi_transport_sas.c164 struct sas_rphy *rphy = target_to_rphy(sdev->sdev_target); in sas_bitfield_name_search() local
167 BUG_ON(rphy->identify.device_type != SAS_END_DEVICE); in sas_bitfield_name_search()
169 rdev = rphy_to_end_device(rphy); in sas_bitfield_name_search()
176 struct sas_rphy *rphy = NULL; in sas_smp_dispatch() local
179 rphy = dev_to_rphy(job->dev); in sas_smp_dispatch()
187 to_sas_internal(shost->transportt)->f->smp_handler(job, shost, rphy); in sas_smp_dispatch()
191 static int sas_bsg_initialize(struct Scsi_Host *shost, struct sas_rphy *rphy) in sas_bsg_initialize() argument
200 if (rphy) { in sas_bsg_initialize()
201 q = bsg_setup_queue(&rphy->dev, dev_name(&rphy in sas_bsg_initialize()
758 struct sas_rphy *rphy = dev_to_rphy(parent); sas_phy_alloc() local
956 struct sas_rphy *rphy = dev_to_rphy(parent); sas_port_alloc() local
991 struct sas_rphy *rphy = dev_to_rphy(parent); sas_port_alloc_num() local
1235 struct sas_rphy *rphy = transport_class_to_rphy(dev); show_sas_rphy_device_type() local
1250 struct sas_rphy *rphy = transport_class_to_rphy(dev); show_sas_rphy_enclosure_identifier() local
1270 struct sas_rphy *rphy = transport_class_to_rphy(dev); show_sas_rphy_bay_identifier() local
1415 struct sas_rphy *rphy; sas_end_dev_match() local
1438 struct sas_rphy *rphy; sas_expander_match() local
1459 struct sas_rphy *rphy = dev_to_rphy(dev); sas_expander_release() local
1468 struct sas_rphy *rphy = dev_to_rphy(dev); sas_end_device_release() local
1482 sas_rphy_initialize(struct sas_rphy * rphy) sas_rphy_initialize() argument
1510 struct sas_rphy *rphy = dev_to_rphy(parent->dev.parent); sas_end_device_alloc() local
1572 sas_rphy_add(struct sas_rphy * rphy) sas_rphy_add() argument
1631 sas_rphy_free(struct sas_rphy * rphy) sas_rphy_free() argument
1654 sas_rphy_delete(struct sas_rphy * rphy) sas_rphy_delete() argument
1667 sas_rphy_unlink(struct sas_rphy * rphy) sas_rphy_unlink() argument
1682 sas_rphy_remove(struct sas_rphy * rphy) sas_rphy_remove() argument
1728 struct sas_rphy *rphy; sas_user_scan() local
[all...]
H A Dhpsa.c245 struct sas_rphy *rphy);
2114 struct sas_rphy *rphy; in hpsa_sdev_init() local
2117 rphy = target_to_rphy(starget); in hpsa_sdev_init()
2118 sd = hpsa_find_device_by_sas_rphy(h, rphy); in hpsa_sdev_init()
9626 struct sas_rphy *rphy) in hpsa_sas_port_add_rphy()
9630 identify = &rphy->identify; in hpsa_sas_port_add_rphy()
9635 return sas_rphy_add(rphy); in hpsa_sas_port_add_rphy()
9720 struct sas_rphy *rphy) in hpsa_find_device_by_sas_rphy()
9729 if (device->sas_port->rphy == rphy) in hpsa_find_device_by_sas_rphy()
9625 hpsa_sas_port_add_rphy(struct hpsa_sas_port * hpsa_sas_port,struct sas_rphy * rphy) hpsa_sas_port_add_rphy() argument
9719 hpsa_find_device_by_sas_rphy(struct ctlr_info * h,struct sas_rphy * rphy) hpsa_find_device_by_sas_rphy() argument
9790 struct sas_rphy *rphy; hpsa_add_sas_device() local
9835 hpsa_sas_get_enclosure_identifier(struct sas_rphy * rphy,u64 * identifier) hpsa_sas_get_enclosure_identifier() argument
9859 hpsa_sas_get_bay_identifier(struct sas_rphy * rphy) hpsa_sas_get_bay_identifier() argument
[all...]
/linux/drivers/scsi/smartpqi/
H A Dsmartpqi_sas_transport.c89 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 Dsmartpqi.h1252 struct sas_rphy *rphy; member
1702 struct sas_rphy *rphy);
1710 struct pqi_ctrl_info *ctrl_info, struct sas_rphy *rphy);
/linux/include/scsi/
H A Dscsi_transport_sas.h108 #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 Dlibsas.h173 struct sas_rphy *rphy; member
/linux/drivers/scsi/libsas/
H A Dsas_discover.c52 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 Dsas_host_smp.c23 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 Dsas_internal.h87 struct sas_rphy *rphy);
93 struct domain_device *sas_find_dev_by_rphy(struct sas_rphy *rphy);
154 struct sas_rphy *rphy) in sas_fill_in_rphy() argument
156 rphy->identify.sas_address = SAS_ADDR(dev->sas_addr); in sas_fill_in_rphy()
157 rphy->identify.initiator_port_protocols = dev->iproto; in sas_fill_in_rphy()
158 rphy->identify.target_port_protocols = dev->tproto; in sas_fill_in_rphy()
164 rphy->identify.device_type = SAS_END_DEVICE; in sas_fill_in_rphy()
167 rphy->identify.device_type = SAS_EDGE_EXPANDER_DEVICE; in sas_fill_in_rphy()
170 rphy->identify.device_type = SAS_FANOUT_EXPANDER_DEVICE; in sas_fill_in_rphy()
173 rphy->identify.device_type = SAS_PHY_UNUSED; in sas_fill_in_rphy()
H A Dsas_expander.c42 ex->parent_port = sas_port_alloc(&dev->rphy->dev, phy_id); in sas_ex_add_parent_port()
214 struct sas_rphy *rphy = dev->rphy; in sas_set_ex_phy() local
221 phy->phy = sas_phy_alloc(&rphy->dev, phy_id); in sas_set_ex_phy()
356 struct sas_rphy *rphy; in sas_ex_phy_to_dev() local
361 rphy = ex_phy->port->rphy; in sas_ex_phy_to_dev()
362 if (!rphy) in sas_ex_phy_to_dev()
365 return sas_find_dev_by_rphy(rphy); in sas_ex_phy_to_dev()
527 struct sas_rphy *rphy = dev->rphy; in ex_assign_manuf_info() local
528 struct sas_expander_device *edev = rphy_to_expander_device(rphy); in ex_assign_manuf_info()
672 struct sas_rphy *rphy = dev_to_rphy(phy->dev.parent); in sas_smp_get_phy_events() local
[all …]
H A Dsas_init.c205 dev = sas_find_dev_by_rphy(dev->rphy); in sas_try_ata_reset()
242 struct sas_rphy *rphy = dev_to_rphy(phy->dev.parent); in transport_sas_phy_reset() local
243 struct domain_device *ddev = sas_find_dev_by_rphy(rphy); in transport_sas_phy_reset()
277 struct sas_rphy *rphy = dev_to_rphy(phy->dev.parent); in sas_phy_enable() local
278 struct domain_device *ddev = sas_find_dev_by_rphy(rphy); in sas_phy_enable()
311 struct sas_rphy *rphy = dev_to_rphy(phy->dev.parent); in sas_phy_reset() local
312 struct domain_device *ddev = sas_find_dev_by_rphy(rphy); in sas_phy_reset()
348 struct sas_rphy *rphy = dev_to_rphy(phy->dev.parent); in sas_set_phy_speed() local
349 struct domain_device *ddev = sas_find_dev_by_rphy(rphy); in sas_set_phy_speed()
H A Dsas_ata.c380 struct device *dev = &ddev->rphy->dev; in sas_ata_printk()
675 struct sas_rphy *rphy; in sas_ata_add_dev()
711 rphy = sas_end_device_alloc(phy->port); in sas_ata_add_dev()
712 if (!rphy) in sas_ata_add_dev()
715 rphy->identify.phy_identifier = phy_id; in sas_ata_add_dev()
716 child->rphy = rphy; in sas_ata_add_dev()
717 get_device(&rphy->dev); in sas_ata_add_dev()
726 sas_rphy_free(child->rphy); in sas_ata_add_dev()
808 sas_fill_in_rphy(dev, dev->rphy); in sas_discover_sata()
674 struct sas_rphy *rphy; sas_ata_add_dev() local
[all...]
H A Dsas_scsi_host.c422 dev_name(&dev->rphy->dev)); in sas_queue_reset()
779 struct domain_device *sas_find_dev_by_rphy(struct sas_rphy *rphy) in sas_find_dev_by_rphy() argument
781 struct Scsi_Host *shost = dev_to_shost(rphy->dev.parent); in sas_find_dev_by_rphy()
794 if (rphy == dev->rphy) { in sas_find_dev_by_rphy()
810 struct sas_rphy *rphy = dev_to_rphy(starget->dev.parent); in sas_target_alloc() local
811 struct domain_device *found_dev = sas_find_dev_by_rphy(rphy); in sas_target_alloc()
828 BUG_ON(dev->rphy->identify.device_type != SAS_END_DEVICE); in sas_sdev_configure()
/linux/drivers/scsi/mpt3sas/
H A Dmpt3sas_transport.c111 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()
689 struct sas_rphy *rphy; in mpt3sas_transport_port_add() local
807 rphy = sas_end_device_alloc(port); in mpt3sas_transport_port_add()
808 sas_device->rphy = rphy; in mpt3sas_transport_port_add()
[all …]
H A Dmpt3sas_scsih.c788 * @rphy: sas_rphy pointer
793 * This searches for sas_device from rphy object in __mpt3sas_get_sdev_by_rphy()
798 struct sas_rphy *rphy) in __mpt3sas_get_sdev_by_rphy()
805 if (sas_device->rphy != rphy) in __mpt3sas_get_sdev_by_rphy()
813 if (sas_device->rphy != rphy)
1949 struct sas_rphy *rphy; in scsih_target_alloc()
2001 rphy = dev_to_rphy(starget->dev.parent); in scsih_target_alloc()
2002 sas_device = __mpt3sas_get_sdev_by_rphy(ioc, rphy); in scsih_target_alloc()
790 __mpt3sas_get_sdev_by_rphy(struct MPT3SAS_ADAPTER * ioc,struct sas_rphy * rphy) __mpt3sas_get_sdev_by_rphy() argument
1941 struct sas_rphy *rphy; scsih_target_alloc() local
[all...]
/linux/drivers/scsi/mpi3mr/
H A Dmpi3mr_transport.c435 * @rphy: SAS transport layer rphy object
437 * This searches for target device from sas address and rphy
443 struct mpi3mr_ioc *mrioc, u64 sas_address, struct sas_rphy *rphy) in __mpi3mr_get_tgtdev_by_addr_and_rphy() argument
452 && (tgtdev->dev_spec.sas_sata_inf.rphy == rphy)) in __mpi3mr_get_tgtdev_by_addr_and_rphy()
1355 struct sas_rphy *rphy; in mpi3mr_sas_port_add()
1479 rphy = sas_end_device_alloc(port); in mpi3mr_sas_port_add()
1480 if (!rphy) { in mpi3mr_sas_port_add()
1486 tgtdev->dev_spec.sas_sata_inf.rphy in mpi3mr_sas_port_add()
1334 struct sas_rphy *rphy; mpi3mr_sas_port_add() local
2484 mpi3mr_get_port_id_by_rphy(struct mpi3mr_ioc * mrioc,struct sas_rphy * rphy) mpi3mr_get_port_id_by_rphy() argument
2527 rphy_to_mrioc(struct sas_rphy * rphy) rphy_to_mrioc() argument
2735 mpi3mr_transport_get_enclosure_identifier(struct sas_rphy * rphy,u64 * identifier) mpi3mr_transport_get_enclosure_identifier() argument
2770 mpi3mr_transport_get_bay_identifier(struct sas_rphy * rphy) mpi3mr_transport_get_bay_identifier() argument
3260 mpi3mr_transport_smp_handler(struct bsg_job * job,struct Scsi_Host * shost,struct sas_rphy * rphy) mpi3mr_transport_smp_handler() argument
[all...]
H A Dmpi3mr_os.c4887 struct sas_rphy *rphy = NULL;
4903 rphy = dev_to_rphy(starget->dev.parent); in mpi3mr_sdev_init() local
4905 rphy->identify.sas_address, rphy); in mpi3mr_sdev_init()
4977 struct sas_rphy *rphy = NULL; in mpi3mr_target_alloc()
4987 rphy = dev_to_rphy(starget->dev.parent); in mpi3mr_target_alloc()
4989 rphy->identify.sas_address, rphy); in mpi3mr_target_alloc()
5023 struct sas_rphy *rphy = NULL;
5035 rphy in mpi3mr_check_return_unmap()
4767 struct sas_rphy *rphy = NULL; mpi3mr_sdev_destroy() local
4857 struct sas_rphy *rphy = NULL; mpi3mr_sdev_configure() local
4961 struct sas_rphy *rphy = NULL; mpi3mr_target_alloc() local
[all...]
/linux/drivers/message/fusion/
H A Dmptsas.c113 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 Dmptsas.h153 struct sas_rphy *rphy; /* transport layer rphy object */ member
/linux/drivers/phy/renesas/
H A Dphy-rcar-gen3-usb2.c632 struct rcar_gen3_phy *rphy = phy_get_drvdata(p); in rcar_gen3_phy_usb2_init() local
633 struct rcar_gen3_chan *channel = rphy->ch; in rcar_gen3_phy_usb2_init()
664 val |= USB2_INT_ENABLE_UCOM_INTEN | rphy->int_enable_bits; in rcar_gen3_phy_usb2_init()
673 if (rphy->int_enable_bits && channel->is_otg_channel && in rcar_gen3_phy_usb2_init()
706 rphy->initialized = true; in rcar_gen3_phy_usb2_init()
716 struct rcar_gen3_phy *rphy = phy_get_drvdata(p); in rcar_gen3_phy_usb2_exit() local
717 struct rcar_gen3_chan *channel = rphy->ch; in rcar_gen3_phy_usb2_exit()
746 rphy->initialized = false; in rcar_gen3_phy_usb2_exit()
749 val &= ~rphy->int_enable_bits; in rcar_gen3_phy_usb2_exit()
761 struct rcar_gen3_phy *rphy in rcar_gen3_phy_usb2_power_on() local
822 struct rcar_gen3_phy *rphy = phy_get_drvdata(p); rcar_gen3_phy_usb2_power_off() local
[all...]
/linux/drivers/scsi/leapraid/
H A Dleapraid_func.h806 * @rphy: SAS remote PHY device.
821 struct sas_rphy *rphy;
1079 * @rphy: SAS remote PHY.
1105 struct sas_rphy *rphy;
1147 * @rphy: SAS remote PHY.
1156 struct sas_rphy *rphy;
1381 u64 sas_address, struct sas_rphy *rphy);
828 struct sas_rphy *rphy; global() member
1112 struct sas_rphy *rphy; global() member
1163 struct sas_rphy *rphy; global() member
H A Dleapraid_os.c1407 struct sas_rphy *rphy; in leapraid_target_alloc_raid()
1418 rphy = dev_to_rphy(tgt->dev.parent); in leapraid_target_alloc_sas()
1421 rphy->identify.sas_address, in leapraid_target_alloc_sas()
1422 rphy); in leapraid_target_alloc_sas()
1414 struct sas_rphy *rphy; leapraid_target_alloc_sas() local
H A Dleapraid_func.c1055 struct sas_rphy *rphy) in leapraid_hold_lock_get_sas_dev_by_addr_and_rphy() argument
1062 sas_dev->rphy == rphy) { in leapraid_hold_lock_get_sas_dev_by_addr_and_rphy()
1070 sas_dev->rphy == rphy) { in leapraid_hold_lock_get_sas_dev_by_addr_and_rphy()
3781 topo_node_exp->parent_dev = &sas_port->rphy->dev; in leapraid_internal_exp_add()
3782 topo_node_exp->rphy = sas_port->rphy; in leapraid_internal_exp_add()
4552 if (sas_dev->rphy || sas_dev->pend_sas_rphy_add) in leapraid_remove_unresp_sas_end_dev()
/linux/drivers/scsi/aic94xx/
H A Daic94xx_dev.c204 struct sas_end_device *rdev = rphy_to_end_device(dev->rphy); in asd_init_target_ddb()
/linux/drivers/scsi/pm8001/
H A Dpm8001_sas.c730 dev->rphy->identify.phy_identifier; in pm8001_dev_found_notify()