| /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/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 27 if 'rss-hash-key' not in data: 29 non_zero = [x for x in data['rss-hash-key'] if x != 0] 30 ksft_eq(bool(non_zero), True, comment=f"RSS key is all zero {data['rss-hash-key']}") 34 return ethtool(f"- [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 | 23 rm -f "$TMPINPUT" 24 rm -f "$TMPFILE0" 25 rm -f "$TMPFILE1" 26 rm -f "$TMPFILE2" "$TMPFILE3" 29 checktool "nft --version" "test without nft tool" 30 checktool "socat -h" "run test without socat" 32 modprobe -q sctp 55 ip -net "$nsrouter" link set veth0 up 56 ip -ne [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/net/tipc/ |
| 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/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/net/rose/ |
| H A D | rose_subr.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 34 skb_queue_purge(&sk->sk_write_queue); in rose_clear_queues() 35 skb_queue_purge(&rose_sk(sk)->ack_queue); in rose_clear_queues() 39 * This routine purges the input queue of those frames that have been 40 * acknowledged. This replaces the boxes labelled "V(a) <- N(r)" on the 49 * Remove all the ack-ed frames from the ack queue. in rose_frames_acked() 51 if (rose->va != nr) { in rose_frames_acked() 52 while (skb_peek(&rose->ack_queue) != NULL && rose->va != nr) { in rose_frames_acked() 53 skb = skb_dequeue(&rose->ack_queue); in rose_frames_acked() 55 rose->va = (rose->va + 1) % ROSE_MODULUS; in rose_frames_acked() [all …]
|
| /linux/Documentation/driver-api/dmaengine/ |
| H A D | pxa_dma.rst | 2 PXA/MMP - DMA Slave controller 22 at the time of irq/dma tx2 is already finished, tx1->complete() and 23 tx2->complete() should be called. 36 A driver should be able to request a priority, especially the real-time 46 b) Transfer anatomy for a scatter-gather transfer 50 +------------+-----+---------------+----------------+-----------------+ 51 | desc-sg[0] | ... | desc-sg[last] | status updater | finisher/linker | 52 +------------+-----+---------------+----------------+-----------------+ 54 This structure is pointed by dma->sg_cpu. 57 - desc-sg[i]: i-th descriptor, transferring the i-th sg [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/firmware/ |
| H A D | ti_sci.h | 1 /* SPDX-License-Identifier: BSD-3-Clause */ 7 * See: https://software-dl.ti.com/tisci/esd/latest/index.html for details 9 * Copyright (C) 2015-2024 Texas Instruments Incorporated - https://www.ti.com/ 62 /* PSI-L requests */ 91 * struct ti_sci_msg_hdr - Generic Message Header for All messages and responses 112 * struct ti_sci_msg_resp_version - Response for a message 134 * struct ti_sci_msg_req_reboot - Reboot the SoC 145 * struct ti_sci_msg_resp_query_fw_caps - Response for query firmware caps 170 * struct ti_sci_msg_req_set_device_state - Set the desired state of the device 177 * + MSG_FLAG_DEVICE_WAKE_ENABLED - Configure the device to be a wake source. [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/gpu/drm/v3d/ |
| H A D | v3d_sysfs.c | 1 // SPDX-License-Identifier: MIT 3 * Copyright © 2023 Igalia S.L. 16 enum v3d_queue queue; in gpu_stats_show() local 20 len += sysfs_emit(buf, "queue\ttimestamp\tjobs\truntime\n"); in gpu_stats_show() 22 for (queue = 0; queue < V3D_MAX_QUEUES; queue++) { in gpu_stats_show() 23 struct v3d_stats *stats = &v3d->queue[queue].stats; in gpu_stats_show() 28 /* Each line will display the queue name, timestamp, the number in gpu_stats_show() 29 * of jobs sent to that queue and the runtime, as can be seem here: in gpu_stats_show() 31 * queue timestamp jobs runtime in gpu_stats_show() 39 v3d_queue_to_string(queue), in gpu_stats_show() [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/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/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 …]
|