Home
last modified time | relevance | path

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

12

/Linux-v6.1/drivers/phy/rockchip/
Dphy-rockchip-inno-usb2.c237 static inline struct regmap *get_reg_base(struct rockchip_usb2phy *rphy) in get_reg_base() argument
239 return rphy->usbgrf == NULL ? rphy->grf : rphy->usbgrf; in get_reg_base()
271 struct rockchip_usb2phy *rphy = in rockchip_usb2phy_clk480m_prepare() local
273 struct regmap *base = get_reg_base(rphy); in rockchip_usb2phy_clk480m_prepare()
277 if (!property_enabled(base, &rphy->phy_cfg->clkout_ctl)) { in rockchip_usb2phy_clk480m_prepare()
278 ret = property_enable(base, &rphy->phy_cfg->clkout_ctl, true); in rockchip_usb2phy_clk480m_prepare()
291 struct rockchip_usb2phy *rphy = in rockchip_usb2phy_clk480m_unprepare() local
293 struct regmap *base = get_reg_base(rphy); in rockchip_usb2phy_clk480m_unprepare()
296 property_enable(base, &rphy->phy_cfg->clkout_ctl, false); in rockchip_usb2phy_clk480m_unprepare()
301 struct rockchip_usb2phy *rphy = in rockchip_usb2phy_clk480m_prepared() local
[all …]
/Linux-v6.1/drivers/scsi/
Dscsi_transport_sas.c163 struct sas_rphy *rphy = target_to_rphy(sdev->sdev_target); in sas_bitfield_name_search() local
166 BUG_ON(rphy->identify.device_type != SAS_END_DEVICE); in sas_bitfield_name_search()
168 rdev = rphy_to_end_device(rphy); in sas_bitfield_name_search()
175 struct sas_rphy *rphy = NULL; in sas_smp_dispatch() local
178 rphy = dev_to_rphy(job->dev); in sas_smp_dispatch()
186 to_sas_internal(shost->transportt)->f->smp_handler(job, shost, rphy); in sas_smp_dispatch()
190 static int sas_bsg_initialize(struct Scsi_Host *shost, struct sas_rphy *rphy) in sas_bsg_initialize() argument
199 if (rphy) { in sas_bsg_initialize()
200 q = bsg_setup_queue(&rphy->dev, dev_name(&rphy->dev), in sas_bsg_initialize()
204 rphy->q = q; in sas_bsg_initialize()
[all …]
Dhpsa.c245 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()
9644 struct sas_rphy *rphy) in hpsa_sas_port_add_rphy() argument
9648 identify = &rphy->identify; in hpsa_sas_port_add_rphy()
9653 return sas_rphy_add(rphy); in hpsa_sas_port_add_rphy()
9738 struct sas_rphy *rphy) in hpsa_find_device_by_sas_rphy() argument
9747 if (device->sas_port->rphy == rphy) in hpsa_find_device_by_sas_rphy()
9808 struct sas_rphy *rphy; in hpsa_add_sas_device() local
[all …]
Dhpsa.h51 struct sas_rphy *rphy; member
/Linux-v6.1/drivers/scsi/smartpqi/
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()
116 return sas_rphy_add(rphy); in pqi_sas_port_add_rphy()
210 struct pqi_ctrl_info *ctrl_info, struct sas_rphy *rphy) in pqi_find_device_by_sas_rphy() argument
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
287 rphy = pqi_sas_rphy_alloc(pqi_sas_port); in pqi_add_sas_device()
288 if (!rphy) { in pqi_add_sas_device()
293 pqi_sas_port->rphy = rphy; in pqi_add_sas_device()
296 rc = pqi_sas_port_add_rphy(pqi_sas_port, rphy); in pqi_add_sas_device()
[all …]
Dsmartpqi.h1224 struct sas_rphy *rphy; member
1677 struct sas_rphy *rphy);
1685 struct pqi_ctrl_info *ctrl_info, struct sas_rphy *rphy);
/Linux-v6.1/include/scsi/
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
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 …]
Dlibsas.h187 struct sas_rphy *rphy; member
/Linux-v6.1/drivers/scsi/libsas/
Dsas_internal.h76 struct sas_rphy *rphy);
82 struct domain_device *sas_find_dev_by_rphy(struct sas_rphy *rphy);
124 struct sas_rphy *rphy) in sas_fill_in_rphy() argument
126 rphy->identify.sas_address = SAS_ADDR(dev->sas_addr); in sas_fill_in_rphy()
127 rphy->identify.initiator_port_protocols = dev->iproto; in sas_fill_in_rphy()
128 rphy->identify.target_port_protocols = dev->tproto; in sas_fill_in_rphy()
134 rphy->identify.device_type = SAS_END_DEVICE; in sas_fill_in_rphy()
137 rphy->identify.device_type = SAS_EDGE_EXPANDER_DEVICE; in sas_fill_in_rphy()
140 rphy->identify.device_type = SAS_FANOUT_EXPANDER_DEVICE; in sas_fill_in_rphy()
143 rphy->identify.device_type = SAS_PHY_UNUSED; in sas_fill_in_rphy()
[all …]
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 …]
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()
Dsas_expander.c188 struct sas_rphy *rphy = dev->rphy; in sas_set_ex_phy() local
195 phy->phy = sas_phy_alloc(&rphy->dev, phy_id); in sas_set_ex_phy()
332 struct sas_rphy *rphy; in sas_ex_to_ata() local
337 rphy = ex_phy->port->rphy; in sas_ex_to_ata()
338 if (!rphy) in sas_ex_to_ata()
341 dev = sas_find_dev_by_rphy(rphy); in sas_ex_to_ata()
497 struct sas_rphy *rphy = dev->rphy; in ex_assign_manuf_info() local
498 struct sas_expander_device *edev = rphy_to_expander_device(rphy); in ex_assign_manuf_info()
642 struct sas_rphy *rphy = dev_to_rphy(phy->dev.parent); in sas_smp_get_phy_events() local
643 struct domain_device *dev = sas_find_dev_by_rphy(rphy); in sas_smp_get_phy_events()
[all …]
Dsas_init.c207 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()
Dsas_scsi_host.c456 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()
Dsas_ata.c343 struct device *dev = &ddev->rphy->dev; in sas_ata_printk()
732 sas_fill_in_rphy(dev, dev->rphy); in sas_discover_sata()
/Linux-v6.1/drivers/phy/renesas/
Dphy-rcar-gen3-usb2.c436 struct rcar_gen3_phy *rphy = phy_get_drvdata(p); in rcar_gen3_phy_usb2_init() local
437 struct rcar_gen3_chan *channel = rphy->ch; in rcar_gen3_phy_usb2_init()
454 val |= USB2_INT_ENABLE_UCOM_INTEN | rphy->int_enable_bits; 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()
473 struct rcar_gen3_phy *rphy = phy_get_drvdata(p); in rcar_gen3_phy_usb2_exit() local
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()
[all …]
/Linux-v6.1/drivers/scsi/mpt3sas/
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()
690 struct sas_rphy *rphy; in mpt3sas_transport_port_add() local
809 rphy = sas_end_device_alloc(port); in mpt3sas_transport_port_add()
810 sas_device->rphy = rphy; in mpt3sas_transport_port_add()
[all …]
Dmpt3sas_base.h583 struct sas_rphy *rphy; member
761 struct sas_rphy *rphy; member
823 struct sas_rphy *rphy; member
1845 __mpt3sas_get_sdev_by_rphy(struct MPT3SAS_ADAPTER *ioc, struct sas_rphy *rphy);
Dmpt3sas_scsih.c728 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()
7000 sas_expander->parent_dev = &mpt3sas_port->rphy->dev; in _scsih_expander_add()
7001 sas_expander->rphy = mpt3sas_port->rphy; in _scsih_expander_add()
/Linux-v6.1/drivers/scsi/mpi3mr/
Dmpi3mr_transport.c441 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()
1316 struct sas_rphy *rphy; in mpi3mr_sas_port_add() local
1421 rphy = sas_end_device_alloc(port); in mpi3mr_sas_port_add()
1422 tgtdev->dev_spec.sas_sata_inf.rphy = rphy; in mpi3mr_sas_port_add()
1424 rphy = sas_expander_alloc(port, in mpi3mr_sas_port_add()
1427 rphy->identify = mr_sas_port->remote_identify; in mpi3mr_sas_port_add()
1432 if ((sas_rphy_add(rphy))) { in mpi3mr_sas_port_add()
1442 dev_info(&rphy->dev, in mpi3mr_sas_port_add()
1447 mr_sas_port->rphy = rphy; in mpi3mr_sas_port_add()
[all …]
Dmpi3mr.h507 struct sas_rphy *rphy; member
567 struct sas_rphy *rphy; member
603 struct sas_rphy *rphy; member
1391 struct mpi3mr_ioc *mrioc, u64 sas_address, struct sas_rphy *rphy);
Dmpi3mr_os.c4191 struct sas_rphy *rphy = NULL; in mpi3mr_slave_destroy() local
4207 rphy = dev_to_rphy(starget->dev.parent); in mpi3mr_slave_destroy()
4209 rphy->identify.sas_address, rphy); in mpi3mr_slave_destroy()
4279 struct sas_rphy *rphy = NULL; in mpi3mr_slave_configure() local
4289 rphy = dev_to_rphy(starget->dev.parent); in mpi3mr_slave_configure()
4291 rphy->identify.sas_address, rphy); in mpi3mr_slave_configure()
4345 struct sas_rphy *rphy = NULL; in mpi3mr_slave_alloc() local
4357 rphy = dev_to_rphy(starget->dev.parent); in mpi3mr_slave_alloc()
4359 rphy->identify.sas_address, rphy); in mpi3mr_slave_alloc()
4403 struct sas_rphy *rphy = NULL; in mpi3mr_target_alloc() local
[all …]
/Linux-v6.1/drivers/message/fusion/
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 …]
Dmptsas.h153 struct sas_rphy *rphy; /* transport layer rphy object */ member
/Linux-v6.1/drivers/scsi/aic94xx/
Daic94xx_dev.c204 struct sas_end_device *rdev = rphy_to_end_device(dev->rphy); in asd_init_target_ddb()

12