Home
last modified time | relevance | path

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

12

/OK3568_Linux_fs/kernel/drivers/phy/rockchip/
H A Dphy-rockchip-naneng-usb2.c167 int (*phy_tuning)(struct rockchip_usb2phy *rphy);
168 int (*phy_lowpower)(struct rockchip_usb2phy *rphy, bool en);
284 struct rockchip_usb2phy *rphy = in rockchip_usb2phy_clk480m_prepare() local
289 if (!property_enabled(rphy->grf, &rphy->phy_cfg->clkout_ctl)) { in rockchip_usb2phy_clk480m_prepare()
290 ret = property_enable(rphy->grf, &rphy->phy_cfg->clkout_ctl, in rockchip_usb2phy_clk480m_prepare()
304 struct rockchip_usb2phy *rphy = in rockchip_usb2phy_clk480m_unprepare() local
308 property_enable(rphy->grf, &rphy->phy_cfg->clkout_ctl, false); in rockchip_usb2phy_clk480m_unprepare()
313 struct rockchip_usb2phy *rphy = in rockchip_usb2phy_clk480m_prepared() local
316 return property_enabled(rphy->grf, &rphy->phy_cfg->clkout_ctl); in rockchip_usb2phy_clk480m_prepared()
335 struct rockchip_usb2phy *rphy = data; in rockchip_usb2phy_clk480m_unregister() local
[all …]
H A Dphy-rockchip-inno-usb2.c225 int (*phy_tuning)(struct rockchip_usb2phy *rphy);
226 int (*vbus_detect)(struct rockchip_usb2phy *rphy,
355 static inline struct regmap *get_reg_base(struct rockchip_usb2phy *rphy) in get_reg_base() argument
357 return rphy->usbgrf == NULL ? rphy->grf : rphy->usbgrf; in get_reg_base()
435 static int rockchip_usb2phy_reset(struct rockchip_usb2phy *rphy) in rockchip_usb2phy_reset() argument
439 if (!rphy->phy_reset) in rockchip_usb2phy_reset()
442 ret = reset_control_assert(rphy->phy_reset); in rockchip_usb2phy_reset()
448 ret = reset_control_deassert(rphy->phy_reset); in rockchip_usb2phy_reset()
459 struct rockchip_usb2phy *rphy = in rockchip_usb2phy_clk480m_prepare() local
461 struct regmap *base = get_reg_base(rphy); in rockchip_usb2phy_clk480m_prepare()
[all …]
/OK3568_Linux_fs/u-boot/drivers/phy/
H A Dphy-rockchip-inno-usb2.c167 static inline struct regmap *get_reg_base(struct rockchip_usb2phy *rphy) in get_reg_base() argument
169 return !rphy->usbgrf_base ? rphy->grf_base : rphy->usbgrf_base; in get_reg_base()
213 static void rockchip_chg_enable_dcd(struct rockchip_usb2phy *rphy, in rockchip_chg_enable_dcd() argument
216 struct regmap *base = get_reg_base(rphy); in rockchip_chg_enable_dcd()
218 property_enable(base, &rphy->phy_cfg->chg_det.rdm_pdwn_en, en); in rockchip_chg_enable_dcd()
219 property_enable(base, &rphy->phy_cfg->chg_det.idp_src_en, en); in rockchip_chg_enable_dcd()
222 static void rockchip_chg_enable_primary_det(struct rockchip_usb2phy *rphy, in rockchip_chg_enable_primary_det() argument
225 struct regmap *base = get_reg_base(rphy); in rockchip_chg_enable_primary_det()
227 property_enable(base, &rphy->phy_cfg->chg_det.vdp_src_en, en); in rockchip_chg_enable_primary_det()
228 property_enable(base, &rphy->phy_cfg->chg_det.idm_sink_en, en); in rockchip_chg_enable_primary_det()
[all …]
H A Dphy-rockchip-naneng-usb2.c132 int (*phy_tuning)(struct rockchip_usb2phy *rphy);
200 struct rockchip_usb2phy *rphy; in rockchip_chg_get_type() local
215 rphy = dev_get_priv(udev); in rockchip_chg_get_type()
216 port_cfg = &rphy->phy_cfg->port_cfgs[USB2PHY_PORT_OTG]; in rockchip_chg_get_type()
219 if (!property_enabled(rphy->grf, &port_cfg->utmi_bvalid)) { in rockchip_chg_get_type()
224 reset_assert(rphy->reset); in rockchip_chg_get_type()
227 property_enable(rphy->grf, &rphy->phy_cfg->chg_det.chg_en, true); in rockchip_chg_get_type()
228 property_enable(rphy->grf, &rphy->phy_cfg->chg_det.chg_rst, false); in rockchip_chg_get_type()
233 chg_valid = property_enabled(rphy->grf, in rockchip_chg_get_type()
234 &rphy->phy_cfg->chg_det.chg_valid); in rockchip_chg_get_type()
[all …]
/OK3568_Linux_fs/kernel/drivers/scsi/
H A 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 …]
H A Dhpsa.c246 struct sas_rphy *rphy);
2114 struct sas_rphy *rphy; in hpsa_slave_alloc() local
2117 rphy = target_to_rphy(starget); in hpsa_slave_alloc()
2118 sd = hpsa_find_device_by_sas_rphy(h, rphy); in hpsa_slave_alloc()
9622 struct sas_rphy *rphy) in hpsa_sas_port_add_rphy() argument
9626 identify = &rphy->identify; in hpsa_sas_port_add_rphy()
9631 return sas_rphy_add(rphy); in hpsa_sas_port_add_rphy()
9716 struct sas_rphy *rphy) in hpsa_find_device_by_sas_rphy() argument
9725 if (device->sas_port->rphy == rphy) in hpsa_find_device_by_sas_rphy()
9786 struct sas_rphy *rphy; in hpsa_add_sas_device() local
[all …]
H A Dhpsa.h51 struct sas_rphy *rphy; member
/OK3568_Linux_fs/kernel/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()
105 return sas_rphy_add(rphy); in pqi_sas_port_add_rphy()
200 struct pqi_ctrl_info *ctrl_info, struct sas_rphy *rphy) in pqi_find_device_by_sas_rphy() argument
208 if (device->sas_port->rphy == rphy) in pqi_find_device_by_sas_rphy()
270 struct sas_rphy *rphy; in pqi_add_sas_device() local
277 rphy = pqi_sas_rphy_alloc(pqi_sas_port); in pqi_add_sas_device()
278 if (!rphy) { in pqi_add_sas_device()
283 pqi_sas_port->rphy = rphy; in pqi_add_sas_device()
286 rc = pqi_sas_port_add_rphy(pqi_sas_port, rphy); in pqi_add_sas_device()
[all …]
H A Dsmartpqi.h1040 struct sas_rphy *rphy; member
1429 struct sas_rphy *rphy);
1437 struct pqi_ctrl_info *ctrl_info, struct sas_rphy *rphy);
/OK3568_Linux_fs/kernel/include/scsi/
H A Dscsi_transport_sas.h107 #define rphy_to_shost(rphy) \ argument
108 dev_to_shost((rphy)->dev.parent)
113 struct sas_rphy rphy; member
123 container_of((r), struct sas_end_device, rphy)
140 struct sas_rphy rphy; member
144 container_of((r), struct sas_expander_device, rphy)
155 struct sas_rphy *rphy; member
234 struct sas_rphy *rphy; in scsi_is_sas_expander_device() local
237 rphy = dev_to_rphy(dev); in scsi_is_sas_expander_device()
238 return rphy->identify.device_type == SAS_FANOUT_EXPANDER_DEVICE || in scsi_is_sas_expander_device()
[all …]
H A Dlibsas.h187 struct sas_rphy *rphy; member
/OK3568_Linux_fs/kernel/drivers/scsi/libsas/
H A Dsas_discover.c53 struct sas_rphy *rphy; in sas_get_port_device() local
108 rphy = NULL; in sas_get_port_device()
113 rphy = sas_end_device_alloc(port->port); in sas_get_port_device()
116 rphy = sas_expander_alloc(port->port, in sas_get_port_device()
120 rphy = sas_expander_alloc(port->port, in sas_get_port_device()
125 rphy = NULL; in sas_get_port_device()
129 if (!rphy) { in sas_get_port_device()
134 rphy->identify.phy_identifier = phy->phy->identify.phy_identifier; 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()
[all …]
H A Dsas_internal.h76 struct sas_rphy *rphy);
85 struct domain_device *sas_find_dev_by_rphy(struct sas_rphy *rphy);
121 struct sas_rphy *rphy) in sas_fill_in_rphy() argument
123 rphy->identify.sas_address = SAS_ADDR(dev->sas_addr); in sas_fill_in_rphy()
124 rphy->identify.initiator_port_protocols = dev->iproto; in sas_fill_in_rphy()
125 rphy->identify.target_port_protocols = dev->tproto; in sas_fill_in_rphy()
131 rphy->identify.device_type = SAS_END_DEVICE; in sas_fill_in_rphy()
134 rphy->identify.device_type = SAS_EDGE_EXPANDER_DEVICE; in sas_fill_in_rphy()
137 rphy->identify.device_type = SAS_FANOUT_EXPANDER_DEVICE; in sas_fill_in_rphy()
140 rphy->identify.device_type = SAS_PHY_UNUSED; in sas_fill_in_rphy()
[all …]
H A Dsas_expander.c205 struct sas_rphy *rphy = dev->rphy; in sas_set_ex_phy() local
212 phy->phy = sas_phy_alloc(&rphy->dev, phy_id); in sas_set_ex_phy()
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()
358 dev = sas_find_dev_by_rphy(rphy); in sas_ex_to_ata()
519 struct sas_rphy *rphy = dev->rphy; in ex_assign_manuf_info() local
520 struct sas_expander_device *edev = rphy_to_expander_device(rphy); in ex_assign_manuf_info()
664 struct sas_rphy *rphy = dev_to_rphy(phy->dev.parent); in sas_smp_get_phy_events() local
665 struct domain_device *dev = sas_find_dev_by_rphy(rphy); in sas_smp_get_phy_events()
[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_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()
310 struct sas_rphy *rphy = dev_to_rphy(phy->dev.parent); in sas_phy_reset() local
311 struct domain_device *ddev = sas_find_dev_by_rphy(rphy); in sas_phy_reset()
346 struct sas_rphy *rphy = dev_to_rphy(phy->dev.parent); in sas_set_phy_speed() local
347 struct domain_device *ddev = sas_find_dev_by_rphy(rphy); in sas_set_phy_speed()
H A Dsas_scsi_host.c455 dev_name(&dev->rphy->dev)); in sas_queue_reset()
794 struct domain_device *sas_find_dev_by_rphy(struct sas_rphy *rphy) in sas_find_dev_by_rphy() argument
796 struct Scsi_Host *shost = dev_to_shost(rphy->dev.parent); in sas_find_dev_by_rphy()
809 if (rphy == dev->rphy) { in sas_find_dev_by_rphy()
825 struct sas_rphy *rphy = dev_to_rphy(starget->dev.parent); in sas_target_alloc() local
826 struct domain_device *found_dev = sas_find_dev_by_rphy(rphy); in sas_target_alloc()
842 BUG_ON(dev->rphy->identify.device_type != SAS_END_DEVICE); in sas_slave_configure()
H A Dsas_ata.c356 struct device *dev = &ddev->rphy->dev; in sas_ata_printk()
732 sas_fill_in_rphy(dev, dev->rphy); in sas_discover_sata()
/OK3568_Linux_fs/kernel/drivers/phy/renesas/
H A Dphy-rcar-gen3-usb2.c412 struct rcar_gen3_phy *rphy = phy_get_drvdata(p); in rcar_gen3_phy_usb2_init() local
413 struct rcar_gen3_chan *channel = rphy->ch; in rcar_gen3_phy_usb2_init()
430 val |= USB2_INT_ENABLE_UCOM_INTEN | rphy->int_enable_bits; in rcar_gen3_phy_usb2_init()
439 rphy->otg_initialized = true; in rcar_gen3_phy_usb2_init()
442 rphy->initialized = true; in rcar_gen3_phy_usb2_init()
449 struct rcar_gen3_phy *rphy = phy_get_drvdata(p); in rcar_gen3_phy_usb2_exit() local
450 struct rcar_gen3_chan *channel = rphy->ch; in rcar_gen3_phy_usb2_exit()
454 rphy->initialized = false; in rcar_gen3_phy_usb2_exit()
457 rphy->otg_initialized = false; in rcar_gen3_phy_usb2_exit()
460 val &= ~rphy->int_enable_bits; in rcar_gen3_phy_usb2_exit()
[all …]
/OK3568_Linux_fs/kernel/drivers/message/fusion/
H A Dmptsas.c113 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 …]
H A Dmptsas.h152 struct sas_rphy *rphy; /* transport layer rphy object */ member
/OK3568_Linux_fs/kernel/drivers/scsi/mpt3sas/
H A Dmpt3sas_transport.c611 struct sas_rphy *rphy; in mpt3sas_transport_port_add() local
693 rphy = sas_end_device_alloc(port); in mpt3sas_transport_port_add()
695 rphy = sas_expander_alloc(port, in mpt3sas_transport_port_add()
698 rphy->identify = mpt3sas_port->remote_identify; in mpt3sas_transport_port_add()
712 if ((sas_rphy_add(rphy))) { in mpt3sas_transport_port_add()
722 dev_info(&rphy->dev, in mpt3sas_transport_port_add()
726 mpt3sas_port->rphy = rphy; in mpt3sas_transport_port_add()
738 rphy_to_expander_device(rphy)); in mpt3sas_transport_port_add()
1017 rphy_to_ioc(struct sas_rphy *rphy) in rphy_to_ioc() argument
1019 struct Scsi_Host *shost = dev_to_shost(rphy->dev.parent->parent); in rphy_to_ioc()
[all …]
H A Dmpt3sas_base.h739 struct sas_rphy *rphy; member
/OK3568_Linux_fs/kernel/drivers/scsi/aic94xx/
H A Daic94xx_dev.c204 struct sas_end_device *rdev = rphy_to_end_device(dev->rphy); in asd_init_target_ddb()
/OK3568_Linux_fs/kernel/drivers/scsi/pm8001/
H A Dpm8001_sas.c663 dev->rphy->identify.phy_identifier; in pm8001_dev_found_notify()

12