| /linux/include/trace/events/ |
| H A D | btrfs.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 62 obj <= BTRFS_QUOTA_TREE_OBJECTID)) ? __show_root_type(obj) : "-" 166 memcpy(__entry->fsid, fs_info->fs_devices->fsid, \ 169 memset(__entry->fsid, 0, BTRFS_FSID_SIZE); \ 181 TP_printk("%pU: " fmt, __entry->fsid, args) 195 __entry->generation = fs_info->generation; 196 __entry->root_objectid = BTRFS_ROOT_TREE_OBJECTID; 200 show_root_type(__entry->root_objectid), 201 __entry->generation) 220 TP_fast_assign_btrfs(btrfs_sb(inode->i_sb), [all …]
|
| /linux/drivers/net/dsa/qca/ |
| H A D | qca8k-8xxx.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * Copyright (C) 2011-2012 Gabor Juhos <juhosg@openwrt.org> 47 ret = bus->write(bus, phy_id, regnum, lo); in qca8k_mii_write_lo() 49 dev_err_ratelimited(&bus->dev, in qca8k_mii_write_lo() 62 ret = bus->write(bus, phy_id, regnum, hi); in qca8k_mii_write_hi() 64 dev_err_ratelimited(&bus->dev, in qca8k_mii_write_hi() 75 ret = bus->read(bus, phy_id, regnum); in qca8k_mii_read_lo() 83 dev_err_ratelimited(&bus->dev, in qca8k_mii_read_lo() 95 ret = bus->read(bus, phy_id, regnum); in qca8k_mii_read_hi() 103 dev_err_ratelimited(&bus->dev, in qca8k_mii_read_hi() [all …]
|
| /linux/drivers/input/misc/ |
| H A D | da7280.c | 1 // SPDX-License-Identifier: GPL-2.0+ 289 error = regmap_read(haptics->regmap, DA7280_IRQ_STATUS1, &val); in da7280_haptic_mem_update() 293 dev_warn(haptics->dev, in da7280_haptic_mem_update() 295 return -EBUSY; in da7280_haptic_mem_update() 300 error = regmap_read(haptics->regmap, DA7280_MEM_CTL2, &val); in da7280_haptic_mem_update() 304 dev_warn(haptics->dev, "Please unlock the bit first\n"); in da7280_haptic_mem_update() 305 return -EACCES; in da7280_haptic_mem_update() 309 error = regmap_update_bits(haptics->regmap, in da7280_haptic_mem_update() 316 error = regmap_read(haptics->regmap, DA7280_MEM_CTL1, &val); in da7280_haptic_mem_update() 320 return regmap_bulk_write(haptics->regmap, val, haptics->snp_mem, in da7280_haptic_mem_update() [all …]
|
| /linux/kernel/kcsan/ |
| H A D | kcsan_test.c | 1 // SPDX-License-Identifier: GPL-2.0 22 #include <linux/kcsan-checks.h> 46 /* Points to current test-case memory access "kernels". */ 61 /* Setup test checking loop. */ 78 /* End test checking loop. */ 115 * The provided @buf is not NUL-terminated; copy no more than in probe_console() 116 * @len bytes and let strscpy() add the missing NUL-terminator. in probe_console() 159 const bool is_assert = (r->access[0].type | r->access[1].type) & KCSAN_ACCESS_ASSERT; in __report_matches() 167 /* Doubled-checked locking. */ in __report_matches() 180 cur += scnprintf(cur, end - cur, "BUG: KCSAN: %s in ", in __report_matches() [all …]
|
| /linux/arch/um/kernel/ |
| H A D | time.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2015 Anton Ivanov (aivanov@{brocade.com,kot-begemot.co.uk}) 5 * Copyright (C) 2012-2014 Cisco Systems 6 * Copyright (C) 2000 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) 23 #include <linux/time-internal.h> 42 static int time_travel_ext_fd = -1; 56 return (unsigned long long)(jiffies - INITIAL_JIFFIES + in sched_clock() 64 panic("time-travel: time goes backwards %lld -> %lld\n", in time_travel_set_time() 85 printk(KERN_INFO "time-travel: received broadcast 0x%llx\n", bc_message); in _time_travel_print_bc_msg() 97 len = time_travel_shm->len; in time_travel_setup_shm() [all …]
|
| /linux/net/mac80211/ |
| H A D | tx.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright 2002-2005, Instant802 Networks, Inc. 4 * Copyright 2005-2006, Devicescape Software, Inc. 5 * Copyright 2006-2007 Jiri Benc <jbenc@suse.cz> 7 * Copyright 2013-2014 Intel Mobile Communications GmbH 8 * Copyright (C) 2018-2025 Intel Corporation 33 #include "driver-ops.h" 49 struct ieee80211_local *local = tx->local; in ieee80211_duration() 55 if (tx->rate.flags & (IEEE80211_TX_RC_MCS | IEEE80211_TX_RC_VHT_MCS)) in ieee80211_duration() 59 if (WARN_ON_ONCE(tx->rate.idx < 0)) in ieee80211_duration() [all …]
|
| H A D | rx.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright 2002-2005, Instant802 Networks, Inc. 4 * Copyright 2005-2006, Devicescape Software, Inc. 5 * Copyright 2006-2007 Jiri Benc <jbenc@suse.cz> 6 * Copyright 2007-2010 Johannes Berg <johannes@sipsolutions.net> 7 * Copyright 2013-2014 Intel Mobile Communications GmbH 8 * Copyright(c) 2015 - 2017 Intel Deutschland GmbH 9 * Copyright (C) 2018-2026 Intel Corporation 28 #include "driver-ops.h" 53 __pskb_trim(skb, skb->len - present_fcs_len); in ieee80211_clean_skb() [all …]
|
| H A D | cfg.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright 2006-2010 Johannes Berg <johannes@sipsolutions.net> 6 * Copyright 2013-2015 Intel Mobile Communications GmbH 7 * Copyright (C) 2015-2017 Intel Deutschland GmbH 8 * Copyright (C) 2018-2026 Intel Corporation 21 #include "driver-ops.h" 38 if (require_valid && ieee80211_vif_is_mld(&sdata->vif)) in ieee80211_link_or_deflink() 39 return ERR_PTR(-EINVAL); in ieee80211_link_or_deflink() 41 return &sdata->deflink; in ieee80211_link_or_deflink() 44 link = sdata_dereference(sdata->link[link_id], sdata); in ieee80211_link_or_deflink() [all …]
|
| /linux/net/netfilter/ipvs/ |
| H A D | ip_vs_ctl.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * high-performance and highly available server based on a 81 is_local = !dst->error && dst->dev && (dst->dev->flags & IFF_LOOPBACK); in __ip_vs_addr_is_local_v6() 99 int to_change = -1; in update_defense_level() 107 /* availmem = availmem - (i.totalswap - i.freeswap); */ in update_defense_level() 109 amemthresh = max(READ_ONCE(ipvs->sysctl_amemthresh), 0); in update_defense_level() 115 spin_lock(&ipvs->dropentry_lock); in update_defense_level() 116 switch (ipvs->sysctl_drop_entry) { in update_defense_level() 118 atomic_set(&ipvs->dropentry, 0); in update_defense_level() 122 atomic_set(&ipvs->dropentry, 1); in update_defense_level() [all …]
|
| /linux/kernel/trace/ |
| H A D | ftrace.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Infrastructure for profiling code inserted by 'gcc -pg'. 5 * Copyright (C) 2007-2008 Steven Rostedt <srostedt@redhat.com> 6 * Copyright (C) 2004-2008 Ingo Molnar <mingo@redhat.com> 8 * Originally ported from the -rt patch by: 13 * Copyright (C) 2004-2006 Ingo Molnar 106 if (!(ops->flags & FTRACE_OPS_FL_PID) || !ops->private) in ftrace_pids_enabled() 109 tr = ops->private; in ftrace_pids_enabled() 111 return tr->function_pids != NULL || tr->function_no_pids != NULL; in ftrace_pids_enabled() 162 if (!(ops->flags & FTRACE_OPS_FL_INITIALIZED)) { in ftrace_ops_init() [all …]
|
| H A D | ring_buffer.c | 1 // SPDX-License-Identifier: GPL-2.0 108 * +------+ 111 * +------+ +---+ +---+ +---+ 112 * | |-->| |-->| | 113 * +---+ +---+ +---+ 116 * +---------------+ 119 * +------+ 121 * |page |------------------v 122 * +------+ +---+ +---+ +---+ 123 * | |-->| |-->| | [all …]
|
| H A D | trace_events.c | 1 // SPDX-License-Identifier: GPL-2.0 7 * - Added format output of fields of the trace point. 58 return system->ref_count; in system_refcount() 63 return system->ref_count++; in system_refcount_inc() 68 return --system->ref_count; in system_refcount_dec() 74 list_for_each_entry(file, &tr->events, list) 79 list_for_each_entry_safe(file, ___n, &tr->events, list) 90 if (!strcmp(field->name, name)) in __find_event_field() 124 return -ENOMEM; in __trace_define_field() 126 field->name = name; in __trace_define_field() [all …]
|
| /linux/arch/x86/kvm/ |
| H A D | x86.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Kernel-based Virtual Machine driver for Linux 16 * Ben-Ami Yassour <benami@il.ibm.com> 48 #include <linux/user-return-notifier.h> 109 ((struct kvm_vcpu *)(ctxt)->vcpu) 112 * - enable syscall per default because its emulated by KVM 113 * - enable LME and LMA per default on 64 bit KVM 149 *(((struct kvm_x86_ops *)0)->func)); 152 #include <asm/kvm-x86-ops.h> 166 /* tsc tolerance in parts per million - default to 1/2 of the NTP threshold */ [all …]
|
| /linux/drivers/net/wireless/intel/iwlwifi/mld/ |
| H A D | mac80211.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 3 * Copyright (C) 2024-2025 Intel Corporation 26 #include "iwl-nvm-parse.h" 27 #include "ftm-initiator.h" 37 #include "iwl-trans.h" 98 .n_limits = ARRAY_SIZE(iwl_mld_limits_nan) - 1, 128 struct wiphy *wiphy = mld->wiphy; in iwl_mld_hw_set_addresses() 132 memcpy(mld->addresses[0].addr, mld->nvm_data->hw_addr, ETH_ALEN); in iwl_mld_hw_set_addresses() 133 wiphy->addresses = mld->addresses; in iwl_mld_hw_set_addresses() 134 wiphy->n_addresses = 1; in iwl_mld_hw_set_addresses() [all …]
|
| /linux/drivers/gpu/drm/radeon/ |
| H A D | r100.c | 111 * r100_wait_for_vblank - vblank wait asic callback. 116 * Wait for vblank on the requested crtc (r1xx-r4xx). 122 if (crtc >= rdev->num_crtc) in r100_wait_for_vblank() 152 * r100_page_flip - pageflip callback. 159 * Does the actual pageflip (r1xx-r4xx). 166 struct radeon_crtc *radeon_crtc = rdev->mode_info.crtcs[crtc_id]; in r100_page_flip() 168 struct drm_framebuffer *fb = radeon_crtc->base.primary->fb; in r100_page_flip() 174 WREG32(RADEON_CRTC_OFFSET + radeon_crtc->crtc_offset, tmp); in r100_page_flip() 177 pitch_pixels = fb->pitches[0] / fb->format->cpp[0]; in r100_page_flip() 178 crtc_pitch = DIV_ROUND_UP(pitch_pixels * fb->format->cpp[0] * 8, in r100_page_flip() [all …]
|
| /linux/mm/ |
| H A D | slub.c | 1 // SPDX-License-Identifier: GPL-2.0 40 #include <linux/fault-inject.h> 48 #include <kunit/test-bug.h> 61 * 2a. kmem_cache->cpu_sheaves->lock (Local trylock) 62 * 2b. barn->lock (Spinlock) 63 * 2c. node->list_lock (Spinlock) 81 * A. slab->freelist -> List of free objects in a slab 82 * B. slab->inuse -> Number of objects in use 83 * C. slab->objects -> Number of objects in slab 84 * D. slab->frozen -> frozen state [all …]
|
| /linux/kernel/rcu/ |
| H A D | srcutree.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Sleepable Read-Copy Update mechanism for mutual exclusion. 11 * For detailed explanation of Read-Copy Update mechanism see - 34 /* Holdoff in nanoseconds for auto-expediting. */ 39 /* Overflow-check frequency. N bits roughly says every 2**N grace periods. */ 64 /* Number of CPUs to trigger init_srcu_struct()-time transition to big. */ 72 /* Early-boot callback-management, so early that no lock is required! */ 83 * Initialize SRCU per-CPU data. Note that statically allocated 86 * parameter is set, don't initialize ->srcu_ctrs[].srcu_locks and 87 * ->srcu_ctrs[].srcu_unlocks. [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/lag/ |
| H A D | lag.c | 14 * - Redistributions of source code must retain the above 18 * - Redistributions in binary form must reproduce the above 73 mlx5_infer_tx_enabled(&ldev->tracker, ldev, enabled_ports, in lag_active_port_bits() 88 u8 *ports = ldev->v2p_map; in mlx5_cmd_create_lag() 99 return -EINVAL; in mlx5_cmd_create_lag() 131 return -EINVAL; in mlx5_cmd_modify_lag() 169 if (!tracker->netdev_state[i].tx_enabled || in mlx5_infer_tx_disabled() 170 !tracker->netdev_state[i].link_up) in mlx5_infer_tx_disabled() 181 if (tracker->netdev_state[i].tx_enabled && in mlx5_infer_tx_enabled() 182 tracker->netdev_state[i].link_up) in mlx5_infer_tx_enabled() [all …]
|
| /linux/net/core/ |
| H A D | rtnetlink.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 98 tail->next = defer_kfree_skb_list; in rtnl_kfree_skbs() 146 struct sk_buff *next = head->next; in __rtnl_unlock() 192 mutex_lock(&net->rtnl_mutex); in __rtnl_net_lock() 200 mutex_unlock(&net->rtnl_mutex); in __rtnl_net_unlock() 246 return -1; in rtnl_net_cmp_locks() 252 return net_a < net_b ? -1 : 1; in rtnl_net_cmp_locks() 267 return rtnl_is_locked() && mutex_is_locked(&net->rtnl_mutex); in rtnl_net_is_locked() 273 return lockdep_rtnl_is_held() && lockdep_is_held(&net->rtnl_mutex); in lockdep_rtnl_net_is_held() 280 return -1; in rtnl_net_cmp_locks() [all …]
|
| /linux/net/netfilter/ |
| H A D | nf_tables_api.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2007-2009 Patrick McHardy <kaber@trash.net> 27 #define NFT_MODULE_AUTOLOAD_LIMIT (MODULE_NAME_LEN - sizeof("nft-expr-255-")) 31 #define NFT_MAX_SET_NELEMS ((2048 - sizeof(struct nft_trans_elem)) / sizeof(struct nft_trans_one_el… 114 switch (table->validate_state) { in nft_validate_state_update() 125 table->validate_state = new_validate_state; in nft_validate_state_update() 135 if (WARN_ON_ONCE(!nft_is_base_chain(ctx->chain))) in nft_chain_vstate_valid() 138 base_chain = nft_base_chain(ctx->chain); in nft_chain_vstate_valid() 139 hooknum = base_chain->ops.hooknum; in nft_chain_vstate_valid() 140 type = base_chain->type->type; in nft_chain_vstate_valid() [all …]
|
| /linux/kernel/sched/ |
| H A D | ext.c | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * BPF extensible scheduler class: Documentation/scheduler/sched-ext.rst 66 * tasks for the sub-sched being enabled. Use a global variable instead of a 67 * per-task field as all enables are serialized. 83 * interval is half of the shortest sch->watchdog_timeout. 114 * Non-NULL values are used for direct dispatch from enqueue path. A valid 150 .cpu = -1, 221 #define SCX_HAS_OP(sch, op) test_bit(SCX_OP_IDX(op), (sch)->has_op) 226 return jiffies_to_msecs(at - now); in jiffies_delta_msecs() 228 return -(long)jiffies_to_msecs(now - at); in jiffies_delta_msecs() [all …]
|
| /linux/fs/ext4/ |
| H A D | super.c | 1 // SPDX-License-Identifier: GPL-2.0 7 * Laboratoire MASI - Institut Blaise Pascal 16 * Big-endian to little-endian byte-swapping/bitmaps by 28 #include <linux/backing-dev.h> 70 static int ext4_show_options(struct seq_file *seq, struct dentry *root); 103 * mmap_lock -> sb_start_pagefault -> invalidate_lock (r) -> transaction start 104 * -> page lock -> i_data_sem (rw) 107 * sb_start_write -> i_mutex -> mmap_lock 108 * sb_start_write -> i_mutex -> transaction start -> page lock -> 112 * sb_start_write -> i_mutex -> invalidate_lock (w) -> i_mmap_rwsem (w) -> [all …]
|
| /linux/drivers/net/wireless/intel/iwlegacy/ |
| H A D | common.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved. 8 * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 19 #include <linux/dma-mapping.h> 39 return -ETIMEDOUT; in _il_poll_bit() 48 spin_lock_irqsave(&p->reg_lock, reg_flags); in il_set_bit() 50 spin_unlock_irqrestore(&p->reg_lock, reg_flags); in il_set_bit() 59 spin_lock_irqsave(&p->reg_lock, reg_flags); in il_clear_bit() 61 spin_unlock_irqrestore(&p->reg_lock, reg_flags); in il_clear_bit() 79 * to/from host DRAM when sleeping/waking for power-saving. in _il_grab_nic_access() [all …]
|
| /linux/net/wireless/ |
| H A D | nl80211.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * This is the new netlink-based wireless configuration interface. 5 * Copyright 2006-2010 Johannes Berg <johannes@sipsolutions.net> 6 * Copyright 2013-2014 Intel Mobile Communications GmbH 7 * Copyright 2015-2017 Intel Deutschland GmbH 8 * Copyright (C) 2018-2026 Intel Corporation 33 #include "rdev-ops.h" 51 NL80211_MCGRP_TESTMODE /* keep last - ifdef! */ 75 int wiphy_idx = -1; in __cfg80211_wdev_from_attrs() 76 int ifidx = -1; in __cfg80211_wdev_from_attrs() [all …]
|
| /linux/drivers/net/wireless/ath/ath5k/ |
| H A D | reg.h | 2 * Copyright (c) 2006-2008 Nick Kossifidis <mickflemm@gmail.com> 3 * Copyright (c) 2004-2008 Reyk Floeter <reyk@openbsd.org> 4 * Copyright (c) 2007-2008 Michael Taylor <mike.taylor@apprion.com> 28 * 5210 - http://nova.stanford.edu/~bbaas/ps/isscc2002_slides.pdf 30 * 5211 - http://www.hotchips.org/archives/hc14/3_Tue/16_mcfarland.pdf 33 * Atheros's ART program (Atheros Radio Test), on ath9k, on legacy-hal 42 * AR5210-Specific TXDP registers 46 #define AR5K_NOQCU_TXDP0 0x0000 /* Queue 0 - data */ 47 #define AR5K_NOQCU_TXDP1 0x0004 /* Queue 1 - beacons */ 70 #define AR5K_CFG_SWTD 0x00000001 /* Byte-swap TX descriptor (for big endian archs) */ [all …]
|