| /kernel/linux/linux-4.19/include/uapi/linux/ |
| D | mii.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 3 * linux/mii.h: definitions for MII-compatible transceivers 23 #define MII_CTRL1000 0x09 /* 1000BASE-T control */ 24 #define MII_STAT1000 0x0a /* 1000BASE-T status */ 30 #define MII_NWAYTEST 0x14 /* N-way auto-neg test reg */ 42 #define BMCR_SPEED1000 0x0040 /* MSB of Speed (1000) */ 55 #define BMSR_ERCAP 0x0001 /* Ext-reg capability */ 58 #define BMSR_ANEGCAPABLE 0x0008 /* Able to do auto-negotiation */ 60 #define BMSR_ANEGCOMPLETE 0x0020 /* Auto-negotiation complete */ 63 #define BMSR_100HALF2 0x0200 /* Can do 100BASE-T2 HDX */ [all …]
|
| /kernel/linux/linux-5.10/include/uapi/linux/ |
| D | mii.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 3 * linux/mii.h: definitions for MII-compatible transceivers 23 #define MII_CTRL1000 0x09 /* 1000BASE-T control */ 24 #define MII_STAT1000 0x0a /* 1000BASE-T status */ 30 #define MII_NWAYTEST 0x14 /* N-way auto-neg test reg */ 42 #define BMCR_SPEED1000 0x0040 /* MSB of Speed (1000) */ 55 #define BMSR_ERCAP 0x0001 /* Ext-reg capability */ 58 #define BMSR_ANEGCAPABLE 0x0008 /* Able to do auto-negotiation */ 60 #define BMSR_ANEGCOMPLETE 0x0020 /* Auto-negotiation complete */ 63 #define BMSR_100HALF2 0x0200 /* Can do 100BASE-T2 HDX */ [all …]
|
| /kernel/linux/linux-4.19/drivers/net/ethernet/chelsio/cxgb/ |
| D | mv88e1xxx.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 18 #define MII_GBCR 9 /* 1000Base-T control register */ 19 #define MII_GBSR 10 /* 1000Base-T status register */ 21 /* 1000Base-T control register fields */ 28 /* 1000Base-T status register fields */ 72 #define V_PSCR_MDI_XOVER_MODE(x) ((x) << S_PSCR_MDI_XOVER_MODE) argument 73 #define G_PSCR_MDI_XOVER_MODE(x) (((x) >> S_PSCR_MDI_XOVER_MODE) & M_PSCR_MDI_XOVER_MODE) argument 81 #define V_DOWNSHIFT_CNT(x) ((x) << S_DOWNSHIFT_CNT) argument 82 #define G_DOWNSHIFT_CNT(x) (((x) >> S_DOWNSHIFT_CNT) & M_DOWNSHIFT_CNT) argument 108 #define V_PSSR_CABLE_LEN(x) ((x) << S_PSSR_CABLE_LEN) argument [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb/ |
| D | mv88e1xxx.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 18 #define MII_GBCR 9 /* 1000Base-T control register */ 19 #define MII_GBSR 10 /* 1000Base-T status register */ 21 /* 1000Base-T control register fields */ 28 /* 1000Base-T status register fields */ 72 #define V_PSCR_MDI_XOVER_MODE(x) ((x) << S_PSCR_MDI_XOVER_MODE) argument 73 #define G_PSCR_MDI_XOVER_MODE(x) (((x) >> S_PSCR_MDI_XOVER_MODE) & M_PSCR_MDI_XOVER_MODE) argument 81 #define V_DOWNSHIFT_CNT(x) ((x) << S_DOWNSHIFT_CNT) argument 82 #define G_DOWNSHIFT_CNT(x) (((x) >> S_DOWNSHIFT_CNT) & M_DOWNSHIFT_CNT) argument 108 #define V_PSSR_CABLE_LEN(x) ((x) << S_PSSR_CABLE_LEN) argument [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/ti/ |
| D | netcp_sgmii.c | 1 // SPDX-License-Identifier: GPL-2.0 7 * Sandeep Paulraj <s-paulraj@ti.com> 8 * Wingman Kwok <w-kwok2@ti.com> 22 #define SGMII23_OFFSET(x) ((x - 2) * 0x100) argument 23 #define SGMII_OFFSET(x) ((x <= 1) ? (x * 0x100) : (SGMII23_OFFSET(x))) argument 26 #define SGMII_SRESET_REG(x) (SGMII_OFFSET(x) + 0x004) argument 27 #define SGMII_CTL_REG(x) (SGMII_OFFSET(x) + 0x010) argument 28 #define SGMII_STATUS_REG(x) (SGMII_OFFSET(x) + 0x014) argument 29 #define SGMII_MRADV_REG(x) (SGMII_OFFSET(x) + 0x018) argument 31 static void sgmii_write_reg(void __iomem *base, int reg, u32 val) in sgmii_write_reg() argument [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/net/ |
| 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 - Dan Murphy <dmurphy@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. 23 the DP83869HM can run 1000BASE-X-to-1000BASE-T and 100BASE-FX-to-100BASE-TX [all …]
|
| /kernel/linux/linux-4.19/drivers/net/ethernet/ti/ |
| D | netcp_sgmii.c | 6 * Sandeep Paulraj <s-paulraj@ti.com> 7 * Wingman Kwok <w-kwok2@ti.com> 29 #define SGMII23_OFFSET(x) ((x - 2) * 0x100) argument 30 #define SGMII_OFFSET(x) ((x <= 1) ? (x * 0x100) : (SGMII23_OFFSET(x))) argument 33 #define SGMII_SRESET_REG(x) (SGMII_OFFSET(x) + 0x004) argument 34 #define SGMII_CTL_REG(x) (SGMII_OFFSET(x) + 0x010) argument 35 #define SGMII_STATUS_REG(x) (SGMII_OFFSET(x) + 0x014) argument 36 #define SGMII_MRADV_REG(x) (SGMII_OFFSET(x) + 0x018) argument 38 static void sgmii_write_reg(void __iomem *base, int reg, u32 val) in sgmii_write_reg() argument 40 writel(val, base + reg); in sgmii_write_reg() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/phy/ |
| D | sfp-bus.c | 1 // SPDX-License-Identifier: GPL-2.0-only 20 * struct sfp_bus - internal representation of a sfp bus 50 /* Ubiquiti U-Fiber Instant module claims that support all transceiver in sfp_quirk_ubnt_uf_instant() 52 * modes and set only one mode which module supports: 1000baseX_Full. in sfp_quirk_ubnt_uf_instant() 55 phylink_set(modes, 1000baseX_Full); in sfp_quirk_ubnt_uf_instant() 60 // Alcatel Lucent G-010S-P can operate at 2500base-X, but 66 // Alcatel Lucent G-010S-A can operate at 2500base-X, but 72 // Huawei MA5671A can operate at 2500base-X, but report 1.2GBd 79 .part = "UF-INSTANT", 111 vs = sfp_strlen(id->base.vendor_name, ARRAY_SIZE(id->base.vendor_name)); in sfp_lookup_quirk() [all …]
|
| /kernel/linux/linux-4.19/drivers/net/phy/ |
| D | sfp-bus.c | 18 * struct sfp_bus - internal representation of a sfp bus 48 // Alcatel Lucent G-010S-P can operate at 2500base-X, but 54 // Alcatel Lucent G-010S-A can operate at 2500base-X, but 60 // Huawei MA5671A can operate at 2500base-X, but report 1.2GBd 95 vs = sfp_strlen(id->base.vendor_name, ARRAY_SIZE(id->base.vendor_name)); in sfp_lookup_quirk() 96 ps = sfp_strlen(id->base.vendor_pn, ARRAY_SIZE(id->base.vendor_pn)); in sfp_lookup_quirk() 99 if (sfp_match(q->vendor, id->base.vendor_name, vs) && in sfp_lookup_quirk() 100 sfp_match(q->part, id->base.vendor_pn, ps)) in sfp_lookup_quirk() 106 * sfp_parse_port() - Parse the EEPROM base ID, setting the port type 113 * %PORT_TP, %PORT_FIBRE or %PORT_OTHER. If @support is non-%NULL, [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/i915/ |
| D | i915_utils.h | 37 #define FDO_BUG_URL "https://gitlab.freedesktop.org/drm/intel/-/wikis/How-to-file-i915-bugs" 42 #define WARN_ON(x) ({ \ 43 bool __i915_warn_cond = (x); \ 46 WARN(__i915_warn_cond, "WARN_ON(" #x ")"); }) 48 #define WARN_ON(x) WARN((x), "%s", "WARN_ON(" __stringify(x) ")") argument 52 #define WARN_ON_ONCE(x) WARN_ONCE((x), "%s", "WARN_ON_ONCE(" __stringify(x) ")") argument 54 #define MISSING_CASE(x) WARN(1, "Missing case (%s == %ld)\n", \ argument 55 __stringify(x), (long)(x)) 79 #define i915_inject_probe_failure(i915) i915_inject_probe_error((i915), -ENODEV) 105 start__ >= max__ || size__ > max__ - start__; \ [all …]
|
| /kernel/linux/linux-5.10/drivers/cpufreq/ |
| D | armada-37xx-cpufreq.c | 1 // SPDX-License-Identifier: GPL-2.0+ 7 * Gregory CLEMENT <gregory.clement@free-electrons.com> 26 #include "cpufreq-dt.h" 66 #define ARMADA_37XX_AVS_VSET(x) (0x1C + 4 * (x)) argument 75 #define MIN_VOLT_MV 1000 109 /* {.cpu_freq_max = 1200*1000*1000, .divider = {1, 2, 4, 6} }, */ 110 {.cpu_freq_max = 1000*1000*1000, .divider = {1, 2, 4, 5} }, 111 {.cpu_freq_max = 800*1000*1000, .divider = {1, 2, 3, 4} }, 112 {.cpu_freq_max = 600*1000*1000, .divider = {2, 4, 5, 6} }, 132 static void __init armada37xx_cpufreq_dvfs_setup(struct regmap *base, in armada37xx_cpufreq_dvfs_setup() argument [all …]
|
| /kernel/linux/linux-4.19/drivers/isdn/hisax/ |
| D | elsa_ser.c | 51 u_int val = inb(cs->hw.elsa.base + 8 + offset); in serial_in() 52 debugl1(cs, "in %s %02x", ModemIn[offset], val); in serial_in() 55 return inb(cs->hw.elsa.base + 8 + offset); in serial_in() 63 u_int val = inb(cs->hw.elsa.base + 8 + offset); in serial_inp() 64 debugl1(cs, "inp %s %02x", ModemIn[offset], val); in serial_inp() 66 u_int val = inb_p(cs->hw.elsa.base + 8 + offset); in serial_inp() 67 debugl1(cs, "inP %s %02x", ModemIn[offset], val); in serial_inp() 72 return inb(cs->hw.elsa.base + 8 + offset); in serial_inp() 74 return inb_p(cs->hw.elsa.base + 8 + offset); in serial_inp() 82 debugl1(cs, "out %s %02x", ModemOut[offset], value); in serial_out() [all …]
|
| /kernel/linux/linux-5.10/arch/arm/boot/dts/ |
| D | vf610-zii-scu4-aib.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 // Copyright (C) 2016-2018 Zodiac Inflight Innovations 5 /dts-v1/; 10 compatible = "zii,vf610scu4-aib", "zii,vf610dev", "fsl,vf610"; 13 stdout-path = &uart0; 21 gpio-leds { 22 compatible = "gpio-leds"; 23 pinctrl-0 = <&pinctrl_leds_debug>; 24 pinctrl-names = "default"; 29 linux,default-trigger = "heartbeat"; [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/atheros/atlx/ |
| D | atlx.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 2 /* atlx_hw.h -- common hardware definitions for Attansic network drivers 4 * Copyright(c) 2005 - 2006 Attansic Corporation. All rights reserved. 5 * Copyright(c) 2006 - 2007 Chris Snook <csnook@redhat.com> 6 * Copyright(c) 2006 - 2008 Jay Cliburn <jcliburn@gmail.com> 10 * Copyright(c) 1999 - 2005 Intel Corporation. All rights reserved. 26 #define SPEED_1000 1000 149 /* IRQ Anti-Lost Timer Initial Value Register */ 228 /* MAC Half-Duplex Control Register */ 246 /* Wake-On-Lan control register */ [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/arm/display/komeda/ |
| D | komeda_crtc.c | 1 // SPDX-License-Identifier: GPL-2.0 29 for_each_new_connector_in_state(crtc_st->state, conn, conn_st, i) { in komeda_crtc_get_color_config() 30 if (conn_st->crtc != crtc_st->crtc) in komeda_crtc_get_color_config() 33 conn_bpc = conn->display_info.bpc ? conn->display_info.bpc : 8; in komeda_crtc_get_color_config() 34 conn_color_formats &= conn->display_info.color_formats; in komeda_crtc_get_color_config() 52 if (!kcrtc_st->base.active) { in komeda_crtc_update_clock_ratio() 53 kcrtc_st->clock_ratio = 0; in komeda_crtc_update_clock_ratio() 57 pxlclk = kcrtc_st->base.adjusted_mode.crtc_clock * 1000ULL; in komeda_crtc_update_clock_ratio() 60 kcrtc_st->clock_ratio = div64_u64(aclk << 32, pxlclk); in komeda_crtc_update_clock_ratio() 64 * komeda_crtc_atomic_check - build display output data flow [all …]
|
| /kernel/linux/linux-4.19/drivers/cpufreq/ |
| D | armada-37xx-cpufreq.c | 1 // SPDX-License-Identifier: GPL-2.0+ 7 * Gregory CLEMENT <gregory.clement@free-electrons.com> 26 #include "cpufreq-dt.h" 62 #define ARMADA_37XX_AVS_VSET(x) (0x1C + 4 * (x)) argument 71 #define MIN_VOLT_MV 1000 99 {.cpu_freq_max = 1200*1000*1000, .divider = {1, 2, 4, 6} }, 100 {.cpu_freq_max = 1000*1000*1000, .divider = {1, 2, 4, 5} }, 101 {.cpu_freq_max = 800*1000*1000, .divider = {1, 2, 3, 4} }, 102 {.cpu_freq_max = 600*1000*1000, .divider = {2, 4, 5, 6} }, 122 static void __init armada37xx_cpufreq_dvfs_setup(struct regmap *base, in armada37xx_cpufreq_dvfs_setup() argument [all …]
|
| /kernel/linux/linux-4.19/drivers/net/ethernet/atheros/atlx/ |
| D | atlx.h | 1 /* atlx_hw.h -- common hardware definitions for Attansic network drivers 3 * Copyright(c) 2005 - 2006 Attansic Corporation. All rights reserved. 4 * Copyright(c) 2006 - 2007 Chris Snook <csnook@redhat.com> 5 * Copyright(c) 2006 - 2008 Jay Cliburn <jcliburn@gmail.com> 9 * Copyright(c) 1999 - 2005 Intel Corporation. All rights reserved. 23 * Temple Place - Suite 330, Boston, MA 02111-1307, USA. 39 #define SPEED_1000 1000 162 /* IRQ Anti-Lost Timer Initial Value Register */ 241 /* MAC Half-Duplex Control Register */ 259 /* Wake-On-Lan control register */ [all …]
|
| /kernel/linux/linux-5.10/drivers/ide/ |
| D | qd65xx.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 1996-2001 Linus Torvalds & author (see below) 7 * Version 0.03 Cleaned auto-tune, added probe 20 * Samuel Thibault <samuel.thibault@ens-lyon.org> 40 * I/O ports are 0x30-0x31 (and 0x32-0x33 for qd6580) 41 * or 0xb0-0xb1 (and 0xb2-0xb3 for qd6580) 42 * -- qd6500 is a single IDE interface 43 * -- qd6580 is a dual IDE interface 51 * base: Timer1 54 * base+0x01: Config (R/O) [all …]
|
| /kernel/linux/linux-4.19/drivers/ide/ |
| D | qd65xx.c | 2 * Copyright (C) 1996-2001 Linus Torvalds & author (see below) 6 * Version 0.03 Cleaned auto-tune, added probe 19 * Samuel Thibault <samuel.thibault@ens-lyon.org> 39 * I/O ports are 0x30-0x31 (and 0x32-0x33 for qd6580) 40 * or 0xb0-0xb1 (and 0xb2-0xb3 for qd6580) 41 * -- qd6500 is a single IDE interface 42 * -- qd6580 is a dual IDE interface 50 * base: Timer1 53 * base+0x01: Config (R/O) 65 * base+0x02: Timer2 (qd6580 only) [all …]
|
| /kernel/linux/linux-5.10/drivers/pwm/ |
| D | pwm-hibvt.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 18 #define PWM_CFG0_ADDR(x) (((x) * 0x20) + 0x0) argument 19 #define PWM_CFG1_ADDR(x) (((x) * 0x20) + 0x4) argument 20 #define PWM_CFG2_ADDR(x) (((x) * 0x20) + 0x8) argument 21 #define PWM_CTRL_ADDR(x) (((x) * 0x20) + 0xC) argument 38 void __iomem *base; member 71 static void hibvt_pwm_set_bits(void __iomem *base, u32 offset, in hibvt_pwm_set_bits() argument 74 void __iomem *address = base + offset; in hibvt_pwm_set_bits() 87 hibvt_pwm_set_bits(hi_pwm_chip->base, PWM_CTRL_ADDR(pwm->hwpwm), in hibvt_pwm_enable() 95 hibvt_pwm_set_bits(hi_pwm_chip->base, PWM_CTRL_ADDR(pwm->hwpwm), in hibvt_pwm_disable() [all …]
|
| /kernel/linux/linux-4.19/drivers/pwm/ |
| D | pwm-hibvt.c | 30 #define PWM_CFG0_ADDR(x) (((x) * 0x20) + 0x0) argument 31 #define PWM_CFG1_ADDR(x) (((x) * 0x20) + 0x4) argument 32 #define PWM_CFG2_ADDR(x) (((x) * 0x20) + 0x8) argument 33 #define PWM_CTRL_ADDR(x) (((x) * 0x20) + 0xC) argument 50 void __iomem *base; member 68 static void hibvt_pwm_set_bits(void __iomem *base, u32 offset, in hibvt_pwm_set_bits() argument 71 void __iomem *address = base + offset; in hibvt_pwm_set_bits() 84 hibvt_pwm_set_bits(hi_pwm_chip->base, PWM_CTRL_ADDR(pwm->hwpwm), in hibvt_pwm_enable() 92 hibvt_pwm_set_bits(hi_pwm_chip->base, PWM_CTRL_ADDR(pwm->hwpwm), in hibvt_pwm_disable() 102 freq = div_u64(clk_get_rate(hi_pwm_chip->clk), 1000000); in hibvt_pwm_config() [all …]
|
| /kernel/linux/linux-4.19/include/linux/ |
| D | mii.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * linux/mii.h: definitions for MII-compatible transceivers 52 return (struct mii_ioctl_data *) &rq->ifr_ifru; in if_mii() 65 * between 100T-full and 100T-half. If your phy does not support 89 * @duplex_lock: Non-zero if duplex is locked at full 167 * MII_CTRL1000 register when in 1000T mode. 186 * bits, when in 1000Base-T mode, to ethtool 206 * bits, when in 1000Base-T mode, to ethtool 224 * bits, when in 1000Base-T mode, to ethtool 245 * MII_CTRL1000 register when in 1000Base-X mode. [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/radeon/ |
| D | rs690.c | 42 for (i = 0; i < rdev->usec_timeout; i++) { in rs690_mc_wait_for_idle() 49 return -1; in rs690_mc_wait_for_idle() 74 if (atom_parse_data_header(rdev->mode_info.atom_context, index, NULL, in rs690_pm_info() 76 info = (union igp_info *)(rdev->mode_info.atom_context->bios + data_offset); in rs690_pm_info() 82 rdev->pm.igp_sideport_mclk.full = dfixed_const(le32_to_cpu(info->info.ulBootUpMemoryClock)); in rs690_pm_info() 83 rdev->pm.igp_sideport_mclk.full = dfixed_div(rdev->pm.igp_sideport_mclk, tmp); in rs690_pm_info() 84 if (le16_to_cpu(info->info.usK8MemoryClock)) in rs690_pm_info() 85 rdev->pm.igp_system_mclk.full = dfixed_const(le16_to_cpu(info->info.usK8MemoryClock)); in rs690_pm_info() 86 else if (rdev->clock.default_mclk) { in rs690_pm_info() 87 rdev->pm.igp_system_mclk.full = dfixed_const(rdev->clock.default_mclk); in rs690_pm_info() [all …]
|
| /kernel/linux/linux-4.19/drivers/gpu/drm/radeon/ |
| D | rs690.c | 40 for (i = 0; i < rdev->usec_timeout; i++) { in rs690_mc_wait_for_idle() 47 return -1; in rs690_mc_wait_for_idle() 72 if (atom_parse_data_header(rdev->mode_info.atom_context, index, NULL, in rs690_pm_info() 74 info = (union igp_info *)(rdev->mode_info.atom_context->bios + data_offset); in rs690_pm_info() 80 rdev->pm.igp_sideport_mclk.full = dfixed_const(le32_to_cpu(info->info.ulBootUpMemoryClock)); in rs690_pm_info() 81 rdev->pm.igp_sideport_mclk.full = dfixed_div(rdev->pm.igp_sideport_mclk, tmp); in rs690_pm_info() 82 if (le16_to_cpu(info->info.usK8MemoryClock)) in rs690_pm_info() 83 rdev->pm.igp_system_mclk.full = dfixed_const(le16_to_cpu(info->info.usK8MemoryClock)); in rs690_pm_info() 84 else if (rdev->clock.default_mclk) { in rs690_pm_info() 85 rdev->pm.igp_system_mclk.full = dfixed_const(rdev->clock.default_mclk); in rs690_pm_info() [all …]
|
| /kernel/linux/linux-4.19/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/ |
| D | auxg94.c | 24 #define g94_i2c_aux(p) container_of((p), struct g94_i2c_aux, base) 28 struct nvkm_i2c_aux base; member 35 struct nvkm_device *device = aux->base.pad->i2c->subdev.device; in g94_i2c_aux_fini() 36 nvkm_mask(device, 0x00e4e4 + (aux->ch * 0x50), 0x00310000, 0x00000000); in g94_i2c_aux_fini() 42 struct nvkm_device *device = aux->base.pad->i2c->subdev.device; in g94_i2c_aux_init() 49 timeout = 1000; in g94_i2c_aux_init() 51 ctrl = nvkm_rd32(device, 0x00e4e4 + (aux->ch * 0x50)); in g94_i2c_aux_init() 53 if (!timeout--) { in g94_i2c_aux_init() 54 AUX_ERR(&aux->base, "begin idle timeout %08x", ctrl); in g94_i2c_aux_init() 55 return -EBUSY; in g94_i2c_aux_init() [all …]
|