| /linux/drivers/net/dsa/mv88e6xxx/ |
| H A D | leds.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 40 err = mv88e6xxx_port_led_read(p->chip, p->port, in mv88e6xxx_led_brightness_set() 67 return mv88e6xxx_port_led_write(p->chip, p->port, reg); in mv88e6xxx_led_brightness_set() 76 mv88e6xxx_reg_lock(p->chip); in mv88e6xxx_led0_brightness_set_blocking() 78 mv88e6xxx_reg_unlock(p->chip); in mv88e6xxx_led0_brightness_set_blocking() 89 mv88e6xxx_reg_lock(p->chip); in mv88e6xxx_led1_brightness_set_blocking() 91 mv88e6xxx_reg_unlock(p->chip); in mv88e6xxx_led1_brightness_set_blocking() 100 bool fiber; member 106 * certain LED given restrictions such as that some rules only work with fiber 117 * different tables per-family here. [all …]
|
| /linux/Documentation/devicetree/bindings/net/ |
| H A D | qcom,qca807x.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Christian Marangi <ansuelsmth@gmail.com> 11 - Robert Marko <robert.marko@sartura.hr> 15 IEEE 802.3 clause 22 compliant 10BASE-Te, 100BASE-TX and 16 1000BASE-T PHY-s. 19 MAC, while second one is SGMII for connection to MAC or fiber. 21 Both models have a combo port that supports 1000BASE-X and 22 100BASE-FX fiber. [all …]
|
| H A D | ti,dp83869.yaml | 1 # SPDX-License-Identifier: (GPL-2.0+ OR BSD-2-Clause) 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - $ref: ethernet-phy.yaml# 14 - Andrew Davis <afd@ti.com> 17 The DP83869HM device is a robust, fully-featured Gigabit (PHY) transceiver 18 with integrated PMD sublayers that supports 10BASE-Te, 100BASE-TX and 19 1000BASE-T Ethernet protocols. The DP83869 also supports 1000BASE-X and 20 100BASE-FX Fiber protocols. 22 SGMII The DP83869HM supports Media Conversion in Managed mode. In this mode, [all …]
|
| H A D | keystone-netcp.txt | 6 switch sub-module to send and receive packets. NetCP also includes a packet 13 includes a 3-port Ethernet switch sub-module capable of 10Gb/s and 1Gb/s rates 16 Keystone NetCP driver has a plug-in module architecture where each of the NetCP 17 sub-modules exist as a loadable kernel module which plug in to the netcp core. 18 These sub-modules are represented as "netcp-devices" in the dts bindings. It is 19 mandatory to have the ethernet switch sub-module for the ethernet interface to 20 be operational. Any other sub-module like the PA is optional. 24 ----------------------------- 26 ----------------------------- 28 |-> NetCP Devices -> | [all …]
|
| /linux/drivers/net/ethernet/intel/e1000/ |
| H A D | e1000_param.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 1999 - 2006 Intel Corporation. */ 12 #define OPTION_UNSET -1 30 * Valid Range: 80-256 for 82542 and 82543 gigabit ethernet controllers 31 * Valid Range: 80-4096 for 82544 and newer 39 * Valid Range: 80-256 for 82542 and 82543 gigabit ethernet controllers 40 * Valid Range: 80-4096 for 82544 and newer 49 * - 0 - auto-negotiate at all supported speeds 50 * - 10 - only link at 10 Mbps 51 * - 100 - only link at 100 Mbps [all …]
|
| /linux/drivers/net/hippi/ |
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 11 1600Mbit/sec dual-simplex switched or point-to-point network. HIPPI 12 can run over copper (25m) or fiber (300m on multi-mode or 10km on 13 single-mode). HIPPI networks are commonly used for clusters and to
|
| /linux/drivers/net/ |
| H A D | sungem_phy.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 * (c) 2002-2007, Benjamin Herrenscmidt (benh@kernel.crashing.org) 10 * - Add support for PHYs that provide an IRQ line 11 * - Eventually moved the entire polling state machine in 14 * - On LXT971 & BCM5201, Apple uses some chip specific regs 17 * - Apple has some additional power management code for some 49 return phy->mdio_read(phy->dev, id, reg); in __sungem_phy_read() 54 phy->mdio_write(phy->dev, id, reg, val); in __sungem_phy_write() 59 return phy->mdio_read(phy->dev, phy->mii_id, reg); in sungem_phy_read() 64 phy->mdio_write(phy->dev, phy->mii_id, reg, val); in sungem_phy_write() [all …]
|
| /linux/drivers/net/dsa/microchip/ |
| H A D | ksz8.c | 1 // SPDX-License-Identifier: GPL-2.0 6 * - KSZ8463 7 * - KSZ8863, KSZ8873 aka KSZ88X3 8 * - KSZ8895, KSZ8864 aka KSZ8895 family 9 * - KSZ8794, KSZ8795, KSZ8765 aka KSZ87XX 11 * - KSZ8563, KSZ8567 - see KSZ9477 driver 24 #include <linux/platform_data/microchip-ksz.h> 45 ksz_rmw8(dev, dev->dev_ops->get_port_addr(port, offset), bits, in ksz_port_cfg() 50 * ksz8_ind_write8 - EEE/ACL/PME indirect register write 57 * PME switch functionalities. Both 8-bit registers 110 and 111 are [all …]
|
| H A D | ksz_common.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 4 * Copyright (C) 2017-2025 Microchip Technology Inc. 13 #include <linux/pcs/pcs-xpcs.h> 18 #include <linux/platform_data/microchip-ksz.h> 133 u32 fiber:1; /* port is fiber */ member 362 * @mdio_bus_preinit: Function pointer to pre-initialize the MDIO bus 371 * and setting up access permissions for the selected mode. 374 * - 0 on success. 375 * - Negative error code on failure. 380 * @create_phy_addr_map: Function pointer to create a port-to-PHY [all …]
|
| /linux/drivers/net/ethernet/intel/e1000e/ |
| H A D | mac.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 1999 - 2018 Intel Corporation. */ 9 * e1000e_get_bus_info_pcie - Get PCIe bus information 18 struct pci_dev *pdev = hw->adapter->pdev; in e1000e_get_bus_info_pcie() 19 struct e1000_mac_info *mac = &hw->mac; in e1000e_get_bus_info_pcie() 20 struct e1000_bus_info *bus = &hw->bus; in e1000e_get_bus_info_pcie() 24 bus->width = e1000_bus_width_unknown; in e1000e_get_bus_info_pcie() 27 bus->width = (enum e1000_bus_width)FIELD_GET(PCI_EXP_LNKSTA_NLW, in e1000e_get_bus_info_pcie() 31 mac->ops.set_lan_id(hw); in e1000e_get_bus_info_pcie() 37 * e1000_set_lan_id_multi_port_pcie - Set LAN id for PCIe multiple port devices [all …]
|
| H A D | 82571.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 1999 - 2018 Intel Corporation. */ 6 * 82571EB Gigabit Ethernet Controller (Fiber) 11 * 82572EI Gigabit Ethernet Controller (Fiber) 42 * e1000_init_phy_params_82571 - Init PHY func ptrs. 47 struct e1000_phy_info *phy = &hw->phy; in e1000_init_phy_params_82571() 50 if (hw->phy.media_type != e1000_media_type_copper) { in e1000_init_phy_params_82571() 51 phy->type = e1000_phy_none; in e1000_init_phy_params_82571() 55 phy->addr = 1; in e1000_init_phy_params_82571() 56 phy->autoneg_mask = AUTONEG_ADVERTISE_SPEED_DEFAULT; in e1000_init_phy_params_82571() [all …]
|
| /linux/Documentation/networking/device_drivers/ethernet/intel/ |
| H A D | e1000e.rst | 1 .. SPDX-License-Identifier: GPL-2.0+ 8 Copyright(c) 2008-2018 Intel Corporation. 13 - Identifying Your Adapter 14 - Command Line Parameters 15 - Additional Configurations 16 - Support 48 --------------------- 49 :Valid Range: 0,1,3,4,100-100000 82 - 0: Off 86 - 1: Dynamic mode [all …]
|
| H A D | e1000.rst | 1 .. SPDX-License-Identifier: GPL-2.0+ 8 Copyright(c) 1999 - 2013 Intel Corporation. 13 - Identifying Your Adapter 14 - Command Line Parameters 15 - Speed and Duplex Configuration 16 - Additional Configurations 17 - Support 50 ------- 54 :Valid Range: 0x01-0x0F, 0x20-0x2F 57 This parameter is a bit-mask that specifies the speed and duplex settings [all …]
|
| /linux/drivers/net/ethernet/marvell/ |
| H A D | sky2.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 30 /* Yukon-2 */ 32 PCI_Y2_PIG_ENA = 1<<31, /* Enable Plug-in-Go (YUKON-2) */ 33 PCI_Y2_DLL_DIS = 1<<30, /* Disable PCI DLL (YUKON-2) */ 34 PCI_SW_PWR_ON_RST= 1<<30, /* SW Power on Reset (Yukon-EX) */ 35 PCI_Y2_PHY2_COMA = 1<<29, /* Set PHY 2 to Coma Mode (YUKON-2) */ 36 PCI_Y2_PHY1_COMA = 1<<28, /* Set PHY 1 to Coma Mode (YUKON-2) */ 37 PCI_Y2_PHY2_POWD = 1<<27, /* Set PHY 2 to Power Down (YUKON-2) */ 38 PCI_Y2_PHY1_POWD = 1<<26, /* Set PHY 1 to Power Down (YUKON-2) */ 39 PCI_Y2_PME_LEGACY= 1<<15, /* PCI Express legacy power management mode */ [all …]
|
| H A D | skge.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 133 CS_CLK_RUN_HOT = 1<<13,/* CLK_RUN hot m. (YUKON-Lite only) */ 134 CS_CLK_RUN_RST = 1<<12,/* CLK_RUN reset (YUKON-Lite only) */ 135 CS_CLK_RUN_ENA = 1<<11,/* CLK_RUN enable (YUKON-Lite only) */ 262 CHIP_ID_YUKON_LITE = 0xb1, /* Chip ID for YUKON-Lite (Rev. A1-A3) */ 263 CHIP_ID_YUKON_LP = 0xb2, /* Chip ID for YUKON-LP */ 264 CHIP_ID_YUKON_XL = 0xb3, /* Chip ID for YUKON-2 XL */ 265 CHIP_ID_YUKON_EC = 0xb6, /* Chip ID for YUKON-2 EC */ 266 CHIP_ID_YUKON_FE = 0xb7, /* Chip ID for YUKON-2 FE */ 268 CHIP_REV_YU_LITE_A1 = 3, /* Chip Rev. for YUKON-Lite A1,A2 */ [all …]
|
| /linux/drivers/atm/ |
| H A D | fore200e.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 52 #define RSD_REQUIRED (((MAX_PDU_SIZE - SMALL_BUFFER_SIZE + LARGE_BUFFER_SIZE) / LARGE_BUFFER_SIZE)… 56 /* RSD_REQUIRED receive segment descriptors are enough to describe a max-sized PDU, 61 #define RSD_EXTENSION ((RSD_REQUIRED - RSD_FIXED) + 1) 65 #define FORE200E_DEV(d) ((struct fore200e*)((d)->dev_data)) 66 #define FORE200E_VCC(d) ((struct fore200e_vcc*)((d)->dev_data)) 256 OPCODE_SET_OC3, /* set OC-3 registers */ 257 OPCODE_GET_OC3, /* get OC-3 registers */ 318 /* OC-3 registers */ 321 u32 reg[ 128 ]; /* see the PMC Sierra PC5346 S/UNI-155-Lite [all …]
|
| /linux/drivers/net/phy/ |
| H A D | dp83822.c | 1 // SPDX-License-Identifier: GPL-2.0 158 #define DP83822_LED_FN_LPI_MODE 0xb /* LPI Mode (EEE) */ 163 /* SOR1 mode */ 215 struct net_device *ndev = phydev->attached_dev; in dp83822_config_wol() 219 if (wol->wolopts & (WAKE_MAGIC | WAKE_MAGICSECURE)) { in dp83822_config_wol() 220 mac = (const u8 *)ndev->dev_addr; in dp83822_config_wol() 223 return -EINVAL; in dp83822_config_wol() 237 if (wol->wolopts & WAKE_MAGIC) in dp83822_config_wol() 242 if (wol->wolopts & WAKE_MAGICSECURE) { in dp83822_config_wol() 245 (wol->sopass[1] << 8) | wol->sopass[0]); in dp83822_config_wol() [all …]
|
| H A D | sfp.c | 1 // SPDX-License-Identifier: GPL-2.0 9 #include <linux/mdio/mdio-i2c.h> 149 "mod-def0", 151 "tx-fault", 152 "tx-disable", 153 "rate-select0", 154 "rate-select1", 166 /* t_start_up (SFF-8431) or t_init (SFF-8472) is the time required for a 167 * non-cooled module to initialise its laser safety circuitry. We wait 199 * The SFF-8472 specifies t_serial ("Time from power on until module is [all …]
|
| /linux/drivers/net/ethernet/asix/ |
| H A D | ax88796c_main.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 190 #define WFCR_SLEEP BIT(4) /* Enable sleep mode */ 191 #define WFCR_WAKEUP BIT(5) /* Enable wakeup mode */ 207 #define PSCR_FPS BIT(3) /* Enable fiber mode PS */ 215 #define PSCR_FOF BIT(9) /* Force PHY in fiber mode */ 232 #define MACCR_PSI BIT(6) /* Software Cable-Off */ 529 /* bit 15-11: flags, bit 10-0: packet length */ 531 /* bit 15-11: sequence number, bit 11-0: packet length bar */ 536 /* bit 15-14: flags, bit 13-11: segment number */ 537 /* bit 10-0: segment length */ [all …]
|
| /linux/drivers/net/ethernet/hisilicon/hns/ |
| H A D | hns_dsaf_mac.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (c) 2014-2015 Hisilicon Limited. 57 switch (mac_cb->max_speed) { in hns_get_enet_interface() 59 return g_mac_mode_100[mac_cb->phy_if]; in hns_get_enet_interface() 61 return g_mac_mode_1000[mac_cb->phy_if]; in hns_get_enet_interface() 77 if (!mac_ctrl_drv->get_link_status) in hns_mac_link_anti_shake() 82 mac_ctrl_drv->get_link_status(mac_ctrl_drv, &link_status); in hns_mac_link_anti_shake() 97 if (mac_ctrl_drv->get_link_status) in hns_mac_get_link_status() 98 mac_ctrl_drv->get_link_status(mac_ctrl_drv, link_status); in hns_mac_get_link_status() 102 if (mac_cb->media_type == HNAE_MEDIA_TYPE_FIBER) { in hns_mac_get_link_status() [all …]
|
| /linux/drivers/scsi/bfa/ |
| H A D | bfa_defs.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Copyright (c) 2005-2014 Brocade Communications Systems, Inc. 4 * Copyright (c) 2014- QLogic Corporation. 8 * Linux driver for QLogic BR-series Fibre Channel Host Bus Adapter. 34 BFA_MFG_TYPE_LIGHTNING_P0 = 902, /* Lightning mezz card - old */ 102 * All numerical fields are in big-endian format. 125 BFA_STATUS_ETIMER = 5, /* Timer expired - Retry, if persists, 129 BFA_STATUS_SFP_UNSUPP = 10, /* Unsupported SFP - Replace SFP */ 132 BFA_STATUS_DEVBUSY = 13, /* Device busy - Retry operation */ 148 BFA_STATUS_IOC_FAILURE = 56, /* IOC failure - Retry, if persists [all …]
|
| /linux/drivers/net/fddi/ |
| H A D | defza.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 2 /* FDDI network adapter driver for DEC FDDIcontroller 700/700-C devices. 36 #define FZA_RESET_CLR 0x0000 /* run self-test and return to work */ 43 #define FZA_EVENT_NXM_ERR 0x0080 /* non-existent memory access error; 45 * unsupported partial-word accesses 93 #define FZA_HALT_HOST 0x01 /* host-directed HALT */ 95 #define FZA_HALT_NXM 0x03 /* adapter non-existent memory ref. */ 102 #define FZA_TEST_FATAL 0x00 /* self-test catastrophic failure */ 106 #define FZA_TEST_SRAM_STUCK1 0x04 /* SRAM stuck-at range 1 */ 107 #define FZA_TEST_SRAM_STUCK2 0x05 /* SRAM stuck-at range 2 */ [all …]
|
| /linux/drivers/hid/ |
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 22 most commonly used to refer to the USB-HID specification, but other 27 removed from the HID bus by the transport-layer drivers, such as 58 to work on raw hid events when they want to, and avoid using transport-specific 64 tristate "User-space I/O driver support for HID subsystem" 67 Say Y here if you want to provide HID I/O Drivers from user-space. 68 This allows to write I/O drivers in user-space and feed the data from 71 user-space device. 73 This driver cannot be used to parse HID-reports in user-space and write 74 special HID-drivers. You should use hidraw for that. [all …]
|
| /linux/drivers/net/phy/mscc/ |
| H A D | mscc_ptp.c | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 3 * Driver for Microsemi VSC85xx PHYs - timestamping and PHC support 27 /* phydev->bus->mdio_lock should be locked when using this function */ 30 struct vsc8531_private *priv = phydev->priv; in phy_ts_base_write() 32 WARN_ON_ONCE(!mutex_is_locked(&phydev->mdio.bus->mdio_lock)); in phy_ts_base_write() 33 return __mdiobus_write(phydev->mdio.bus, priv->ts_base_addr, regnum, in phy_ts_base_write() 37 /* phydev->bus->mdio_lock should be locked when using this function */ 40 struct vsc8531_private *priv = phydev->priv; in phy_ts_base_read() 42 WARN_ON_ONCE(!mutex_is_locked(&phydev->mdio.bus->mdio_lock)); in phy_ts_base_read() 43 return __mdiobus_read(phydev->mdio.bus, priv->ts_base_addr, regnum); in phy_ts_base_read() [all …]
|
| /linux/drivers/net/ethernet/alacritech/ |
| H A D | slicoss.c | 1 // SPDX-License-Identifier: GPL-2.0-only 17 #include <linux/dma-mapping.h> 66 return (idx + 1) & (qlen - 1); in slic_next_queue_idx() 74 return (qlen - (put_idx - done_idx) - 1); in slic_get_free_queue_descs() 75 return (done_idx - put_idx - 1); in slic_get_free_queue_descs() 80 struct slic_stat_queue *stq = &sdev->stq; in slic_next_compl_idx() 81 unsigned int active = stq->active_array; in slic_next_compl_idx() 86 descs = stq->descs[active]; in slic_next_compl_idx() 87 stat = &descs[stq->done_idx]; in slic_next_compl_idx() 89 if (!stat->status) in slic_next_compl_idx() [all …]
|