/linux/arch/csky/abiv2/ |
H A D | strcpy.S | 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. 12 1: 56 br 1b 61 br 9f 65 br 9f 69 br 9f 73 br 9f 77 br 9f 81 br 9f [all …]
|
/linux/arch/csky/lib/ |
H A D | usercopy.c | 1 // SPDX-License-Identifier: GPL-2.0 2 // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. 13 "0: cmpnei %1, 0 \n" in raw_copy_from_user() 15 " mov %3, %1 \n" in raw_copy_from_user() 19 " bf 1f \n" in raw_copy_from_user() 20 " br 5f \n" in raw_copy_from_user() 21 "1: cmplti %0, 16 \n" in raw_copy_from_user() 24 "10: ldw %4, (%2, 4) \n" in raw_copy_from_user() 25 " stw %3, (%1, 0) \n" in raw_copy_from_user() 26 " stw %4, (%1, 4) \n" in raw_copy_from_user() [all …]
|
/linux/drivers/base/regmap/ |
H A D | regmap-spi-avmm.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // Register map access API - SPI AVMM support 5 // Copyright (C) 2018-2020 Intel Corporation. All rights reserved. 17 * The "SPI slave to Avalon Master Bridge" (spi-avmm) IP should be integrated 34 * Chapter "Avalon-ST Bytes to Packets and Packets to Bytes Converter Cores" 37 * Chapter "Avalon-ST Serial Peripheral Interface Core" describes the 47 * The spi-avmm IP on the slave chip decodes the byte stream and initiates 79 * it is proper that we limit 1KB xfer at max. 82 #define MAX_WRITE_CNT 1UL 144 * struct spi_avmm_bridge - SPI slave to AVMM bus master bridge [all …]
|
/linux/arch/sh/lib/ |
H A D | memcpy-sh4.S | 1 /* SPDX-License-Identifier: GPL-2.0 */ 7 * Modified from memcpy.S and micro-optimised for SH4 21 ! GHIJ KLMN OPQR --> ...G HIJK LMNO PQR. 30 add #-1,r5 ! 79 EX 34 add #-4,r5 ! 50 EX 53 bt/s 3b ! 109 BR 55 mov.l r3,@-r0 ! 30 LS 70 bt/s 3b ! 109 BR 72 mov.l r3,@-r0 ! 30 LS 79 add #-6,r2 ! 50 EX [all …]
|
/linux/net/bridge/ |
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 …]
|
H A D | br_stp_bpdu.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 44 skb->dev = p->dev; in br_send_bpdu() 45 skb->protocol = htons(ETH_P_802_2); in br_send_bpdu() 46 skb->priority = TC_PRIO_CONTROL; in br_send_bpdu() 55 llc_mac_hdr_init(skb, p->dev->dev_addr, p->br->group_addr); in br_send_bpdu() 60 dev_net(p->dev), NULL, skb, NULL, skb->dev, in br_send_bpdu() 83 if (p->br->stp_enabled != BR_KERNEL_STP) in br_send_config_bpdu() 87 buf[1] = 0; in br_send_config_bpdu() 90 buf[4] = (bpdu->topology_change ? 0x01 : 0) | in br_send_config_bpdu() 91 (bpdu->topology_change_ack ? 0x80 : 0); in br_send_config_bpdu() [all …]
|
H A D | br_stp_if.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 27 | (port_no & ((1<<BR_PORT_BITS)-1)); in br_make_port_id() 37 p->port_id = br_make_port_id(p->priority, p->port_no); in br_init_port() 40 p->topology_change_ack = 0; in br_init_port() 41 p->config_pending = 0; in br_init_port() 43 err = __set_ageing_time(p->dev, p->br->ageing_time); in br_init_port() 45 netdev_err(p->dev, "failed to offload ageing time\n"); in br_init_port() 49 void br_stp_enable_bridge(struct net_bridge *br) in br_stp_enable_bridge() argument 53 spin_lock_bh(&br->lock); in br_stp_enable_bridge() 54 if (br->stp_enabled == BR_KERNEL_STP) in br_stp_enable_bridge() [all …]
|
H A D | br_private_stp.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 15 /* IEEE 802.1D-1998 timer values */ 16 #define BR_MIN_HELLO_TIME (1*HZ) 17 #define BR_MAX_HELLO_TIME (10*HZ) 25 #define BR_MIN_PATH_COST 1 29 unsigned int topology_change:1; 30 unsigned int topology_change_ack:1; 44 return !memcmp(&p->designated_bridge, &p->br->bridge_id, 8) && in br_is_designated_port() 45 (p->designated_port == p->port_id); in br_is_designated_port() 50 void br_become_root_bridge(struct net_bridge *br); [all …]
|
H A D | br_input.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 35 struct net_device *indev, *brdev = BR_INPUT_SKB_CB(skb)->brdev; in br_pass_frame_up() 36 struct net_bridge *br = netdev_priv(brdev); in br_pass_frame_up() local 39 dev_sw_netstats_rx_add(brdev, skb->len); in br_pass_frame_up() 41 vg = br_vlan_group_rcu(br); in br_pass_frame_up() 53 if (!(brdev->flags & IFF_PROMISC) && in br_pass_frame_up() 59 indev = skb->dev; in br_pass_frame_up() 60 skb->dev = brdev; in br_pass_frame_up() 61 skb = br_handle_vlan(br, NULL, vg, skb); in br_pass_frame_up() 65 br_multicast_count(br, NULL, skb, br_multicast_igmp_type(skb), in br_pass_frame_up() [all …]
|
H A D | br_if.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 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() 80 p->path_cost = port_cost(dev); in br_port_carrier_check() 83 if (!netif_running(br->dev)) in br_port_carrier_check() [all …]
|
H A D | br_fdb.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 40 return -ENOMEM; in br_fdb_init() 50 int br_fdb_hash_init(struct net_bridge *br) in br_fdb_hash_init() argument 52 return rhashtable_init(&br->fdb_hash_tbl, &br_fdb_rht_params); in br_fdb_hash_init() 55 void br_fdb_hash_fini(struct net_bridge *br) in br_fdb_hash_fini() argument 57 rhashtable_destroy(&br->fdb_hash_tbl); in br_fdb_hash_fini() 63 static inline unsigned long hold_time(const struct net_bridge *br) in hold_time() argument 65 return br->topology_change ? br->forward_delay : br->ageing_time; in hold_time() 68 static inline int has_expired(const struct net_bridge *br, in has_expired() argument 71 return !test_bit(BR_FDB_STATIC, &fdb->flags) && in has_expired() [all …]
|
H A D | br_private.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 24 #define BR_HASH_SIZE (1 << BR_HASH_BITS) 26 #define BR_HOLD_TIME (1*HZ) 28 #define BR_PORT_BITS 10 29 #define BR_MAX_PORTS (1<<BR_PORT_BITS) 44 BR_GROUPFWD_MACPAUSE = BIT(1), 50 /* The Nearest Customer Bridge Group Address, 01-80-C2-00-00-[00,0B,0C,0D,0F] */ 54 #define BR_STP_PROG "/sbin/bridge-stp" 102 struct net_bridge *br; member 138 struct net_bridge *br; member [all …]
|
/linux/drivers/clk/qcom/ |
H A D | clk-branch.c | 1 // SPDX-License-Identifier: GPL-2.0 12 #include <linux/clk-provider.h> 15 #include "clk-branch.h" 17 static bool clk_branch_in_hwcg_mode(const struct clk_branch *br) in clk_branch_in_hwcg_mode() argument 21 if (!br->hwcg_reg) in clk_branch_in_hwcg_mode() 24 regmap_read(br->clkr.regmap, br->hwcg_reg, &val); in clk_branch_in_hwcg_mode() 26 return !!(val & BIT(br->hwcg_bit)); in clk_branch_in_hwcg_mode() 29 static bool clk_branch_check_halt(const struct clk_branch *br, bool enabling) in clk_branch_check_halt() argument 31 bool invert = (br->halt_check == BRANCH_HALT_ENABLE); in clk_branch_check_halt() 34 regmap_read(br->clkr.regmap, br->halt_reg, &val); in clk_branch_check_halt() [all …]
|
/linux/arch/nios2/kernel/ |
H A D | entry.S | 4 * Copyright (C) 2013-2014 Altera Corporation 9 * Copyright (C) 1999-2002, Greg Ungerer (gerg@snapgear.com) 29 #include <asm/asm-offsets.h> 30 #include <asm/asm-macros.h> 40 andhi \reg, sp, %hi(~(THREAD_SIZE-1)) 42 addi \reg, r0, %lo(~(THREAD_SIZE-1)) 51 * ea-4 = address of interrupted insn (ea must be preserved). 58 movui et, (KUSER_BASE + 4 + (cmpxchg_stw - __kuser_helper_start)) 59 bgtu ea, et, 1f 61 subi et, et, (cmpxchg_stw - cmpxchg_ldw) /* et = cmpxchg_ldw + 4 */ [all …]
|
/linux/arch/alpha/kernel/ |
H A D | entry.S | 1 /* SPDX-License-Identifier: GPL-2.0 */ 5 * Kernel entry-points. 8 #include <asm/asm-offsets.h> 39 .size \func, . - \func 43 * This defines the normal kernel pt-regs layout. 45 * regs 9-15 preserved by C code 46 * regs 16-18 saved by PAL-code 47 * regs 29-30 saved and set up by PAL-code 48 * JRP - Save regs 16-18 in a special area of the stack, so that 49 * the palcode-provided values are available to the signal handler. [all …]
|
/linux/arch/nios2/mm/ |
H A D | uaccess.c | 18 " bge r2,r6,1f\n" 23 "1: addi r6,r6,-1\n" 24 " movi r2,-1\n" 28 " addi r6,r6,-1\n" 29 " addi r5,r5,1\n" 31 " addi r3,r3,1\n" 34 " addi r2,r6,1\n" 38 "4: andi r2,r4,1\n" 44 " addi r6,r6,-2\n" 48 "6: bge r7,r6,1b\n" [all …]
|
/linux/tools/testing/selftests/net/forwarding/ |
H A D | sch_red.sh | 2 # SPDX-License-Identifier: GPL-2.0 11 # +------- [all...] |
H A D | bridge_mdb.sh | 2 # SPDX-License-Identifier: GPL-2.0 4 # +-----------------------+ +------------------------+ 6 # | + $h1.10 | | + $h2.10 | 8 # | | 2001:db8:1::1/64 | | | 2001:db8:1::2/64 | 12 # | \ | 2001:db8:2::1/64 | | \ | 2001:db8:2::2/64 | 15 # +----|------------------+ +----|-------------------+ 17 # +----|--------------------------------------------------|-------------------+ 19 # | +--|--------------------------------------------------|-----------------+ | 21 # | | vid 10 vid 10 | | 24 # | +-----------------------------------------------------------------------+ | [all …]
|
/linux/drivers/video/fbdev/sis/ |
H A D | sis_accel.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 11 * Copyright (C) 2001-2004 by Thomas Winischhofer, Vienna, Austria 13 * Copyright (C) 2001-2004 by Thomas Winischhofer, Vienna, Austria 28 #define CRITBEGIN spin_lock_irqsave(&ivideo->lockaccel, critflags); 29 #define CRITEND spin_unlock_irqrestore(&ivideo->lockaccel, critflags); 40 #define BR(x) (0x8200 | (x) << 2) macro 61 #define SRCCPUBLITBUF SRCSYSTEM /* source is CPU-driven BitBuffer (for color expand) */ 96 #define AGP_BASE 0x8206 /* color-depth dependent value */ 127 #define CmdQueLen ivideo->cmdqueuelength 129 /* ------------- SiS 300 series -------------- */ [all …]
|
/linux/drivers/net/ethernet/apm/xgene/ |
H A D | xgene_enet_cle.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 2 /* Applied Micro X-Gene SoC Ethernet Classifier structures 27 if (pdata->enet_id == XGENE_ENET1) { in xgene_cle_idt_to_hw() 41 buf[0] = SET_VAL(CLE_DROP, dbptr->drop); in xgene_cle_dbptr_to_hw() 42 buf[4] = SET_VAL(CLE_FPSEL, dbptr->fpsel) | in xgene_cle_dbptr_to_hw() 43 SET_VAL(CLE_NFPSEL, dbptr->nxtfpsel) | in xgene_cle_dbptr_to_hw() 44 SET_VAL(CLE_DSTQIDL, dbptr->dstqid); in xgene_cle_dbptr_to_hw() 46 buf[5] = SET_VAL(CLE_DSTQIDH, (u32)dbptr->dstqid >> CLE_DSTQIDL_LEN) | in xgene_cle_dbptr_to_hw() 47 SET_VAL(CLE_PRIORITY, dbptr->cle_priority); in xgene_cle_dbptr_to_hw() 55 buf[j++] = SET_VAL(CLE_TYPE, kn->node_type); in xgene_cle_kn_to_hw() [all …]
|
/linux/arch/s390/include/asm/ |
H A D | nospec-insn.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 57 .set .L__decode_fail,1 58 .irp r1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 64 .if .L__decode_fail == 1 70 .set .L__decode_fail,1 71 .irp r1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 73 .irp r2,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 81 .if .L__decode_fail == 1 89 555: br \reg 107 .long 557b-. [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/drivers/media/usb/dvb-usb/ |
H A D | vp7045.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * - TwinhanDTV Alpha/MagicBoxII USB2.0 DVB-T receiver 4 * - DigitalNow TinyUSB2 DVB-t receiver 6 * Copyright (C) 2004-5 Patrick Boettcher (patrick.boettcher@posteo.de) 10 * see Documentation/driver-api/media/drivers/dvb-usb.rst for more information 17 MODULE_PARM_DESC(debug, "set debugging level (1=info,xfer=2,rc=4 (or-able))." DVB_USB_DEBUG_STATUS); 28 u8 *buf = d->priv; in vp7045_usb_op() 38 ret = mutex_lock_interruptible(&d->usb_mutex); in vp7045_usb_op() 43 memcpy(&buf[1], out, outlen); in vp7045_usb_op() 46 debug_dump(buf, outlen+1, deb_xfer); in vp7045_usb_op() [all …]
|
/linux/arch/alpha/boot/ |
H A D | head.S | 1 /* SPDX-License-Identifier: GPL-2.0 */ 14 br $29,2f 45 stq $1,8($30) 54 stq $10,80($30) 65 br $17,1f 68 ldq $1,8($30) 77 ldq $10,80($30) 85 1: call_pal PAL_swppal 105 /* $16 - new stack page */ 112 and $0, $30, $1 /* Stack offset */ [all …]
|
/linux/drivers/net/hamradio/ |
H A D | z8530.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 8 #define R1 1 17 #define R10 10 37 /* Write Register 1 */ 73 #define SB1 0x4 /* 1 stop bit/char */ 91 #define SDLC_CRC 0x4 /* SDLC/CRC-16 */ 100 /* Write Register 6 (Sync bits 0-7/SDLC Address Field) */ 102 /* Write Register 7 (Sync bits 8-15/SDLC 01111110) */ 107 #define VIS 1 /* Vector Includes Status */ 117 /* Write Register 10 (misc control bits) */ [all …]
|