Home
last modified time | relevance | path

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

/linux/drivers/phy/rockchip/
H A Dphy-rockchip-inno-usb2.c180 int (*phy_tuning)(struct rockchip_usb2phy *rphy);
264 static inline struct regmap *get_reg_base(struct rockchip_usb2phy *rphy) in get_reg_base() argument
266 return rphy->usbgrf == NULL ? rphy->grf : rphy->usbgrf; in get_reg_base()
296 static int rockchip_usb2phy_reset(struct rockchip_usb2phy *rphy) in rockchip_usb2phy_reset() argument
300 ret = reset_control_assert(rphy->phy_reset); in rockchip_usb2phy_reset()
306 ret = reset_control_deassert(rphy->phy_reset); in rockchip_usb2phy_reset()
317 struct rockchip_usb2phy *rphy = data; in rockchip_usb2phy_clk_bulk_disable() local
319 clk_bulk_disable_unprepare(rphy->num_clks, rphy->clks); in rockchip_usb2phy_clk_bulk_disable()
324 struct rockchip_usb2phy *rphy = in rockchip_usb2phy_clk480m_prepare() local
326 struct regmap *base = get_reg_base(rphy); in rockchip_usb2phy_clk480m_prepare()
[all …]
/linux/drivers/scsi/
H A Dscsi_transport_sas.c165 struct sas_rphy *rphy = target_to_rphy(sdev->sdev_target); in sas_bitfield_name_search() local
168 BUG_ON(rphy->identify.device_type != SAS_END_DEVICE); in sas_bitfield_name_search()
170 rdev = rphy_to_end_device(rphy); in sas_bitfield_name_search()
177 struct sas_rphy *rphy = NULL; in sas_smp_dispatch() local
180 rphy = dev_to_rphy(job->dev); in sas_smp_dispatch()
188 to_sas_internal(shost->transportt)->f->smp_handler(job, shost, rphy); in sas_smp_dispatch()
192 static int sas_bsg_initialize(struct Scsi_Host *shost, struct sas_rphy *rphy) in sas_bsg_initialize() argument
201 if (rphy) { in sas_bsg_initialize()
202 q = bsg_setup_queue(&rphy->dev, dev_name(&rphy->dev), NULL, in sas_bsg_initialize()
206 rphy->q = q; in sas_bsg_initialize()
[all …]
H A Dhpsa.h51 struct sas_rphy *rphy; member
/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);
H A Dsmartpqi_init.c6543 struct sas_rphy *rphy; in pqi_sdev_init() local
6551 rphy = target_to_rphy(starget); in pqi_sdev_init()
6552 device = pqi_find_device_by_sas_rphy(ctrl_info, rphy); in pqi_sdev_init()
/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...]
/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);
153 struct sas_rphy *rphy) in sas_fill_in_rphy() argument
155 rphy->identify.sas_address = SAS_ADDR(dev->sas_addr); in sas_fill_in_rphy()
156 rphy->identify.initiator_port_protocols = dev->iproto; in sas_fill_in_rphy()
157 rphy->identify.target_port_protocols = dev->tproto; in sas_fill_in_rphy()
163 rphy->identify.device_type = SAS_END_DEVICE; in sas_fill_in_rphy()
166 rphy->identify.device_type = SAS_EDGE_EXPANDER_DEVICE; in sas_fill_in_rphy()
169 rphy->identify.device_type = SAS_FANOUT_EXPANDER_DEVICE; in sas_fill_in_rphy()
172 rphy->identify.device_type = SAS_PHY_UNUSED; in sas_fill_in_rphy()
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.c379 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()
/linux/drivers/phy/renesas/
H A Dphy-rcar-gen3-usb2.c517 struct rcar_gen3_phy *rphy = phy_get_drvdata(p); in rcar_gen3_phy_usb2_init() local
518 struct rcar_gen3_chan *channel = rphy->ch; in rcar_gen3_phy_usb2_init()
526 val |= USB2_INT_ENABLE_UCOM_INTEN | rphy->int_enable_bits; in rcar_gen3_phy_usb2_init()
535 if (rphy->int_enable_bits) in rcar_gen3_phy_usb2_init()
553 rphy->initialized = true; in rcar_gen3_phy_usb2_init()
560 struct rcar_gen3_phy *rphy = phy_get_drvdata(p); in rcar_gen3_phy_usb2_exit() local
561 struct rcar_gen3_chan *channel = rphy->ch; in rcar_gen3_phy_usb2_exit()
567 rphy->initialized = false; in rcar_gen3_phy_usb2_exit()
570 val &= ~rphy->int_enable_bits; in rcar_gen3_phy_usb2_exit()
580 struct rcar_gen3_phy *rphy = phy_get_drvdata(p); in rcar_gen3_phy_usb2_power_on() local
[all …]
/linux/drivers/message/fusion/
H A Dmptsas.h153 struct sas_rphy *rphy; /* transport layer rphy object */ member
/linux/drivers/scsi/mpi3mr/
H A Dmpi3mr.h564 struct sas_rphy *rphy; member
624 struct sas_rphy *rphy; member
660 struct sas_rphy *rphy; member
1569 struct mpi3mr_ioc *mrioc, u64 sas_address, struct sas_rphy *rphy);
H A Dmpi3mr_os.c4644 struct sas_rphy *rphy = NULL; in mpi3mr_sdev_destroy() local
4660 rphy = dev_to_rphy(starget->dev.parent); in mpi3mr_sdev_destroy()
4662 rphy->identify.sas_address, rphy); in mpi3mr_sdev_destroy()
4734 struct sas_rphy *rphy = NULL; in mpi3mr_sdev_configure() local
4744 rphy = dev_to_rphy(starget->dev.parent); in mpi3mr_sdev_configure()
4746 rphy->identify.sas_address, rphy); in mpi3mr_sdev_configure()
4780 struct sas_rphy *rphy = NULL; in mpi3mr_sdev_init() local
4792 rphy = dev_to_rphy(starget->dev.parent); in mpi3mr_sdev_init()
4794 rphy->identify.sas_address, rphy); in mpi3mr_sdev_init()
4838 struct sas_rphy *rphy = NULL; in mpi3mr_target_alloc() local
[all …]
/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()