/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 | 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.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 …]
|
/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/arch/powerpc/crypto/ |
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 …]
|
H A D | aes-gcm-p10.S | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 # Accelerated AES-GCM stitched implementation for ppc64le. 5 # Copyright 2022- IBM Inc. All rights reserved 22 # Hash keys = v3 - v14 29 # v31 - counter 1 32 # vs0 - vs14 for round keys 35 # This implementation uses stitched AES-GCM approach to improve overall performance. 48 # v15 - v18 - input states 49 # vs1 - vs9 - round keys 110 # v15 - v22 - input states [all …]
|
/linux/drivers/gpu/drm/display/ |
H A D | drm_dsc_helper.c | 1 // SPDX-License-Identifier: MIT 35 * drm_dsc_dp_pps_header_init() - Initializes the PPS Header 49 pps_header->HB1 = DP_SDP_PPS; in drm_dsc_dp_pps_header_init() 50 pps_header->HB2 = DP_SDP_PPS_HEADER_PAYLOAD_BYTES_MINUS_1; in drm_dsc_dp_pps_header_init() 55 * drm_dsc_dp_rc_buffer_size - get rc buffer size in bytes 57 * @rc_buffer_size: number of blocks - 1, according to DPCD offset 63h 82 * drm_dsc_pps_payload_pack() - Populates the DSC PPS 110 pps_payload->dsc_version = in drm_dsc_pps_payload_pack() 111 dsc_cfg->dsc_version_minor | in drm_dsc_pps_payload_pack() 112 dsc_cfg->dsc_version_major << DSC_PPS_VERSION_MAJOR_SHIFT; in drm_dsc_pps_payload_pack() [all …]
|
/linux/include/uapi/linux/ |
H A D | mdio.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 4 * Copyright 2006-2009 Solarflare Communications Inc. 25 #define MDIO_MMD_AN 7 /* Auto-Negotiation */ 39 #define MDIO_CTRL2 7 /* 10G control 2 */ 40 #define MDIO_STAT2 8 /* 10G status 2 */ 41 #define MDIO_PMA_TXDIS 9 /* 10G PMA/PMD transmit disable */ 42 #define MDIO_PMA_RXDET 10 /* 10G PMA/PMD receive signal detect */ 43 #define MDIO_PMA_EXTABLE 11 /* 10G PMA/PMD extended ability */ 59 /* Media-dependent registers. */ 60 #define MDIO_PMA_10GBT_SWAPPOL 130 /* 10GBASE-T pair swap & polarity */ [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 hdmi-connector { 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 | rtnetlink.sh | 2 # SPDX-License-Identifier: GPL-2.0 67 ip link add name vrf-test type vrf table 10 68 ip link set dev $swp1 master vrf-test 70 ip -4 address add 192.0.2.1/24 dev vrf-test 72 ip -6 address add 2001:db8:1::1/64 dev vrf-test 75 log_test "RIF - setting IP address on VRF" 77 ip link del dev vrf-test 110 log_test "RIF - attach port with bad MAC to bridge with set MAC" 129 ip link add link br0 name br0.10 type vlan id 10 130 ip -6 address add 2001:db8:1::1/64 dev br0.10 [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 …]
|
H A D | sch_red_ets.sh | 2 # SPDX-License-Identifier: GPL-2.0 28 tc qdisc add dev $swp3 parent 1: handle 10: $QDISC \ 34 local -a args=("$@") 36 tc qdisc add dev $swp3 parent 10:8 handle 108: red \ 43 local -a args=("$@") 45 tc qdisc add dev $swp3 parent 10:7 handle 107: red \ 60 tc qdisc del dev $swp3 parent 10:8 65 tc qdisc del dev $swp3 parent 10:7 84 do_ecn_test 10 $BACKLOG1 94 do_ecn_test_perband 10 $BACKLOG1 [all …]
|
/linux/tools/testing/selftests/bpf/ |
H A D | test_flow_dissector.sh | 2 # SPDX-License-Identifier: GPL-2.0 10 # Kselftest framework requirement - SKIP code is 4. 22 if [[ -z $(ip netns identify $$) ]]; then 30 if ! unshare --net $bpftool prog attach pinned \ 39 if unshare --net $bpftool prog attach pinned \ 51 rm -rf /sys/fs/bpf/flow 77 ./flow_dissector_load -d 2> /dev/null 78 if [ $unmount -ne 0 ]; then 84 # program/thing exits with a non-zero status. 85 set -e [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/tools/testing/selftests/tc-testing/tc-tests/filters/ |
H A D | route.json | 15 …est": "$TC filter add dev $DEV1 parent ffff: protocol ip prio 100 route from 1 to 10 classid 1:10", 18 "matchPattern": "flowid 1:10 to 10 from 1", 37 …"$TC filter add dev $DEV1 parent ffff: protocol ip prio 100 route fromif $DEV1 to 10 classid 1:10", 40 "matchPattern": "flowid 1:10 to 10 fromif", 59 …"cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: protocol ip prio 2 route to 10 classid 1:20… 62 …"matchPattern": "filter protocol ip pref.*route chain [0-9]+.*flowid 1:20 to 10.*action order [0-9… 81 …"cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: protocol ip prio 2 route from 10 classid 1:… 84 …"matchPattern": "filter protocol ip pref.*route chain [0-9]+.*flowid 1:100 from 10.*action continu… 103 …"cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: protocol ip prio 2 route from 10 to 2 class… 106 …"matchPattern": "filter protocol ip pref.*route chain [0-9]+.*flowid 1:1 to 2 from 10.*action pipe… [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 …]
|