/linux-master/include/linux/phy/ |
H A D | ulpi_phy.h | 2 #include <linux/phy/phy.h> 8 static inline struct phy 11 struct phy *phy; local 14 phy = phy_create(&ulpi->dev, NULL, ops); 15 if (IS_ERR(phy)) 16 return phy; 18 ret = phy_create_lookup(phy, "usb2-phy", dev_nam 28 ulpi_phy_destroy(struct ulpi *ulpi, struct phy *phy) argument [all...] |
H A D | phy-sun4i-usb.h | 9 #include "phy.h" 13 * @phy: reference to a sun4i usb phy 16 void sun4i_usb_phy_set_squelch_detect(struct phy *phy, bool enabled);
|
H A D | phy.h | 3 * phy.h -- generic phy header file 19 #include <linux/phy/phy-dp.h> 20 #include <linux/phy/phy-lvds.h> 21 #include <linux/phy/phy-mipi-dphy.h> 23 struct phy; 55 * union phy_configure_opts - Opaque generic phy configuratio 158 struct phy { struct 198 struct phy *phy; member in struct:phy_lookup 215 phy_set_drvdata(struct phy *phy, void *data) argument 220 phy_get_drvdata(struct phy *phy) argument 245 phy_get_mode(struct phy *phy) argument 253 phy_get_bus_width(struct phy *phy) argument 257 phy_set_bus_width(struct phy *phy, int bus_width) argument 296 phy_pm_runtime_get(struct phy *phy) argument 303 phy_pm_runtime_get_sync(struct phy *phy) argument 310 phy_pm_runtime_put(struct phy *phy) argument 317 phy_pm_runtime_put_sync(struct phy *phy) argument 324 phy_pm_runtime_allow(struct phy *phy) argument 329 phy_pm_runtime_forbid(struct phy *phy) argument 334 phy_init(struct phy *phy) argument 341 phy_exit(struct phy *phy) argument 348 phy_power_on(struct phy *phy) argument 355 phy_power_off(struct phy *phy) argument 362 phy_set_mode_ext(struct phy *phy, enum phy_mode mode, int submode) argument 373 phy_set_media(struct phy *phy, enum phy_media media) argument 380 phy_set_speed(struct phy *phy, int speed) argument 387 phy_get_mode(struct phy *phy) argument 392 phy_reset(struct phy *phy) argument 399 phy_calibrate(struct phy *phy) argument 406 phy_notify_connect(struct phy *phy, int index) argument 413 phy_notify_disconnect(struct phy *phy, int index) argument 420 phy_configure(struct phy *phy, union phy_configure_opts *opts) argument 429 phy_validate(struct phy *phy, enum phy_mode mode, int submode, union phy_configure_opts *opts) argument 438 phy_get_bus_width(struct phy *phy) argument 443 phy_set_bus_width(struct phy *phy, int bus_width) argument 485 of_phy_put(struct phy *phy) argument 489 phy_put(struct device *dev, struct phy *phy) argument 493 devm_phy_put(struct device *dev, struct phy *phy) argument 522 phy_destroy(struct phy *phy) argument 526 devm_phy_destroy(struct device *dev, struct phy *phy) argument 555 phy_create_lookup(struct phy *phy, const char *con_id, const char *dev_id) argument 559 phy_remove_lookup(struct phy *phy, const char *con_id, const char *dev_id) argument [all...] |
/linux-master/drivers/scsi/libsas/ |
H A D | sas_phy.c | 20 struct asd_sas_phy *phy = ev->phy; local 22 phy->error = 0; 23 sas_deform_port(phy, 1); 29 struct asd_sas_phy *phy = ev->phy; local 31 phy->error = 0; 37 struct asd_sas_phy *phy = ev->phy; local 38 struct sas_ha_struct *sas_ha = phy 66 struct asd_sas_phy *phy = ev->phy; local 78 struct asd_sas_phy *phy = ev->phy; local 95 struct asd_sas_phy *phy = ev->phy; local 122 struct asd_sas_phy *phy = sas_ha->sas_phy[i]; local [all...] |
/linux-master/include/linux/phy/tegra/ |
H A D | xusb.h | 24 void tegra_phy_xusb_utmi_pad_power_on(struct phy *phy); 25 void tegra_phy_xusb_utmi_pad_power_down(struct phy *phy); 26 int tegra_phy_xusb_utmi_port_reset(struct phy *phy); 29 int tegra_xusb_padctl_get_port_number(struct phy *phy); 30 int tegra_xusb_padctl_enable_phy_sleepwalk(struct tegra_xusb_padctl *padctl, struct phy *phy, [all...] |
/linux-master/drivers/phy/qualcomm/ |
H A D | phy-qcom-ipq4019-usb.c | 17 #include <linux/phy/phy.h> 23 struct phy *phy; member in struct:ipq4019_usb_phy 29 static int ipq4019_ss_phy_power_off(struct phy *_phy) 31 struct ipq4019_usb_phy *phy = phy_get_drvdata(_phy); local 33 reset_control_assert(phy->por_rst); 39 static int ipq4019_ss_phy_power_on(struct phy *_phy) 41 struct ipq4019_usb_phy *phy = phy_get_drvdata(_phy); local 45 reset_control_deassert(phy 57 struct ipq4019_usb_phy *phy = phy_get_drvdata(_phy); local 70 struct ipq4019_usb_phy *phy = phy_get_drvdata(_phy); local 98 struct ipq4019_usb_phy *phy; local [all...] |
/linux-master/drivers/phy/xilinx/ |
H A D | Makefile | 3 obj-$(CONFIG_PHY_XILINX_ZYNQMP) += phy-zynqmp.o
|
/linux-master/drivers/net/phy/ |
H A D | phy_led_triggers.c | 4 #include <linux/phy.h> 8 static struct phy_led_trigger *phy_speed_to_led_trigger(struct phy_device *phy, argument 13 for (i = 0; i < phy->phy_num_led_triggers; i++) { 14 if (phy->phy_led_triggers[i].speed == speed) 15 return &phy->phy_led_triggers[i]; 20 static void phy_led_trigger_no_link(struct phy_device *phy) argument 22 if (phy->last_triggered) { 23 led_trigger_event(&phy->last_triggered->trigger, LED_OFF); 24 led_trigger_event(&phy->led_link_trigger->trigger, LED_OFF); 25 phy 29 phy_led_trigger_change_speed(struct phy_device *phy) argument 60 phy_led_trigger_format_name(struct phy_device *phy, char *buf, size_t size, const char *suffix) argument 67 phy_led_trigger_register(struct phy_device *phy, struct phy_led_trigger *plt, unsigned int speed, const char *suffix) argument 84 phy_led_triggers_register(struct phy_device *phy) argument 142 phy_led_triggers_unregister(struct phy_device *phy) argument [all...] |
/linux-master/drivers/phy/socionext/ |
H A D | Makefile | 3 # Makefile for the phy drivers. 6 obj-$(CONFIG_PHY_UNIPHIER_USB2) += phy-uniphier-usb2.o 7 obj-$(CONFIG_PHY_UNIPHIER_USB3) += phy-uniphier-usb3hs.o phy-uniphier-usb3ss.o 8 obj-$(CONFIG_PHY_UNIPHIER_PCIE) += phy-uniphier-pcie.o 9 obj-$(CONFIG_PHY_UNIPHIER_AHCI) += phy-uniphier-ahci.o
|
/linux-master/drivers/phy/mediatek/ |
H A D | Makefile | 3 # Makefile for the phy drivers. 6 obj-$(CONFIG_PHY_MTK_DP) += phy-mtk-dp.o 7 obj-$(CONFIG_PHY_MTK_PCIE) += phy-mtk-pcie.o 8 obj-$(CONFIG_PHY_MTK_TPHY) += phy-mtk-tphy.o 9 obj-$(CONFIG_PHY_MTK_UFS) += phy-mtk-ufs.o 10 obj-$(CONFIG_PHY_MTK_XSPHY) += phy-mtk-xsphy.o 12 phy-mtk-hdmi-drv-y := phy-mtk-hdmi.o 13 phy-mtk-hdmi-drv-y += phy [all...] |
/linux-master/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 in struct:sun9i_usb_phy 44 static void sun9i_usb_phy_passby(struct sun9i_usb_phy *phy, int enable) argument 52 if (phy->type == USBPHY_INTERFACE_MODE_HSIC) 56 reg_value = readl(phy->pmu); 63 writel(reg_value, phy 68 struct sun9i_usb_phy *phy = phy_get_drvdata(_phy); local 98 struct sun9i_usb_phy *phy = phy_get_drvdata(_phy); local 116 struct sun9i_usb_phy *phy; local [all...] |
/linux-master/include/linux/ |
H A D | phy_led_triggers.h | 12 #include <linux/phy.h> 27 extern int phy_led_triggers_register(struct phy_device *phy); 28 extern void phy_led_triggers_unregister(struct phy_device *phy); 29 extern void phy_led_trigger_change_speed(struct phy_device *phy); 33 static inline int phy_led_triggers_register(struct phy_device *phy) argument 37 static inline void phy_led_triggers_unregister(struct phy_device *phy) { } argument 38 static inline void phy_led_trigger_change_speed(struct phy_device *phy) { } argument
|
/linux-master/drivers/gpu/drm/i915/display/ |
H A D | intel_snps_phy_regs.h | 13 #define _SNPS_PHY(phy) _PHY(phy, \ 16 #define _SNPS2(phy, reg) (_SNPS_PHY(phy) - \ 18 #define _MMIO_SNPS(phy, reg) _MMIO(_SNPS2(phy, reg)) 19 #define _MMIO_SNPS_LN(ln, phy, reg) _MMIO(_SNPS2(phy, \ 22 #define SNPS_PHY_MPLLB_CP(phy) _MMIO_SNPS(phy, [all...] |
H A D | intel_hti.h | 12 enum phy; 15 bool intel_hti_uses_phy(struct drm_i915_private *i915, enum phy phy);
|
/linux-master/drivers/phy/ |
H A D | phy-core.c | 3 * phy-core.c -- Generic Phy framework. 18 #include <linux/phy/phy.h> 32 struct phy *phy = *(struct phy **)res; local 34 phy_put(dev, phy); 46 struct phy *phy = *(struct phy **)re local 53 struct phy **phy = res; local 66 phy_create_lookup(struct phy *phy, const char *con_id, const char *dev_id) argument 98 phy_remove_lookup(struct phy *phy, const char *con_id, const char *dev_id) argument 150 phy_pm_runtime_get(struct phy *phy) argument 168 phy_pm_runtime_get_sync(struct phy *phy) argument 186 phy_pm_runtime_put(struct phy *phy) argument 198 phy_pm_runtime_put_sync(struct phy *phy) argument 210 phy_pm_runtime_allow(struct phy *phy) argument 222 phy_pm_runtime_forbid(struct phy *phy) argument 245 phy_init(struct phy *phy) argument 285 phy_exit(struct phy *phy) argument 322 phy_power_on(struct phy *phy) argument 372 phy_power_off(struct phy *phy) argument 399 phy_set_mode_ext(struct phy *phy, enum phy_mode mode, int submode) argument 416 phy_set_media(struct phy *phy, enum phy_media media) argument 431 phy_set_speed(struct phy *phy, int speed) argument 446 phy_reset(struct phy *phy) argument 477 phy_calibrate(struct phy *phy) argument 500 phy_notify_connect(struct phy *phy, int port) argument 524 phy_notify_disconnect(struct phy *phy, int port) argument 550 phy_configure(struct phy *phy, union phy_configure_opts *opts) argument 584 phy_validate(struct phy *phy, enum phy_mode mode, int submode, union phy_configure_opts *opts) argument 618 struct phy *phy = NULL; local 666 struct phy *phy = NULL; local 691 of_phy_put(struct phy *phy) argument 713 phy_put(struct device *dev, struct phy *phy) argument 728 devm_phy_put(struct device *dev, struct phy *phy) argument 753 struct phy *phy; local 784 struct phy *phy; local 830 struct phy **ptr, *phy; local 863 struct phy *phy = devm_phy_get(dev, string); local 885 struct phy **ptr, *phy; local 927 struct phy *phy = devm_of_phy_get(dev, np, con_id); local 955 struct phy **ptr, *phy; local 1000 struct phy *phy; local 1076 struct phy **ptr, *phy; local 1100 phy_destroy(struct phy *phy) argument 1115 devm_phy_destroy(struct device *dev, struct phy *phy) argument 1276 struct phy *phy; local [all...] |
/linux-master/drivers/gpu/drm/msm/hdmi/ |
H A D | hdmi_phy_8x60.c | 11 static void hdmi_phy_8x60_powerup(struct hdmi_phy *phy, argument 15 hdmi_phy_write(phy, REG_HDMI_8x60_PHY_REG0, 20 hdmi_phy_write(phy, REG_HDMI_8x60_PHY_REG1, 24 hdmi_phy_write(phy, REG_HDMI_8x60_PHY_REG1, 30 hdmi_phy_write(phy, REG_HDMI_8x60_PHY_REG2, 40 hdmi_phy_write(phy, REG_HDMI_8x60_PHY_REG2, 49 hdmi_phy_write(phy, REG_HDMI_8x60_PHY_REG2, 57 hdmi_phy_write(phy, REG_HDMI_8x60_PHY_REG3, 61 hdmi_phy_write(phy, REG_HDMI_8x60_PHY_REG9, 0); 66 hdmi_phy_write(phy, REG_HDMI_8x60_PHY_REG1 95 hdmi_phy_8x60_powerdown(struct hdmi_phy *phy) argument [all...] |
H A D | hdmi_phy.c | 11 static int msm_hdmi_phy_resource_init(struct hdmi_phy *phy) argument 13 struct hdmi_phy_cfg *cfg = phy->cfg; 14 struct device *dev = &phy->pdev->dev; 17 phy->regs = devm_kcalloc(dev, cfg->num_regs, sizeof(phy->regs[0]), 19 if (!phy->regs) 22 phy->clks = devm_kcalloc(dev, cfg->num_clks, sizeof(phy->clks[0]), 24 if (!phy->clks) 28 phy 55 msm_hdmi_phy_resource_enable(struct hdmi_phy *phy) argument 79 msm_hdmi_phy_resource_disable(struct hdmi_phy *phy) argument 93 msm_hdmi_phy_powerup(struct hdmi_phy *phy, unsigned long int pixclock) argument 101 msm_hdmi_phy_powerdown(struct hdmi_phy *phy) argument 137 struct hdmi_phy *phy; local [all...] |
/linux-master/drivers/net/ethernet/ibm/emac/ |
H A D | phy.c | 3 * drivers/net/ethernet/ibm/emac/phy.c 30 #include "phy.h" 35 static inline int _phy_read(struct mii_phy *phy, int reg) argument 37 return phy->mdio_read(phy->dev, phy->address, reg); 40 static inline void _phy_write(struct mii_phy *phy, int reg, int val) argument 42 phy->mdio_write(phy->dev, phy 45 gpcs_phy_read(struct mii_phy *phy, int reg) argument 50 gpcs_phy_write(struct mii_phy *phy, int reg, int val) argument 55 emac_mii_reset_phy(struct mii_phy *phy) argument 79 emac_mii_reset_gpcs(struct mii_phy *phy) argument 110 genmii_setup_aneg(struct mii_phy *phy, u32 advertise) argument 169 genmii_setup_forced(struct mii_phy *phy, int speed, int fd) argument 206 genmii_poll_link(struct mii_phy *phy) argument 220 genmii_read_link(struct mii_phy *phy) argument 306 cis8201_init(struct mii_phy *phy) argument 367 m88e1111_init(struct mii_phy *phy) argument 380 m88e1112_init(struct mii_phy *phy) argument 407 et1011c_init(struct mii_phy *phy) argument 474 ar8035_init(struct mii_phy *phy) argument 510 emac_mii_phy_probe(struct mii_phy *phy, int address) argument [all...] |
/linux-master/drivers/phy/ti/ |
H A D | Makefile | 2 obj-$(CONFIG_PHY_DA8XX_USB) += phy-da8xx-usb.o 3 obj-$(CONFIG_PHY_DM816X_USB) += phy-dm816x-usb.o 4 obj-$(CONFIG_OMAP_CONTROL_PHY) += phy-omap-control.o 5 obj-$(CONFIG_OMAP_USB2) += phy-omap-usb2.o 6 obj-$(CONFIG_TI_PIPE3) += phy-ti-pipe3.o 7 obj-$(CONFIG_PHY_TUSB1210) += phy-tusb1210.o 8 obj-$(CONFIG_TWL4030_USB) += phy-twl4030-usb.o 9 obj-$(CONFIG_PHY_AM654_SERDES) += phy-am654-serdes.o 10 obj-$(CONFIG_PHY_TI_GMII_SEL) += phy-gmii-sel.o 11 obj-$(CONFIG_PHY_J721E_WIZ) += phy [all...] |
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 in struct:dm816x_usb_phy 71 static int dm816x_usb_phy_init(struct phy *x) 73 struct dm816x_usb_phy *phy = phy_get_drvdata(x); local 76 if (clk_get_rate(phy 112 struct dm816x_usb_phy *phy = dev_get_drvdata(dev); local 130 struct dm816x_usb_phy *phy = dev_get_drvdata(dev); local 173 struct dm816x_usb_phy *phy; local 253 struct dm816x_usb_phy *phy = platform_get_drvdata(pdev); local [all...] |
/linux-master/drivers/phy/samsung/ |
H A D | Makefile | 2 obj-$(CONFIG_PHY_EXYNOS_DP_VIDEO) += phy-exynos-dp-video.o 3 obj-$(CONFIG_PHY_EXYNOS_MIPI_VIDEO) += phy-exynos-mipi-video.o 4 obj-$(CONFIG_PHY_EXYNOS_PCIE) += phy-exynos-pcie.o 5 obj-$(CONFIG_PHY_SAMSUNG_UFS) += phy-exynos-ufs.o 6 phy-exynos-ufs-y += phy-samsung-ufs.o 7 phy-exynos-ufs-y += phy-exynos7-ufs.o 8 phy-exynos-ufs-y += phy [all...] |
/linux-master/drivers/usb/phy/ |
H A D | Makefile | 5 obj-$(CONFIG_USB_PHY) += phy.o 10 obj-$(CONFIG_AB8500_USB) += phy-ab8500-usb.o 11 obj-$(CONFIG_FSL_USB2_OTG) += phy-fsl-usb.o 12 obj-$(CONFIG_NOP_USB_XCEIV) += phy-generic.o 13 obj-$(CONFIG_TAHVO_USB) += phy-tahvo.o 14 obj-$(CONFIG_AM335X_CONTROL_USB) += phy-am335x-control.o 15 obj-$(CONFIG_AM335X_PHY_USB) += phy-am335x.o 16 obj-$(CONFIG_OMAP_OTG) += phy-omap-otg.o 17 obj-$(CONFIG_TWL6030_USB) += phy-twl6030-usb.o 18 obj-$(CONFIG_USB_TEGRA_PHY) += phy [all...] |
/linux-master/drivers/nfc/s3fwrn5/ |
H A D | phy_common.c | 19 struct phy_common *phy = phy_id; local 21 mutex_lock(&phy->mutex); 22 gpio_set_value(phy->gpio_fw_wake, wake); 25 mutex_unlock(&phy->mutex); 29 bool s3fwrn5_phy_power_ctrl(struct phy_common *phy, enum s3fwrn5_mode mode) argument 31 if (phy->mode == mode) 34 phy->mode = mode; 36 gpio_set_value(phy->gpio_en, 1); 37 gpio_set_value(phy->gpio_fw_wake, 0); 39 gpio_set_value(phy 53 struct phy_common *phy = phy_id; local 65 struct phy_common *phy = phy_id; local [all...] |
/linux-master/drivers/phy/freescale/ |
H A D | Makefile | 2 obj-$(CONFIG_PHY_FSL_IMX8MQ_USB) += phy-fsl-imx8mq-usb.o 3 obj-$(CONFIG_PHY_MIXEL_LVDS_PHY) += phy-fsl-imx8qm-lvds-phy.o 4 obj-$(CONFIG_PHY_MIXEL_MIPI_DPHY) += phy-fsl-imx8-mipi-dphy.o 5 obj-$(CONFIG_PHY_FSL_IMX8M_PCIE) += phy-fsl-imx8m-pcie.o 6 obj-$(CONFIG_PHY_FSL_LYNX_28G) += phy-fsl-lynx-28g.o
|
/linux-master/drivers/phy/ralink/ |
H A D | phy-ralink-usb.c | 17 #include <linux/phy/phy.h> 56 struct phy *phy; member in struct:ralink_usb_phy 61 static void u2_phy_w32(struct ralink_usb_phy *phy, u32 val, u32 reg) argument 63 writel(val, phy->base + reg); 66 static u32 u2_phy_r32(struct ralink_usb_phy *phy, u32 reg) argument 68 return readl(phy->base + reg); 71 static void ralink_usb_phy_init(struct ralink_usb_phy *phy) argument 73 u2_phy_r32(phy, OFS_U2_PHY_AC 93 struct ralink_usb_phy *phy = phy_get_drvdata(_phy); local 132 struct ralink_usb_phy *phy = phy_get_drvdata(_phy); local 174 struct ralink_usb_phy *phy; local [all...] |