/linux/include/uapi/linux/ |
H A 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 …]
|
/linux/drivers/net/ethernet/chelsio/cxgb/ |
H A 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 …]
|
/linux/drivers/net/ethernet/ti/ |
H A 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 …]
|
/linux/Documentation/devicetree/bindings/net/ |
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. 23 the DP83869HM can run 1000BASE-X-to-1000BASE-T and 100BASE-FX-to-100BASE-TX [all …]
|
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. 21 Both models have a combo port that supports 1000BASE-X and 22 100BASE-FX fiber. 25 output only pins that natively drive LED-s for up to 2 attached [all …]
|
H A D | microchip,lan966x-switch.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/net/microchip,lan966x-switch.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Horatiu Vultur <horatiu.vultur@microchip.com> 13 The lan966x switch is a multi-port Gigabit AVB/TSN Ethernet Switch with 14 two integrated 10/100/1000Base-T PHYs. In addition to the integrated PHYs, 15 it supports up to 2RGMII/RMII, up to 3BASE-X/SERDES/2.5GBASE-X and up to 16 2 Quad-SGMII/Quad-USGMII interfaces. 20 pattern: "^switch@[0-9a-f]+$" [all …]
|
/linux/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35/ |
H A D | dcn35_smu.c | 51 #define BASE(seg) BASE_INNER(seg) macro 53 #define REG(reg_name) (BASE(reg##reg_name##_BASE_IDX) + reg##reg_name) 61 CTX->logger 90 …e conditions for turning SLDO2 on/off . bit[0]==1 precondition is met, bit[1-2] are for DPPHY numb… 124 if (delay_us >= 1000) in dcn35_smu_wait_for_response() 125 msleep(delay_us/1000); in dcn35_smu_wait_for_response() 129 if (clk_mgr->base.ctx->dc->debug.disable_timeout) in dcn35_smu_wait_for_response() 131 } while (max_retries--); in dcn35_smu_wait_for_response() 149 return -1; in dcn35_smu_send_msg_with_param() 171 return -1; in dcn35_smu_send_msg_with_param() [all …]
|
/linux/drivers/cpufreq/ |
H A D | armada-37xx-cpufreq.c | 1 // SPDX-License-Identifier: GPL-2.0+ 7 * Gregory CLEMENT <gregory.clement@free-electrons.com> 24 #include "cpufreq-dt.h" 64 #define ARMADA_37XX_AVS_VSET(x) (0x1C + 4 * (x)) argument 73 #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 …]
|
/linux/arch/arm/boot/dts/nxp/vf/ |
H A 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"; 26 led-debug { [all …]
|
/linux/drivers/net/ethernet/atheros/atlx/ |
H A 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 …]
|
/linux/drivers/net/phy/ |
H A D | sfp-bus.c | 1 // SPDX-License-Identifier: GPL-2.0-only 14 * struct sfp_bus - internal representation of a sfp bus 36 * sfp_parse_port() - Parse the EEPROM base ID, setting the port type 43 * %PORT_TP, %PORT_FIBRE or %PORT_OTHER. If @support is non-%NULL, 55 switch (id->base.connector) { in sfp_parse_port() 76 if (id->base.e1000_base_t) { in sfp_parse_port() 88 dev_warn(bus->sfp_dev, "SFP: unknown connector id 0x%02x\n", in sfp_parse_port() 89 id->base.connector); in sfp_parse_port() 111 * sfp_may_have_phy() - indicate whether the module may have a PHY 120 if (id->base.e1000_base_t) in sfp_may_have_phy() [all …]
|
/linux/drivers/pwm/ |
H A 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 37 void __iomem *base; member 70 static void hibvt_pwm_set_bits(void __iomem *base, u32 offset, in hibvt_pwm_set_bits() argument 73 void __iomem *address = base + offset; in hibvt_pwm_set_bits() 86 hibvt_pwm_set_bits(hi_pwm_chip->base, PWM_CTRL_ADDR(pwm->hwpwm), in hibvt_pwm_enable() 94 hibvt_pwm_set_bits(hi_pwm_chip->base, PWM_CTRL_ADDR(pwm->hwpwm), in hibvt_pwm_disable() [all …]
|
/linux/drivers/gpu/drm/arm/display/komeda/ |
H A D | komeda_crtc.c | 1 // SPDX-License-Identifier: GPL-2.0 30 for_each_new_connector_in_state(crtc_st->state, conn, conn_st, i) { in komeda_crtc_get_color_config() 31 if (conn_st->crtc != crtc_st->crtc) in komeda_crtc_get_color_config() 34 conn_bpc = conn->display_info.bpc ? conn->display_info.bpc : 8; in komeda_crtc_get_color_config() 35 conn_color_formats &= conn->display_info.color_formats; in komeda_crtc_get_color_config() 53 if (!kcrtc_st->base.active) { in komeda_crtc_update_clock_ratio() 54 kcrtc_st->clock_ratio = 0; in komeda_crtc_update_clock_ratio() 58 pxlclk = kcrtc_st->base.adjusted_mode.crtc_clock * 1000ULL; in komeda_crtc_update_clock_ratio() 61 kcrtc_st->clock_ratio = div64_u64(aclk << 32, pxlclk); in komeda_crtc_update_clock_ratio() 65 * komeda_crtc_atomic_check - build display output data flow [all …]
|
/linux/drivers/scsi/pcmcia/ |
H A D | nsp_cs.c | 3 NinjaSCSI-3 / NinjaSCSI-32Bi PCMCIA SCSI host adapter card driver 21 I-O DATA PCSC-F (Workbit NinjaSCSI-3) 22 "WBT", "NinjaSCSI-3", "R1.0" 23 I-O DATA CBSC-II (Workbit NinjaSCSI-32Bi in 16bit mode) 56 MODULE_DESCRIPTION("WorkBit NinjaSCSI-3 / NinjaSCSI-32Bi(16bit) PCMCIA SCSI host adapter module"); 81 .name = "WorkBit NinjaSCSI-3/32Bi(16bit)", 90 .dma_boundary = PAGE_SIZE - 1, 94 static nsp_hw_data nsp_data_base; /* attach <-> detect glue */ 169 printk("nsp_cs-debug: 0x%x %s (%d): %s\n", mask, func, line, buf); in nsp_cs_dmessage() 178 * You must be set SCpnt->result before call this function. [all …]
|
/linux/drivers/gpu/drm/radeon/ |
H A 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 …]
|
/linux/drivers/gpu/drm/i915/ |
H A D | i915_utils.h | 43 #define FDO_BUG_URL "https://drm.pages.freedesktop.org/intel-docs/how-to-file-i915-bugs.html" 45 #define MISSING_CASE(x) WARN(1, "Missing case (%s == %ld)\n", \ argument 46 __stringify(x), (long)(x)) 63 #define i915_inject_probe_failure(i915) i915_inject_probe_error((i915), -ENODEV) 67 drm_dbg(&(i915)->drm, fmt, ##__VA_ARGS__); \ 69 drm_err(&(i915)->drm, fmt, ##__VA_ARGS__); \ 78 start__ >= max__ || size__ > max__ - start__; \ 90 start__ > max__ || size__ > max__ - start__; \ 98 (typeof(ptr))(__v & -BIT(n)); \ 101 #define ptr_unmask_bits(ptr, n) ((unsigned long)(ptr) & (BIT(n) - 1)) [all …]
|
/linux/drivers/gpu/drm/sprd/ |
H A D | sprd_dsi.c | 1 // SPDX-License-Identifier: GPL-2.0 139 return (readl(ctx->base + offset) & mask) >> shift; in dsi_reg_rd() 148 ret = readl(ctx->base + offset); in dsi_reg_wr() 151 writel(ret, ctx->base + offset); in dsi_reg_wr() 158 u32 ret = readl(ctx->base + offset); in dsi_reg_up() 160 writel((ret & ~mask) | (val & mask), ctx->base + offset); in dsi_reg_up() 166 struct dsi_context *ctx = &dsi->ctx; in regmap_tst_io_write() 169 return -EINVAL; in regmap_tst_io_write() 171 drm_dbg(dsi->drm, "reg = 0x%02x, val = 0x%02x\n", reg, val); in regmap_tst_io_write() 188 struct dsi_context *ctx = &dsi->ctx; in regmap_tst_io_read() [all …]
|
/linux/Documentation/admin-guide/pm/ |
H A D | intel-speed-select.rst | 1 .. SPDX-License-Identifier: GPL-2.0 14 - https://www.intel.com/content/www/us/en/architecture-and-technology/speed-select-technology-artic… 15 - https://builders.intel.com/docs/networkbuilders/intel-speed-select-technology-base-frequency-enha… 19 dynamically without pre-configuring via BIOS setup options. This dynamic 29 intel-speed-select configuration tool 32 Most Linux distribution packages may include the "intel-speed-select" tool. If not, 38 # cd tools/power/x86/intel-speed-select/ 43 ------------ 47 # intel-speed-select --help 49 The top-level help describes arguments and features. Notice that there is a [all …]
|
/linux/drivers/gpu/drm/msm/dsi/phy/ |
H A D | dsi_phy_14nm.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 #include <linux/clk-provider.h> 17 * DSI PLL 14nm - clock diagram (eg: DSI0): 22 * +----+ | +----+ 23 * dsi0vco_clk ---| n1 |--o--| /8 |-- dsi0pllbyte 24 * +----+ | +----+ 26 * | +----+ | 27 * o---| /2 |--o--|\ 28 * | +----+ | \ +----+ 29 * | | |--| n2 |-- dsi0pll [all …]
|
/linux/drivers/gpu/drm/i915/gt/ |
H A D | selftest_rps.c | 1 // SPDX-License-Identifier: MIT 26 #define CPU_LATENCY 0 /* -1 to disable pm_qos, 0 to disable cstates */ 37 return -1; in cmp_u64() 49 return -1; in cmp_u32() 68 #define CS_GPR(x) GEN8_RING_CS_GPR(engine->mmio_base, x) in create_spin_counter() argument 72 u32 *base, *cs; in create_spin_counter() local 76 obj = i915_gem_object_create_internal(vm->i915, 64 << 10); in create_spin_counter() 80 end = obj->base.size / sizeof(u32) - 1; in create_spin_counter() 94 base = i915_gem_object_pin_map(obj, I915_MAP_WC); in create_spin_counter() 95 if (IS_ERR(base)) { in create_spin_counter() [all …]
|
/linux/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn32/ |
H A D | dcn32_clk_mgr_smu_msg.c | 60 if (delay_us >= 1000) in dcn32_smu_wait_for_response() 61 msleep(delay_us/1000); in dcn32_smu_wait_for_response() 64 } while (max_retries--); in dcn32_smu_wait_for_response() 66 TRACE_SMU_DELAY(delay_us * (initial_max_retries - max_retries), clk_mgr->base.ctx); in dcn32_smu_wait_for_response() 85 TRACE_SMU_MSG(msg_id, param_in, clk_mgr->base.ctx); in dcn32_smu_send_msg_with_param() 116 if (delay_us >= 1000) in dcn32_smu_wait_for_response_delay() 117 msleep(delay_us/1000); in dcn32_smu_wait_for_response_delay() 121 } while (max_retries--); in dcn32_smu_wait_for_response_delay() 123 TRACE_SMU_DELAY(*total_delay_us, clk_mgr->base.ctx); in dcn32_smu_wait_for_response_delay() 145 TRACE_SMU_MSG(msg_id, param_in, clk_mgr->base.ctx); in dcn32_smu_send_msg_with_param_delay() [all …]
|
/linux/drivers/staging/sm750fb/ |
H A D | sm750.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 7 #define MHZ(x) ((x) * 1000000) argument 52 /* base virtual address of DPR registers */ 54 /* base virtual address of de data port */ 63 u32 base, u32 pitch, u32 bpp, 64 u32 x, u32 y, u32 width, u32 height, 127 /* base virtual address and offset of cursor image */ 142 /* below attributes belong to info->fix, their value depends on specific adaptor*/ 169 * output->channel ==> &crtc->channel 188 unsigned long long numerator = 1000 * 1000 * 1000 * 1000ULL; in ps_to_hz()
|
/linux/arch/mips/cavium-octeon/executive/ |
H A D | cvmx-helper-sgmii.c | 7 * Copyright (C) 2003-2018 Cavium, Inc. 14 * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty 21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 35 #include <asm/octeon/cvmx-config.h> 37 #include <asm/octeon/cvmx-helper.h> 38 #include <asm/octeon/cvmx-helper-board.h> 40 #include <asm/octeon/cvmx-gmxx-defs.h> 41 #include <asm/octeon/cvmx-pcsx-defs.h> 42 #include <asm/octeon/cvmx-pcsxx-defs.h> 54 const uint64_t clock_mhz = cvmx_sysinfo_get()->cpu_clock_hz / 1000000; in __cvmx_helper_sgmii_hardware_init_one_time() [all …]
|
/linux/drivers/regulator/ |
H A D | twl-regulator.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * twl-regulator.c -- support regulators in twl4030/twl6030 family chips 25 * These chips are often used in OMAP-based systems. 27 * This driver implements software-based resource control for various 34 u8 base; member 39 /* voltage in mV = table[VSEL]; table_len must be a power-of-two */ 57 /* LDO control registers ... offset is from the base of its register bank. 81 &value, info->base + offset); in twlreg_read() 90 value, info->base + offset); in twlreg_write() 93 /*----------------------------------------------------------------------*/ [all …]
|
/linux/drivers/net/ethernet/oki-semi/pch_gbe/ |
H A D | pch_gbe_phy.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 1999 - 2010 Intel Corporation. 12 #define PHY_MAX_REG_ADDRESS 0x1F /* 5 bit address bus (0-0x1F) */ 14 /* PHY 1000 MII Register/Bit Definitions */ 21 #define PHY_LP_ABILITY 0x05 /* Link Partner Ability (Base Page) */ 25 #define PHY_1000T_CTRL 0x09 /* 1000Base-T Control Register */ 26 #define PHY_1000T_STATUS 0x0A /* 1000Base-T Status Register */ 34 #define MII_CR_SPEED_SELECT_MSB 0x0040 /* bits 6,13: 10=1000, 01=100, 00=10 */ 41 #define MII_CR_SPEED_SELECT_LSB 0x2000 /* bits 6,13: 10=1000, 01=100, 00=10 */ 61 #define MII_SR_100X_HD_CAPS 0x2000 /* 100X Half Duplex Capable */ [all …]
|