/linux-6.12.1/drivers/net/wireless/mediatek/mt76/mt7915/ |
D | debugfs.c | 1 // SPDX-License-Identifier: ISC 29 dev->ibf = !!val; in mt7915_implicit_txbf_set() 39 *val = dev->ibf; in mt7915_implicit_txbf_get() 52 struct mt7915_phy *phy = file->private_data; in mt7915_sys_recovery_set() local 53 struct mt7915_dev *dev = phy->dev; in mt7915_sys_recovery_set() 54 bool band = phy->mt76->band_idx; in mt7915_sys_recovery_set() 60 return -EINVAL; in mt7915_sys_recovery_set() 63 return -EFAULT; in mt7915_sys_recovery_set() 65 if (count && buf[count - 1] == '\n') in mt7915_sys_recovery_set() 66 buf[count - 1] = '\0'; in mt7915_sys_recovery_set() [all …]
|
/linux-6.12.1/drivers/scsi/mpt3sas/ |
D | mpt3sas_transport.c | 5 * Copyright (C) 2012-2014 LSI Corporation 6 * Copyright (C) 2013-2014 Avago Technologies 7 * (mailto: MPT-FusionLinux.pdl@avagotech.com) 22 * LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, 41 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 64 * _transport_get_port_id_by_sas_phy - get zone's port id that Phy belong to 65 * @phy: sas_phy object 70 _transport_get_port_id_by_sas_phy(struct sas_phy *phy) in _transport_get_port_id_by_sas_phy() argument 73 struct hba_port *port = phy->hostdata; in _transport_get_port_id_by_sas_phy() 76 port_id = port->port_id; in _transport_get_port_id_by_sas_phy() [all …]
|
/linux-6.12.1/drivers/phy/ti/ |
D | phy-ti-pipe3.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * phy-ti-pipe3 - PIPE3 PHY driver. 5 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com 13 #include <linux/phy/phy.h> 20 #include <linux/phy/omap_control_phy.h> 216 /* DRA75x TRM Table 26-17 Preferred USB3_PHY_RX SCP Register Settings */ 242 /* DRA75x TRM Table 26-9 Preferred SATA_PHY_RX SCP Register Settings */ 267 /* DRA75x TRM Table 26-62 Preferred PCIe_PHY_RX SCP Register Settings */ 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() [all …]
|
D | phy-dm816x-usb.c | 1 // SPDX-License-Identifier: GPL-2.0-only 15 #include <linux/phy/phy.h> 22 * phy as being SR70LX Synopsys USB 2.0 OTG nanoPHY. It also seems at 24 * kernel is writing to those so it's possible that later revisions 28 * according to the TRM. It's possible that USBPHY_CTRL is more generic, 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 54 otg->host = host; in dm816x_usb_phy_set_host() [all …]
|
/linux-6.12.1/drivers/scsi/mpi3mr/ |
D | mpi3mr_transport.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (C) 2017-2023 Broadcom Inc. 6 * (mailto: mpi3mr-linuxdrv.pdl@broadcom.com) 15 * mpi3mr_post_transport_req - Issue transport requests and wait 33 * Return: 0 on success, non-zero on failure. 41 mutex_lock(&mrioc->transport_cmds.mutex); in mpi3mr_post_transport_req() 42 if (mrioc->transport_cmds.state & MPI3MR_CMD_PENDING) { in mpi3mr_post_transport_req() 43 retval = -1; in mpi3mr_post_transport_req() 45 mutex_unlock(&mrioc->transport_cmds.mutex); in mpi3mr_post_transport_req() 48 mrioc->transport_cmds.state = MPI3MR_CMD_PENDING; in mpi3mr_post_transport_req() [all …]
|
/linux-6.12.1/drivers/dma/ |
D | pxa_dma.c | 1 // SPDX-License-Identifier: GPL-2.0-only 11 #include <linux/dma-mapping.h> 21 #include <linux/dma/pxa-dma.h> 24 #include "virt-dma.h" 35 #define PXA_DCSR_NODESC BIT(30) /* No-Descriptor Fetch (read / write) */ 37 #define PXA_DCSR_REQPEND BIT(8) /* Request Pending (read-only) */ 38 #define PXA_DCSR_STOPSTATE BIT(3) /* Stop State (read-only) */ 63 #define PXA_DCMD_ENDIAN BIT(18) /* Device Endian-ness. */ 70 #define PXA_DCMD_LENGTH 0x01fff /* length mask (max = 8K - 1) */ 73 #define PDMA_MAX_DESC_BYTES (PXA_DCMD_LENGTH & ~((1 << PDMA_ALIGNMENT) - 1)) [all …]
|
/linux-6.12.1/drivers/net/fddi/skfp/ |
D | pcmplc.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 67 #define GO_STATE(x) (mib->fddiPORTPCMState = (x)|AFLAG) 68 #define ACTIONS_DONE() (mib->fddiPORTPCMState &= ~AFLAG) 109 * PCL-S control register 110 * this register in the PLC-S controls the scrambling parameters 121 * PCL-S control register 122 * this register in the PLC-S controls the scrambling parameters 152 #define PLC_MS(m) ((int)((0x10000L-(m*100000L/2048)))) 191 static void pcm_fsm(struct s_smc *smc, struct s_phy *phy, int cmd); 192 static void pc_rcode_actions(struct s_smc *smc, int bit, struct s_phy *phy); [all …]
|
/linux-6.12.1/Documentation/networking/ |
D | phy.rst | 2 PHY Abstraction Layer 10 PHY. The PHY concerns itself with negotiating link parameters with the link 17 the PHY management code with the network driver. This has resulted in large 23 accessed are, in fact, busses, the PHY Abstraction Layer treats them as such. 26 #. Increase code-reuse 27 #. Increase overall code-maintainability 30 Basically, this layer is meant to provide an interface to PHY devices which 37 Most network devices are connected to a PHY by means of a management bus. 47 mii_id is the address on the bus for the PHY, and regnum is the register 57 mdiobus_register. Similarly, there's a remove function to undo all of [all …]
|
/linux-6.12.1/drivers/scsi/aic94xx/ |
D | aic94xx_scb.c | 1 // SPDX-License-Identifier: GPL-2.0-only 19 /* ---------- EMPTY SCB ---------- */ 36 static void get_lrate_mode(struct asd_phy *phy, u8 oob_mode) in get_lrate_mode() argument 38 struct sas_phy *sas_phy = phy->sas_phy.phy; in get_lrate_mode() 43 phy->sas_phy.linkrate = SAS_LINK_RATE_6_0_GBPS; in get_lrate_mode() 44 phy->sas_phy.phy->negotiated_linkrate = SAS_LINK_RATE_6_0_GBPS; in get_lrate_mode() 47 phy->sas_phy.linkrate = SAS_LINK_RATE_3_0_GBPS; in get_lrate_mode() 48 phy->sas_phy.phy->negotiated_linkrate = SAS_LINK_RATE_3_0_GBPS; in get_lrate_mode() 51 phy->sas_phy.linkrate = SAS_LINK_RATE_1_5_GBPS; in get_lrate_mode() 52 phy->sas_phy.phy->negotiated_linkrate = SAS_LINK_RATE_1_5_GBPS; in get_lrate_mode() [all …]
|
/linux-6.12.1/net/mac802154/ |
D | main.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2007-2012 Siemens AG 28 while ((skb = skb_dequeue(&local->skb_queue))) { in ieee802154_tasklet_handler() 29 switch (skb->pkt_type) { in ieee802154_tasklet_handler() 31 /* Clear skb->pkt_type in order to not confuse kernel in ieee802154_tasklet_handler() 34 skb->pkt_type = 0; in ieee802154_tasklet_handler() 39 skb->pkt_type); in ieee802154_tasklet_handler() 49 struct wpan_phy *phy; in ieee802154_alloc_hw() local 53 if (WARN_ON(!ops || !(ops->xmit_async || ops->xmit_sync) || !ops->ed || in ieee802154_alloc_hw() 54 !ops->start || !ops->stop || !ops->set_channel)) in ieee802154_alloc_hw() [all …]
|
/linux-6.12.1/drivers/gpu/drm/i915/display/ |
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 …]
|
/linux-6.12.1/Documentation/devicetree/bindings/phy/ |
D | ti,phy-gmii-sel.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 # Copyright (C) 2020 Texas Instruments Incorporated - http://www.ti.com/ 4 --- 5 $id: http://devicetree.org/schemas/phy/ti,phy-gmii-sel.yaml# 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 8 title: CPSW Port's Interface Mode Selection PHY 11 - Kishon Vijay Abraham I <kishon@ti.com> 16 The interface mode is selected by configuring the MII mode selection register(s) 17 (GMII_SEL) in the System Control Module chapter (SCM). GMII_SEL register(s) and 20 +--------------+ [all …]
|
/linux-6.12.1/drivers/net/wireless/mediatek/mt76/mt7996/ |
D | debugfs.c | 1 // SPDX-License-Identifier: ISC 31 dev->ibf = !!val; in mt7996_implicit_txbf_set() 41 *val = dev->ibf; in mt7996_implicit_txbf_get() 54 struct mt7996_phy *phy = file->private_data; in mt7996_sys_recovery_set() local 55 struct mt7996_dev *dev = phy->dev; in mt7996_sys_recovery_set() 56 bool band = phy->mt76->band_idx; in mt7996_sys_recovery_set() 62 return -EINVAL; in mt7996_sys_recovery_set() 65 return -EFAULT; in mt7996_sys_recovery_set() 67 if (count && buf[count - 1] == '\n') in mt7996_sys_recovery_set() 68 buf[count - 1] = '\0'; in mt7996_sys_recovery_set() [all …]
|
/linux-6.12.1/drivers/phy/samsung/ |
D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 3 # Phy drivers for Samsung platforms 6 tristate "Exynos SoC series Display Port PHY driver" 12 Support for Display Port PHY found on Samsung Exynos SoCs. 15 tristate "S5P/Exynos SoC series MIPI CSI-2/DSI PHY driver" 21 Support for MIPI CSI-2 and MIPI DSI DPHY found on Samsung S5P 25 bool "Exynos PCIe PHY driver" 29 Enable PCIe PHY support for Exynos SoC series. 30 This driver provides PHY interface for Exynos PCIe controller. 33 tristate "Exynos SoC series UFS PHY driver" [all …]
|
D | phy-samsung-ufs.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * UFS PHY driver for Samsung EXYNOS SoC 13 #include <linux/phy/phy.h> 41 /* UFS PHY registers */ 47 /* description for PHY calibration */ 76 #define PWR_MODE(g, s, m) ((((g) & GR_MASK) << 4) |\ argument 77 (((s) & SR_MASK) << 2) | ((m) & MD_MASK)) 80 #define PWR_MODE_HS(g, s) ((((g) & GR_MASK) << 4) |\ argument 81 (((s) & SR_MASK) << 2) | PWR_DESC_HS) 86 /* PHY calibration point/state */ [all …]
|
/linux-6.12.1/net/ieee802154/ |
D | nl-phy.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 * Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> 25 #include "rdev-ops.h" 29 u32 seq, int flags, struct wpan_phy *phy) in ieee802154_nl_fill_phy() argument 35 pr_debug("%s\n", __func__); in ieee802154_nl_fill_phy() 38 return -EMSGSIZE; in ieee802154_nl_fill_phy() 46 if (nla_put_string(msg, IEEE802154_ATTR_PHY_NAME, wpan_phy_name(phy)) || in ieee802154_nl_fill_phy() 47 nla_put_u8(msg, IEEE802154_ATTR_PAGE, phy->current_page) || in ieee802154_nl_fill_phy() 48 nla_put_u8(msg, IEEE802154_ATTR_CHANNEL, phy->current_channel)) in ieee802154_nl_fill_phy() 51 if (phy->supported.channels[i]) in ieee802154_nl_fill_phy() [all …]
|
/linux-6.12.1/Documentation/devicetree/bindings/net/ |
D | ethernet-controller.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/net/ethernet-controller.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - David S. Miller <davem@davemloft.net> 19 local-mac-address: 22 $ref: /schemas/types.yaml#/definitions/uint8-array 26 mac-address: 31 local-mac-address property. 32 $ref: /schemas/types.yaml#/definitions/uint8-array [all …]
|
/linux-6.12.1/drivers/phy/hisilicon/ |
D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 3 # Phy drivers for Hisilicon platforms 6 tristate "hi6220 USB PHY support" 12 Enable this to support the HISILICON HI6220 USB PHY. 17 tristate "hi3660 USB PHY support" 22 Enable this to support the HISILICON HI3660 USB PHY. 27 tristate "hi3670 USB PHY support" 32 Enable this to support the HISILICON HI3670 USB PHY. 37 tristate "hi3670 PCIe PHY support" 42 Enable this to support the HiSilicon hi3670 PCIe PHY. [all …]
|
/linux-6.12.1/drivers/phy/ |
D | phy-core.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * phy-core.c -- Generic Phy framework. 5 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com 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 *phy = *(struct phy **)res; in devm_phy_consume() local 53 phy_destroy(phy); in devm_phy_consume() 58 struct phy **phy = res; in devm_phy_match() local [all …]
|
/linux-6.12.1/drivers/phy/freescale/ |
D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 6 tristate "Freescale i.MX8M USB3 PHY" 12 tristate "Mixel LVDS PHY support" 17 Enable this to add support for the Mixel LVDS PHY as found 18 on NXP's i.MX8qm SoC. 21 tristate "Mixel MIPI DSI PHY support" 27 Enable this to add support for the Mixel DSI PHY as found 28 on NXP's i.MX8 family of SOCs. 31 tristate "Freescale i.MX8M PCIE PHY" 35 Enable this to add support for the PCIE PHY as found on [all …]
|
/linux-6.12.1/net/caif/ |
D | cfcnfg.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) ST-Ericsson AB 2010 7 #define pr_fmt(fmt) KBUILD_MODNAME ":%s(): " fmt, __func__ 83 this->mux = cfmuxl_create(); in cfcnfg_create() 84 if (!this->mux) in cfcnfg_create() 86 this->ctrl = cfctrl_create(); in cfcnfg_create() 87 if (!this->ctrl) in cfcnfg_create() 90 resp = cfctrl_get_respfuncs(this->ctrl); in cfcnfg_create() 91 resp->enum_rsp = cfctrl_enum_resp; in cfcnfg_create() 92 resp->linkerror_ind = cfctrl_resp_func; in cfcnfg_create() [all …]
|
/linux-6.12.1/drivers/scsi/hisi_sas/ |
D | hisi_sas_main.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 11 ((!dev) || (dev->dev_type == SAS_PHY_UNUSED)) 26 switch (fis->command) { in hisi_sas_get_ata_protocol() 79 switch (fis->features) { in hisi_sas_get_ata_protocol() 105 struct task_status_struct *ts = &task->task_status; in hisi_sas_sata_done() 106 struct ata_task_resp *resp = (struct ata_task_resp *)ts->buf; in hisi_sas_sata_done() 109 u8 *iu = &status_buf->iu[0]; in hisi_sas_sata_done() 112 resp->frame_len = sizeof(struct dev_to_host_fis); in hisi_sas_sata_done() 113 memcpy(&resp->ending_fis[0], d2h, sizeof(struct dev_to_host_fis)); in hisi_sas_sata_done() 115 ts->buf_valid_size = sizeof(*resp); in hisi_sas_sata_done() [all …]
|
/linux-6.12.1/drivers/scsi/isci/ |
D | port.c | 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. 75 int i = iport->physical_port_index; in sciport_to_dev() 82 table = iport - i; in sciport_to_dev() 85 return &ihost->pdev->dev; in sciport_to_dev() 92 proto->all = 0; in sci_port_get_protocols() 94 struct isci_phy *iphy = iport->phy_table[index]; in sci_port_get_protocols() 109 if (iport->phy_table[index]) in sci_port_get_phys() 116 * sci_port_get_properties() - This method simply returns the properties [all …]
|
/linux-6.12.1/drivers/net/ethernet/chelsio/cxgb/ |
D | subr.c | 1 // SPDX-License-Identifier: GPL-2.0-only 14 * Copyright (c) 2003 - 2005 Chelsio Communications, Inc. * 40 * t1_wait_op_done - wait until an operation is completed 43 * @mask: a single-bit field within @reg that indicates completion 56 u32 val = readl(adapter->regs + reg) & mask; in t1_wait_op_done() 60 if (--attempts == 0) in t1_wait_op_done() 76 writel(addr, adapter->regs + A_TPI_ADDR); in __t1_tpi_write() 77 writel(value, adapter->regs + A_TPI_WR_DATA); in __t1_tpi_write() 78 writel(F_TPIWR, adapter->regs + A_TPI_CSR); in __t1_tpi_write() 83 pr_alert("%s: TPI write to 0x%x failed\n", in __t1_tpi_write() [all …]
|
/linux-6.12.1/include/linux/phy/ |
D | ulpi_phy.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #include <linux/phy/phy.h> 5 * Helper that registers PHY for a ULPI device and adds a lookup for binding it 6 * and it's controller, which is always the parent. 8 static inline struct phy 11 struct phy *phy; in ulpi_phy_create() local 14 phy = phy_create(&ulpi->dev, NULL, ops); in ulpi_phy_create() 15 if (IS_ERR(phy)) in ulpi_phy_create() 16 return phy; in ulpi_phy_create() 18 ret = phy_create_lookup(phy, "usb2-phy", dev_name(ulpi->dev.parent)); in ulpi_phy_create() [all …]
|