/openbmc/linux/drivers/gpu/drm/i915/display/ |
H A D | intel_combo_phy.c | 1 // SPDX-License-Identifier: MIT 17 for ((__phy) = I915_MAX_PHYS; (__phy)-- > PHY_A;) \ 33 .name = "0.85V dot0 (low-voltage)", 55 icl_get_procmon_ref_values(struct drm_i915_private *dev_priv, enum phy phy) in icl_get_procmon_ref_values() argument 59 val = intel_de_read(dev_priv, ICL_PORT_COMP_DW3(phy)); in icl_get_procmon_ref_values() 78 enum phy phy) in icl_set_procmon_ref_values() argument 82 procmon = icl_get_procmon_ref_values(dev_priv, phy); in icl_set_procmon_ref_values() 84 intel_de_rmw(dev_priv, ICL_PORT_COMP_DW1(phy), in icl_set_procmon_ref_values() 85 (0xff << 16) | 0xff, procmon->dw1); in icl_set_procmon_ref_values() 87 intel_de_write(dev_priv, ICL_PORT_COMP_DW9(phy), procmon->dw9); in icl_set_procmon_ref_values() [all …]
|
/openbmc/linux/drivers/scsi/isci/ |
H A D | phy.h | 7 * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved. 20 * Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. 26 * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved. 63 /* This is the timeout value for the SATA phy to wait for a SIGNATURE FIS 80 * isci_phy - hba local phy infrastructure 83 * @phy_index: physical index relative to the controller (0-3) 120 * to 0 if the PHY CAPABILITIES were either not 162 * struct sci_phy_properties - This structure defines the properties common to 170 * supplied phy. This field may be set to NULL 171 * if the phy is not currently contained in a port. [all …]
|
/openbmc/linux/Documentation/networking/ |
H A D | kapi.rst | 9 --------------------- 11 .. kernel-doc:: include/linux/net.h 15 ----------------------- 17 .. kernel-doc:: include/linux/skbuff.h 20 .. kernel-doc:: include/net/sock.h 23 .. kernel-doc:: net/socket.c 26 .. kernel-doc:: net/core/skbuff.c 29 .. kernel-doc:: net/core/sock.c 32 .. kernel-doc:: net/core/datagram.c 35 .. kernel-doc:: net/core/stream.c [all …]
|
H A D | sfp-phylink.rst | 1 .. SPDX-License-Identifier: GPL-2.0 10 phylink is a mechanism to support hot-pluggable networking modules 11 directly connected to a MAC without needing to re-initialise the 12 adapter on hot-plug events. 14 phylink supports conventional phylib-based setups, fixed link setups 23 1. PHY mode 25 In PHY mode, we use phylib to read the current link settings from 26 the PHY, and pass them to the MAC driver. We expect the MAC driver 32 Fixed mode is the same as PHY mode as far as the MAC driver is 35 3. In-band mode [all …]
|
/openbmc/linux/drivers/net/wireless/broadcom/b43/ |
H A D | phy_common.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 Common PHY routines 7 Copyright (c) 2005 Martin Langer <martin-langer@gmx.de>, 8 Copyright (c) 2005-2007 Stefano Brivio <stefano.brivio@polimi.it> 9 Copyright (c) 2005-2008 Michael Buesch <m@bues.ch> 10 Copyright (c) 2005, 2006 Danny van Dyk <kugelfang@gentoo.org> 11 Copyright (c) 2005, 2006 Andreas Jaggi <andreas.jaggi@waterwave.ch> 30 struct b43_phy *phy = &(dev->phy); in b43_phy_allocate() local 33 phy->ops = NULL; in b43_phy_allocate() 35 switch (phy->type) { in b43_phy_allocate() [all …]
|
H A D | lo.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 G PHY LO (LocalOscillator) Measuring and Control routines 8 Copyright (c) 2005 Martin Langer <martin-langer@gmx.de>, 9 Copyright (c) 2005, 2006 Stefano Brivio <stefano.brivio@polimi.it> 10 Copyright (c) 2005-2007 Michael Buesch <m@bues.ch> 11 Copyright (c) 2005, 2006 Danny van Dyk <kugelfang@gentoo.org> 12 Copyright (c) 2005, 2006 Andreas Jaggi <andreas.jaggi@waterwave.ch> 31 struct b43_lo_calib *c; in b43_find_lo_calib() local 33 list_for_each_entry(c, &lo->calib_list, list) { in b43_find_lo_calib() 34 if (!b43_compare_bbatt(&c->bbatt, bbatt)) in b43_find_lo_calib() [all …]
|
/openbmc/u-boot/drivers/usb/dwc3/ |
H A D | ti_usb_phy.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * ti_usb_phy.c - USB3 and USB3 PHY programming for dwc3 5 * Copyright (C) 2015 Texas Instruments Incorporated - http://www.ti.com 9 * Taken from Linux Kernel v3.16 (drivers/phy/phy-ti-pipe3.c and 10 * drivers/phy/phy-omap-usb2.c) and ported to uboot. 12 * "commit 56042e : phy: ti-pipe3: Fix suspend/resume and module reload" for 13 * phy-ti-pipe3.c 15 * "commit eb82a3 : phy: omap-usb2: Balance pm_runtime_enable() on probe failure 16 * and remove" for phy-omap-usb2.c 21 #include <ti-usb-phy-uboot.h> [all …]
|
H A D | samsung_usb_phy.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * samsung_usb_phy.c - DesignWare USB3 (DWC3) PHY handling file 5 * Copyright (C) 2015 Samsung Electronics 12 #include <asm/arch/xhci-exynos.h> 14 void exynos5_usb3_phy_init(struct exynos_usb3_phy *phy) in exynos5_usb3_phy_init() argument 18 /* Reset USB 3.0 PHY */ in exynos5_usb3_phy_init() 19 writel(0x0, &phy->phy_reg0); in exynos5_usb3_phy_init() 21 clrbits_le32(&phy->phy_param0, in exynos5_usb3_phy_init() 22 /* Select PHY CLK source */ in exynos5_usb3_phy_init() 24 /* Set Loss-of-Signal Detector sensitivity */ in exynos5_usb3_phy_init() [all …]
|
/openbmc/linux/drivers/phy/allwinner/ |
H A D | phy-sun50i-usb3.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Allwinner sun50i(H6) USB 3.0 phy driver 5 * Copyright (C) 2017 Icenowy Zheng <icenowy@aosc.io> 7 * Based on phy-sun9i-usb.c, which is: 9 * Copyright (C) 2014-2015 Chen-Yu Tsai <wens@csie.org> 13 * Copyright (c) 2010-2015 Allwinner Technology Co., Ltd. 21 #include <linux/phy/phy.h> 38 /* PHY External Control Register */ 43 /* PHY Tune High Register */ 56 struct phy *phy; member [all …]
|
H A D | phy-sun9i-usb.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Allwinner sun9i USB phy driver 5 * Copyright (C) 2014-2015 Chen-Yu Tsai <wens@csie.org> 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->pmu); in sun9i_usb_phy_passby() [all …]
|
/openbmc/linux/arch/powerpc/boot/dts/fsl/ |
H A D | t2081qds.dts | 4 * Copyright 2013 - 2015 Freescale Semiconductor Inc. 35 /include/ "t208xsi-pre.dtsi" 41 #address-cells = <2>; 42 #size-cells = <2>; 43 interrupt-parent = <&mpic>; 58 phy-handle = <&phy_sgmii_s7_1c>; 59 phy-connection-type = "sgmii"; 63 phy-handle = <&phy_sgmii_s7_1d>; 64 phy-connection-type = "sgmii"; 68 phy-handle = <&rgmii_phy1>; [all …]
|
H A D | t2080qds.dts | 4 * Copyright 2013 - 2015 Freescale Semiconductor Inc. 35 /include/ "t208xsi-pre.dtsi" 41 #address-cells = <2>; 42 #size-cells = <2>; 43 interrupt-parent = <&mpic>; 66 phy-handle = <&phy_sgmii_s3_1e>; 67 phy-connection-type = "xgmii"; 71 phy-handle = <&phy_sgmii_s3_1f>; 72 phy-connection-type = "xgmii"; 76 phy-handle = <&rgmii_phy1>; [all …]
|
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt7996/ |
H A D | init.c | 1 // SPDX-License-Identifier: ISC 3 * Copyright (C) 2022 MediaTek Inc. 54 dev = container_of(mphy->dev, struct mt7996_dev, mt76); in mt7996_led_set_config() 69 if (mphy->leds.al) in mt7996_led_set_config() 107 int i, nss = hweight8(dev->mphy.antenna_mask); in mt7996_init_txpower() 109 int pwr_delta = mt7996_eeprom_get_power_delta(dev, sband->band); in mt7996_init_txpower() 112 for (i = 0; i < sband->n_channels; i++) { in mt7996_init_txpower() 113 struct ieee80211_channel *chan = &sband->channels[i]; in mt7996_init_txpower() 117 target_power = mt76_get_rate_power_limits(&dev->mphy, chan, in mt7996_init_txpower() 122 chan->max_power = min_t(int, chan->max_reg_power, in mt7996_init_txpower() [all …]
|
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt7915/ |
H A D | init.c | 1 // SPDX-License-Identifier: ISC 2 /* Copyright (C) 2020 MediaTek Inc. */ 6 #include <linux/hwmon-sysfs.h> 50 struct mt7915_phy *phy = dev_get_drvdata(dev); in mt7915_thermal_temp_show() local 51 int i = to_sensor_dev_attr(attr)->index; in mt7915_thermal_temp_show() 56 temperature = mt7915_mcu_get_temperature(phy); in mt7915_thermal_temp_show() 64 phy->throttle_temp[i - 1] * 1000); in mt7915_thermal_temp_show() 66 return sprintf(buf, "%hhu\n", phy->throttle_state); in mt7915_thermal_temp_show() 68 return -EINVAL; in mt7915_thermal_temp_show() 76 struct mt7915_phy *phy = dev_get_drvdata(dev); in mt7915_thermal_temp_store() local [all …]
|
/openbmc/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, 8 and how-to-use. 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 15 such as serialization, de-serialization, encoding, decoding and is responsible 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 [all …]
|
/openbmc/linux/drivers/nfc/s3fwrn5/ |
H A D | phy_common.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (C) 2015 Samsung Electrnoics 7 * Copyright (C) 2020 Samsung Electrnoics 19 struct phy_common *phy = phy_id; in s3fwrn5_phy_set_wake() local 21 mutex_lock(&phy->mutex); in s3fwrn5_phy_set_wake() 22 gpio_set_value(phy->gpio_fw_wake, wake); in s3fwrn5_phy_set_wake() 25 mutex_unlock(&phy->mutex); in s3fwrn5_phy_set_wake() 29 bool s3fwrn5_phy_power_ctrl(struct phy_common *phy, enum s3fwrn5_mode mode) in s3fwrn5_phy_power_ctrl() argument 31 if (phy->mode == mode) in s3fwrn5_phy_power_ctrl() 34 phy->mode = mode; in s3fwrn5_phy_power_ctrl() [all …]
|
/openbmc/linux/drivers/scsi/libsas/ |
H A D | sas_phy.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Serial Attached SCSI (SAS) Phy class 5 * Copyright (C) 2005 Adaptec, Inc. All rights reserved. 6 * Copyright (C) 2005 Luben Tuikov <luben_tuikov@adaptec.com> 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, 1); 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() [all …]
|
/openbmc/linux/drivers/dma/ |
H A D | k3dma.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2013 - 2015 Linaro Ltd. 4 * Copyright (c) 2013 HiSilicon Limited. 8 #include <linux/dma-mapping.h> 23 #include "virt-dma.h" 25 #define DRIVER_NAME "k3-dma" 83 struct k3_dma_phy *phy; member 105 struct k3_dma_phy *phy; member 134 static void k3_dma_pause_dma(struct k3_dma_phy *phy, bool on) in k3_dma_pause_dma() argument 139 val = readl_relaxed(phy->base + CX_CFG); in k3_dma_pause_dma() [all …]
|
/openbmc/linux/arch/arm64/boot/dts/freescale/ |
H A D | fsl-ls1043a-qds.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * Device Tree Include file for Freescale Layerscape-1043A family SoC. 5 * Copyright 2014-2015 Freescale Semiconductor, Inc. 6 * Copyright 2018-2021 NXP 11 /dts-v1/; 12 #include "fsl-ls1043a.dtsi" 16 compatible = "fsl,ls1043a-qds", "fsl,ls1043a"; 27 sgmii-riser-s1-p1 = &sgmii_phy_s1_p1; 28 sgmii-riser-s2-p1 = &sgmii_phy_s2_p1; 29 sgmii-riser-s3-p1 = &sgmii_phy_s3_p1; [all …]
|
/openbmc/linux/drivers/gpu/drm/msm/hdmi/ |
H A D | hdmi_phy_8x60.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2013 Red Hat 11 static void hdmi_phy_8x60_powerup(struct hdmi_phy *phy, in hdmi_phy_8x60_powerup() argument 14 /* De-serializer delay D/C for non-lbk mode: */ in hdmi_phy_8x60_powerup() 15 hdmi_phy_write(phy, REG_HDMI_8x60_PHY_REG0, in hdmi_phy_8x60_powerup() 20 hdmi_phy_write(phy, REG_HDMI_8x60_PHY_REG1, in hdmi_phy_8x60_powerup() 24 hdmi_phy_write(phy, REG_HDMI_8x60_PHY_REG1, in hdmi_phy_8x60_powerup() 30 hdmi_phy_write(phy, REG_HDMI_8x60_PHY_REG2, in hdmi_phy_8x60_powerup() 40 hdmi_phy_write(phy, REG_HDMI_8x60_PHY_REG2, in hdmi_phy_8x60_powerup() 49 hdmi_phy_write(phy, REG_HDMI_8x60_PHY_REG2, in hdmi_phy_8x60_powerup() [all …]
|
/openbmc/linux/drivers/phy/broadcom/ |
H A D | phy-bcm-kona-usb2.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * phy-bcm-kona-usb2.c - Broadcom Kona USB2 Phy Driver 5 * Copyright (C) 2013 Linaro Limited 15 #include <linux/phy/phy.h> 34 static void bcm_kona_usb_phy_power(struct bcm_kona_usb *phy, int on) in bcm_kona_usb_phy_power() argument 38 val = readl(phy->regs + OTGCTL); in bcm_kona_usb_phy_power() 40 /* Configure and power PHY */ in bcm_kona_usb_phy_power() 47 writel(val, phy->regs + OTGCTL); in bcm_kona_usb_phy_power() 50 static int bcm_kona_usb_phy_init(struct phy *gphy) in bcm_kona_usb_phy_init() 52 struct bcm_kona_usb *phy = phy_get_drvdata(gphy); in bcm_kona_usb_phy_init() local [all …]
|
H A D | phy-bcm63xx-usbh.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * BCM6328 USBH PHY Controller Driver 5 * Copyright (C) 2020 Álvaro Fernández Rojas <noltari@gmail.com> 6 * Copyright (C) 2015 Simon Arlott 8 * Derived from bcm963xx_4.12L.06B_consumer/kernel/linux/arch/mips/bcm963xx/setup.c: 9 * Copyright (C) 2002 Broadcom Corporation 12 * Copyright (C) 2013 Jonas Gorski <jonas.gorski@gmail.com> 13 * Copyright (C) 2013 Florian Fainelli <f.fainelli@gmail.com> 14 * Copyright (C) 2008 Maxime Bizon <mbizon@freebox.fr> 21 #include <linux/phy/phy.h> [all …]
|
/openbmc/linux/drivers/usb/renesas_usbhs/ |
H A D | rcar2.c | 1 // SPDX-License-Identifier: GPL-1.0+ 3 * Renesas USB driver R-Car Gen. 2 initialization and power control 5 * Copyright (C) 2014 Ulrich Hecht 6 * Copyright (C) 2019 Renesas Electronics Corporation 9 #include <linux/phy/phy.h> 18 struct phy *phy = phy_get(&pdev->dev, "usb"); in usbhs_rcar2_hardware_init() local 20 if (IS_ERR(phy)) in usbhs_rcar2_hardware_init() 21 return PTR_ERR(phy); in usbhs_rcar2_hardware_init() 23 priv->phy = phy; in usbhs_rcar2_hardware_init() 27 return -ENXIO; in usbhs_rcar2_hardware_init() [all …]
|
/openbmc/u-boot/doc/ |
H A D | README.omap-ulpi-viewport | 1 Reference code ""drivers/usb/ulpi/omap-ulpi-viewport.c" 4 any ulpi phy port access on omap platform. 7 register which offers the ulpi phy access so 8 any ulpi phy commands should be passsed using this 11 omap-ulpi-viewport.c is a low level function 12 implementation of "drivers/usb/ulpi/ulpi.c" 14 To enable and use omap-ulpi-viewport.c 18 Any ulpi ops request can be done with ulpi.c 20 omap-ulpi-viewport implementation. 23 omap-ehci driver code requests for ulpi phy reset if [all …]
|
/openbmc/linux/drivers/nfc/pn533/ |
H A D | i2c.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Driver for NXP PN533 NFC Chip - I2C transport layer 5 * Copyright (C) 2011 Instituto Nokia de Tecnologia 6 * Copyright (C) 2012-2013 Tieto Poland 7 * Copyright (C) 2016 HALE electronic 39 struct pn533_i2c_phy *phy = dev->phy; in pn533_i2c_send_ack() local 40 struct i2c_client *client = phy->i2c_dev; in pn533_i2c_send_ack() 50 struct pn533_i2c_phy *phy = dev->phy; in pn533_i2c_send_frame() local 51 struct i2c_client *client = phy->i2c_dev; in pn533_i2c_send_frame() 54 if (phy->hard_fault != 0) in pn533_i2c_send_frame() [all …]
|