| /linux/drivers/scsi/arm/ |
| H A D | queue.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * linux/drivers/acorn/scsi/queue.c: queue handling primitives 5 * Copyright (C) 1997-2000 Russell King 8 * 15-Sep-1997 RMK Created. 9 * 11-Oct-1997 RMK Corrected problem with queue_remove_exclude 12 * 30-Aug-2000 RMK Use Linux list handling and spinlocks 43 #define SET_MAGIC(q,m) ((q)->magic = (m)) 44 #define BAD_MAGIC(q,m) ((q)->magic != (m)) 50 #include "queue.h" 55 * Function: void queue_initialise (Queue_t *queue) [all …]
|
| /linux/net/tipc/ |
| H A D | link.c | 4 * Copyright (c) 1996-2007, 2012-2016, Ericsson AB 5 * Copyright (c) 2004-2007, 2010-2013, Wind River Systems 73 u32 max_queue_sz; /* send queue size high water mark */ 74 u32 accu_queue_sz; /* used for send queue size profiling */ 75 u32 queue_sz_counts; /* used for send queue size profiling */ 82 * struct tipc_link - TIPC link data structure 99 * @backlogq: queue for messages waiting to be sent 103 * @inputq: buffer queue for messages to be delivered upwards 104 * @namedq: buffer queue for name table messages to be delivered upwards 117 * @failover_deferdq: deferred message queue for failover processing (FIXME) [all …]
|
| H A D | bcast.c | 4 * Copyright (c) 2004-2006, 2014-2017, Ericsson AB 6 * Copyright (c) 2005, 2010-2011, Wind River Systems 48 const char tipc_bclink_name[] = "broadcast-link"; 52 * struct tipc_bc_base - base structure for keeping broadcast send state 54 * @inputq: data input queue; will only carry SOCK_WAKEUP messages 79 return tipc_net(net)->bcbase; in tipc_bc_base() 82 /* tipc_bcast_get_mtu(): -get the MTU currently used by broadcast link 93 tipc_bc_base(net)->rcast_support = supp; in tipc_bcast_toggle_rcast() 101 bb->bc_threshold = 1 + (cluster_size * bb->rc_ratio / 100); in tipc_bcbase_calc_bc_threshold() 110 int all_dests = tipc_link_bc_peers(bb->link); in tipc_bcbase_select_primary() [all …]
|
| /linux/drivers/net/fddi/skfp/h/ |
| H A D | fplustm.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 59 struct s_txd_os txd_os ; /* OS - specific struct */ 76 struct s_rxd_os rxd_os ; /* OS - specific struct */ 104 struct s_smt_fp_rxd volatile *rx_curr_put ; /* next RxD to queue into */ 125 #define RX_FIFO_SPACE 0x4000 - RX_FIFO_OFF 130 #define TX_LARGE_FIFO TX_FIFO_SPACE - TX_SMALL_FIFO 133 #define RX_LARGE_FIFO RX_FIFO_SPACE - RX_SMALL_FIFO 138 u_short rx1_fifo_start ; /* rx queue start address */ 139 u_short rx1_fifo_size ; /* rx queue size */ 140 u_short rx2_fifo_start ; /* rx queue start address */ [all …]
|
| H A D | skfbi.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 15 * FDDI-Fx (x := {I(SA), P(CI)}) 19 /*--------------------------------------------------------------------------*/ 41 /* 0x0001 - 0x0003: reserved */ 49 /* 0x0010 - 0x006b: formac+ (supernet_3) fequently used registers */ 52 #define B0_ST1U 0x0010 /* read upper 16-bit of status reg 1 */ 53 #define B0_ST1L 0x0014 /* read lower 16-bit of status reg 1 */ 54 #define B0_ST2U 0x0018 /* read upper 16-bit of status reg 2 */ 55 #define B0_ST2L 0x001c /* read lower 16-bit of status reg 2 */ 59 #define B0_MDRU 0x0028 /* r/w upper 16-bit of mem. data reg */ [all …]
|
| /linux/tools/testing/selftests/drivers/net/hw/ |
| H A D | rss_ctx.py | 2 # SPDX-License-Identifier: GPL-2.0 30 if 'rss-hash-key' not in data: 32 non_zero = [x for x in data['rss-hash-key'] if x != 0] 33 ksft_eq(bool(non_zero), True, comment=f"RSS key is all zero {data['rss-hash-key']}") 37 return ethtool(f"-x {cfg.ifname} context {context}", json=True)[0] 41 stats = ip("-s -s link show dev " + cfg.ifname, json=True)[0] 54 return int(output.split()[-1]) 58 features = ethtool(f"-k {cfg.ifname}", json=True)[0] 59 if not features["ntuple-filters"]["active"]: 62 … raise KsftSkipEx("Ntuple filters not enabled on the device: " + str(features["ntuple-filters"])) [all …]
|
| /linux/tools/testing/selftests/drivers/net/netdevsim/ |
| H A D | tc-mq-visibility.sh | 2 # SPDX-License-Identifier: GPL-2.0-only 4 source ethtool-common.sh 6 set -o pipefail 9 n=$(tc qdisc show dev $NDEV | grep '^qdisc' | wc -l) 10 echo $((n - 1)) 19 if [ $n -ne $1 ]; then 40 ethtool -L $NDEV combined $n 47 ethtool -L $NDEV combined $n 53 n_child_assert 4 "One real queue" 55 ethtool -L $NDEV combined 1 [all …]
|
| /linux/arch/powerpc/include/asm/ |
| H A D | qspinlock.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 25 * This is compile-time, so if true then there may always be stealers, so the 35 * is purely FIFO through the queue. May have more benefit in real workload 43 * queue head. Miso is intended to make stores visible to other CPUs sooner. 65 * Seems to slow down lockstorm microbenchmark, suspect queue node just 73 return READ_ONCE(lock->val); in queued_spin_is_locked() 83 return !!(READ_ONCE(lock->val) & _Q_TAIL_CPU_MASK); in queued_spin_is_contended() 101 " bne- 2f \n" in __queued_spin_trylock_nosteal() 103 " bne- 1b \n" in __queued_spin_trylock_nosteal() 107 : "r" (&lock->val), "r" (new), in __queued_spin_trylock_nosteal() [all …]
|
| /linux/net/sched/ |
| H A D | sch_dualpi2.c | 1 // SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 4 * Author: Koen De Schepper <koen.de_schepper@nokia-bell-labs.com> 8 * Author: Chia-Yu Chang <chia-y [all...] |
| /linux/arch/arm/mm/ |
| H A D | cache-uniphier.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (C) 2015-2016 Socionext Inc. 15 #include <asm/hardware/cache-uniphier.h> 21 #define UNIPHIER_SSCC_ACT BIT(19) /* Inst-Data separate */ 23 #define UNIPHIER_SSCC_PRD BIT(17) /* enable pre-fetch */ 37 #define UNIPHIER_SSCOPE_CM_FLUSH_PREFETCH 0x9 /* flush p-fetch buf */ 38 #define UNIPHIER_SSCOQM 0x248 /* Cache Operation Queue Mode */ 46 #define UNIPHIER_SSCOQAD 0x24c /* Cache Operation Queue Address */ 47 #define UNIPHIER_SSCOQSZ 0x250 /* Cache Operation Queue Size */ 48 #define UNIPHIER_SSCOPPQSEF 0x25c /* Cache Operation Queue Set Complete*/ [all …]
|
| /linux/tools/testing/selftests/net/netfilter/ |
| H A D | nft_queue.sh | 24 rm -f "$TMPINPUT" 25 rm -f "$TMPFILE0" 26 rm -f "$TMPFILE1" 27 rm -f "$TMPFILE2" "$TMPFILE3" 30 checktool "nft --version" "test without nft tool" 31 checktool "socat -h" "run test without socat" 33 modprobe -q sctp 56 ip -net "$nsrouter" link set veth0 up 57 ip -net "$nsrouter" addr add 10.0.1.1/24 dev veth0 58 ip -net "$nsrouter" addr add dead:1::1/64 dev veth0 nodad [all …]
|
| /linux/lib/ |
| H A D | lwq.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Light-weight single-linked queue. 25 spin_lock(&q->lock); in __lwq_dequeue() 26 this = q->ready; in __lwq_dequeue() 27 if (!this && !llist_empty(&q->new)) { in __lwq_dequeue() 28 /* ensure queue doesn't appear transiently lwq_empty */ in __lwq_dequeue() 29 smp_store_release(&q->ready, (void *)1); in __lwq_dequeue() 30 this = llist_reverse_order(llist_del_all(&q->new)); in __lwq_dequeue() 32 q->ready = NULL; in __lwq_dequeue() 35 q->ready = llist_next(this); in __lwq_dequeue() [all …]
|
| /linux/drivers/virtio/ |
| H A D | virtio_mmio.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright 2011-2014, ARM Ltd. 15 * .name = "virtio-mmio", 16 * .id = -1, 39 * 3. Kernel module (or command line) parameter. Can be used more than once - 55 #define pr_fmt(fmt) "virtio-mmio: " fmt 58 #include <linux/dma-mapping.h> 99 writel(1, vm_dev->base + VIRTIO_MMIO_DEVICE_FEATURES_SEL); in vm_get_features() 100 features = readl(vm_dev->base + VIRTIO_MMIO_DEVICE_FEATURES); in vm_get_features() 103 writel(0, vm_dev->base + VIRTIO_MMIO_DEVICE_FEATURES_SEL); in vm_get_features() [all …]
|
| /linux/kernel/locking/ |
| H A D | qspinlock_paravirt.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 16 * pv_wait(u8 *ptr, u8 val) -- suspends the vcpu if *ptr == val 17 * pv_kick(cpu) -- wakes a suspended vcpu 27 * Queue Node Adaptive Spinning 29 * A queue node vCPU will stop spinning if the vCPU in the previous node is 31 * mitigates the slight slowdown for non-overcommitted guest with this 32 * aggressive wait-early mechanism. 41 * Queue node uses: VCPU_RUNNING & VCPU_HALTED. 42 * Queue head uses: VCPU_RUNNING & VCPU_HASHED. 63 * The pending bit is set by the queue head vCPU of the MCS wait queue in [all …]
|
| /linux/drivers/net/ethernet/broadcom/bnx2x/ |
| H A D | bnx2x_reg.h | 3 * Copyright (c) 2007-2013 Broadcom Corporation 13 * R - Read only 14 * RC - Clear on read 15 * RW - Read/Write 16 * ST - Statistics register (clear on read) 17 * W - Write only 18 * WB - Wide bus register - the size is over 32 bits and it should be 20 * WR - Write Clear (write 1 to clear the bit) 32 /* [RW 1] Initiate the ATC array - reset all the valid bits */ 56 * BRB1_IND_FREE_LIST_PRS_CRDT+2 initialize parser initial credit. Warning - [all …]
|
| /linux/sound/core/seq/oss/ |
| H A D | seq_oss_midi.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 43 DEFINE_FREE(seq_oss_midi, struct seq_oss_midi *, if (!IS_ERR_OR_NULL(_T)) snd_use_lock_free(&(_T)->… 74 return -ENOMEM; in snd_seq_oss_midi_lookup_ports() 75 clinfo->client = -1; in snd_seq_oss_midi_lookup_ports() 77 if (clinfo->client == client) in snd_seq_oss_midi_lookup_ports() 79 pinfo->addr.client = clinfo->client; in snd_seq_oss_midi_lookup_ports() 80 pinfo->addr.port = -1; in snd_seq_oss_midi_lookup_ports() 98 snd_use_lock_use(&mdev->use_lock); in get_mdev() 114 if (mdev && mdev->client == client && mdev->port == port) { in find_slot() 116 snd_use_lock_use(&mdev->use_lock); in find_slot() [all …]
|
| /linux/tools/testing/selftests/drivers/net/ |
| H A D | stats.py | 2 # SPDX-License-Identifier: GPL-2.0 24 def check_pause(cfg) -> None: 31 ethnl.pause_get({"header": {"dev-index": cfg.ifindex}}) 37 data = ethnl.pause_get({"header": {"dev-index": cfg.ifindex, 42 def check_fec(cfg) -> None: 49 ethnl.fec_get({"header": {"dev-index": cfg.ifindex}}) 55 data = ethnl.fec_get({"header": {"dev-index": cfg.ifindex, 60 def check_fec_hist(cfg) -> Non [all...] |
| H A D | queues.py | 2 # SPDX-License-Identifier: GPL-2.0 15 def sys_get_queues(ifname, qtype='rx') -> int: 16 folders = glob.glob(f'/sys/class/net/{ifname}/queues/{qtype}-*') 27 def check_xsk(cfg, nl, xdp_queue_id=0) -> None: 29 xdp = cmd(f'{cfg.net_lib_dir / "xdp_helper"} - -', fail=False) 52 comment="xsk attr on queue we configured") 55 comment="xsk attr on queue w [all...] |
| /linux/drivers/net/fddi/skfp/ |
| H A D | fplustm.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 33 #define MS2BCLK(x) ((x)*12500L) 34 #define US2BCLK(x) ((x)*1250L) 49 #define DUMMY_READ() smc->hw.mc_dummy = (u_short) inp(ADDR(B0_RAP)) 52 while ((inpw(FM_A(FM_STMCHN)) & FM_SNPPND) && k) k--;\ 59 while (!(inpw(FM_A(FM_AFSTAT)) & FM_DONE) && k) k--;\ 76 #define MA smc->hw.fddi_canon_addr 78 #define MA smc->hw.fddi_home_addr 114 smc->mib.m[MAC0].fddiMACFrame_Ct = in mac_update_counter() 115 (smc->mib.m[MAC0].fddiMACFrame_Ct & 0xffff0000L) in mac_update_counter() [all …]
|
| /linux/drivers/scsi/ibmvscsi_tgt/ |
| H A D | ibmvscsi_tgt.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 4 * Copyright (C) 2003-2005 Dave Boutcher (boutcher@us.ibm.com) IBM Corp. 8 * Copyright (C) 2005-2011 FUJITA Tomonori <tomof@acm.org> 59 /* root node property "ibm,partition-no" */ 70 #define ADAPT_SUCCESS 0L 72 #define ERROR -40L 82 /* root node property ibm,partition-name */ 84 /* root node property ibm,partition-no */ 93 * considering the client will never service its queue again. 98 * has freed at least one element in the response queue. [all …]
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | bpf_arena_spin_lock.h | 1 // SPDX-License-Identifier: GPL-2.0 10 #define arch_mcs_spin_lock_contended_label(l, label) smp_cond_load_acquire_label(l, VAL, label) argument 11 #define arch_mcs_spin_unlock_contended(l) smp_store_release((l), 1) argument 27 * PowerPC overrides the definition to define lock->val as u32 instead of 59 /* FIXME: Using typedef causes CO-RE relocation error */ 78 * 0- 7: locked byte 80 * 9-15: not used 81 * 16-17: tail index 82 * 18-31: tail cpu (+1) 86 #define _Q_SET_MASK(type) (((1U << _Q_ ## type ## _BITS) - 1)\ [all …]
|
| /linux/arch/mips/include/asm/octeon/ |
| H A D | cvmx-pow.h | 7 * Copyright (c) 2003-2008 Cavium Networks 14 * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty 21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 31 * New, starting with SDK 1.7.0, cvmx-pow supports a number of 36 * enabled. For example, cvmx-pow will check for the following 38 * - Requesting a POW operation with an active tag switch in 40 * - Waiting for a tag switch to complete for an excessively 43 * - Illegal tag switches from NULL_NULL. 44 * - Illegal tag switches from NULL. 45 * - Illegal deschedule request. [all …]
|
| /linux/drivers/media/pci/ngene/ |
| H A D | ngene-dvb.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * ngene-dvb.c: nGene PCIe bridge driver - DVB functions 5 * Copyright (C) 2005-2007 Micronas 7 * Copyright (C) 2008-2009 Ralph Metzler <rjkm@metzlerbros.de> 9 * support for EEPROM-copying, 10 * support for new dual DVB-S2 card prototype 39 struct dvb_device *dvbdev = file->private_data; in ts_write() 40 struct ngene_channel *chan = dvbdev->priv; in ts_write() 41 struct ngene *dev = chan->dev; in ts_write() 43 if (wait_event_interruptible(dev->tsout_rbuf.queue, in ts_write() [all …]
|
| /linux/drivers/usb/gadget/udc/ |
| H A D | omap_udc.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * omap_udc.c -- for OMAP full speed udc; most chips support OTG. 6 * Copyright (C) 2004-2005 David Brownell 32 #include <linux/dma-mapping.h> 41 #include <asm/mach-types.h> 43 #include <linux/omap-dma.h> 44 #include <linux/platform_data/usb-omap1.h> 46 #include <linux/soc/ti/omap1-usb.h> 47 #include <linux/soc/ti/omap1-soc.h> 48 #include <linux/soc/ti/omap1-io.h> [all …]
|
| /linux/Documentation/translations/it_IT/process/ |
| H A D | stable-kernel-rules.rst | 1 .. include:: ../disclaimer-ita.rst 3 :Original: :ref:`Documentation/process/stable-kernel-rules.rst <stable_kernel_rules>` 8 Tutto quello che volevate sapere sui rilasci -stable di Linux 12 "-stable": 14 - Questa patch o una equivalente deve esistere già nei sorgenti principali di 16 - Ovviamente dev'essere corretta e verificata. 17 - Non dev'essere più grande di 100 righe, incluso il contesto. 18 - Deve rispettare le regole scritte in 19 :ref:`Documentation/translations/it_IT/process/submitting-patches.rst <it_submittingpatches>` 20 - Deve correggere un vero baco che causi problemi agli utenti oppure aggiunge [all …]
|