Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/drivers/phy/rockchip/
H A Dphy-rockchip-inno-usb2.c225 static inline struct regmap *get_reg_base(struct rockchip_usb2phy *rphy) in get_reg_base() argument
227 return rphy->usbgrf == NULL ? rphy->grf : rphy->usbgrf; in get_reg_base()
259 struct rockchip_usb2phy *rphy = in rockchip_usb2phy_clk480m_prepare() local
261 struct regmap *base = get_reg_base(rphy); in rockchip_usb2phy_clk480m_prepare()
265 if (!property_enabled(base, &rphy->phy_cfg->clkout_ctl)) { in rockchip_usb2phy_clk480m_prepare()
266 ret = property_enable(base, &rphy->phy_cfg->clkout_ctl, true); in rockchip_usb2phy_clk480m_prepare()
279 struct rockchip_usb2phy *rphy = in rockchip_usb2phy_clk480m_unprepare() local
281 struct regmap *base = get_reg_base(rphy); in rockchip_usb2phy_clk480m_unprepare()
289 struct rockchip_usb2phy *rphy = rockchip_usb2phy_clk480m_prepared() local
312 struct rockchip_usb2phy *rphy = data; rockchip_usb2phy_clk480m_unregister() local
319 rockchip_usb2phy_clk480m_register(struct rockchip_usb2phy *rphy) rockchip_usb2phy_clk480m_register() argument
370 rockchip_usb2phy_extcon_register(struct rockchip_usb2phy *rphy) rockchip_usb2phy_extcon_register() argument
406 struct rockchip_usb2phy *rphy = dev_get_drvdata(phy->dev.parent); rockchip_usb2phy_init() local
456 struct rockchip_usb2phy *rphy = dev_get_drvdata(phy->dev.parent); rockchip_usb2phy_power_on() local
485 struct rockchip_usb2phy *rphy = dev_get_drvdata(phy->dev.parent); rockchip_usb2phy_power_off() local
532 struct rockchip_usb2phy *rphy = dev_get_drvdata(rport->phy->dev.parent); rockchip_usb2phy_otg_sm_work() local
655 rockchip_chg_enable_dcd(struct rockchip_usb2phy *rphy, bool en) rockchip_chg_enable_dcd() argument
664 rockchip_chg_enable_primary_det(struct rockchip_usb2phy *rphy, bool en) rockchip_chg_enable_primary_det() argument
673 rockchip_chg_enable_secondary_det(struct rockchip_usb2phy *rphy, bool en) rockchip_chg_enable_secondary_det() argument
690 struct rockchip_usb2phy *rphy = dev_get_drvdata(rport->phy->dev.parent); rockchip_chg_detect_work() local
795 struct rockchip_usb2phy *rphy = dev_get_drvdata(rport->phy->dev.parent); rockchip_usb2phy_sm_work() local
884 struct rockchip_usb2phy *rphy = dev_get_drvdata(rport->phy->dev.parent); rockchip_usb2phy_linestate_irq() local
911 struct rockchip_usb2phy *rphy = dev_get_drvdata(rport->phy->dev.parent); rockchip_usb2phy_bvalid_irq() local
931 struct rockchip_usb2phy *rphy = dev_get_drvdata(rport->phy->dev.parent); rockchip_usb2phy_otg_mux_irq() local
939 rockchip_usb2phy_host_port_init(struct rockchip_usb2phy *rphy, struct rockchip_usb2phy_port *rport, struct device_node *child_np) rockchip_usb2phy_host_port_init() argument
981 rockchip_usb2phy_otg_port_init(struct rockchip_usb2phy *rphy, struct rockchip_usb2phy_port *rport, struct device_node *child_np) rockchip_usb2phy_otg_port_init() argument
1070 struct rockchip_usb2phy *rphy; rockchip_usb2phy_probe() local
[all...]
/kernel/linux/linux-6.6/drivers/phy/rockchip/
H A Dphy-rockchip-inno-usb2.c176 int (*phy_tuning)(struct rockchip_usb2phy *rphy);
258 static inline struct regmap *get_reg_base(struct rockchip_usb2phy *rphy) in get_reg_base() argument
260 return rphy->usbgrf == NULL ? rphy->grf : rphy->usbgrf; in get_reg_base()
290 static int rockchip_usb2phy_reset(struct rockchip_usb2phy *rphy) in rockchip_usb2phy_reset() argument
294 ret = reset_control_assert(rphy->phy_reset); in rockchip_usb2phy_reset()
300 ret = reset_control_deassert(rphy->phy_reset); in rockchip_usb2phy_reset()
311 struct rockchip_usb2phy *rphy = in rockchip_usb2phy_clk480m_prepare() local
313 struct regmap *base = get_reg_base(rphy); in rockchip_usb2phy_clk480m_prepare()
331 struct rockchip_usb2phy *rphy = rockchip_usb2phy_clk480m_unprepare() local
341 struct rockchip_usb2phy *rphy = rockchip_usb2phy_clk480m_prepared() local
364 struct rockchip_usb2phy *rphy = data; rockchip_usb2phy_clk480m_unregister() local
371 rockchip_usb2phy_clk480m_register(struct rockchip_usb2phy *rphy) rockchip_usb2phy_clk480m_register() argument
415 rockchip_usb2phy_extcon_register(struct rockchip_usb2phy *rphy) rockchip_usb2phy_extcon_register() argument
448 rockchip_usb2phy_enable_host_disc_irq(struct rockchip_usb2phy *rphy, struct rockchip_usb2phy_port *rport, bool en) rockchip_usb2phy_enable_host_disc_irq() argument
472 struct rockchip_usb2phy *rphy = dev_get_drvdata(phy->dev.parent); rockchip_usb2phy_init() local
544 struct rockchip_usb2phy *rphy = dev_get_drvdata(phy->dev.parent); rockchip_usb2phy_power_on() local
585 struct rockchip_usb2phy *rphy = dev_get_drvdata(phy->dev.parent); rockchip_usb2phy_power_off() local
632 struct rockchip_usb2phy *rphy = dev_get_drvdata(rport->phy->dev.parent); rockchip_usb2phy_otg_sm_work() local
755 rockchip_chg_enable_dcd(struct rockchip_usb2phy *rphy, bool en) rockchip_chg_enable_dcd() argument
764 rockchip_chg_enable_primary_det(struct rockchip_usb2phy *rphy, bool en) rockchip_chg_enable_primary_det() argument
773 rockchip_chg_enable_secondary_det(struct rockchip_usb2phy *rphy, bool en) rockchip_chg_enable_secondary_det() argument
790 struct rockchip_usb2phy *rphy = dev_get_drvdata(rport->phy->dev.parent); rockchip_chg_detect_work() local
894 struct rockchip_usb2phy *rphy = dev_get_drvdata(rport->phy->dev.parent); rockchip_usb2phy_sm_work() local
989 struct rockchip_usb2phy *rphy = dev_get_drvdata(rport->phy->dev.parent); rockchip_usb2phy_linestate_irq() local
1016 struct rockchip_usb2phy *rphy = dev_get_drvdata(rport->phy->dev.parent); rockchip_usb2phy_bvalid_irq() local
1032 struct rockchip_usb2phy *rphy = dev_get_drvdata(rport->phy->dev.parent); rockchip_usb2phy_id_irq() local
1060 struct rockchip_usb2phy *rphy = dev_get_drvdata(rport->phy->dev.parent); rockchip_usb2phy_host_disc_irq() local
1084 struct rockchip_usb2phy *rphy = data; rockchip_usb2phy_irq() local
1113 rockchip_usb2phy_port_irq_init(struct rockchip_usb2phy *rphy, struct rockchip_usb2phy_port *rport, struct device_node *child_np) rockchip_usb2phy_port_irq_init() argument
1209 rockchip_usb2phy_host_port_init(struct rockchip_usb2phy *rphy, struct rockchip_usb2phy_port *rport, struct device_node *child_np) rockchip_usb2phy_host_port_init() argument
1242 rockchip_usb2phy_otg_port_init(struct rockchip_usb2phy *rphy, struct rockchip_usb2phy_port *rport, struct device_node *child_np) rockchip_usb2phy_otg_port_init() argument
1306 struct rockchip_usb2phy *rphy; rockchip_usb2phy_probe() local
1469 rk3588_usb2phy_tuning(struct rockchip_usb2phy *rphy) rk3588_usb2phy_tuning() argument
[all...]
/kernel/linux/linux-5.10/drivers/scsi/
H A Dscsi_transport_sas.c163 struct sas_rphy *rphy = target_to_rphy(sdev->sdev_target); in sas_sdev_to_rdev() local
166 BUG_ON(rphy->identify.device_type != SAS_END_DEVICE); in sas_sdev_to_rdev()
168 rdev = rphy_to_end_device(rphy); in sas_sdev_to_rdev()
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 in sas_bsg_initialize()
696 struct sas_rphy *rphy = dev_to_rphy(parent); sas_phy_alloc() local
893 struct sas_rphy *rphy = dev_to_rphy(parent); sas_port_alloc() local
927 struct sas_rphy *rphy = dev_to_rphy(parent); sas_port_alloc_num() local
1171 struct sas_rphy *rphy = transport_class_to_rphy(dev); show_sas_rphy_device_type() local
1186 struct sas_rphy *rphy = transport_class_to_rphy(dev); show_sas_rphy_enclosure_identifier() local
1206 struct sas_rphy *rphy = transport_class_to_rphy(dev); show_sas_rphy_bay_identifier() local
1351 struct sas_rphy *rphy; sas_end_dev_match() local
1374 struct sas_rphy *rphy; sas_expander_match() local
1395 struct sas_rphy *rphy = dev_to_rphy(dev); sas_expander_release() local
1404 struct sas_rphy *rphy = dev_to_rphy(dev); sas_end_device_release() local
1418 sas_rphy_initialize(struct sas_rphy *rphy) sas_rphy_initialize() argument
1446 struct sas_rphy *rphy = dev_to_rphy(parent->dev.parent); sas_end_device_alloc() local
1508 sas_rphy_add(struct sas_rphy *rphy) sas_rphy_add() argument
1567 sas_rphy_free(struct sas_rphy *rphy) sas_rphy_free() argument
1590 sas_rphy_delete(struct sas_rphy *rphy) sas_rphy_delete() argument
1603 sas_rphy_unlink(struct sas_rphy *rphy) sas_rphy_unlink() argument
1618 sas_rphy_remove(struct sas_rphy *rphy) sas_rphy_remove() argument
1664 struct sas_rphy *rphy; sas_user_scan() local
[all...]
/kernel/linux/linux-6.6/drivers/scsi/
H A Dscsi_transport_sas.c163 struct sas_rphy *rphy = target_to_rphy(sdev->sdev_target); in sas_sdev_to_rdev() local
166 BUG_ON(rphy->identify.device_type != SAS_END_DEVICE); in sas_sdev_to_rdev()
168 rdev = rphy_to_end_device(rphy); in sas_sdev_to_rdev()
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 in sas_bsg_initialize()
702 struct sas_rphy *rphy = dev_to_rphy(parent); sas_phy_alloc() local
899 struct sas_rphy *rphy = dev_to_rphy(parent); sas_port_alloc() local
933 struct sas_rphy *rphy = dev_to_rphy(parent); sas_port_alloc_num() local
1177 struct sas_rphy *rphy = transport_class_to_rphy(dev); show_sas_rphy_device_type() local
1192 struct sas_rphy *rphy = transport_class_to_rphy(dev); show_sas_rphy_enclosure_identifier() local
1212 struct sas_rphy *rphy = transport_class_to_rphy(dev); show_sas_rphy_bay_identifier() local
1357 struct sas_rphy *rphy; sas_end_dev_match() local
1380 struct sas_rphy *rphy; sas_expander_match() local
1401 struct sas_rphy *rphy = dev_to_rphy(dev); sas_expander_release() local
1410 struct sas_rphy *rphy = dev_to_rphy(dev); sas_end_device_release() local
1424 sas_rphy_initialize(struct sas_rphy *rphy) sas_rphy_initialize() argument
1452 struct sas_rphy *rphy = dev_to_rphy(parent->dev.parent); sas_end_device_alloc() local
1514 sas_rphy_add(struct sas_rphy *rphy) sas_rphy_add() argument
1573 sas_rphy_free(struct sas_rphy *rphy) sas_rphy_free() argument
1596 sas_rphy_delete(struct sas_rphy *rphy) sas_rphy_delete() argument
1609 sas_rphy_unlink(struct sas_rphy *rphy) sas_rphy_unlink() argument
1624 sas_rphy_remove(struct sas_rphy *rphy) sas_rphy_remove() argument
1670 struct sas_rphy *rphy; sas_user_scan() local
[all...]
/kernel/linux/linux-6.6/drivers/scsi/smartpqi/
H A Dsmartpqi_sas_transport.c89 struct sas_rphy *rphy) in pqi_sas_port_add_rphy()
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()
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 in pqi_add_sas_device()
88 pqi_sas_port_add_rphy(struct pqi_sas_port *pqi_sas_port, struct sas_rphy *rphy) pqi_sas_port_add_rphy() argument
207 pqi_find_device_by_sas_rphy( struct pqi_ctrl_info *ctrl_info, struct sas_rphy *rphy) pqi_find_device_by_sas_rphy() argument
322 pqi_sas_get_enclosure_identifier(struct sas_rphy *rphy, u64 *identifier) pqi_sas_get_enclosure_identifier() argument
396 pqi_sas_get_bay_identifier(struct sas_rphy *rphy) pqi_sas_get_bay_identifier() argument
457 pqi_build_csmi_smp_passthru_buffer(struct sas_rphy *rphy, struct bsg_job *job) pqi_build_csmi_smp_passthru_buffer() argument
517 pqi_sas_smp_handler(struct bsg_job *job, struct Scsi_Host *shost, struct sas_rphy *rphy) pqi_sas_smp_handler() argument
[all...]
/kernel/linux/linux-5.10/drivers/scsi/smartpqi/
H A Dsmartpqi_sas_transport.c89 struct sas_rphy *rphy) in pqi_sas_port_add_rphy()
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()
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 in pqi_add_sas_device()
88 pqi_sas_port_add_rphy(struct pqi_sas_port *pqi_sas_port, struct sas_rphy *rphy) pqi_sas_port_add_rphy() argument
199 pqi_find_device_by_sas_rphy( struct pqi_ctrl_info *ctrl_info, struct sas_rphy *rphy) pqi_find_device_by_sas_rphy() argument
312 pqi_sas_get_enclosure_identifier(struct sas_rphy *rphy, u64 *identifier) pqi_sas_get_enclosure_identifier() argument
386 pqi_sas_get_bay_identifier(struct sas_rphy *rphy) pqi_sas_get_bay_identifier() argument
447 pqi_build_csmi_smp_passthru_buffer(struct sas_rphy *rphy, struct bsg_job *job) pqi_build_csmi_smp_passthru_buffer() argument
507 pqi_sas_smp_handler(struct bsg_job *job, struct Scsi_Host *shost, struct sas_rphy *rphy) pqi_sas_smp_handler() argument
[all...]
/kernel/linux/linux-5.10/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 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()
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 in sas_fill_in_rphy()
120 sas_fill_in_rphy(struct domain_device *dev, struct sas_rphy *rphy) sas_fill_in_rphy() argument
[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
664 struct sas_rphy *rphy = dev_to_rphy(phy->dev.parent); sas_smp_get_phy_events() local
784 struct sas_rphy *rphy; sas_ex_discover_end_dev() local
943 struct sas_rphy *rphy; sas_ex_discover_expander() local
2135 sas_smp_handler(struct bsg_job *job, struct Scsi_Host *shost, struct sas_rphy *rphy) sas_smp_handler() argument
[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 in sas_report_phy_sata()
[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()
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()
/kernel/linux/linux-5.10/include/scsi/
H A Dscsi_transport_sas.h107 #define rphy_to_shost(rphy) \
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 in scsi_is_sas_expander_device()
[all...]
/kernel/linux/linux-6.6/include/scsi/
H A Dscsi_transport_sas.h108 #define rphy_to_shost(rphy) \
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 in scsi_is_sas_expander_device()
[all...]
/kernel/linux/linux-6.6/drivers/scsi/libsas/
H A Dsas_internal.h74 struct sas_rphy *rphy);
80 struct domain_device *sas_find_dev_by_rphy(struct sas_rphy *rphy);
140 struct sas_rphy *rphy) in sas_fill_in_rphy()
142 rphy->identify.sas_address = SAS_ADDR(dev->sas_addr); in sas_fill_in_rphy()
143 rphy->identify.initiator_port_protocols = dev->iproto; in sas_fill_in_rphy()
144 rphy->identify.target_port_protocols = dev->tproto; in sas_fill_in_rphy()
150 rphy->identify.device_type = SAS_END_DEVICE; in sas_fill_in_rphy()
153 rphy->identify.device_type = SAS_EDGE_EXPANDER_DEVICE; in sas_fill_in_rphy()
156 rphy->identify.device_type = SAS_FANOUT_EXPANDER_DEVICE; in sas_fill_in_rphy()
159 rphy in sas_fill_in_rphy()
139 sas_fill_in_rphy(struct domain_device *dev, struct sas_rphy *rphy) sas_fill_in_rphy() argument
[all...]
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 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 in sas_report_phy_sata()
[all...]
H A 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
642 struct sas_rphy *rphy = dev_to_rphy(phy->dev.parent); sas_smp_get_phy_events() local
757 struct sas_rphy *rphy; sas_ex_add_dev() local
876 struct sas_rphy *rphy; sas_ex_discover_expander() local
2093 sas_smp_handler(struct bsg_job *job, struct Scsi_Host *shost, struct sas_rphy *rphy) sas_smp_handler() argument
[all...]
H A Dsas_init.c204 dev = sas_find_dev_by_rphy(dev->rphy); in sas_try_ata_reset()
241 struct sas_rphy *rphy = dev_to_rphy(phy->dev.parent); in transport_sas_phy_reset() local
242 struct domain_device *ddev = sas_find_dev_by_rphy(rphy); in transport_sas_phy_reset()
276 struct sas_rphy *rphy = dev_to_rphy(phy->dev.parent); in sas_phy_enable() local
277 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()
347 struct sas_rphy *rphy = dev_to_rphy(phy->dev.parent); in sas_set_phy_speed() local
348 struct domain_device *ddev = sas_find_dev_by_rphy(rphy); in sas_set_phy_speed()
/kernel/linux/linux-5.10/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 in rcar_gen3_phy_usb2_exit()
473 struct rcar_gen3_phy *rphy = phy_get_drvdata(p); rcar_gen3_phy_usb2_power_on() local
505 struct rcar_gen3_phy *rphy = phy_get_drvdata(p); rcar_gen3_phy_usb2_power_off() local
[all...]
/kernel/linux/linux-6.6/drivers/phy/renesas/
H A Dphy-rcar-gen3-usb2.c434 struct rcar_gen3_phy *rphy = phy_get_drvdata(p); in rcar_gen3_phy_usb2_init() local
435 struct rcar_gen3_chan *channel = rphy->ch; in rcar_gen3_phy_usb2_init()
452 val |= USB2_INT_ENABLE_UCOM_INTEN | rphy->int_enable_bits; in rcar_gen3_phy_usb2_init()
461 rphy->otg_initialized = true; in rcar_gen3_phy_usb2_init()
464 rphy->initialized = true; in rcar_gen3_phy_usb2_init()
471 struct rcar_gen3_phy *rphy = phy_get_drvdata(p); in rcar_gen3_phy_usb2_exit() local
472 struct rcar_gen3_chan *channel = rphy->ch; in rcar_gen3_phy_usb2_exit()
476 rphy->initialized = false; in rcar_gen3_phy_usb2_exit()
479 rphy->otg_initialized = false; in rcar_gen3_phy_usb2_exit()
482 val &= ~rphy in rcar_gen3_phy_usb2_exit()
495 struct rcar_gen3_phy *rphy = phy_get_drvdata(p); rcar_gen3_phy_usb2_power_on() local
527 struct rcar_gen3_phy *rphy = phy_get_drvdata(p); rcar_gen3_phy_usb2_power_off() local
[all...]
/kernel/linux/linux-6.6/drivers/scsi/mpt3sas/
H A Dmpt3sas_transport.c103 * _transport_get_port_id_by_rphy - Get Port number from rphy object
105 * @rphy: sas_rphy object
111 struct sas_rphy *rphy) in _transport_get_port_id_by_rphy()
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()
110 _transport_get_port_id_by_rphy(struct MPT3SAS_ADAPTER *ioc, struct sas_rphy *rphy) _transport_get_port_id_by_rphy() argument
690 struct sas_rphy *rphy; mpt3sas_transport_port_add() local
1228 rphy_to_ioc(struct sas_rphy *rphy) rphy_to_ioc() argument
1474 _transport_get_enclosure_identifier(struct sas_rphy *rphy, u64 *identifier) _transport_get_enclosure_identifier() argument
1503 _transport_get_bay_identifier(struct sas_rphy *rphy) _transport_get_bay_identifier() argument
2055 _transport_smp_handler(struct bsg_job *job, struct Scsi_Host *shost, struct sas_rphy *rphy) _transport_smp_handler() argument
[all...]
/kernel/linux/linux-6.6/drivers/scsi/mpi3mr/
H A Dmpi3mr_transport.c430 * @rphy: SAS transport layer rphy object
432 * This searches for target device from sas address and rphy
438 struct mpi3mr_ioc *mrioc, u64 sas_address, struct sas_rphy *rphy) in __mpi3mr_get_tgtdev_by_addr_and_rphy()
447 && (tgtdev->dev_spec.sas_sata_inf.rphy == rphy)) in __mpi3mr_get_tgtdev_by_addr_and_rphy()
1313 struct sas_rphy *rphy; in mpi3mr_sas_port_add() local
1418 rphy = sas_end_device_alloc(port); in mpi3mr_sas_port_add()
1419 tgtdev->dev_spec.sas_sata_inf.rphy = rphy; in mpi3mr_sas_port_add()
437 __mpi3mr_get_tgtdev_by_addr_and_rphy( struct mpi3mr_ioc *mrioc, u64 sas_address, struct sas_rphy *rphy) __mpi3mr_get_tgtdev_by_addr_and_rphy() argument
2427 mpi3mr_get_port_id_by_rphy(struct mpi3mr_ioc *mrioc, struct sas_rphy *rphy) mpi3mr_get_port_id_by_rphy() argument
2470 rphy_to_mrioc(struct sas_rphy *rphy) rphy_to_mrioc() argument
2673 mpi3mr_transport_get_enclosure_identifier(struct sas_rphy *rphy, u64 *identifier) mpi3mr_transport_get_enclosure_identifier() argument
2708 mpi3mr_transport_get_bay_identifier(struct sas_rphy *rphy) mpi3mr_transport_get_bay_identifier() argument
3191 mpi3mr_transport_smp_handler(struct bsg_job *job, struct Scsi_Host *shost, struct sas_rphy *rphy) mpi3mr_transport_smp_handler() argument
[all...]
/kernel/linux/linux-5.10/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()
492 dsaswideprintk(ioc, printk(MYIOC_s_DEBUG_FMT "sas_rphy_add: rphy=%p\n", in mptsas_set_rphy()
493 ioc->name, rphy)); in mptsas_set_rphy()
496 if (rphy) { in mptsas_set_rphy()
560 struct sas_rphy *rphy; mptsas_add_device_component() local
759 struct sas_rphy *rphy; mptsas_add_device_component_starget() local
1418 struct sas_rphy *rphy; mptsas_add_end_device() local
1494 struct sas_rphy *rphy; mptsas_del_end_device() local
1721 struct sas_rphy *rphy; mptsas_target_alloc() local
1797 struct sas_rphy *rphy; mptsas_target_destroy() local
1846 struct sas_rphy *rphy; mptsas_slave_alloc() local
2156 mptsas_get_enclosure_identifier(struct sas_rphy *rphy, u64 *identifier) mptsas_get_enclosure_identifier() argument
2190 mptsas_get_bay_identifier(struct sas_rphy *rphy) mptsas_get_bay_identifier() argument
2212 mptsas_smp_handler(struct bsg_job *job, struct Scsi_Host *shost, struct sas_rphy *rphy) mptsas_smp_handler() argument
3190 struct sas_rphy *rphy; mptsas_probe_one_phy() local
3358 struct sas_rphy *rphy; mptsas_expander_refresh() local
3462 struct sas_rphy *rphy; mptsas_delete_expander_siblings() local
[all...]
/kernel/linux/linux-6.6/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()
519 dsaswideprintk(ioc, printk(MYIOC_s_DEBUG_FMT "sas_rphy_add: rphy=%p\n", in mptsas_set_rphy()
520 ioc->name, rphy)); in mptsas_set_rphy()
523 if (rphy) { in mptsas_set_rphy()
589 struct sas_rphy *rphy; mptsas_add_device_component() local
786 struct sas_rphy *rphy; mptsas_add_device_component_starget() local
1446 struct sas_rphy *rphy; mptsas_add_end_device() local
1522 struct sas_rphy *rphy; mptsas_del_end_device() local
1749 struct sas_rphy *rphy; mptsas_target_alloc() local
1825 struct sas_rphy *rphy; mptsas_target_destroy() local
1874 struct sas_rphy *rphy; mptsas_slave_alloc() local
2184 mptsas_get_enclosure_identifier(struct sas_rphy *rphy, u64 *identifier) mptsas_get_enclosure_identifier() argument
2218 mptsas_get_bay_identifier(struct sas_rphy *rphy) mptsas_get_bay_identifier() argument
2240 mptsas_smp_handler(struct bsg_job *job, struct Scsi_Host *shost, struct sas_rphy *rphy) mptsas_smp_handler() argument
3221 struct sas_rphy *rphy; mptsas_probe_one_phy() local
3389 struct sas_rphy *rphy; mptsas_expander_refresh() local
3491 struct sas_rphy *rphy; mptsas_delete_expander_siblings() local
[all...]
/kernel/linux/linux-5.10/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 if (!rphy) { in mpt3sas_transport_port_add()
704 rphy->identify = mpt3sas_port->remote_identify; in mpt3sas_transport_port_add()
718 if ((sas_rphy_add(rphy))) { in mpt3sas_transport_port_add()
721 sas_rphy_free(rphy); in mpt3sas_transport_port_add()
722 rphy = NULL; in mpt3sas_transport_port_add()
731 dev_info(&rphy->dev, in mpt3sas_transport_port_add()
735 mpt3sas_port->rphy in mpt3sas_transport_port_add()
1029 rphy_to_ioc(struct sas_rphy *rphy) rphy_to_ioc() argument
1272 _transport_get_enclosure_identifier(struct sas_rphy *rphy, u64 *identifier) _transport_get_enclosure_identifier() argument
1302 _transport_get_bay_identifier(struct sas_rphy *rphy) _transport_get_bay_identifier() argument
1846 _transport_smp_handler(struct bsg_job *job, struct Scsi_Host *shost, struct sas_rphy *rphy) _transport_smp_handler() argument
[all...]

Completed in 29 milliseconds

123