/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 # +--------------------------+ +--------------------------+ 16 # +-----|--------------------+ +-----|--------------------+ 18 # +-----|------------------------------------------------|--------------------+ 20 # | +--|------------------------------------------------|----------------+ | 22 # | | BR | | 26 # | +--------------------------------|-----------------------------------+ | 28 # +-----------------------------------|---------------------------------------+ 30 # +-----|--------------------+ 35 # +--------------------------+ [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/drivers/thermal/intel/int340x_thermal/ |
H A D | int3406_thermal.c | 1 // SPDX-License-Identifier: GPL-2.0-only 22 struct acpi_video_device_brightness *br; member 29 * "Each brightness level is represented by a number between 0 and 100, 37 #define ACPI_TO_RAW(v, d) (d->raw_bd->props.max_brightness * v / 100) 38 #define RAW_TO_ACPI(v, d) (v * 100 / d->raw_bd->props.max_brightness) 44 struct int3406_thermal_data *d = cooling_dev->devdata; in int3406_thermal_get_max_state() 46 *state = d->upper_limit - d->lower_limit; in int3406_thermal_get_max_state() 54 struct int3406_thermal_data *d = cooling_dev->devdata; in int3406_thermal_set_cur_state() 57 if (state > d->upper_limit - d->lower_limit) in int3406_thermal_set_cur_state() 58 return -EINVAL; in int3406_thermal_set_cur_state() [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-range.h" 37 #include "dwarf-regs.h" 50 #include <subcmd/parse-options.h> 51 #include <subcmd/run-command.h> [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/Documentation/devicetree/bindings/net/ |
H A D | ethernet-phy.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/net/ethernet-phy.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Andrew Lunn <andrew@lunn.ch> 11 - Florian Fainelli <f.fainelli@gmail.com> 12 - Heiner Kallweit <hkallweit1@gmail.com> 14 # The dt-schema tools will generate a select statement first by using 21 pattern: "^ethernet-phy(@[a-f0-9]+)?$" 24 - $nodename [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 - EXIT TERM INT 26 exit 1 35 if ! perf record -e cycles --call-graph lbr -o "${perfdata}" perf test -w thloop 38 if [ $err -eq 0 ] [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-events.h" 48 #include "util/dump-insn.h" 70 #include <traceevent/event-parse.h> [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 …]
|