/linux/lib/ |
H A D | test-kstrtox.c | 36 rv = fn(t->str, t->base, &tmp); \ 38 WARN(1, "str '%s', base %u, expected -E, got %d/" fmt "\n", \ 39 t->str, t->base, rv, tmp); \ 54 rv = fn(t->str, t->base, &res); \ 57 t->str, t->base, t->expected_res, rv); \ 60 if (res != t->expected_res) { \ 62 t->str, t->base, t->expected_res, res); \ 72 {"0", 10, 0ULL}, in test_kstrtoull_ok() 73 {"1", 10, 1ULL}, in test_kstrtoull_ok() 74 {"127", 10, 127ULL}, in test_kstrtoull_ok() [all …]
|
/linux/drivers/net/wireless/intel/iwlegacy/ |
H A D | 3945-debug.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved. 8 * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 19 p += scnprintf(buf + p, bufsz - p, "Statistics Flag(0x%X):\n", in il3945_stats_flag() 20 le32_to_cpu(il->_3945.stats.flag)); in il3945_stats_flag() 21 if (le32_to_cpu(il->_3945.stats.flag) & UCODE_STATS_CLEAR_MSK) in il3945_stats_flag() 22 p += scnprintf(buf + p, bufsz - p, in il3945_stats_flag() 24 p += scnprintf(buf + p, bufsz - p, "\tOperational Frequency: %s\n", in il3945_stats_flag() 25 (le32_to_cpu(il->_3945.stats.flag) & in il3945_stats_flag() 27 p += scnprintf(buf + p, bufsz - p, "\tTGj Narrow Band: %s\n", in il3945_stats_flag() [all …]
|
/linux/arch/arm/mach-rpc/ |
H A D | irq.c | 1 // SPDX-License-Identifier: GPL-2.0 18 0, 8, 9, 8,10,10,10,10,11,11,11,11,10,10,10,10, 19 12, 8, 9, 8,10,10,10,10,11,11,11,11,10,10,10,10, 20 13,13,13,13,10,10,10,10,11,11,11,11,10,10,10,10, 21 13,13,13,13,10,10,10,10,11,11,11,11,10,10,10,10, 22 14,14,14,14,10,10,10,10,11,11,11,11,10,10,10,10, 23 14,14,14,14,10,10,10,10,11,11,11,11,10,10,10,10, 24 13,13,13,13,10,10,10,10,11,11,11,11,10,10,10,10, 25 13,13,13,13,10,10,10,10,11,11,11,11,10,10,10,10, 26 15,15,15,15,10,10,10,10,11,11,11,11,10,10,10,10, [all …]
|
/linux/tools/testing/selftests/net/forwarding/ |
H A D | bridge_vlan_mcast.sh | 2 # SPDX-License-Identifier: GPL-2.0 17 ip link add l $h1 $h1.10 up type vlan id 10 22 ip link del $h1.10 29 ip link add l $h2 $h2.10 up type vlan id 10 34 ip link del $h2.10 52 bridge vlan add vid 10-11 dev $swp1 master 53 bridge vlan add vid 10-11 dev $swp2 master 104 ip address add dev $h2.10 $TEST_GROUP/32 autojoin 108 bridge -j mdb show dev br0 | 109 jq -e ".[].mdb[] | select(.grp == \"$TEST_GROUP\" and .vid == 10)" &>/dev/null [all …]
|
H A D | bridge_mdb.sh | 2 # SPDX-License-Identifier: GPL-2.0 4 # +-----------------------+ +------------------------+ 6 # | + $h1.10 | | + $h2.10 | 15 # +----|------------------+ +----|-------------------+ 17 # +----|--------------------------------------------------|-------------------+ 19 # | +--|--------------------------------------------------|-----------------+ | 21 # | | vid 10 vid 10 | | 24 # | +-----------------------------------------------------------------------+ | 25 # +---------------------------------------------------------------------------+ 40 vlan_create $h1 10 v$h1 192.0.2.1/28 2001:db8:1::1/64 [all …]
|
H A D | vxlan_bridge_1q.sh | 2 # SPDX-License-Identifier: GPL-2.0 4 # +-----------------------+ +------------------------+ 6 # | + $h1.10 | | + $h2.10 | 13 # +----|------------------+ +----|-------------------+ 15 # +----|--------------------------------------------------|-------------------+ 17 # | +--|--------------------------------------------------|-----------------+ | 19 # | | vid 10 vid 10 | | 26 # | | vid 10 pvid untagged vid 20 pvid untagged | | 27 # | +-----------------------------------------------------------------------+ | 34 # +----|----------------------------------------------------------------------+ [all …]
|
H A D | fib_offload_lib.sh | 1 # SPDX-License-Identifier: GPL-2.0 13 ip -n $ns -j -p -$family route show $route \ 14 | jq -e '.[]["flags"] | contains(["trap"])' &> /dev/null 17 if [[ $ret -ne 0 ]]; then 63 ip -n $ns link add name dummy$i type dummy 64 ip -n $ns link set dev dummy$i up 67 ip -n $ns route add 192.0.2.0/24 dev dummy1 tos 0 metric 1024 71 ip -n $ns route append 192.0.2.0/24 dev dummy2 tos 0 metric 1024 75 ip -n $ns route prepend 192.0.2.0/24 dev dummy3 tos 0 metric 1024 85 ip -n $ns link del dev dummy$i [all …]
|
H A D | vxlan_bridge_1q_ipv6.sh | 2 # SPDX-License-Identifier: GPL-2.0 4 # +-----------------------+ +------------------------+ 6 # | + $h1.10 | | + $h2.10 | 15 # +----|------------------+ +----|-------------------+ 17 # +----|--------------------------------------------------|-------------------+ 19 # | +--|--------------------------------------------------|-----------------+ | 21 # | | vid 10 vid 10 | | 30 # | | vid 10 pvid untagged vid 20 pvid untagged | | 31 # | +-----------------------------------------------------------------------+ | 38 # +----|----------------------------------------------------------------------+ [all …]
|
/linux/tools/testing/selftests/drivers/net/netdevsim/ |
H A D | nexthop.sh | 2 # SPDX-License-Identifier: GPL-2.0 61 out=$($IP nexthop show ${nharg} | sed -e 's/ *$//') 82 grep "trap" | wc -l) 95 occ=$($DEVLINK -jp resource show $DEVLINK_DEV \ 98 if [ $expected_occ -ne $occ ]; then 158 $IP nexthop add id 10 group 1/2 159 nexthop_check "id 10" "id 10 group 1/2 trap" 165 $IP nexthop del id 10 169 $IP nexthop add id 10 group 1,20/2,39 170 nexthop_check "id 10" "id 10 group 1,20/2,39 trap" [all …]
|
/linux/lib/crypto/powerpc/ |
H A D | curve25519-ppc64le_asm.S | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 9 # [1] https://github.com/dot-asm/cryptogams/ 11 # Copyright (c) 2006-2017, CRYPTOGAMS by <appro@openssl.org> 58 # - Added x25519_fe51_sqr_times, x25519_fe51_frombytes, x25519_fe51_tobytes 61 # Copyright 2024- IBM Corp. 63 # X25519 lower-level primitives for PPC64. 73 stdu 1,-144(1) 90 ld 10,24(4) 107 mulld 28,10,6 108 mulhdu 29,10,6 [all …]
|
H A D | poly1305-p10le_64.S | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 5 # Copyright 2023- IBM Corp. All rights reserved 10 # Poly1305 - this version mainly using vector/VSX/Scalar 11 # - 26 bits limbs 12 # - Handle multiple 64 byte blcok. 17 # p = 2^130 - 5 25 # 07/22/21 - this revison based on the above sum of products. Setup r^4, r^3, r^2, r and s3, s2, … 56 #include <asm/asm-offsets.h> 57 #include <asm/asm-compat.h> 95 stdu 1,-752(1) [all …]
|
/linux/sound/soc/ |
H A D | soc-ops-test.c | 1 // SPDX-License-Identifier: GPL-2.0-only 13 #include <sound/soc-component.h> 124 ITEST("Test Control", SINGLE, INTEGER, volsw, 0, 20, -10, 10, 0, 4, 0), 125 ITEST("Test Control", SINGLE, INTEGER, volsw, 0, 15, -10, 10, 15, 4, 0), 126 ITEST("Test Control", SINGLE, INTEGER, volsw, 0, 20, -10, 10, 0, 4, 1), 127 ITEST("Test Control", SINGLE, INTEGER, volsw, 0, 15, -10, 10, 15, 4, 1), 142 ATEST(SINGLE, volsw, 10, 1, false, 0x1F, 0x0A, 0, 20, 0, 0, 0), 145 ATEST(SINGLE, volsw, 10, 1, false, 0x1F, 0x0A, 0, 20, 15, 0, 0), 146 ATEST(SINGLE, volsw, 25, -22, false, 0x1F, 0x00, 0, 20, 15, 0, 0), 149 ATEST(SINGLE, volsw, 10, 1, false, 0x1F, 0x0A, 0, 20, 0, 0, 1), [all …]
|
/linux/net/kcm/ |
H A D | kcmproc.c | 1 // SPDX-License-Identifier: GPL-2.0 23 return list_first_or_null_rcu(&knet->mux_list, in kcm_get_first() 29 struct kcm_net *knet = mux->knet; in kcm_get_next() 31 return list_next_or_null_rcu(&knet->mux_list, &mux->kcm_mux_list, in kcm_get_next() 41 list_for_each_entry_rcu(m, &knet->mux_list, kcm_mux_list) { in kcm_get_idx() 44 --pos; in kcm_get_idx() 69 return kcm_get_idx(seq, *pos - 1); in kcm_seq_start() 90 knet->count); in kcm_format_mux_header() 93 "%-14s %-10s %-16s %-10s %-16s %-8s %-8s %-8s %-8s %s", in kcm_format_mux_header() 95 "RX-Msgs", in kcm_format_mux_header() [all …]
|
/linux/arch/xtensa/lib/ |
H A D | usercopy.S | 8 * of the Xtensa link-time HAL, and those files may differ per 11 * could lose the special functionality for accessing user-space 37 * This code tries to use fall-through braches for the common 93 EX(10f) l8ui a6, a3, 0 95 EX(10f) s8i a6, a5, 0 97 addi a4, a4, -1 100 .Ldst2mod4: # dst 16-bit aligned 103 EX(10f) l8ui a6, a3, 0 104 EX(10f) l8ui a7, a3, 1 106 EX(10f) s8i a6, a5, 0 [all …]
|
/linux/arch/arm64/boot/dts/ti/ |
H A D | k3-j721e-common-proc-board-infotainment.dtso | 1 // SPDX-License-Identifier: GPL-2.0-only OR MIT 3 * Infotainment Expansion Board for j721e-evm 6 * Copyright (C) 2024 Texas Instruments Incorporated - https://www.ti.com/ 9 /dts-v1/; 12 #include <dt-bindings/gpio/gpio.h> 13 #include <dt-bindings/interrupt-controller/irq.h> 15 #include "k3-pinctrl.h" 18 connector-hdmi { 19 compatible = "hdmi-connector"; 22 ddc-i2c-bus = <&main_i2c1>; [all …]
|
/linux/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | ingress_rif_conf_1d.sh | 2 # SPDX-License-Identifier: GPL-2.0 8 # +-------------------+ +--------------------+ 11 # | $h1.10 + | | + $h2.10 | 15 # +----------------|--+ +--|-----------------+ 17 # +----------------|-------------------------|-----------------+ 20 # | +--------------|-------------------------|---------------+ | 21 # | | $swp1.10 + + $swp2.10 | | 25 # | +--------------------------------------------------------+ | 27 # | $swp3.10 + | 31 # +---------------|--------------------------------------------+ [all …]
|
H A D | egress_vid_classification.sh | 2 # SPDX-License-Identifier: GPL-2.0 5 # configuration does not impact switch behavior. Verify that {RIF, Port}->VID 6 # mapping is added correctly for existing {Port, VID}->FID mapping and that 7 # {RIF, Port}->VID mapping is added correctly for new {Port, VID}->FID mapping. 9 # +-------------------+ +--------------------+ 12 # | $h1.10 + | | + $h2.10 | 16 # +----------------|--+ +--|-----------------+ 18 # +----------------|-------------------------|-----------------+ 21 # | +--------------|-------------------------|---------------+ | 22 # | | $swp1.10 + + $swp2.10 | | [all …]
|
/linux/tools/testing/selftests/mm/ |
H A D | guard-regions.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 #include <asm-generic/mman.h> /* Force the import of the tools version. */ 76 switch (variant->backing) { in is_anon_backed() 93 switch (variant->backing) { in mmap_() 96 fd = -1; in mmap_() 101 fd = self->fd; in mmap_() 265 self->page_size = (unsigned long)sysconf(_SC_PAGESIZE); in FIXTURE_SETUP() 268 switch (variant->backing) { in FIXTURE_SETUP() 272 self->fd = open_file("", self->path); in FIXTURE_SETUP() 275 self->fd = memfd_create(self->path, 0); in FIXTURE_SETUP() [all …]
|
/linux/drivers/pinctrl/qcom/ |
H A D | tlmm-test.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 #define pr_fmt(fmt) "tlmm-test: " fmt 23 * (pinctrl-msm) delivers expected number of interrupts in response to changing 27 * "gpio", which the tester is expected to specify an unused and non-connected 41 static int tlmm_test_gpio = -1; 57 * struct tlmm_test_priv - Per-test context 102 if (priv->intr_op & TLMM_TEST_COUNT) in tlmm_test_intr_fn() 103 atomic_inc(&priv->intr_count); in tlmm_test_intr_fn() 105 if (priv->intr_op & TLMM_TEST_OUTPUT_LOW) in tlmm_test_intr_fn() 107 if (priv->intr_op & TLMM_TEST_OUTPUT_HIGH) in tlmm_test_intr_fn() [all …]
|
/linux/drivers/pinctrl/tegra/ |
H A D | pinctrl-tegra234.c | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * Copyright (c) 2021-2023, NVIDIA CORPORATION. All rights reserved. 16 #include "pinctrl-tegra.h" 1382 #define PINGROUP_REG_N(r) -1 1385 #define DRV_PINGROUP_N(r) -1 1388 .drv_reg = -1, \ 1389 .drv_bank = -1, \ 1390 .drvdn_bit = -1, \ 1391 .drvup_bit = -1, \ 1392 .slwr_bit = -1, \ [all …]
|
/linux/drivers/regulator/ |
H A D | mt6358-regulator.c | 1 // SPDX-License-Identifier: GPL-2.0 13 #include <linux/regulator/mt6358-regulator.h> 16 #include <dt-bindings/regulator/mediatek,mt6397-regulator.h> 48 .n_voltages = ((max) - (min)) / (step) + 1, \ 101 .n_voltages = ((max) - (min)) / (step) + 1, \ 143 .supply_name = "vsys-" match, \ 149 .n_voltages = ((max) - (min)) / (step) + 1, \ 202 .n_voltages = ((max) - (min)) / (step) + 1, \ 242 REGULATOR_LINEAR_RANGE(600000, 0, 10, 10000), 243 REGULATOR_LINEAR_RANGE(1800000, 0, 10, 10000), [all …]
|
/linux/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
H A D | rate.c | 31 /* 10 */ 0x00, 0x37, 0x8b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8f, 0x00, 46 {6500, 13500, CEIL(6500 * 10, 9), CEIL(13500 * 10, 9), 0x00, 49 {13000, 27000, CEIL(13000 * 10, 9), CEIL(27000 * 10, 9), 0x08, 52 {19500, 40500, CEIL(19500 * 10, 9), CEIL(40500 * 10, 9), 0x0A, 55 {26000, 54000, CEIL(26000 * 10, 9), CEIL(54000 * 10, 9), 0x10, 58 {39000, 81000, CEIL(39000 * 10, 9), CEIL(81000 * 10, 9), 0x12, 61 {52000, 108000, CEIL(52000 * 10, 9), CEIL(108000 * 10, 9), 0x19, 64 {58500, 121500, CEIL(58500 * 10, 9), CEIL(121500 * 10, 9), 0x1A, 67 {65000, 135000, CEIL(65000 * 10, 9), CEIL(135000 * 10, 9), 0x1C, 70 {13000, 27000, CEIL(13000 * 10, 9), CEIL(27000 * 10, 9), 0x40, [all …]
|
/linux/drivers/rtc/ |
H A D | rtc-msm6242.c | 1 // SPDX-License-Identifier: GPL-2.0-only 23 MSM6242_SECOND1 = 0x0, /* 1-second digit register */ 24 MSM6242_SECOND10 = 0x1, /* 10-second digit register */ 25 MSM6242_MINUTE1 = 0x2, /* 1-minute digit register */ 26 MSM6242_MINUTE10 = 0x3, /* 10-minute digit register */ 27 MSM6242_HOUR1 = 0x4, /* 1-hour digit register */ 28 MSM6242_HOUR10 = 0x5, /* PM/AM, 10-hour digit register */ 29 MSM6242_DAY1 = 0x6, /* 1-day digit register */ 30 MSM6242_DAY10 = 0x7, /* 10-day digit register */ 31 MSM6242_MONTH1 = 0x8, /* 1-month digit register */ [all …]
|
/linux/tools/testing/selftests/ftrace/test.d/kprobe/ |
H A D | kprobe_args_syntax.tc | 2 # SPDX-License-Identifier: GPL-2.0 10 if ! grep -qw ${GOODSYM} /proc/kallsyms ; then 14 SYMADDR=0x`grep -w ${GOODSYM} /proc/kallsyms | cut -f 1 -d " "` 18 case `uname -m` in 56 test_goodarg() # Good-args 64 test_badarg() # Bad-args 79 test_goodarg "@${GOODSYM}" "@${SYMADDR}" "@${GOODSYM}+10" "@${GOODSYM}-10" 80 test_badarg "@" "@${BADSYM}" "@${GOODSYM}*10" "@${GOODSYM}/10" \ 81 "@${GOODSYM}%10" "@${GOODSYM}&10" "@${GOODSYM}|10" 85 test_badarg "\$stackp" "\$stack0+10" "\$stack1-10" [all …]
|
/linux/Documentation/i2c/busses/ |
H A D | i2c-nforce2.rst | 2 Kernel driver i2c-nforce2 6 * nForce2 MCP 10de:0064 7 * nForce2 Ultra 400 MCP 10de:0084 8 * nForce3 Pro150 MCP 10de:00D4 9 * nForce3 250Gb MCP 10de:00E4 10 * nForce4 MCP 10de:0052 11 * nForce4 MCP-04 10de:0034 12 * nForce MCP51 10de:0264 13 * nForce MCP55 10de:0368 14 * nForce MCP61 10de:03EB [all …]
|