/linux/drivers/phy/ |
H A D | phy-core.c | 3 * phy-core.c -- Generic Phy framework. 18 #include <linux/phy/phy.h> 25 .name = "phy", 37 struct phy *phy = *(struct phy **)res; in devm_phy_release() local 39 phy_put(dev, phy); in devm_phy_release() 51 struct phy *ph in devm_phy_consume() local 58 struct phy **phy = res; devm_phy_match() local 71 phy_create_lookup(struct phy * phy,const char * con_id,const char * dev_id) phy_create_lookup() argument 103 phy_remove_lookup(struct phy * phy,const char * con_id,const char * dev_id) phy_remove_lookup() argument 157 phy_pm_runtime_get(struct phy * phy) phy_pm_runtime_get() argument 175 phy_pm_runtime_get_sync(struct phy * phy) phy_pm_runtime_get_sync() argument 193 phy_pm_runtime_put(struct phy * phy) phy_pm_runtime_put() argument 205 phy_pm_runtime_put_sync(struct phy * phy) phy_pm_runtime_put_sync() argument 228 phy_init(struct phy * phy) phy_init() argument 268 phy_exit(struct phy * phy) phy_exit() argument 305 phy_power_on(struct phy * phy) phy_power_on() argument 355 phy_power_off(struct phy * phy) phy_power_off() argument 382 phy_set_mode_ext(struct phy * phy,enum phy_mode mode,int submode) phy_set_mode_ext() argument 400 phy_set_media(struct phy * phy,enum phy_media media) phy_set_media() argument 415 phy_set_speed(struct phy * phy,int speed) phy_set_speed() argument 430 phy_reset(struct phy * phy) phy_reset() argument 461 phy_calibrate(struct phy * phy) phy_calibrate() argument 484 phy_notify_connect(struct phy * phy,int port) phy_notify_connect() argument 508 phy_notify_disconnect(struct phy * phy,int port) phy_notify_disconnect() argument 534 phy_configure(struct phy * phy,union phy_configure_opts * opts) phy_configure() argument 568 phy_validate(struct phy * phy,enum phy_mode mode,int submode,union phy_configure_opts * opts) phy_validate() argument 602 struct phy *phy = NULL; _of_phy_get() local 653 struct phy *phy = NULL; of_phy_get() local 678 of_phy_put(struct phy * phy) of_phy_put() argument 700 phy_put(struct device * dev,struct phy * phy) phy_put() argument 715 devm_phy_put(struct device * dev,struct phy * phy) devm_phy_put() argument 764 struct phy *phy; phy_get() local 810 struct phy **ptr, *phy; devm_phy_get() local 843 struct phy *phy = devm_phy_get(dev, string); devm_phy_optional_get() local 865 struct phy **ptr, *phy; devm_of_phy_get() local 907 struct phy *phy = devm_of_phy_get(dev, np, con_id); devm_of_phy_optional_get() local 935 struct phy **ptr, *phy; devm_of_phy_get_by_index() local 980 struct phy *phy; phy_create() local 1057 struct phy **ptr, *phy; devm_phy_create() local 1081 phy_destroy(struct phy * phy) phy_destroy() argument 1096 devm_phy_destroy(struct device * dev,struct phy * phy) devm_phy_destroy() argument 1257 struct phy *phy; phy_release() local [all...] |
H A D | Kconfig | 3 # PHY 6 menu "PHY Subsystem" 9 bool "PHY Core" 11 Generic PHY support. 13 This framework is designed to provide a generic interface for PHY 15 API by which phy drivers can create PHY using the phy framework and 16 phy users can obtain reference to the PHY [all...] |
H A D | phy-snps-eusb2.c | 11 #include <linux/phy/phy.h> 158 int (*phy_init)(struct phy *p); 164 struct phy *phy; member 175 struct phy *repeater; 180 static int snps_eusb2_hsphy_set_mode(struct phy *p, enum phy_mode mode, int submode) in snps_eusb2_hsphy_set_mode() 182 struct snps_eusb2_hsphy *phy = phy_get_drvdata(p); in snps_eusb2_hsphy_set_mode() local 184 phy->mode = mode; in snps_eusb2_hsphy_set_mode() 186 return phy_set_mode_ext(phy in snps_eusb2_hsphy_set_mode() 203 qcom_eusb2_default_parameters(struct snps_eusb2_hsphy * phy) qcom_eusb2_default_parameters() argument 246 exynos_eusb2_ref_clk_init(struct snps_eusb2_hsphy * phy) exynos_eusb2_ref_clk_init() argument 283 qcom_eusb2_ref_clk_init(struct snps_eusb2_hsphy * phy) qcom_eusb2_ref_clk_init() argument 320 struct snps_eusb2_hsphy *phy = phy_get_drvdata(p); exynos_snps_eusb2_hsphy_init() local 369 struct snps_eusb2_hsphy *phy = phy_get_drvdata(p); qcom_snps_eusb2_hsphy_init() local 458 struct snps_eusb2_hsphy *phy = phy_get_drvdata(p); snps_eusb2_hsphy_init() local 509 struct snps_eusb2_hsphy *phy = phy_get_drvdata(p); snps_eusb2_hsphy_exit() local 531 struct snps_eusb2_hsphy *phy; snps_eusb2_hsphy_probe() local [all...] |
/linux/Documentation/translations/zh_CN/driver-api/phy/ |
H A D | phy.rst | 4 :Original: Documentation/driver-api/phy/phy.rst 16 本文档解释了 PHY 的通用框架和提供的API,以及使用方法。 21 *PHY* 是物理层的缩写,它被用来把设备连接到一个物理媒介,例如USB控制器 22 有一个提供序列化、反序列化、编码、解码和负责获取所需的数据传输速率的 PHY。 23 注意,有些USB控制器内嵌了 PHY 的功能,其它的则使用了一个外置的PHY,此外 24 使用 PHY 的设备还有无线网、以太网、SATA等(控制器)。 26 创建这个框架的目的是将遍布 Linux 内核的 PHY 驱动程序融入到 drivers/phy, 29 该框架仅适用于使用外部 PHY(PH [all...] |
/linux/drivers/scsi/libsas/ |
H A D | sas_phy.c | 3 * Serial Attached SCSI (SAS) Phy class 15 /* ---------- Phy events ---------- */ 20 struct asd_sas_phy *phy = ev->phy; in sas_phye_loss_of_signal() local 22 phy->error = 0; in sas_phye_loss_of_signal() 23 sas_deform_port(phy, true); in sas_phye_loss_of_signal() 29 struct asd_sas_phy *phy = ev->phy; in sas_phye_oob_done() local 31 phy->error = 0; in sas_phye_oob_done() 37 struct asd_sas_phy *phy in sas_phye_oob_error() local 66 struct asd_sas_phy *phy = ev->phy; sas_phye_spinup_hold() local 78 struct asd_sas_phy *phy = ev->phy; sas_phye_resume_timeout() local 95 struct asd_sas_phy *phy = ev->phy; sas_phye_shutdown() local 122 struct asd_sas_phy *phy = sas_ha->sas_phy[i]; sas_register_phys() local [all...] |
H A D | sas_port.c | 15 static bool phy_is_wideport_member(struct asd_sas_port *port, struct asd_sas_phy *phy) in phy_is_wideport_member() argument 17 struct sas_ha_struct *sas_ha = phy->ha; in phy_is_wideport_member() 19 if (memcmp(port->attached_sas_addr, phy->attached_sas_addr, in phy_is_wideport_member() 21 memcmp(port->sas_addr, phy->sas_addr, SAS_ADDR_SIZE) != 0)) in phy_is_wideport_member() 26 static void sas_resume_port(struct asd_sas_phy *phy) in sas_resume_port() argument 29 struct asd_sas_port *port = phy->port; in sas_resume_port() 30 struct sas_ha_struct *sas_ha = phy->ha; in sas_resume_port() 34 si->dft->lldd_port_formed(phy); in sas_resume_port() 60 struct ex_phy *phy = &dev->ex_dev.ex_phy[i]; in sas_resume_port() local 62 phy in sas_resume_port() 71 sas_form_port_add_phy(struct asd_sas_port * port,struct asd_sas_phy * phy,bool wideport) sas_form_port_add_phy() argument 104 sas_form_port(struct asd_sas_phy * phy) sas_form_port() argument 209 sas_deform_port(struct asd_sas_phy * phy,bool gone) sas_deform_port() argument 276 struct asd_sas_phy *phy = ev->phy; sas_porte_bytes_dmaed() local 284 struct asd_sas_phy *phy = ev->phy; sas_porte_broadcast_rcvd() local 302 struct asd_sas_phy *phy = ev->phy; sas_porte_link_reset_err() local 310 struct asd_sas_phy *phy = ev->phy; sas_porte_timer_event() local 318 struct asd_sas_phy *phy = ev->phy; sas_porte_hard_reset() local [all...] |
/linux/drivers/net/ethernet/ibm/emac/ |
H A D | phy.c | 3 * drivers/net/ethernet/ibm/emac/phy.c 5 * Driver for PowerPC 4xx on-chip ethernet controller, PHY support. 30 #include "phy.h" 35 static inline int _phy_read(struct mii_phy *phy, int reg) in _phy_read() argument 37 return phy->mdio_read(phy->dev, phy->address, reg); in _phy_read() 40 static inline void _phy_write(struct mii_phy *phy, int reg, int val) in _phy_write() argument 42 phy->mdio_write(phy in _phy_write() 45 gpcs_phy_read(struct mii_phy * phy,int reg) gpcs_phy_read() argument 50 gpcs_phy_write(struct mii_phy * phy,int reg,int val) gpcs_phy_write() argument 55 emac_mii_reset_phy(struct mii_phy * phy) emac_mii_reset_phy() argument 79 emac_mii_reset_gpcs(struct mii_phy * phy) emac_mii_reset_gpcs() argument 110 genmii_setup_aneg(struct mii_phy * phy,u32 advertise) genmii_setup_aneg() argument 169 genmii_setup_forced(struct mii_phy * phy,int speed,int fd) genmii_setup_forced() argument 206 genmii_poll_link(struct mii_phy * phy) genmii_poll_link() argument 220 genmii_read_link(struct mii_phy * phy) genmii_read_link() argument 306 cis8201_init(struct mii_phy * phy) cis8201_init() argument 367 m88e1111_init(struct mii_phy * phy) m88e1111_init() argument 380 m88e1112_init(struct mii_phy * phy) m88e1112_init() argument 407 et1011c_init(struct mii_phy * phy) et1011c_init() argument 474 ar8035_init(struct mii_phy * phy) ar8035_init() argument 510 emac_mii_phy_probe(struct mii_phy * phy,int address) emac_mii_phy_probe() argument [all...] |
/linux/drivers/phy/hisilicon/ |
H A D | phy-hi3670-pcie.c | 3 * PCIe phy driver for Kirin 970 29 #include <linux/phy/phy.h> 49 /* PCIe PHY registers */ 173 static inline void hi3670_apb_phy_writel(struct hi3670_pcie_phy *phy, u32 val, in hi3670_apb_phy_writel() argument 176 writel(val, phy->base + APB_PHY_START_ADDR + reg); in hi3670_apb_phy_writel() 179 static inline u32 hi3670_apb_phy_readl(struct hi3670_pcie_phy *phy, u32 reg) in hi3670_apb_phy_readl() argument 181 return readl(phy->base + APB_PHY_START_ADDR + reg); in hi3670_apb_phy_readl() 184 static inline void hi3670_apb_phy_updatel(struct hi3670_pcie_phy *phy, in hi3670_apb_phy_updatel() argument 189 regval = hi3670_apb_phy_readl(phy, re in hi3670_apb_phy_updatel() 195 kirin_apb_natural_phy_writel(struct hi3670_pcie_phy * phy,u32 val,u32 reg) kirin_apb_natural_phy_writel() argument 201 kirin_apb_natural_phy_readl(struct hi3670_pcie_phy * phy,u32 reg) kirin_apb_natural_phy_readl() argument 207 hi3670_pcie_phy_oe_enable(struct hi3670_pcie_phy * phy,bool enable) hi3670_pcie_phy_oe_enable() argument 220 hi3670_pcie_get_eyeparam(struct hi3670_pcie_phy * phy) hi3670_pcie_get_eyeparam() argument 238 hi3670_pcie_set_eyeparam(struct hi3670_pcie_phy * phy) hi3670_pcie_set_eyeparam() argument 283 hi3670_pcie_natural_cfg(struct hi3670_pcie_phy * phy) hi3670_pcie_natural_cfg() argument 311 hi3670_pcie_pll_init(struct hi3670_pcie_phy * phy) hi3670_pcie_pll_init() argument 339 hi3670_pcie_pll_ctrl(struct hi3670_pcie_phy * phy,bool enable) hi3670_pcie_pll_ctrl() argument 379 hi3670_pcie_hp_debounce_gt(struct hi3670_pcie_phy * phy,bool open) hi3670_pcie_hp_debounce_gt() argument 391 hi3670_pcie_phyref_gt(struct hi3670_pcie_phy * phy,bool open) hi3670_pcie_phyref_gt() argument 408 hi3670_pcie_oe_ctrl(struct hi3670_pcie_phy * phy,bool en_flag) hi3670_pcie_oe_ctrl() argument 434 hi3670_pcie_ioref_gt(struct hi3670_pcie_phy * phy,bool open) hi3670_pcie_ioref_gt() argument 467 hi3670_pcie_allclk_ctrl(struct hi3670_pcie_phy * phy,bool clk_on) hi3670_pcie_allclk_ctrl() argument 508 is_pipe_clk_stable(struct hi3670_pcie_phy * phy) is_pipe_clk_stable() argument 529 hi3670_pcie_noc_power(struct hi3670_pcie_phy * phy,bool enable) hi3670_pcie_noc_power() argument 559 hi3670_pcie_get_resources_from_pcie(struct hi3670_pcie_phy * phy) hi3670_pcie_get_resources_from_pcie() argument 595 kirin_pcie_clk_ctrl(struct hi3670_pcie_phy * phy,bool enable) kirin_pcie_clk_ctrl() argument 644 struct hi3670_pcie_phy *phy = phy_get_drvdata(generic_phy); hi3670_pcie_phy_init() local 667 struct hi3670_pcie_phy *phy = phy_get_drvdata(generic_phy); hi3670_pcie_phy_power_on() local 722 struct hi3670_pcie_phy *phy = phy_get_drvdata(generic_phy); hi3670_pcie_phy_power_off() local 750 hi3670_pcie_phy_get_resources(struct hi3670_pcie_phy * phy,struct platform_device * pdev) hi3670_pcie_phy_get_resources() argument 803 struct hi3670_pcie_phy *phy; hi3670_pcie_phy_probe() local [all...] |
/linux/drivers/phy/ralink/ |
H A D | phy-ralink-usb.c | 17 #include <linux/phy/phy.h> 56 struct phy *phy; member 61 static void u2_phy_w32(struct ralink_usb_phy *phy, u32 val, u32 reg) in u2_phy_w32() argument 63 writel(val, phy->base + reg); in u2_phy_w32() 66 static u32 u2_phy_r32(struct ralink_usb_phy *phy, u32 reg) in u2_phy_r32() argument 68 return readl(phy->base + reg); in u2_phy_r32() 71 static void ralink_usb_phy_init(struct ralink_usb_phy *phy) in ralink_usb_phy_init() argument 73 u2_phy_r32(phy, OFS_U2_PHY_AC in ralink_usb_phy_init() 93 struct ralink_usb_phy *phy = phy_get_drvdata(_phy); ralink_usb_phy_power_on() local 132 struct ralink_usb_phy *phy = phy_get_drvdata(_phy); ralink_usb_phy_power_off() local 174 struct ralink_usb_phy *phy; ralink_usb_phy_probe() local [all...] |
/linux/Documentation/devicetree/bindings/phy/ |
H A D | qcom,sc8280xp-qmp-pcie-phy.yaml | 4 $id: http://devicetree.org/schemas/phy/qcom,sc8280xp-qmp-pcie-phy.yaml# 7 title: Qualcomm QMP PHY controller (PCIe, SC8280XP) 13 The QMP PHY controller supports physical layer functionality for a number of 19 - qcom,qcs615-qmp-gen3x1-pcie-phy 20 - qcom,qcs8300-qmp-gen4x2-pcie-phy 21 - qcom,sa8775p-qmp-gen4x2-pcie-phy 22 - qcom,sa8775p-qmp-gen4x4-pcie-phy 23 - qcom,sar2130p-qmp-gen3x2-pcie-phy 24 - qcom,sc8180x-qmp-pcie-phy [all...] |
H A D | qcom,sc8280xp-qmp-ufs-phy.yaml | 4 $id: http://devicetree.org/schemas/phy/qcom,sc8280xp-qmp-ufs-phy.yaml# 7 title: Qualcomm QMP PHY controller (UFS, SC8280XP) 13 The QMP PHY controller supports physical layer functionality for a number of 21 - qcom,qcs615-qmp-ufs-phy 22 - const: qcom,sm6115-qmp-ufs-phy 25 - qcom,qcs8300-qmp-ufs-phy 26 - const: qcom,sa8775p-qmp-ufs-phy 28 - qcom,msm8996-qmp-ufs-phy 29 - qcom,msm8998-qmp-ufs-phy [all...] |
H A D | qcom,sc8280xp-qmp-usb3-uni-phy.yaml | 4 $id: http://devicetree.org/schemas/phy/qcom,sc8280xp-qmp-usb3-uni-phy.yaml# 7 title: Qualcomm QMP PHY controller (USB, SC8280XP) 13 The QMP PHY controller supports physical layer functionality for a number of 19 - qcom,ipq5424-qmp-usb3-phy 20 - qcom,ipq6018-qmp-usb3-phy 21 - qcom,ipq8074-qmp-usb3-phy 22 - qcom,ipq9574-qmp-usb3-phy 23 - qcom,msm8996-qmp-usb3-phy 24 - qcom,qcs8300-qmp-usb3-uni-phy [all...] |
/linux/Documentation/driver-api/phy/ |
H A D | phy.rst | 2 PHY subsystem 7 This document explains the Generic PHY Framework along with the APIs provided, 13 *PHY* is the abbreviation for physical layer. It is used to connect a device 14 to the physical medium e.g., the USB controller has a PHY to provide functions 17 controllers have PHY functionality embedded into it and others use an external 18 PHY. Other peripherals that use PHY include Wireless LAN, Ethernet, 21 The intention of creating this framework is to bring the PHY drivers spread 22 all over the Linux kernel to drivers/phy to increase code re-use and for 25 This framework will be of use only to devices that use external PHY (PH [all...] |
/linux/drivers/net/phy/ |
H A D | phy_led_triggers.c | 4 #include <linux/phy.h> 10 static struct phy_led_trigger *phy_speed_to_led_trigger(struct phy_device *phy, in phy_speed_to_led_trigger() argument 15 for (i = 0; i < phy->phy_num_led_triggers; i++) { in phy_speed_to_led_trigger() 16 if (phy->phy_led_triggers[i].speed == speed) in phy_speed_to_led_trigger() 17 return &phy->phy_led_triggers[i]; in phy_speed_to_led_trigger() 22 static void phy_led_trigger_no_link(struct phy_device *phy) in phy_led_trigger_no_link() argument 24 if (phy->last_triggered) { in phy_led_trigger_no_link() 25 led_trigger_event(&phy->last_triggered->trigger, LED_OFF); in phy_led_trigger_no_link() 26 led_trigger_event(&phy->led_link_trigger->trigger, LED_OFF); in phy_led_trigger_no_link() 27 phy in phy_led_trigger_no_link() 31 phy_led_trigger_change_speed(struct phy_device * phy) phy_led_trigger_change_speed() argument 62 phy_led_trigger_format_name(struct phy_device * phy,char * buf,size_t size,const char * suffix) phy_led_trigger_format_name() argument 69 phy_led_trigger_register(struct phy_device * phy,struct phy_led_trigger * plt,unsigned int speed,const char * suffix) phy_led_trigger_register() argument 86 phy_led_triggers_register(struct phy_device * phy) phy_led_triggers_register() argument 142 phy_led_triggers_unregister(struct phy_device * phy) phy_led_triggers_unregister() argument [all...] |
/linux/drivers/phy/ti/ |
H A D | phy-dm816x-usb.c | 15 #include <linux/phy/phy.h> 22 * phy as being SR70LX Synopsys USB 2.0 OTG nanoPHY. It also seems at 32 * Finally, the phy on dm814x and am335x is different from dm816x. 35 #define DM816X_USB_CTRL_PHYSLEEP1 BIT(1) /* Enable the first phy */ 36 #define DM816X_USB_CTRL_PHYSLEEP0 BIT(0) /* Enable the second phy */ 47 struct usb_phy phy; member 71 static int dm816x_usb_phy_init(struct phy *x) in dm816x_usb_phy_init() 73 struct dm816x_usb_phy *phy = phy_get_drvdata(x); in dm816x_usb_phy_init() local 76 if (clk_get_rate(phy in dm816x_usb_phy_init() 112 struct dm816x_usb_phy *phy = dev_get_drvdata(dev); dm816x_usb_phy_runtime_suspend() local 130 struct dm816x_usb_phy *phy = dev_get_drvdata(dev); dm816x_usb_phy_runtime_resume() local 173 struct dm816x_usb_phy *phy; dm816x_usb_phy_probe() local 253 struct dm816x_usb_phy *phy = platform_get_drvdata(pdev); dm816x_usb_phy_remove() local [all...] |
H A D | phy-omap-usb2.c | 3 * omap-usb2.c - USB PHY, talking to USB controller on TI SoCs. 17 #include <linux/phy/omap_control_phy.h> 18 #include <linux/phy/omap_usb.h> 19 #include <linux/phy/phy.h> 55 struct usb_phy phy; member 71 #define phy_to_omapusb(x) container_of((x), struct omap_usb, phy) 93 * omap_usb2_set_comparator() - links the comparator present in the system with this phy 95 * @comparator: the companion phy(comparator) for this phy 104 struct omap_usb *phy; omap_usb2_set_comparator() local 118 struct omap_usb *phy = phy_to_omapusb(otg->usb_phy); omap_usb_set_vbus() local 128 struct omap_usb *phy = phy_to_omapusb(otg->usb_phy); omap_usb_start_srp() local 155 omap_usb_phy_power(struct omap_usb * phy,int on) omap_usb_phy_power() argument 177 struct omap_usb *phy = phy_get_drvdata(x); omap_usb_power_off() local 184 struct omap_usb *phy = phy_get_drvdata(x); omap_usb_power_on() local 189 omap_usb2_disable_clocks(struct omap_usb * phy) omap_usb2_disable_clocks() argument 198 omap_usb2_enable_clocks(struct omap_usb * phy) omap_usb2_enable_clocks() argument 227 struct omap_usb *phy = phy_get_drvdata(x); omap_usb_init() local 258 struct omap_usb *phy = phy_get_drvdata(x); omap_usb_exit() local 346 omap_usb2_init_errata(struct omap_usb * phy) omap_usb2_init_errata() argument 368 struct omap_usb *phy; omap_usb2_probe() local 506 struct omap_usb *phy = platform_get_drvdata(pdev); omap_usb2_remove() local [all...] |
H A D | phy-ti-pipe3.c | 3 * phy-ti-pipe3 - PIPE3 PHY driver. 13 #include <linux/phy/phy.h> 20 #include <linux/phy/omap_control_phy.h> 300 static struct pipe3_dpll_params *ti_pipe3_get_dpll_params(struct ti_pipe3 *phy) in ti_pipe3_get_dpll_params() argument 303 struct pipe3_dpll_map *dpll_map = phy->dpll_map; in ti_pipe3_get_dpll_params() 305 rate = clk_get_rate(phy->sys_clk); in ti_pipe3_get_dpll_params() 312 dev_err(phy->dev, "No DPLL configuration for %lu Hz SYS CLK\n", rate); in ti_pipe3_get_dpll_params() 317 static int ti_pipe3_enable_clocks(struct ti_pipe3 *phy); 323 struct ti_pipe3 *phy = phy_get_drvdata(x); ti_pipe3_power_off() local 342 struct ti_pipe3 *phy = phy_get_drvdata(x); ti_pipe3_power_on() local 387 ti_pipe3_dpll_wait_lock(struct ti_pipe3 * phy) ti_pipe3_dpll_wait_lock() argument 404 ti_pipe3_dpll_program(struct ti_pipe3 * phy) ti_pipe3_dpll_program() argument 443 ti_pipe3_calibrate(struct ti_pipe3 * phy) ti_pipe3_calibrate() argument 499 struct ti_pipe3 *phy = phy_get_drvdata(x); ti_pipe3_init() local 548 struct ti_pipe3 *phy = phy_get_drvdata(x); ti_pipe3_exit() local 603 ti_pipe3_get_clk(struct ti_pipe3 * phy) ti_pipe3_get_clk() argument 670 ti_pipe3_get_sysctrl(struct ti_pipe3 * phy) ti_pipe3_get_sysctrl() argument 748 ti_pipe3_get_tx_rx_base(struct ti_pipe3 * phy) ti_pipe3_get_tx_rx_base() argument 762 ti_pipe3_get_pll_base(struct ti_pipe3 * phy) ti_pipe3_get_pll_base() argument 777 struct ti_pipe3 *phy; ti_pipe3_probe() local 840 struct ti_pipe3 *phy = platform_get_drvdata(pdev); ti_pipe3_remove() local 849 ti_pipe3_enable_clocks(struct ti_pipe3 * phy) ti_pipe3_enable_clocks() argument 890 ti_pipe3_disable_clocks(struct ti_pipe3 * phy) ti_pipe3_disable_clocks() argument [all...] |
/linux/drivers/phy/allwinner/ |
H A D | phy-sun9i-usb.c | 3 * Allwinner sun9i USB phy driver 7 * Based on phy-sun4i-usb.c from 18 #include <linux/phy/phy.h> 36 struct phy *phy; member 44 static void sun9i_usb_phy_passby(struct sun9i_usb_phy *phy, int enable) in sun9i_usb_phy_passby() argument 52 if (phy->type == USBPHY_INTERFACE_MODE_HSIC) in sun9i_usb_phy_passby() 56 reg_value = readl(phy->pmu); in sun9i_usb_phy_passby() 63 writel(reg_value, phy in sun9i_usb_phy_passby() 68 struct sun9i_usb_phy *phy = phy_get_drvdata(_phy); sun9i_usb_phy_init() local 98 struct sun9i_usb_phy *phy = phy_get_drvdata(_phy); sun9i_usb_phy_exit() local 116 struct sun9i_usb_phy *phy; sun9i_usb_phy_probe() local [all...] |
/linux/drivers/nfc/pn544/ |
H A D | i2c.c | 186 static void pn544_hci_i2c_platform_init(struct pn544_i2c_phy *phy) in pn544_hci_i2c_platform_init() argument 192 nfc_info(&phy->i2c_dev->dev, "Detecting nfc_en polarity\n"); in pn544_hci_i2c_platform_init() 195 gpiod_set_value_cansleep(phy->gpiod_fw, 0); in pn544_hci_i2c_platform_init() 198 phy->en_polarity = polarity; in pn544_hci_i2c_platform_init() 202 gpiod_set_value_cansleep(phy->gpiod_en, !phy->en_polarity); in pn544_hci_i2c_platform_init() 206 gpiod_set_value_cansleep(phy->gpiod_en, phy->en_polarity); in pn544_hci_i2c_platform_init() 210 dev_dbg(&phy->i2c_dev->dev, "Sending reset cmd\n"); in pn544_hci_i2c_platform_init() 211 ret = i2c_master_send(phy in pn544_hci_i2c_platform_init() 229 pn544_hci_i2c_enable_mode(struct pn544_i2c_phy * phy,int run_mode) pn544_hci_i2c_enable_mode() argument 240 struct pn544_i2c_phy *phy = phy_id; pn544_hci_i2c_enable() local 251 struct pn544_i2c_phy *phy = phy_id; pn544_hci_i2c_disable() local 294 struct pn544_i2c_phy *phy = phy_id; pn544_hci_i2c_write() local 354 pn544_hci_i2c_read(struct pn544_i2c_phy * phy,struct sk_buff ** skb) pn544_hci_i2c_read() argument 413 pn544_hci_i2c_fw_read_status(struct pn544_i2c_phy * phy) pn544_hci_i2c_fw_read_status() argument 480 struct pn544_i2c_phy *phy = phy_id; pn544_hci_i2c_irq_thread_fn() local 525 struct pn544_i2c_phy *phy = phy_id; pn544_hci_i2c_fw_download() local 539 pn544_hci_i2c_fw_work_complete(struct pn544_i2c_phy * phy,int result) pn544_hci_i2c_fw_work_complete() argument 636 pn544_hci_i2c_fw_write_chunk(struct pn544_i2c_phy * phy) pn544_hci_i2c_fw_write_chunk() argument 653 pn544_hci_i2c_fw_secure_write_frame_cmd(struct pn544_i2c_phy * phy,const u8 * data,u16 datalen) pn544_hci_i2c_fw_secure_write_frame_cmd() argument 685 pn544_hci_i2c_fw_secure_write_frame(struct pn544_i2c_phy * phy) pn544_hci_i2c_fw_secure_write_frame() argument 735 struct pn544_i2c_phy *phy = container_of(work, struct pn544_i2c_phy, pn544_hci_i2c_fw_work() local 870 struct pn544_i2c_phy *phy; pn544_hci_i2c_probe() local 930 struct pn544_i2c_phy *phy = i2c_get_clientdata(client); pn544_hci_i2c_remove() local [all...] |
/linux/drivers/media/platform/ti/cal/ |
H A D | cal-camerarx.c | 33 static inline u32 camerarx_read(struct cal_camerarx *phy, u32 offset) in camerarx_read() argument 35 return ioread32(phy->base + offset); in camerarx_read() 38 static inline void camerarx_write(struct cal_camerarx *phy, u32 offset, u32 val) in camerarx_write() argument 40 iowrite32(val, phy->base + offset); in camerarx_write() 48 static s64 cal_camerarx_get_ext_link_freq(struct cal_camerarx *phy) in cal_camerarx_get_ext_link_freq() argument 50 struct v4l2_mbus_config_mipi_csi2 *mipi_csi2 = &phy->endpoint.bus.mipi_csi2; in cal_camerarx_get_ext_link_freq() 66 state = v4l2_subdev_get_locked_active_state(&phy->subdev); in cal_camerarx_get_ext_link_freq() 85 freq = v4l2_get_link_freq(&phy->source->entity.pads[phy->source_pad], in cal_camerarx_get_ext_link_freq() 88 phy_err(phy, "faile in cal_camerarx_get_ext_link_freq() 98 cal_camerarx_lane_config(struct cal_camerarx * phy) cal_camerarx_lane_config() argument 126 cal_camerarx_enable(struct cal_camerarx * phy) cal_camerarx_enable() argument 139 cal_camerarx_disable(struct cal_camerarx * phy) cal_camerarx_disable() argument 151 cal_camerarx_config(struct cal_camerarx * phy,s64 link_freq) cal_camerarx_config() argument 186 cal_camerarx_power(struct cal_camerarx * phy,bool enable) cal_camerarx_power() argument 215 cal_camerarx_wait_reset(struct cal_camerarx * phy) cal_camerarx_wait_reset() argument 235 cal_camerarx_wait_stop_state(struct cal_camerarx * phy) cal_camerarx_wait_stop_state() argument 253 cal_camerarx_enable_irqs(struct cal_camerarx * phy) cal_camerarx_enable_irqs() argument 280 cal_camerarx_disable_irqs(struct cal_camerarx * phy) cal_camerarx_disable_irqs() argument 290 cal_camerarx_ppi_enable(struct cal_camerarx * phy) cal_camerarx_ppi_enable() argument 299 cal_camerarx_ppi_disable(struct cal_camerarx * phy) cal_camerarx_ppi_disable() argument 305 cal_camerarx_start(struct cal_camerarx * phy,u32 sink_stream) cal_camerarx_start() argument 464 cal_camerarx_stop(struct cal_camerarx * phy,u32 sink_stream) cal_camerarx_stop() argument 528 cal_camerarx_i913_errata(struct cal_camerarx * phy) cal_camerarx_i913_errata() argument 539 cal_camerarx_regmap_init(struct cal_dev * cal,struct cal_camerarx * phy) cal_camerarx_regmap_init() argument 572 cal_camerarx_parse_dt(struct cal_camerarx * phy) cal_camerarx_parse_dt() argument 666 struct cal_camerarx *phy = to_cal_camerarx(sd); cal_camerarx_sd_enable_streams() local 682 struct cal_camerarx *phy = to_cal_camerarx(sd); cal_camerarx_sd_disable_streams() local 874 struct cal_camerarx *phy = to_cal_camerarx(sd); cal_camerarx_get_frame_desc() local 963 struct cal_camerarx *phy; cal_camerarx_create() local 1036 cal_camerarx_destroy(struct cal_camerarx * phy) cal_camerarx_destroy() argument [all...] |
/linux/drivers/gpu/drm/i915/display/ |
H A D | intel_combo_phy.c | 58 icl_get_procmon_ref_values(struct intel_display *display, enum phy phy) in icl_get_procmon_ref_values() argument 62 val = intel_de_read(display, ICL_PORT_COMP_DW3(phy)); in icl_get_procmon_ref_values() 81 enum phy phy) in icl_set_procmon_ref_values() argument 85 procmon = icl_get_procmon_ref_values(display, phy); in icl_set_procmon_ref_values() 87 intel_de_rmw(display, ICL_PORT_COMP_DW1(phy), in icl_set_procmon_ref_values() 90 intel_de_write(display, ICL_PORT_COMP_DW9(phy), procmon->dw9); in icl_set_procmon_ref_values() 91 intel_de_write(display, ICL_PORT_COMP_DW10(phy), procmon->dw10); in icl_set_procmon_ref_values() 95 enum phy ph in check_phy_reg() argument 113 icl_verify_procmon_ref_values(struct intel_display * display,enum phy phy) icl_verify_procmon_ref_values() argument 130 has_phy_misc(struct intel_display * display,enum phy phy) has_phy_misc() argument 152 icl_combo_phy_enabled(struct intel_display * display,enum phy phy) icl_combo_phy_enabled() argument 190 phy_is_master(struct intel_display * display,enum phy phy) phy_is_master() argument 219 icl_combo_phy_verify_state(struct intel_display * display,enum phy phy) icl_combo_phy_verify_state() argument 261 intel_combo_phy_power_up_lanes(struct intel_display * display,enum phy phy,bool is_dsi,int lane_count,bool lane_reversal) intel_combo_phy_power_up_lanes() argument 311 enum phy phy; icl_combo_phys_init() local 377 enum phy phy; icl_combo_phys_uninit() local [all...] |
/linux/arch/arm64/boot/dts/microchip/ |
H A D | sparx5_pcb135_board.dtsi | 202 phy0: ethernet-phy@0 { 205 phy1: ethernet-phy@1 { 208 phy2: ethernet-phy@2 { 211 phy3: ethernet-phy@3 { 214 phy4: ethernet-phy@4 { 217 phy5: ethernet-phy@5 { 220 phy6: ethernet-phy@6 { 223 phy7: ethernet-phy@7 { 226 phy8: ethernet-phy@8 { 229 phy9: ethernet-phy [all...] |
/linux/drivers/net/wireless/mediatek/mt76/ |
H A D | channel.c | 22 mt76_phy_update_channel(struct mt76_phy *phy, in mt76_phy_update_channel() argument 25 phy->radar_enabled = conf->radar_enabled; in mt76_phy_update_channel() 26 phy->main_chandef = conf->def; in mt76_phy_update_channel() 27 phy->chanctx = (struct mt76_chanctx *)conf->drv_priv; in mt76_phy_update_channel() 29 return __mt76_set_channel(phy, &phy->main_chandef, false); in mt76_phy_update_channel() 36 struct mt76_phy *phy = hw->priv; in mt76_add_chanctx() local 37 struct mt76_dev *dev = phy->dev; in mt76_add_chanctx() 40 phy = ctx->phy in mt76_add_chanctx() 62 struct mt76_phy *phy = hw->priv; mt76_remove_chanctx() local 84 struct mt76_phy *phy = ctx->phy; mt76_change_chanctx() local 109 struct mt76_phy *phy = ctx->phy; mt76_assign_vif_chanctx() local 160 struct mt76_phy *phy = ctx->phy; mt76_unassign_vif_chanctx() local 199 struct mt76_phy *phy = hw->priv; mt76_switch_vif_chanctx() local 266 mt76_get_vif_phy_link(struct mt76_phy * phy,struct ieee80211_vif * vif) mt76_get_vif_phy_link() argument 301 mt76_put_vif_phy_link(struct mt76_phy * phy,struct ieee80211_vif * vif,struct mt76_vif_link * mlink) mt76_put_vif_phy_link() argument 317 mt76_roc_complete(struct mt76_phy * phy) mt76_roc_complete() argument 336 struct mt76_phy *phy = container_of(work, struct mt76_phy, roc_work.work); mt76_roc_complete_work() local 344 mt76_abort_roc(struct mt76_phy * phy) mt76_abort_roc() argument 360 struct mt76_phy *phy = hw->priv; mt76_remain_on_channel() local 402 struct mt76_phy *phy = mvif->roc_phy; mt76_cancel_remain_on_channel() local [all...] |
/linux/drivers/phy/samsung/ |
H A D | phy-samsung-ufs.c | 3 * UFS PHY driver for Samsung SoC 18 #include <linux/phy/phy.h> 22 #include "phy-samsung-ufs.h" 24 #define for_each_phy_lane(phy, i) \ argument 25 for (i = 0; i < (phy)->lane_cnt; i++) 31 void samsung_ufs_phy_config(struct samsung_ufs_phy *phy, in samsung_ufs_phy_config() argument 39 writel(cfg->val, (phy)->reg_pma + cfg->off_0); in samsung_ufs_phy_config() 43 writel(cfg->val, (phy)->reg_pma + cfg->off_1); in samsung_ufs_phy_config() 48 int samsung_ufs_phy_wait_for_lock_acq(struct phy *ph argument 76 samsung_ufs_phy_calibrate(struct phy * phy) samsung_ufs_phy_calibrate() argument 147 samsung_ufs_phy_clks_init(struct samsung_ufs_phy * phy) samsung_ufs_phy_clks_init() argument 164 samsung_ufs_phy_init(struct phy * phy) samsung_ufs_phy_init() argument 174 samsung_ufs_phy_power_on(struct phy * phy) samsung_ufs_phy_power_on() argument 196 samsung_ufs_phy_power_off(struct phy * phy) samsung_ufs_phy_power_off() argument 220 samsung_ufs_phy_exit(struct phy * phy) samsung_ufs_phy_exit() argument 245 struct samsung_ufs_phy *phy; samsung_ufs_phy_probe() local [all...] |
/linux/drivers/net/ethernet/chelsio/cxgb3/ |
H A D | ael1002.c | 62 /* PHY module I2C device address */ 68 /* PHY transceiver type */ 84 static int set_phy_regs(struct cphy *phy, const struct reg_val *rv) in set_phy_regs() argument 90 err = t3_mdio_write(phy, rv->mmd_addr, rv->reg_addr, in set_phy_regs() 93 err = t3_mdio_change_bits(phy, rv->mmd_addr, in set_phy_regs() 100 static void ael100x_txon(struct cphy *phy) in ael100x_txon() argument 103 phy->mdio.prtad == 0 ? F_GPIO7_OUT_VAL : F_GPIO2_OUT_VAL; in ael100x_txon() 106 t3_set_reg_field(phy->adapter, A_T3DBG_GPIO_EN, 0, tx_on_gpio); in ael100x_txon() 111 * Read an 8-bit word from a device attached to the PHY's i2c bus. 113 static int ael_i2c_rd(struct cphy *phy, in argument 141 ael1002_power_down(struct cphy * phy,int enable) ael1002_power_down() argument 153 ael1002_reset(struct cphy * phy,int wait) ael1002_reset() argument 168 ael1002_intr_noop(struct cphy * phy) ael1002_intr_noop() argument 176 get_link_status_r(struct cphy * phy,int * link_ok,int * speed,int * duplex,int * fc) get_link_status_r() argument 212 t3_ael1002_phy_prep(struct cphy * phy,struct adapter * adapter,int phy_addr,const struct mdio_ops * mdio_ops) t3_ael1002_phy_prep() argument 222 ael1006_reset(struct cphy * phy,int wait) ael1006_reset() argument 238 t3_ael1006_phy_prep(struct cphy * phy,struct adapter * adapter,int phy_addr,const struct mdio_ops * mdio_ops) t3_ael1006_phy_prep() argument 251 ael2xxx_get_module_type(struct cphy * phy,int delay_ms) ael2xxx_get_module_type() argument 293 ael2005_setup_sr_edc(struct cphy * phy) ael2005_setup_sr_edc() argument 325 ael2005_setup_twinax_edc(struct cphy * phy,int modtype) ael2005_setup_twinax_edc() argument 361 ael2005_get_module_type(struct cphy * phy,int delay_ms) ael2005_get_module_type() argument 376 ael2005_intr_enable(struct cphy * phy) ael2005_intr_enable() argument 382 ael2005_intr_disable(struct cphy * phy) ael2005_intr_disable() argument 388 ael2005_intr_clear(struct cphy * phy) ael2005_intr_clear() argument 394 ael2005_reset(struct cphy * phy,int wait) ael2005_reset() argument 454 ael2005_intr_handler(struct cphy * phy) ael2005_intr_handler() argument 509 t3_ael2005_phy_prep(struct cphy * phy,struct adapter * adapter,int phy_addr,const struct mdio_ops * mdio_ops) t3_ael2005_phy_prep() argument 523 ael2020_setup_sr_edc(struct cphy * phy) ael2020_setup_sr_edc() argument 551 ael2020_setup_twinax_edc(struct cphy * phy,int modtype) ael2020_setup_twinax_edc() argument 604 ael2020_get_module_type(struct cphy * phy,int delay_ms) ael2020_get_module_type() argument 625 ael2020_intr_enable(struct cphy * phy) ael2020_intr_enable() argument 665 ael2020_intr_disable(struct cphy * phy) ael2020_intr_disable() argument 692 ael2020_intr_clear(struct cphy * phy) ael2020_intr_clear() argument 722 ael2020_reset(struct cphy * phy,int wait) ael2020_reset() argument 765 ael2020_intr_handler(struct cphy * phy) ael2020_intr_handler() argument 815 t3_ael2020_phy_prep(struct cphy * phy,struct adapter * adapter,int phy_addr,const struct mdio_ops * mdio_ops) t3_ael2020_phy_prep() argument 829 get_link_status_x(struct cphy * phy,int * link_ok,int * speed,int * duplex,int * fc) get_link_status_x() argument 865 t3_qt2045_phy_prep(struct cphy * phy,struct adapter * adapter,int phy_addr,const struct mdio_ops * mdio_ops) t3_qt2045_phy_prep() argument 885 xaui_direct_reset(struct cphy * phy,int wait) xaui_direct_reset() argument 890 xaui_direct_get_link_status(struct cphy * phy,int * link_ok,int * speed,int * duplex,int * fc) xaui_direct_get_link_status() argument 914 xaui_direct_power_down(struct cphy * phy,int enable) xaui_direct_power_down() argument 929 t3_xaui_direct_phy_prep(struct cphy * phy,struct adapter * adapter,int phy_addr,const struct mdio_ops * mdio_ops) t3_xaui_direct_phy_prep() argument [all...] |