/linux/drivers/cpufreq/ |
H A D | qcom-cpufreq-nvmem.c | 1 // SPDX-License-Identifier: GPL-2.0 10 * defines the voltage and frequency value based on the msm-id in SMEM 12 * The qcom-cpufreq-nvmem driver reads the msm-id and efuse value from the SoC 15 * operating-points-v2 table when it is parsed by the OPP framework. 23 #include <linux/nvmem-consumer.h> 33 #include <dt-bindings/arm/qcom,ids.h> 84 drv->versions = 1 << *speedbin; in qcom_cpufreq_simple_get_version() 90 int *speed, int *pvs, in get_krait_bin_format_a() argument 97 *speed = pte_efuse & 0xf; in get_krait_bin_format_a() 98 if (*speed == 0xf) in get_krait_bin_format_a() [all …]
|
H A D | sun50i-cpufreq-nvmem.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * The sun50i-cpufreq-nvmem driver reads the efuse value from the SoC to 13 #include <linux/arm-smccc.h> 16 #include <linux/nvmem-consumer.h> 39 * the slowest bin. Expected efuse values are 1-3, slowest in sun50i_h6_efuse_xlate() 43 return efuse_value - 1; in sun50i_h6_efuse_xlate() 59 * returned speedbin index is 4 -> 0/2 -> 3 -> 1, from worst to best. 98 pr_warn("sun50i-cpufreq-nvmem: unknown speed bin 0x%x, using default bin 0\n", in sun50i_h616_efuse_xlate() 116 { .compatible = "allwinner,sun50i-h6-operating-points", 119 { .compatible = "allwinner,sun50i-h616-operating-points", [all …]
|
/linux/drivers/memory/ |
H A D | jedec_ddr_data.c | 1 // SPDX-License-Identifier: GPL-2.0-only 14 /* LPDDR2 addressing details from JESD209-2 section 2.4 */ 30 /* LPDDR2 AC timing parameters from JESD209-2 section 12 */ 33 /* Speed bin 400(200 MHz) */ 54 /* Speed bin 533(266 MHz) */ 75 /* Speed bin 800(400 MHz) */ 96 /* Speed bin 1066(533 MHz) */
|
/linux/Documentation/devicetree/bindings/memory-controllers/ddr/ |
H A D | jedec,lpddr3-timings.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/memory-controllers/ddr/jedec,lpddr3-timings.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: LPDDR3 SDRAM AC timing parameters for a given speed-bin 10 - Krzysztof Kozlowski <krzk@kernel.org> 14 const: jedec,lpddr3-timings 19 Maximum DDR clock frequency for the speed-bin, in Hz. 20 Property is deprecated, use max-freq. 23 max-freq: [all …]
|
H A D | jedec,lpddr2-timings.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/memory-controllers/ddr/jedec,lpddr2-timings.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: LPDDR2 SDRAM AC timing parameters for a given speed-bin 10 - Krzysztof Kozlowski <krzk@kernel.org> 14 const: jedec,lpddr2-timings 16 max-freq: 19 Maximum DDR clock frequency for the speed-bin, in Hz. 21 min-freq: [all …]
|
/linux/drivers/gpu/drm/panfrost/ |
H A D | panfrost_devfreq.c | 1 // SPDX-License-Identifier: GPL-2.0 7 #include <linux/nvmem-consumer.h> 19 last = pfdevfreq->time_last_update; in panfrost_devfreq_update_utilization() 21 if (pfdevfreq->busy_count > 0) in panfrost_devfreq_update_utilization() 22 pfdevfreq->busy_time += ktime_sub(now, last); in panfrost_devfreq_update_utilization() 24 pfdevfreq->idle_time += ktime_sub(now, last); in panfrost_devfreq_update_utilization() 26 pfdevfreq->time_last_update = now; in panfrost_devfreq_update_utilization() 43 ptdev->pfdevfreq.current_frequency = *freq; in panfrost_devfreq_target() 50 pfdevfreq->busy_time = 0; in panfrost_devfreq_reset() 51 pfdevfreq->idle_time = 0; in panfrost_devfreq_reset() [all …]
|
/linux/Documentation/devicetree/bindings/net/bluetooth/ |
H A D | qualcomm-bluetooth.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/net/bluetooth/qualcomm-bluetooth.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Balakrishna Godavarthi <quic_bgodavar@quicinc.com> 11 - Rocky Liao <quic_rjliao@quicinc.com> 14 This binding describes Qualcomm UART-attached bluetooth chips. 19 - qcom,qca2066-bt 20 - qcom,qca6174-bt 21 - qcom,qca9377-bt [all …]
|
/linux/drivers/net/dsa/sja1105/ |
H A D | sja1105_main.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright (c) 2018, Sensor-Technik Wiedemann GmbH 3 * Copyright (c) 2018-2019, Vladimir Oltean <olteanv@gmail.com> 18 #include <linux/pcs/pcs-xpcs.h> 77 vlan = priv->static_config.tables[BLK_IDX_VLAN_LOOKUP].entries; in sja1105_is_vlan_configured() 78 count = priv->static_config.tables[BLK_IDX_VLAN_LOOKUP].entry_count; in sja1105_is_vlan_configured() 85 return -1; in sja1105_is_vlan_configured() 90 struct sja1105_private *priv = ds->priv; in sja1105_drop_untagged() 93 mac = priv->static_config.tables[BLK_IDX_MAC_CONFIG].entries; in sja1105_drop_untagged() 108 mac = priv->static_config.tables[BLK_IDX_MAC_CONFIG].entries; in sja1105_pvid_apply() [all …]
|
/linux/arch/arm64/boot/dts/qcom/ |
H A D | msm8996pro.dtsi | 1 // SPDX-License-Identifier: BSD-3-Clause 9 /delete-node/ opp-table-cluster0; 10 /delete-node/ opp-table-cluster1; 13 * On MSM8996 Pro the cpufreq driver shifts speed bins into the high 14 * nibble of supported hw, so speed bin 0 becomes 0x10, speed bin 1 15 * becomes 0x20, speed 2 becomes 0x40. 18 cluster0_opp: opp-table-cluster0 { 19 compatible = "operating-points-v2-kryo-cpu"; 20 nvmem-cells = <&speedbin_efuse>; 21 opp-shared; [all …]
|
/linux/tools/crypto/tcrypt/ |
H A D | tcrypt_speed_compare.py | 1 #!/usr/bin/env python3 2 # SPDX-License-Identifier: GPL-2.0 9 A tool for comparing tcrypt speed test logs. 19 #!/bin/bash 30 # base speed test 31 lsmod | grep pcrypt && modprobe -r pcrypt 32 dmesg -C 37 # new speed test 38 lsmod | grep pcrypt && modprobe -r pcrypt 39 dmesg -C [all …]
|
/linux/tools/power/x86/intel-speed-select/ |
H A D | Makefile | 1 # SPDX-License-Identifier: GPL-2.0 4 bindir ?= /usr/bin 13 # Do not use make's built-in rules 14 # (this improves performance and avoids hard-to-debug behaviour); 15 MAKEFLAGS += -r 16 override CFLAGS += -O2 -Wall -g -D_GNU_SOURCE -I$(OUTPUT)include -I/usr/include/libnl3 17 override LDFLAGS += -lnl-genl-3 -lnl-3 19 ALL_TARGETS := intel-speed-select 31 mkdir -p $(OUTPUT)include/linux 2>&1 || true 32 ln -sf $(CURDIR)/../../../../include/uapi/linux/isst_if.h $@ [all …]
|
/linux/tools/testing/selftests/drivers/net/hw/ |
H A D | ethtool.sh | 1 #!/bin/bash 2 # SPDX-License-Identifier: GPL-2.0 58 local -a speeds_arr=($(common_speeds_get $h1 $h2 0 0)) 60 for speed in "${speeds_arr[@]}"; do 62 ethtool_set $h1 speed $speed autoneg off 63 ethtool_set $h2 speed $speed autoneg off 68 check_err $? "ping with speed $speed autoneg off" 69 log_test "force speed $speed on both ends" 72 ethtool -s $h2 autoneg on 73 ethtool -s $h1 autoneg on [all …]
|
H A D | ethtool_extended_state.sh | 1 #!/bin/bash 2 # SPDX-License-Identifier: GPL-2.0 28 local expected_ext_substate=${1:-""}; shift 31 | cut -d "(" -f2 | cut -d ")" -f1) 32 local ext_substate=$(echo $ext_state | cut -sd "," -f2 \ 33 | sed -e 's/^[[:space:]]*//') 34 ext_state=$(echo $ext_state | cut -d "," -f1) 72 local -a speeds_arr=($(different_speeds_get $swp1 $swp2 0 0)) 76 ethtool_set $swp1 speed $speed1 autoneg off 77 ethtool_set $swp2 speed $speed2 autoneg off [all …]
|
/linux/drivers/gpu/drm/amd/pm/swsmu/smu11/ |
H A D | smu_v11_0.c | 59 MODULE_FIRMWARE("amdgpu/arcturus_smc.bin"); 60 MODULE_FIRMWARE("amdgpu/navi10_smc.bin"); 61 MODULE_FIRMWARE("amdgpu/navi14_smc.bin"); 62 MODULE_FIRMWARE("amdgpu/navi12_smc.bin"); 63 MODULE_FIRMWARE("amdgpu/sienna_cichlid_smc.bin"); 64 MODULE_FIRMWARE("amdgpu/navy_flounder_smc.bin"); 65 MODULE_FIRMWARE("amdgpu/dimgrey_cavefish_smc.bin"); 66 MODULE_FIRMWARE("amdgpu/beige_goby_smc.bin"); 84 struct amdgpu_device *adev = smu->adev; in smu_v11_0_poll_baco_exit() 95 struct amdgpu_device *adev = smu->adev; in smu_v11_0_init_microcode() [all …]
|
/linux/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | ethtool_lanes.sh | 1 #!/bin/bash 2 # SPDX-License-Identifier: GPL-2.0 28 busywait $TIMEOUT sh -c "ethtool $swp1 | grep -q Lanes:" 29 if [[ $? -ne 0 ]]; then 62 if [[ $autoneg -eq 0 ]]; then 66 ethtool -s $swp1 speed $max_speed lanes $unsupported_lanes $autoneg_str &> /dev/null 76 local -a lanes_arr 77 local -a speeds_arr 78 local -a max_values 93 local speed=$1; shift [all …]
|
/linux/tools/spi/ |
H A D | spidev_test.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * Cross-compile with cross-gcc -I/path/to/cross-kernel/include 43 static uint32_t speed = 500000; variable 71 while (length-- > 0) { in hex_dump() 91 * Unescape - process hexadecimal escape character 92 * converts shell input "\x23" -> 0x23 127 .speed_hz = speed, in transfer() 175 printf("Usage: %s [-2348CDFHILMNORSZbdilopsv]\n", prog); in print_usage() 177 " -D --device device to use (default /dev/spidev1.1)\n" in print_usage() 178 " -s --speed max speed (Hz)\n" in print_usage() [all …]
|
/linux/Documentation/dev-tools/kunit/ |
H A D | running_tips.rst | 1 .. SPDX-License-Identifier: GPL-2.0 11 -------------------------- 15 .. code-block:: bash 18 ( cd "$(git rev-parse --show-toplevel)" && ./tools/testing/kunit/kunit.py run "$@" ) 26 ------------------------- 33 .. code-block:: bash 35 $ echo -e 'CONFIG_KUNIT=y\nCONFIG_KUNIT_ALL_TESTS=y' > .kunit/.kunitconfig 40 .. code-block:: bash 42 $ echo -e 'CONFIG_KUNIT=y\nCONFIG_KUNIT_ALL_TESTS=y' > .kunit/.kunitconfig 53 ----------------------- [all …]
|
/linux/Documentation/driver-api/usb/ |
H A D | usb3-debug-port.rst | 19 3) have a USB 3.0 super-speed A-to-A debugging cable. 30 super-speed port). The debug device is fully compliant with 32 performance full-duplex serial link between the debug target 41 Other uses include simpler, lockless logging instead of a full- 58 "usbcore.autosuspend=-1" 63 should be a USB 3.0 super-speed A-to-A debugging cable. 74 # tail -f /var/log/kern.log 75 [ 1815.983374] usb 4-3: new SuperSpeed USB device number 4 using xhci_hcd 76 [ 1815.999595] usb 4-3: LPM exit latency is zeroed, disabling LPM. 77 [ 1815.999899] usb 4-3: New USB device found, idVendor=1d6b, idProduct=0004 [all …]
|
/linux/Documentation/devicetree/bindings/opp/ |
H A D | allwinner,sun50i-h6-operating-points.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/opp/allwinner,sun50i-h6-operating-points.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Chen-Yu Tsai <wens@csie.org> 11 - Maxime Ripard <mripard@kernel.org> 20 - $ref: opp-v2-base.yaml# 25 - allwinner,sun50i-h6-operating-points 26 - allwinner,sun50i-h616-operating-points 28 nvmem-cells: [all …]
|
H A D | operating-points-v2-ti-cpu.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/opp/operating-points-v2-ti-cpu.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 14 and voltage values based on device type and speed bin information 18 This document extends the operating-points-v2 binding by providing 22 - Dhruva Gole <d-gole@ti.com> 25 - $ref: opp-v2-base.yaml# 29 const: operating-points-v2-ti-cpu 37 opp-shared: true [all …]
|
/linux/drivers/bluetooth/ |
H A D | hci_mrvl.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 65 return -EOPNOTSUPP; in mrvl_open() 69 return -ENOMEM; in mrvl_open() 71 skb_queue_head_init(&mrvl->txq); in mrvl_open() 72 skb_queue_head_init(&mrvl->rawq); in mrvl_open() 74 set_bit(STATE_CHIP_VER_PENDING, &mrvl->flags); in mrvl_open() 76 hu->priv = mrvl; in mrvl_open() 78 if (hu->serdev) { in mrvl_open() 79 ret = serdev_device_open(hu->serdev); in mrvl_open() 93 struct mrvl_data *mrvl = hu->priv; in mrvl_close() [all …]
|
/linux/tools/usb/usbip/ |
H A D | INSTALL | 15 more-detailed instructions are generic; see the `README' file for 19 various system-dependent variables used during compilation. It uses 21 It may also create one or more `.h' files containing system-dependent 28 and enabled with `--cache-file=config.cache' or simply `-C') that saves 29 the results of its tests to speed up reconfiguring. Caching is 55 3. Optionally, type `make check' to run any self-tests that come with 65 also a `make maintainer-clean' target, but that is intended mainly 77 `configure' script does not know about. Run `./configure --help' for 84 ./configure CC=c99 CFLAGS=-g LIBS=-lposix 98 With a non-GNU `make', it is safer to compile the package for one [all …]
|
/linux/include/dt-bindings/clock/ |
H A D | rk3399-ddr.h | 1 /* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */ 7 * DDR3 SDRAM Standard Speed Bins include tCK, tRCD, tRP, tRAS and tRC for 8 * each corresponding bin. 11 /* DDR3-800 (5-5-5) */ 13 /* DDR3-800 (6-6-6) */ 15 /* DDR3-1066 (6-6-6) */ 17 /* DDR3-1066 (7-7-7) */ 19 /* DDR3-1066 (8-8-8) */ 21 /* DDR3-1333 (7-7-7) */ 23 /* DDR3-1333 (8-8-8) */ [all …]
|
/linux/Documentation/devicetree/bindings/nvmem/ |
H A D | nvmem.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Srinivas Kandagatla <srinivas.kandagatla@linaro.org> 23 "#address-cells": 26 "#size-cells": 29 read-only: 34 wp-gpios: 36 GPIO to which the write-protect pin of the chip is connected. 37 The write-protect GPIO is asserted, when it's driven high [all …]
|
/linux/samples/pktgen/ |
H A D | pktgen_sample01_simple.sh | 1 #!/bin/bash 2 # SPDX-License-Identifier: GPL-2.0 13 # - go look in parameters.sh to see which setting are avail 14 # - required param is the interface "-i" stored in $DEV 22 if [ -z "$DEST_IP" ]; then 23 [ -z "$IP6" ] && DEST_IP="198.18.0.42" || DEST_IP="FD00::1" 25 [ -z "$CLONE_SKB" ] && CLONE_SKB="0" 26 # Example enforce param "-m" for dst_mac 27 [ -z "$DST_MAC" ] && usage && err 2 "Must specify -m dst_mac" 28 [ -z "$COUNT" ] && COUNT="100000" # Zero means indefinitely [all …]
|