Home
last modified time | relevance | path

Searched +full:c +full:- +full:phy (Results 1 – 25 of 1047) sorted by relevance

12345678910>>...42

/linux-6.14.4/drivers/gpu/drm/i915/display/
Dintel_combo_phy.c1 // SPDX-License-Identifier: MIT
18 for ((__phy) = I915_MAX_PHYS; (__phy)-- > PHY_A;) \
34 .name = "0.85V dot0 (low-voltage)",
56 icl_get_procmon_ref_values(struct drm_i915_private *dev_priv, enum phy phy) in icl_get_procmon_ref_values() argument
60 val = intel_de_read(dev_priv, ICL_PORT_COMP_DW3(phy)); in icl_get_procmon_ref_values()
79 enum phy phy) in icl_set_procmon_ref_values() argument
83 procmon = icl_get_procmon_ref_values(dev_priv, phy); in icl_set_procmon_ref_values()
85 intel_de_rmw(dev_priv, ICL_PORT_COMP_DW1(phy), in icl_set_procmon_ref_values()
86 (0xff << 16) | 0xff, procmon->dw1); in icl_set_procmon_ref_values()
88 intel_de_write(dev_priv, ICL_PORT_COMP_DW9(phy), procmon->dw9); in icl_set_procmon_ref_values()
[all …]
/linux-6.14.4/drivers/scsi/isci/
Dphy.h7 * 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 …]
/linux-6.14.4/Documentation/translations/zh_CN/driver-api/phy/
Dphy.rst1 .. SPDX-License-Identifier: GPL-2.0
2 .. include:: ../../disclaimer-zh_CN.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 该框架仅适用于使用外部 PHYPHY 功能未嵌入控制器内)的设备。
[all …]
/linux-6.14.4/drivers/net/wireless/broadcom/b43/
Dphy_common.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 Common PHY routines
7 Copyright (c) 2005 Martin Langer <martin-[email protected]>,
8 Copyright (c) 2005-2007 Stefano Brivio <[email protected]>
9 Copyright (c) 2005-2008 Michael Buesch <[email protected]>
10 Copyright (c) 2005, 2006 Danny van Dyk <[email protected]>
11 Copyright (c) 2005, 2006 Andreas Jaggi <[email protected]>
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 …]
Dlo.c1 // SPDX-License-Identifier: GPL-2.0-or-later
6 G PHY LO (LocalOscillator) Measuring and Control routines
8 Copyright (c) 2005 Martin Langer <martin-[email protected]>,
9 Copyright (c) 2005, 2006 Stefano Brivio <[email protected]>
10 Copyright (c) 2005-2007 Michael Buesch <[email protected]>
11 Copyright (c) 2005, 2006 Danny van Dyk <[email protected]>
12 Copyright (c) 2005, 2006 Andreas Jaggi <[email protected]>
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 …]
/linux-6.14.4/drivers/net/wireless/mediatek/mt76/mt7915/
Dinit.c1 // 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 mutex_lock(&phy->dev->mt76.mutex); in mt7915_thermal_temp_show()
57 temperature = mt7915_mcu_get_temperature(phy); in mt7915_thermal_temp_show()
58 mutex_unlock(&phy->dev->mt76.mutex); in mt7915_thermal_temp_show()
66 phy->throttle_temp[i - 1] * 1000); in mt7915_thermal_temp_show()
68 return sprintf(buf, "%hhu\n", phy->throttle_state); in mt7915_thermal_temp_show()
[all …]
/linux-6.14.4/drivers/phy/allwinner/
Dphy-sun50i-usb3.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Allwinner sun50i(H6) USB 3.0 phy driver
5 * Copyright (C) 2017 Icenowy Zheng <[email protected]>
7 * Based on phy-sun9i-usb.c, which is:
9 * Copyright (C) 2014-2015 Chen-Yu Tsai <[email protected]>
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 …]
/linux-6.14.4/Documentation/networking/
Dkapi.rst9 ---------------------
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 …]
Dphy-link-topology.rst1 .. SPDX-License-Identifier: GPL-2.0
5 PHY link topology
11 The PHY link topology representation in the networking stack aims at representing
15 :c:type:`struct net_device <net_device>`, which exposes configuration options
19 +-----------------------+ +----------+ +--------------+
21 | MAC | ------ | PHY | ---- | Port | ---... to LP
22 +-----------------------+ +----------+ +--------------+
25 Commands that needs to configure the PHY will go through the net_device.phydev
26 field to reach the PHY and perform the relevant configuration.
37 +-----+ SGMII +------------+
[all …]
/linux-6.14.4/Documentation/devicetree/bindings/phy/
Dphy-rockchip-usbdp.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/phy/phy-rockchip-usbdp.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Rockchip USBDP Combo PHY with Samsung IP block
10 - Frank Wang <frank.wang@rock-chips.com>
11 - Zhang Yubing <yubing.zhang@rock-chips.com>
16 - rockchip,rk3576-usbdp-phy
17 - rockchip,rk3588-usbdp-phy
22 "#phy-cells":
[all …]
/linux-6.14.4/arch/powerpc/boot/dts/fsl/
Dt2081qds.dts4 * 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 …]
Dt2080qds.dts4 * 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 …]
/linux-6.14.4/arch/arm64/boot/dts/freescale/
Dtqmls104xa-mbls10xxa-fman.dtsi1 // SPDX-License-Identifier: (GPL-2.0-or-later OR MIT)
3 * Copyright (c) 2019,2023 TQ-Systems GmbH <[email protected]-group.com>,
4 * D-82229 Seefeld, Germany.
10 #include <dt-bindings/net/ti-dp83867.h>
21 phy-handle = <&rgmii_phy1>;
22 phy-connection-type = "rgmii";
23 phy-mode = "rgmii-id";
28 phy-handle = <&rgmii_phy2>;
29 phy-connection-type = "rgmii";
30 phy-mode = "rgmii-id";
[all …]
Dtqmls1088a-mbls10xxa-mc.dtsi1 // SPDX-License-Identifier: (GPL-2.0-or-later OR MIT)
3 * Copyright (c) 2018-2023 TQ-Systems GmbH <[email protected]-group.com>,
4 * D-82229 Seefeld, Germany.
10 #include <dt-bindings/net/ti-dp83867.h>
15 i2c-bus = <&sfp1_i2c>;
16 mod-def0-gpios = <&gpioexp2 2 GPIO_ACTIVE_LOW>;
17 los-gpios = <&gpioexp2 3 GPIO_ACTIVE_HIGH>;
18 tx-fault-gpios = <&gpioexp2 0 GPIO_ACTIVE_HIGH>;
19 tx-disable-gpios = <&gpioexp2 1 GPIO_ACTIVE_HIGH>;
24 i2c-bus = <&sfp2_i2c>;
[all …]
Dfsl-ls1043a-qds.dts1 // 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 …]
/linux-6.14.4/drivers/net/wireless/mediatek/mt76/mt7996/
Dinit.c1 // SPDX-License-Identifier: ISC
3 * Copyright (C) 2022 MediaTek Inc.
9 #include <linux/hwmon-sysfs.h>
70 struct mt7996_phy *phy = dev_get_drvdata(dev); in mt7996_thermal_temp_show() local
71 int i = to_sensor_dev_attr(attr)->index; in mt7996_thermal_temp_show()
76 temperature = mt7996_mcu_get_temperature(phy); in mt7996_thermal_temp_show()
84 phy->throttle_temp[i - 1] * 1000); in mt7996_thermal_temp_show()
86 return sprintf(buf, "%hhu\n", phy->throttle_state); in mt7996_thermal_temp_show()
88 return -EINVAL; in mt7996_thermal_temp_show()
96 struct mt7996_phy *phy = dev_get_drvdata(dev); in mt7996_thermal_temp_store() local
[all …]
/linux-6.14.4/Documentation/driver-api/phy/
Dphy.rst2 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 …]
/linux-6.14.4/drivers/net/phy/
Dax88796b_rust.rs1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright (C) 2023 FUJITA Tomonori <[email protected]>
6 //! C version of this driver: [`drivers/net/phy/ax88796b.c`](./ax88796b.c)
9 net::phy::{self, reg::C22, DeviceId, Driver},
30 // Performs a software PHY reset using the standard
32 // Toggle BMCR_RESET bit off to accommodate broken AX8796B PHY implementation
33 // such as used on the Individual Computers' X-Surf 100 Zorro card.
34 fn asix_soft_reset(dev: &mut phy::Device) -> Result { in asix_soft_reset()
43 const FLAGS: u32 = phy::flags::IS_INTERNAL;
50 fn read_status(dev: &mut phy::Device) -> Result<u16> { in read_status()
[all …]
/linux-6.14.4/drivers/scsi/libsas/
Dsas_phy.c1 // 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 <[email protected]>
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 …]
/linux-6.14.4/drivers/phy/mediatek/
Dphy-mtk-xfi-tphy.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * MediaTek 10GE SerDes XFI T-PHY driver
5 * Copyright (c) 2024 Daniel Golle <[email protected]>
6 * Bc-bocun Chen <bc-[email protected]>
7 * based on mtk_usxgmii.c and mtk_sgmii.c found in MediaTek's SDK (GPL-2.0)
8 * Copyright (c) 2022 MediaTek Inc.
19 #include <linux/phy.h>
20 #include <linux/phy/phy.h>
22 #include "phy-mtk-io.h"
60 * struct mtk_xfi_tphy - run-time data of the XFI phy instance
[all …]
/linux-6.14.4/drivers/dma/
Dk3dma.c1 // 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>
22 #include "virt-dma.h"
24 #define DRIVER_NAME "k3-dma"
82 struct k3_dma_phy *phy; member
104 struct k3_dma_phy *phy; member
133 static void k3_dma_pause_dma(struct k3_dma_phy *phy, bool on) in k3_dma_pause_dma() argument
138 val = readl_relaxed(phy->base + CX_CFG); in k3_dma_pause_dma()
[all …]
/linux-6.14.4/drivers/nfc/s3fwrn5/
Dphy_common.c1 // 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 …]
/linux-6.14.4/drivers/net/ethernet/ibm/emac/
Dphy.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * drivers/net/ethernet/ibm/emac/phy.c
5 * Driver for PowerPC 4xx on-chip ethernet controller, PHY support.
6 * Borrowed from sungem_phy.c, though I only kept the generic MII
17 * (c) 2003, Benjamin Herrenscmidt ([email protected])
18 * (c) 2004-2005, Eugene Surovegin <[email protected]>
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
[all …]
/linux-6.14.4/drivers/gpu/drm/msm/hdmi/
Dhdmi_phy_8x60.c1 // 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 …]
/linux-6.14.4/drivers/phy/broadcom/
Dphy-bcm-kona-usb2.c1 // 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 …]

12345678910>>...42