| /linux/net/core/ | 
| H A D | link_watch.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later51 		if (dev->reg_state <= NETREG_REGISTERED) in default_operstate()
 54 			iflink = dev->ifindex; in default_operstate()
 56 		if (iflink == dev->ifindex) in default_operstate()
 78 	if (operstate == READ_ONCE(dev->operstate)) in rfc2863_policy()
 81 	switch(dev->link_mod in rfc2863_policy()
 137 linkwatch_schedule_work(int urgent) linkwatch_schedule_work()  argument
 311 bool urgent = linkwatch_urgent_event(dev); linkwatch_fire_event()  local
 [all...]
 | 
| /linux/net/smc/ | 
| H A D | smc.h | 1 /* SPDX-License-Identifier: GPL-2.0 */3  *  Shared Memory Communications over RDMA (SMC-R) and RoCE
 139 	u8	urg_data_pending : 1;	/* Urgent Data Pending */
 140 	u8	urg_data_present : 1;	/* Urgent Data Present */
 155 union smc_host_cursor {	/* SMC cursor - an offset in an RMBE */
 198 	struct smc_link		*lnk;		/* assigned SMC-R link */
 221 						/* prod crsr - confirmed by peer
 223 	union smc_host_cursor	tx_curs_prep;	/* tx - prepared data
 226 	union smc_host_cursor	tx_curs_sent;	/* tx - sent data
 229 	union smc_host_cursor	tx_curs_fin;	/* tx - confirmed by peer
 [all …]
 
 | 
| /linux/include/net/ | 
| H A D | slhc_vj.h | 24  *	- Initial distribution.31  *	- 01-31-90	initial adaptation
 33  *	- Feb 1991	Bill_Simpson@um.cc.umich.edu
 51  * the receiver implicitly knows what changed -- see below).
 54  * in the following order): TCP urgent pointer, window,
 55  * acknowledgment, sequence number and IP ID.  (The urgent pointer
 60  * range 1 - 255 and 3 octets (0, MSB, LSB) for numbers in the
 61  * range 256 - 65535 or 0.  (If the change in sequence number or
 71  * with the 8-bit protocol field replaced by an 8-bit connection id --
 75  * LSB of 4-bit field is TCP "PUSH" bit (a worthless anachronism) and
 [all …]
 
 | 
| /linux/drivers/xen/ | 
| H A D | mcelog.c | 79 	    (xen_mce_chrdev_open_count && (file->f_flags & O_EXCL))) {  in xen_mce_chrdev_open()82 		return -EBUSY;  in xen_mce_chrdev_open()
 85 	if (file->f_flags & O_EXCL)  in xen_mce_chrdev_open()
 98 	xen_mce_chrdev_open_count--;  in xen_mce_chrdev_release()
 118 	err = -EINVAL;  in xen_mce_chrdev_read()
 134 		err = -EFAULT;  in xen_mce_chrdev_read()
 139 	return err ? err : buf - ubuf;  in xen_mce_chrdev_read()
 158 		return -EPERM;  in xen_mce_chrdev_ioctl()
 175 		return -ENOTTY;  in xen_mce_chrdev_ioctl()
 230 		return -ENODEV;  in convert_log()
 [all …]
 
 | 
| /linux/Documentation/process/ | 
| H A D | maintainer-kvm-x86.rst | 1 .. SPDX-License-Identifier: GPL-2.07 --------
 17 -----
 21 -----
 25 specific tree, ``github.com/kvm-x86/linux.git``.
 39 using finer-grained topic branches is to make it easier to keep tabs on an area
 42 in-flight commits' SHA1 hashes, and having to reject a pull request due to bugs
 46 via a Cthulhu merge on an as-needed basis, i.e. when a topic branch is updated.
 69 Patches that will be taken through a non-KVM tree (most often through the tip
 83 -----------
 [all …]
 
 | 
| /linux/arch/parisc/include/asm/ | 
| H A D | pdc_chassis.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */3  *	include/asm-parisc/pdc_chassis.h
 6  *	Copyright (C) 2002 Thibaut Varene <varenet@parisc-linux.org>
 8  *      TODO:	- handle processor number on SMP systems (Reporting Entity ID)
 9  *      	- handle message ID
 10  *      	- handle timestamps
 18  * ----------
 20  * ----------
 28  * -----------------
 30  * -----------------
 [all …]
 
 | 
| /linux/Documentation/admin-guide/mm/ | 
| H A D | userfaultfd.rst | 8 Userfaults allow the implementation of on-demand paging from userland38 Vmas are not suitable for page- (or hugepage) granular fault tracking
 48 is a corner case that would currently return ``-EBUSY``).
 54 ----------------------
 63 - Any user can always create a userfaultfd which traps userspace page faults
 67 - In order to also trap kernel page faults for the address space, either the
 84 --------------------------
 101 - The ``UFFD_FEATURE_EVENT_*`` flags indicate that various other events
 103   detail below in the `Non-cooperative userfaultfd`_ section.
 105 - ``UFFD_FEATURE_MISSING_HUGETLBFS`` and ``UFFD_FEATURE_MISSING_SHMEM``
 [all …]
 
 | 
| /linux/net/ipv4/ | 
| H A D | tcp_input.c | 1 // SPDX-License-Identifier: GPL-2.012  *		Corey Minyard <wf-rch!minyard@relay.EU.net>
 13  *		Florian La Roche, <flla@stud.uni-sb.de>
 62  *		Pasi Sarolahti:		F-RTO for dealing with spurious RTOs
 100 #define FLAG_DSACKING_ACK	0x800 /* SACK blocks contained D-SACK info */
 119 #define REXMIT_NEW	2 /* FRTO-style transmit of unsent/new packets */
 127 	tp->tcp_clean_acked = cad;  in clean_acked_data_enable()
 135 	tp->tcp_clean_acked = NULL;  in clean_acked_data_disable()
 149 	bool unknown_opt = tcp_sk(sk)->rx_opt.saw_unknown &&  in bpf_skops_parse_hdr()
 163 	switch (sk->sk_state) {  in bpf_skops_parse_hdr()
 [all …]
 
 | 
| H A D | tcp_output.c | 1 // SPDX-License-Identifier: GPL-2.0-only12  *		Corey Minyard <wf-rch!minyard@relay.EU.net>
 13  *		Florian La Roche, <flla@stud.uni-sb.de>
 33  *		Cacophonix Gaul :	draft-minshall-nagle-01
 61 	tp->tcp_clock_cache = val;  in tcp_mstamp_refresh()
 62 	tp->tcp_mstamp = div_u64(val, NSEC_PER_USEC);  in tcp_mstamp_refresh()
 73 	unsigned int prior_packets = tp->packets_out;  in tcp_event_new_data_sent()
 75 	WRITE_ONCE(tp->snd_nxt, TCP_SKB_CB(skb)->end_seq);  in tcp_event_new_data_sent()
 77 	__skb_unlink(skb, &sk->sk_write_queue);  in tcp_event_new_data_sent()
 78 	tcp_rbtree_insert(&sk->tcp_rtx_queue, skb);  in tcp_event_new_data_sent()
 [all …]
 
 | 
| H A D | tcp.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later12  *		Corey Minyard <wf-rch!minyard@relay.EU.net>
 13  *		Florian La Roche, <flla@stud.uni-sb.de>
 25  *					sk->inuse=1 and was trying to connect
 51  *		Alan Cox	:	sk->keepopen now seems to work
 53  *		Alan Cox	:	Fixed assorted sk->rqueue->next errors
 63  *		Alan Cox	:	FIN with no memory -> CRASH
 76  *					window non shrink trick.
 113  *		Alan Cox	:	Changed the semantics of sk->socket to
 164  *		Matt Day	:	poll()->select() match BSD precisely on error
 [all …]
 
 | 
| /linux/drivers/infiniband/hw/hfi1/ | 
| H A D | file_ops.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause4  * Copyright(c) 2015-2020 Intel Corporation.
 149 	struct hfi1_devdata *dd = container_of(inode->i_cdev,  in hfi1_file_open()
 153 	if (!((dd->flags & HFI1_PRESENT) && dd->kregbase1))  in hfi1_file_open()
 154 		return -EINVAL;  in hfi1_file_open()
 156 	if (!refcount_inc_not_zero(&dd->user_refcount))  in hfi1_file_open()
 157 		return -ENXIO;  in hfi1_file_open()
 163 	if (!fd || init_srcu_struct(&fd->pq_srcu))  in hfi1_file_open()
 165 	spin_lock_init(&fd->pq_rcu_lock);  in hfi1_file_open()
 166 	spin_lock_init(&fd->tid_lock);  in hfi1_file_open()
 [all …]
 
 | 
| H A D | chip.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause3  * Copyright(c) 2015 - 2020 Intel Corporation.
 32 MODULE_PARM_DESC(num_vls, "Set number of Virtual Lanes to use (1-8)");
 78 #define SEC_SC_HALTED		0x4	/* per-context only */
 79 #define SEC_SPC_FREEZE		0x8	/* per-HFI only */
 87  *   0 - User Fecn Handling
 88  *   1 - Vnic
 89  *   2 - AIP
 90  *   3 - Verbs
 101 #define emulator_rev(dd) ((dd)->irev >> 8)
 [all …]
 
 | 
| /linux/fs/btrfs/ | 
| H A D | space-info.c | 1 // SPDX-License-Identifier: GPL-2.07 #include "space-info.h"
 10 #include "free-space-cache.h"
 11 #include "ordered-data.h"
 13 #include "block-group.h"
 16 #include "extent-tree.h"
 31  *   reservations we care about total_bytes - SUM(space_info->bytes_) when
 37  *   code on the rules for each type, but generally block_rsv->reserved is how
 38  *   much space is accounted for in space_info->bytes_may_use.
 52  *   ->reserve
 [all …]
 
 | 
| /linux/include/linux/ | 
| H A D | rcu_segcblist.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */5  * This seemingly RCU-private file must be available to SRCU users
 29 /* Complicated segmented callback lists.  ;-) */
 53  * The ->gp_seq[] array contains the grace-period number at which the
 56  * is non-empty, and it is never valid for RCU_DONE_TAIL (whose callbacks
 58  * not yet been assigned a grace-period number).
 71  *  ----------------------------------------------------------------------------
 76  *  ----------------------------------------------------------------------------
 79  *  ----------------------------------------------------------------------------
 84  *  ----------------------------------------------------------------------------
 [all …]
 
 | 
| H A D | edac.h | 6  * 2006-2008 (c) MontaVista Software, Inc. This file is licensed under26 #define EDAC_OPSTATE_INVAL	-1
 60  * enum dev_type - describe the type of memory DRAM chips used at the stick
 93  * enum hw_event_mc_err_type - type of the detected error
 95  * @HW_EVENT_ERR_CORRECTED:	Corrected Error - Indicates that an ECC
 97  * @HW_EVENT_ERR_UNCORRECTED:	Uncorrected Error - Indicates an error that
 101  *				it for example, by re-trying the operation).
 102  * @HW_EVENT_ERR_DEFERRED:	Deferred Error - Indicates an uncorrectable
 103  *				error whose handling is not urgent. This could
 108  * @HW_EVENT_ERR_FATAL:		Fatal Error - Uncorrected error that could not
 [all …]
 
 | 
| /linux/include/linux/firmware/intel/ | 
| H A D | stratix10-smc.h | 1 /* SPDX-License-Identifier: GPL-2.0 */3  * Copyright (C) 2017-2018, Intel Corporation
 9 #include <linux/arm-smccc.h>
 19  * An ARM SMC instruction takes a function identifier and up to 6 64-bit
 20  * register values as arguments, and can return up to 4 64-bit register
 31  * STD call starts a operation which can be preempted by a non-secure
 88  * a2-7: not used.
 92  * a1-3: not used.
 108  * a3-7: not used.
 133  * a1-7: not used.
 [all …]
 
 | 
| /linux/drivers/net/slip/ | 
| H A D | slhc.c | 21  *	- Initial distribution.28  *	- 01-31-90	initial adaptation (from 1.19)
 29  *	PPP.05	02-15-90 [ks]
 30  *	PPP.08	05-02-90 [ks]	use PPP protocol field to signal compression
 31  *	PPP.15	09-90	 [ks]	improve mbuf handling
 32  *	PPP.16	11-02	 [karn]	substantially rewritten to use NOS facilities
 34  *	- Feb 1991	Bill_Simpson@um.cc.umich.edu
 39  *	- Jul 1994	Dmitry Gorodchanin
 41  *      - Oct 1994      Dmitry Gorodchanin
 43  *	- Jan 1995	Bjorn Ekwall
 [all …]
 
 | 
| /linux/drivers/ufs/core/ | 
| H A D | ufshcd.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later4  * Copyright (C) 2011-2013 Samsung India Software Operations
 5  * Copyright (c) 2013-2016, The Linux Foundation. All rights reserved.
 17 #include <linux/blk-pm.h>
 31 #include "ufshcd-priv.h"
 34 #include "ufs-sysfs.h"
 35 #include "ufs-debugfs.h"
 36 #include "ufs-fault-injection.h"
 38 #include "ufshcd-crypto.h"
 76 /* maximum number of link-startup retries */
 [all …]
 
 | 
| /linux/drivers/net/wireless/ath/ath5k/ | 
| H A D | ath5k.h | 2  * Copyright (c) 2004-2007 Reyk Floeter <reyk@openbsd.org>3  * Copyright (c) 2006-2007 Nick Kossifidis <mickflemm@gmail.com>
 62 #define PCI_DEVICE_ID_ATHEROS_AR5312_REV7	0x0057 /* AR5312 WMAC (AP30-040) */
 63 #define PCI_DEVICE_ID_ATHEROS_AR5312_REV8	0x0058 /* AR5312 WMAC (AP43-030) */
 70 #define PCI_DEVICE_ID_ATHEROS_AR2413		0x001a /* AR2413 (Griffin-lite) */
 72 #define PCI_DEVICE_ID_ATHEROS_AR5424		0x001c /* AR5424 (Condor PCI-E) */
 189 #define AR5K_TUNE_NOISE_FLOOR			-72
 190 #define AR5K_TUNE_CCA_MAX_GOOD_VALUE		-95
 232 /* Used to calculate tx time for non 5/10/40MHz
 274  * enum ath5k_version - MAC Chips
 [all …]
 
 | 
| /linux/drivers/net/wireless/st/cw1200/ | 
| H A D | wsm.c | 1 // SPDX-License-Identifier: GPL-2.0-only4  * ST-Ericsson CW1200 mac80211 drivers.
 6  * Copyright (c) 2010, ST-Ericsson
 29 		if ((buf)->data + size > (buf)->end)			\
 31 		(buf)->data += size;					\
 36 		if ((buf)->data + size > (buf)->end)			\
 38 		memcpy(ptr, (buf)->data, size);				\
 39 		(buf)->data += size;					\
 45 		if ((buf)->data + sizeof(type) > (buf)->end)		\
 47 		val = cvt(*(type2 *)(buf)->data);			\
 [all …]
 
 | 
| /linux/fs/f2fs/ | 
| H A D | inode.c | 1 // SPDX-License-Identifier: GPL-2.031 	if (f2fs_readonly(F2FS_I_SB(inode)->sb))  in f2fs_mark_inode_dirty_sync()
 47 	unsigned int flags = F2FS_I(inode)->i_flags;  in f2fs_set_inode_flags()
 75 	if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode) ||  in __get_inode_rdev()
 76 			S_ISFIFO(inode->i_mode) || S_ISSOCK(inode->i_mode)) {  in __get_inode_rdev()
 78 			inode->i_rdev = old_decode_dev(le32_to_cpu(addr[0]));  in __get_inode_rdev()
 80 			inode->i_rdev = new_decode_dev(le32_to_cpu(addr[1]));  in __get_inode_rdev()
 88 	if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) {  in __set_inode_rdev()
 89 		if (old_valid_dev(inode->i_rdev)) {  in __set_inode_rdev()
 90 			addr[0] = cpu_to_le32(old_encode_dev(inode->i_rdev));  in __set_inode_rdev()
 [all …]
 
 | 
| /linux/drivers/gpu/drm/amd/display/dc/dml/calcs/ | 
| H A D | dcn_calc_auto.c | 32  *   This file is gcc-parseable HW gospel, coming straight from HW engineers.36  * remain as-is as it provides us with a guarantee from HW that it is correct.
 43 	for (k = 0; k <= v->number_of_active_planes - 1; k++) {  in scaler_settings_calculation()
 44 		if (v->allow_different_hratio_vratio == dcn_bw_yes) {  in scaler_settings_calculation()
 45 			if (v->source_scan[k] == dcn_bw_hor) {  in scaler_settings_calculation()
 46 				v->h_ratio[k] = v->viewport_width[k] / v->scaler_rec_out_width[k];  in scaler_settings_calculation()
 47 				v->v_ratio[k] = v->viewport_height[k] / v->scaler_recout_height[k];  in scaler_settings_calculation()
 50 				v->h_ratio[k] = v->viewport_height[k] / v->scaler_rec_out_width[k];  in scaler_settings_calculation()
 51 				v->v_ratio[k] = v->viewport_width[k] / v->scaler_recout_height[k];  in scaler_settings_calculation()
 55 			if (v->source_scan[k] == dcn_bw_hor) {  in scaler_settings_calculation()
 [all …]
 
 | 
| /linux/kernel/rcu/ | 
| H A D | tree.c | 1 // SPDX-License-Identifier: GPL-2.0+3  * Read-Copy Update mechanism for mutual exclusion (tree-based version)
 14  * For detailed explanation of Read-Copy Update mechanism see -
 67 #include "../time/tick-internal.h"
 88 	return READ_ONCE(rdp->gpwrap_count);  in rcu_get_gpwrap_count()
 95 	.gp_seq = (0UL - 300UL) << RCU_SEQ_CTR_SHIFT,
 119 /* Control rcu_node-tree auto-balancing at boot time. */
 138  * boot-time false positives from lockdep-RCU error checking.  Finally, it
 172  * real-time priority(enabling/disabling) is controlled by
 178 /* Delay in jiffies for grace-period initialization delays, debug only. */
 [all …]
 
 | 
| /linux/kernel/sched/ | 
| H A D | core.c | 1 // SPDX-License-Identifier: GPL-2.0-only7  *  Copyright (C) 1991-2002  Linus Torvalds
 8  *  Copyright (C) 1998-2024  Ingo Molnar, Red Hat
 75 #  include <linux/irq-entry-common.h>
 99 #include "../../io_uring/io-wq.h"
 193 	if (p->sched_class == &stop_sched_class) /* trumps deadline */  in __task_prio()
 194 		return -2;  in __task_prio()
 196 	if (p->dl_server)  in __task_prio()
 197 		return -1; /* deadline */  in __task_prio()
 199 	if (rt_or_dl_prio(p->prio))  in __task_prio()
 [all …]
 
 | 
| /linux/drivers/md/ | 
| H A D | dm-cache-target.c | 1 // SPDX-License-Identifier: GPL-2.0-only9 #include "dm-bio-prison-v2.h"
 10 #include "dm-bio-record.h"
 11 #include "dm-cache-metadata.h"
 12 #include "dm-io-tracker.h"
 13 #include "dm-cache-background-tracker.h"
 15 #include <linux/dm-io.h>
 16 #include <linux/dm-kcopyd.h>
 30 /*----------------------------------------------------------------*/
 43 /*----------------------------------------------------------------*/
 [all …]
 
 |