/linux/tools/testing/selftests/net/forwarding/ |
H A D | bridge_locked_port.sh | 2 # SPDX-License-Identifier: GPL-2.0 21 simple_if_init $h1 192.0.2.1/24 2001:db8:1::1/64 22 vlan_create $h1 100 v$h1 198.51.100.1/24 27 vlan_destroy $h1 100 28 simple_if_fini $h1 192.0.2.1/24 2001:db8:1::1/64 33 simple_if_init $h2 192.0.2.2/24 2001:db8:1::2/64 34 vlan_create $h2 100 v$h2 198.51.100.2/24 39 vlan_destroy $h2 100 40 simple_if_fini $h2 192.0.2.2/24 2001:db8:1::2/64 45 ip link add dev br0 type bridge vlan_filtering 1 [all …]
|
H A D | sch_red.sh | 2 # SPDX-License-Identifier: GPL-2.0 11 # +------- [all...] |
H A D | mirror_gre_topo_lib.sh | 1 # SPDX-License-Identifier: GPL-2.0 4 # netdevices. The tests that use it tweak it in one way or another--importantly, 7 # +---------------------+ +---------------------+ 11 # +-----|---------------+ +---------------|-----+ 13 # +-----|-------------------------------------------------------------|-----+ 14 # | SW o--> mirror | | 15 # | +---|-------------------------------------------------------------|---+ | 16 # | | + $swp1 BR $swp2 + | | 17 # | +---------------------------------------------------------------------+ | 20 # | | : loc=2001:db8:2::1 : loc=192.0.2.129 | [all …]
|
H A D | tc_flower_port_range.sh | 2 # SPDX-License-Identifier: GPL-2.0 4 # +-----------------------+ +----------------------+ 8 # | | 2001:db8:1::1/64 | | 2001:db8:1::2/64 | | 9 # +----|------------------+ +------------------|---+ 11 # +----|-------------------------------------------------------------------|---+ 13 # | +-|-------------------------------------------------------------------|-+ | 14 # | | + $swp1 BR $swp2 + | | 15 # | +-----------------------------------------------------------------------+ | 16 # +----------------------------------------------------------------------------+ 31 simple_if_init $h1 192.0.2.1/28 2001:db8:1::1/64 [all …]
|
H A D | mirror_gre_bound.sh | 2 # SPDX-License-Identifier: GPL-2.0 4 # +---------------------+ +---------------------+ 8 # +-----|---------------+ +---------------|-----+ 10 # +-----|-------------------------------------------------------------|-----+ 11 # | SW o--> mirror | | 12 # | +---|-------------------------------------------------------------|---+ | 13 # | | + $swp1 BR $swp2 + | | 14 # | +---------------------------------------------------------------------+ | 16 # | +---------------------------------------------------------------------+ | 18 # | | : loc=2001:db8:2::1 : loc=192.0.2.129 | | [all …]
|
/linux/net/bridge/ |
H A D | br_if.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 52 return 100; in port_cost() 54 return 100; in port_cost() 57 return 1; in port_cost() 62 if (!strncmp(dev->name, "lec", 3)) in port_cost() 65 if (!strncmp(dev->name, "plip", 4)) in port_cost() 68 return 100; /* assume old 10Mbps */ in port_cost() 75 struct net_device *dev = p->dev; in br_port_carrier_check() 76 struct net_bridge *br = p->br; in br_port_carrier_check() local 78 if (!(p->flags & BR_ADMIN_COST) && in br_port_carrier_check() [all …]
|
H A D | br_cfm.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 static struct br_cfm_mep *br_mep_find(struct net_bridge *br, u32 instance) in br_mep_find() argument 11 hlist_for_each_entry(mep, &br->mep_list, head) in br_mep_find() 12 if (mep->instance == instance) in br_mep_find() 18 static struct br_cfm_mep *br_mep_find_ifindex(struct net_bridge *br, in br_mep_find_ifindex() argument 23 hlist_for_each_entry_rcu(mep, &br->mep_list, head, in br_mep_find_ifindex() 25 if (mep->create.ifindex == ifindex) in br_mep_find_ifindex() 36 hlist_for_each_entry_rcu(peer_mep, &mep->peer_mep_list, head, in br_peer_mep_find() 38 if (peer_mep->mepid == mepid) in br_peer_mep_find() 44 static struct net_bridge_port *br_mep_get_port(struct net_bridge *br, in br_mep_get_port() argument [all …]
|
/linux/arch/alpha/include/asm/ |
H A D | bitops.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 17 * These have to be done with inline assembly: that way the bit-setting 25 * bit 0 is the LSB of addr; bit 64 is the LSB of (addr+1). 35 "1: ldl_l %0,%3\n" in set_bit() 37 " stl_c %0,%1\n" in set_bit() 40 "2: br 1b\n" in set_bit() 43 :"Ir" (1UL << (nr & 31)), "m" (*m)); in set_bit() 54 *m |= 1 << (nr & 31); in arch___set_bit() 64 "1: ldl_l %0,%3\n" in clear_bit() 66 " stl_c %0,%1\n" in clear_bit() [all …]
|
/linux/drivers/acpi/ |
H A D | acpi_video.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * video.c - ACPI Video Driver 7 * Copyright (C) 2006 Thomas Tuttle <linux-kernel@ttuttle.net> 52 static int report_key_events = -1; 55 "0: none, 1: output changes, 2: brightness changes, 3: all"); 57 static int hw_changes_brightness = -1; 60 "Set this to 1 on buggy hw which changes the brightness itself when " 61 "a hotkey is pressed: -1: auto, 0: normal 1: hw-changes-brightness"); 111 u8 multihead:1; /* can switch video heads */ 112 u8 rom:1; /* can retrieve a video rom */ [all …]
|
/linux/tools/perf/util/ |
H A D | block-range.c | 1 // SPDX-License-Identifier: GPL-2.0 2 #include "block-range.h" 21 assert(old < entry->start); in block_range__debug() 22 assert(entry->start <= entry->end); /* single instruction block; jump to a jump */ in block_range__debug() 24 old = entry->end; in block_range__debug() 39 if (addr < entry->start) in block_range__find() 40 p = &parent->rb_left; in block_range__find() 41 else if (addr > entry->end) in block_range__find() 42 p = &parent->rb_right; in block_range__find() 52 struct rb_node **p = &node->rb_left; in rb_link_left_of_node() [all …]
|
H A D | annotate.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Parts came from builtin-annotate.c, see those files for further 16 #include "build-id.h" 30 #include "annotate-data.h" 33 #include "bpf-event.h" 34 #include "bpf-utils.h" 35 #include "block-rang 666 annotate__address_color(struct block_range * br) annotate__address_color() argument 683 annotate__asm_color(struct block_range * br) annotate__asm_color() argument 696 annotate__branch_printf(struct block_range * br,u64 addr) annotate__branch_printf() argument 752 struct block_range *br; disasm_line__print() local [all...] |
/linux/drivers/net/wireless/ti/wl12xx/ |
H A D | conf.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 41 * Range: 0 - 255 (ms) 50 * Range: 0 - 255 (ms) 59 * Range: 0 - 255 (ms) 68 * Range: 0 - 255 (ms) 75 * in WLAN PSM / BT master/slave BR 77 * Range: 0 - 255 (ms) 86 * Range: 0 - 255 (ms) 112 * Range: 0 - 255 (%) 120 * Range: 0 - 255 (%) [all …]
|
/linux/drivers/usb/serial/ |
H A D | oti6858.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Ours Technology Inc. OTi-6858 USB to serial adapter driver. 6 * Copyright (C) 2006 Tomasz Michal Lukaszewski (FIXME: add e-mail) 7 * Copyright (C) 2001-2004 Greg Kroah-Hartman (greg@kroah.com) 11 * are heavily based on pl2303 code, buffering code is a 1-to-1 copy. 17 * - analyzing traffic between device and the M$ Windows 2000 driver, 18 * - trying different bit combinations and checking pin states 20 * - receiving malformed frames and producing buffer overflows 22 * So, THIS CODE CAN DESTROY OTi-6858 AND ANY OTHER DEVICES, THAT ARE 25 * See Documentation/usb/usb-serial.rst for more information on using this [all …]
|
/linux/drivers/hid/ |
H A D | hid-led.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * Based on drivers/hid/hid-thingm.c and 16 #include "hid-ids.h" 32 /* R+2G+4B -> riso kagaku color index */ 34 [1] = 2, /* red */ 35 [2] = 1, /* green */ 43 #define RISO_KAGAKU_IX(r, g, b) riso_kagaku_tbl[((r)?1:0)+((g)?2:0)+((b)?4:0)] 64 #define DELCOM_RED_LED 1 79 int (*write)(struct led_classdev *cdev, enum led_brightness br); 117 mutex_lock(&ldev->lock); in hidled_send() [all …]
|
/linux/tools/perf/tests/shell/ |
H A D | record_lbr.sh | 3 # SPDX-License-Identifier: GPL-2.0 5 set -e 7 if [ ! -f /sys/devices/cpu/caps/branches ] && [ ! -f /sys/devices/cpu_core/caps/branches ] 17 rm -rf "${perfdata}" 18 rm -rf "${perfdata}".old 19 rm -rf "${perfdata}".txt 21 trap - EXI [all...] |
/linux/sound/pci/asihpi/ |
H A D | hpi.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 5 Copyright (C) 1997-2011 AudioScience Inc. <support@audioscience.com> 14 The HPI is a low-level hardware abstraction layer to all 17 (C) Copyright AudioScience Inc. 1998-2010 37 /** 8-bit unsigned PCM. Windows equivalent is WAVE_FORMAT_PCM. */ 38 HPI_FORMAT_PCM8_UNSIGNED = 1, 39 /** 16-bit signed PCM. Windows equivalent is WAVE_FORMAT_PCM. */ 41 /** MPEG-1 Layer-1. */ 43 /** MPEG-1 Layer-2. 49 <table border=1 cellspacing=0 cellpadding=5> [all …]
|
/linux/Documentation/networking/device_drivers/ethernet/dec/ |
H A D | dmfe.rst | 1 .. SPDX-License-Identifier: GPL-2.0 22 10/100 ethernet cards uses Davicom chipset too, so this driver supports CNET cards too ).If you 26 dmfe: Davicom DM9xxx net driver, version 1.36.4 (2002-01-17) 36 insmod dmfe mode=1 # Force 100M Half Duplex 38 insmod dmfe mode=5 # Force 100M Full Duplex 56 - Implement pci_driver::suspend() and pci_driver::resume() power management methods. 57 - Check on 64 bit boxes. 58 - Check and fix on big endian boxes. 59 - Test and make sure PCI latency is now correct for all cases. 68 - Marcelo Tosatti <marcelo@conectiva.com.br> [all …]
|
/linux/tools/testing/selftests/drivers/net/bonding/ |
H A D | bond_topo_2d1c.sh | 2 # SPDX-License-Identifier: GPL-2.0 4 # Topology for Bond mode 1,5,6 testing 6 # +-------------------------+ 9 # | eth0 | eth1 | 2001:db8::1/24 10 # | +---+---+ | 12 # +-------------------------+ 14 # +-------------------------+ 16 # | +---+-------+---+ | Gateway 18 # | +-------+-------+ | 2001:db8::254/24 20 # +-------------------------+ [all …]
|
/linux/tools/testing/selftests/tc-testing/tc-tests/filters/ |
H A D | flower.json | 4 "name": "Add 1M flower filters with 10 parallel tc instances", 15 "cmdUnderTest": "bash -c \"find $BATCH_DIR/add* -print | xargs -n 1 -P 10 $TC -b\"", 17 "verifyCmd": "$TC -s filter show dev $DEV2 ingress", 18 "matchPattern": "filter protocol ip pref 1 flower chain 0 handle", 22 "/bin/rm -rf $BATCH_DIR" 27 "name": "Delete 1M flower filters with 10 parallel tc instances", 36 "./tdc_multibatch.py $DEV2 $BATCH_DIR 1000000 1 add", 37 "$TC -b $BATCH_DIR/add_0", 40 "cmdUnderTest": "bash -c \"find $BATCH_DIR/del* -print | xargs -n 1 -P 10 $TC -b\"", 42 "verifyCmd": "$TC -s filter show dev $DEV2 ingress", [all …]
|
/linux/fs/ubifs/ |
H A D | sb.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2006-2008 Nokia Corporation. 13 * LEB of the volume and is never changed by UBIFS. Only user-space tools may 35 #define DEFAULT_JHEADS_CNT 1 39 #define DEFAULT_DATA_LEB 1 69 * create_default_filesystem - format empty UBI volume. 70 * @c: UBIFS file-system description object 72 * This function creates default empty file-system. Returns zero in case of 80 struct ubifs_branch *br; in create_default_filesystem() local 94 /* Some functions called from here depend on the @c->key_len filed */ in create_default_filesystem() [all …]
|
/linux/fs/ocfs2/dlm/ |
H A D | dlmrecovery.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 85 static u64 dlm_mig_cookie = 1; 93 dlm_mig_cookie = 1; in dlm_get_next_mig_cookie() 103 assert_spin_locked(&dlm->spinlock); in dlm_set_reco_dead_node() 104 if (dlm->reco.dead_node != dead_node) in dlm_set_reco_dead_node() 106 dlm->name, dlm->reco.dead_node, dead_node); in dlm_set_reco_dead_node() 107 dlm->reco.dead_node = dead_node; in dlm_set_reco_dead_node() 113 assert_spin_locked(&dlm->spinlock); in dlm_set_reco_master() 115 dlm->name, dlm->reco.new_master, master); in dlm_set_reco_master() 116 dlm->reco.new_master = master; in dlm_set_reco_master() [all …]
|
/linux/tools/perf/ |
H A D | builtin-script.c | 1 // SPDX-License-Identifier: GPL-2.0 7 #include <subcmd/exec-cmd.h> 9 #include <subcmd/parse-options.h> 17 #include "util/trace-event.h" 31 #include "util/thread-stack.h" 32 #include "util/time-utils.h" 35 #include "util/mem-info.h" 47 #include "util/mem-event 926 mispred_str(struct branch_entry * br) mispred_str() argument 934 print_bstack_flags(FILE * fp,struct branch_entry * br) print_bstack_flags() argument 949 struct branch_stack *br = sample->branch_stack; perf_sample__fprintf_brstack() local 988 struct branch_stack *br = sample->branch_stack; perf_sample__fprintf_brstacksym() local 1026 struct branch_stack *br = sample->branch_stack; perf_sample__fprintf_brstackoff() local 1327 struct branch_stack *br = sample->branch_stack; perf_sample__fprintf_brstackinsn() local [all...] |
/linux/tools/testing/selftests/net/ |
H A D | rtnetlink.sh | 5 # set -e 35 devdummy="test-dummy0" 45 if [ $ret -eq 0 ]; then 46 ret=$1 48 [ -n "$2" ] && echo "$2" 51 # same but inverted -- used when command must fail for test to pass 54 if [ $1 -eq 0 ]; then 55 ret=1 63 if [ "$VERBOSE" = "1" ]; then 66 out=$($cmd 2>&1) [all …]
|
/linux/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | mirror_gre_scale.sh | 1 # SPDX-License-Identifier: GPL-2.0 3 # Test offloading a number of mirrors-to-gretap. The test creates a number of 8 # +--------------------------+ +--------------------------+ 11 # | | 2001:db8:1:X::1/64 | | 2001:db8:1:X::2/64 | | 12 # +-----|--------------------+ +--------------------|-----+ 14 # +-----|-------------------------------------------------------------|-----+ 15 # | SW o--> mirrors | | 16 # | +---|-------------------------------------------------------------|---+ | 17 # | | + $swp1 BR $swp2 + | | 18 # | +---------------------------------------------------------------------+ | [all …]
|
/linux/drivers/net/ethernet/brocade/bna/ |
H A D | bfa_defs_status.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Linux network driver for QLogic BR-series Converged Network Adapter. 6 * Copyright (c) 2005-2014 Brocade Communications Systems, Inc. 7 * Copyright (c) 2014-2015 QLogic Corporation 21 BFA_STATUS_FAILED = 1, 120 BFA_STATUS_IM_VLANID_IS_PVID = 100, 205 BFA_EPROTO_UNKNOWN_RSP = 1
|