| /linux/drivers/net/dsa/mv88e6xxx/ |
| H A D | leds.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 40 err = mv88e6xxx_port_led_read(p->chip, p->port, in mv88e6xxx_led_brightness_set() 67 return mv88e6xxx_port_led_write(p->chip, p->port, reg); in mv88e6xxx_led_brightness_set() 76 mv88e6xxx_reg_lock(p->chip); in mv88e6xxx_led0_brightness_set_blocking() 78 mv88e6xxx_reg_unlock(p->chip); in mv88e6xxx_led0_brightness_set_blocking() 89 mv88e6xxx_reg_lock(p->chip); in mv88e6xxx_led1_brightness_set_blocking() 91 mv88e6xxx_reg_unlock(p->chip); in mv88e6xxx_led1_brightness_set_blocking() 99 unsigned long rules; member 105 /* The following is a lookup table to check what rules we can support on a 106 * certain LED given restrictions such as that some rules only work with fiber [all …]
|
| /linux/tools/perf/Documentation/ |
| H A D | perf-probe.txt | 1 perf-probe(1) 5 ---- 6 perf-probe - Define new dynamic tracepoints 9 --- [all...] |
| /linux/include/linux/crush/ |
| H A D | crush.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 13 * CRUSH is a pseudo-random data distribution algorithm that 20 * https://www.ssrc.ucsc.edu/Papers/weil-sc06.pdf 39 * CRUSH uses user-defined "rules" to describe how inputs should be 73 #define CRUSH_CHOOSE_N_MINUS(x) (-(x)) 99 * A bucket is a named container of other items (either devices or 106 * ------------------------------------------------ 133 __u16 type; /* non-zero; type=0 is reserved for devices */ 136 __u32 weight; /* 16-bit fixed point */ 163 * __weight_set_size__, the weights found at __weight_set_size-1__ are [all …]
|
| /linux/include/uapi/linux/ |
| H A D | batadv_packet.h | 1 /* SPDX-License-Identifier: (GPL-2.0 WITH Linux-syscall-note) */ 16 * batadv_tp_is_error() - Check throughput meter return code for error 24 * enum batadv_packettype - types for batman-adv encapsulated packets 41 /* 0x00 - 0x3f: local packets or special rules for handling */ 48 /* 0x40 - 0x7f: unicast */ 56 /* 0x80 - 0xff: reserved */ 60 * enum batadv_subtype - packet subtype for unicast4addr 77 * enum batadv_iv_flags - flags used in B.A.T.M.A.N. IV OGM packets 91 * enum batadv_icmp_packettype - ICMP message types 109 * enum batadv_mcast_flags - flags for multicast capabilities and settings [all …]
|
| H A D | vfio.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 38 /* Two-stage IOMMU */ 44 * The No-IOMMU IOMMU offers no translation or isolation for devices and 45 * supports no ioctls outside of VFIO_CHECK_EXTENSION. Use of VFIO's No-IOMMU 101 /* -------- IOCTLs for VFIO file descriptor (/dev/vfio/vfio) -------- */ 104 * VFIO_GET_API_VERSION - _IO(VFIO_TYPE, VFIO_BASE + 0) 115 * VFIO_CHECK_EXTENSION - _IOW(VFIO_TYPE, VFIO_BASE + 1, __u32) 124 * VFIO_SET_IOMMU - _IOW(VFIO_TYPE, VFIO_BASE + 2, __s32) 131 * Return: 0 on success, -errno on failure 136 /* -------- IOCTLs for GROUP file descriptors (/dev/vfio/$GROUP) -------- */ [all …]
|
| H A D | ethtool.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 23 * have the same layout for 32-bit and 64-bit userland. 35 * struct ethtool_cmd - DEPRECATED, link control and status 40 * interface supports autonegotiation or auto-detection. 41 * Read-only. 45 * auto-detection. 53 * @autoneg: Enable/disable autonegotiation and auto-detection; 57 * Read-only. 59 * obsoleted by &struct ethtool_coalesce. Read-only; deprecated. 61 * obsoleted by &struct ethtool_coalesce. Read-only; deprecated. [all …]
|
| H A D | nl80211.h | 6 * Copyright 2006-2010 Johannes Berg <johannes@sipsolutions.net> 13 * Copyright 2015-2017 Intel Deutschland GmbH 14 * Copyright (C) 2018-2026 Intel Corporation 32 * be careful not to break things - i.e. don't move anything around or so 74 * - a setup station entry is added, not yet authorized, without any rate 76 * - when the TDLS setup is done, a single NL80211_CMD_SET_STATION is valid 79 * - %NL80211_TDLS_ENABLE_LINK is then used 80 * - after this, the only valid operation is to remove it by tearing down 95 * Frame registration is done on a per-interface basis and registrations 137 * software, like the AP-VLAN type in mac80211 for example, there's [all …]
|
| /linux/Documentation/trace/ |
| H A D | kprobetrace.rst | 2 Kprobe-based Event Tracing 8 -------- 9 These events are similar to tracepoint-based events. Instead of tracepoints, 13 Unlike the tracepoint-based event, this can be added and removed 28 ------------------------- 34 -:[GRP/][EVENT] : Clear a probe 50 @SYM[+|-offs] : Fetch memory at SYM +|- offs (SYM should be a data symbol) 57 +|-[u]OFFS(FETCHARG) : Fetch memory at FETCHARG +|- OFFS address.(\*3)(\*4) 58 this_cpu_read(FETCHARG) : Read the value of the per-CPU variable FETCHARG on the current CPU. 59 this_cpu_ptr(FETCHARG) : Get the address of the per-CPU variable FETCHARG on the current CPU. [all …]
|
| /linux/Documentation/gpu/ |
| H A D | drm-vm-bind-async.rst | 1 .. SPDX-License-Identifier: (GPL-2.0+ OR MIT) 10 * ``VRAM``: On-device memory. Sometimes referred to as device local memory. 16 an IOCTL. The operations include mapping and unmapping system- or 19 * ``syncobj``: A container that abstracts synchronization objects. The 20 synchronization objects can be either generic, like dma-fences or 24 * ``in-syncobj``: Argument to a VM_BIND IOCTL, the VM_BIND operation waits 27 * ``out-syncobj``: Argument to a VM_BIND_IOCTL, the VM_BIND operation 30 * ``dma-fence``: A cross-driver synchronization object. A basic 31 understanding of dma-fences is required to digest this 33 :doc:`dma-buf doc </driver-api/dma-buf>`. [all …]
|
| /linux/include/uapi/drm/ |
| H A D | pvr_drm.h | 1 /* SPDX-License-Identifier: (GPL-2.0-only WITH Linux-syscall-note) OR MIT */ 22 * - All members must be type-aligned. 23 * - The overall struct must be padded to 64-bit alignment. 24 * - Explicit padding is almost always required. This takes the form of 25 * ``_padding_[x]`` members of sufficient size to pad to the next power-of-two 29 * - Unions may only appear as the last member of a struct. 30 * - Individual union members may grow in the future. The space between the 36 * device and runtime. These structs are subject to the same rules set out 41 * struct drm_pvr_obj_array - Container used to pass arrays of objects 67 * DRM_PVR_OBJ_ARRAY() - Helper macro for filling &struct drm_pvr_obj_array. [all …]
|
| /linux/security/apparmor/ |
| H A D | policy.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 * Copyright (C) 1998-2008 Novell/SUSE 8 * Copyright 2009-2010 Canonical Ltd. 10 * AppArmor policy is based around profiles, which contain the rules a 13 * visible set of profiles or by following a profiles attachment rules. 15 * Each profile exists in a profile namespace which is a container of 21 * :namespace:profile - used by kernel interfaces for easy detection 22 * namespace://profile - used by policy 27 * unconfined - special automatically generated unconfined profile 28 * inherit - special name to indicate profile inheritance [all …]
|
| /linux/security/ |
| H A D | device_cgroup.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * device_cgroup.c - device cgroup subsystem 8 #include <linux/bpf-cgroup.h> 30 * exception list locking rules: 72 list_add_tail(&new->list, dest); in dev_exceptions_copy() 79 list_del(&ex->list); in dev_exceptions_copy() 82 return -ENOMEM; in dev_exceptions_copy() 92 list_move_tail(&ex->list, dest); in dev_exceptions_move() 108 return -ENOMEM; in dev_exception_add() 110 list_for_each_entry(walk, &dev_cgroup->exceptions, list) { in dev_exception_add() [all …]
|
| /linux/drivers/net/ethernet/microchip/vcap/ |
| H A D | vcap_api.c | 1 // SPDX-License-Identifier: GPL-2.0+ 53 itr->offset = offset; in vcap_iter_set() 54 itr->sw_width = sw_width; in vcap_iter_set() 55 itr->regs_per_sw = DIV_ROUND_UP(sw_width, 32); in vcap_iter_set() 56 itr->tg = tg; in vcap_iter_set() 62 * A typegroup table ends with an all-zero terminator. in vcap_iter_skip_tg() 64 while (itr->tg->width && itr->offset >= itr->tg->offset) { in vcap_iter_skip_tg() 65 itr->offset += itr->tg->width; in vcap_iter_skip_tg() 66 itr->tg++; /* next typegroup */ in vcap_iter_skip_tg() 75 sw_idx = itr->offset / itr->sw_width; in vcap_iter_update() [all …]
|
| /linux/Documentation/arch/arm64/ |
| H A D | acpi_object_usage.rst | 16 - Required: DSDT, FADT, GTDT, MADT, MCFG, RSDP, SPCR, XSDT 18 - Recommended: BERT, EINJ, ERST, HEST, PCCT, SSDT 20 - Optional: AGDI, BGRT, CEDT, CPEP, CSRT, DBG2, DRTM, ECDT, FACS, FPDT, 24 - Not supported: AEST, APMT, BOOT, DBGP, DMAR, ETDT, HPET, IVRS, LPIT, 41 This table describes a non-maskable event, that is used by the platform 68 Optional, not currently supported, with no real use-case for an 83 time as ARM-compatible hardware is available, and the specification 151 UEFI-based; if it is UEFI-based, this table may be supplied. When this 167 the hardware reduced profile, and only 64-bit address fields will 184 filled in properly - that the PSCI_COMPLIANT flag is set and that [all …]
|
| /linux/drivers/net/ethernet/broadcom/bnx2x/ |
| H A D | bnx2x_sriov.h | 3 * Copyright 2009-2013 Broadcom Corporation 10 * at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html (the "GPL"). 49 u32 cap; /* SR-IOV Capabilities */ 50 u16 ctrl; /* SR-IOV Control */ 81 /* VLAN-MACs object */ 86 /* Queue Slow-path State object */ 96 /* struct bnx2x_vf_queue_construct_params - prepare queue construction 97 * parameters: q-init, q-setup and SB index 157 * - xxq_count = 0 as the queues memory is not allocated yet. 159 * - sb_count = The number of status blocks configured for this VF in [all …]
|
| /linux/Documentation/bpf/ |
| H A D | signing.rst | 1 .. SPDX-License-Identifier: GPL-2.0 8 kernel verifies them at load time, and how Linux Security Modules (LSMs) - 9 including the BPF LSM - use the resulting verdict to enforce policy. It is 18 the kernel does not *require* signatures - an unsigned program loads exactly as 19 before - but it records a verdict (see `The verdict`_) that an LSM can gate on. 26 privileges (``CAP_BPF`` and any program-type-specific capability, subject to 29 *origin and integrity*, not safety - it lets a policy trust where the bytecode 38 - **map file descriptors** are patched into ``ld_imm64`` instructions 41 - **CO-RE relocations** rewrite field offsets, sizes and existence flags against 43 - **kfunc and ksym references** are resolved to ids/addresses in the running [all …]
|
| /linux/net/tipc/ |
| H A D | name_table.c | 4 * Copyright (c) 2000-2006, 2014-2018, Ericsson AB 5 * Copyright (c) 2004-2008, 2010-2014, Wind River Systems 6 * Copyright (c) 2020-2021, Red Hat Inc 52 * struct service_range - container for all bindings of a service range 60 * Used by round-robin lookup algorithm 72 * struct tipc_service - container fo [all...] |
| /linux/drivers/net/ethernet/intel/ice/ |
| H A D | ice_ethtool.c | 1 // SPDX-License-Identifier: GPL-2.0 37 return ((np->vsi->alloc_txq + np->vsi->alloc_rxq) * 2); in ice_q_stats_len() 95 * The PF_STATs are appended to the netdev stats only when ethtool -S 329 u32 bitno; /* bit position in pf->flags */ 338 ICE_PRIV_FLAG("link-down-on-close", ICE_FLAG_LINK_DOWN_ON_CLOSE_ENA), 339 ICE_PRIV_FLAG("fw-lldp-agent", ICE_FLAG_FW_LLDP_AGENT), 340 ICE_PRIV_FLAG("vf-true-promisc-support", 342 ICE_PRIV_FLAG("mdd-auto-reset-vf", ICE_FLAG_MDD_AUTO_RESET_VF), 343 ICE_PRIV_FLAG("vf-vlan-pruning", ICE_FLAG_VF_VLAN_PRUNING), 434 struct ice_pf *pf = vsi->back; in __ice_get_drvinfo() [all …]
|
| H A D | ice_lib.c | 1 // SPDX-License-Identifier: GPL-2.0 14 * ice_vsi_type_str - maps VSI type enum to string equivalents 38 * ice_vsi_ctrl_all_rx_rings - Start or stop a VSI's Rx rings 55 ice_flush(&vsi->back->hw); in ice_vsi_ctrl_all_rx_rings() 67 * ice_vsi_alloc_arrays - Allocate queue and vector pointer arrays for the VSI 75 struct ice_pf *pf = vsi->back; in ice_vsi_alloc_arrays() 79 if (vsi->type == ICE_VSI_CHNL) in ice_vsi_alloc_arrays() 83 vsi->tx_rings = devm_kcalloc(dev, vsi->alloc_txq, in ice_vsi_alloc_arrays() 84 sizeof(*vsi->tx_rings), GFP_KERNEL); in ice_vsi_alloc_arrays() 85 if (!vsi->tx_rings) in ice_vsi_alloc_arrays() [all …]
|
| /linux/rust/kernel/ |
| H A D | dma.rs | 1 // SPDX-License-Identifier: GPL-2.0 5 //! C header: [`include/linux/dma-mapping.h`](srctree/include/linux/dma-mapping.h) 49 /// Note that this may be `u64` even on 32-bit architectures. 68 unsafe fn dma_set_mask(&self, mask: DmaMask) -> Result { 70 // - By the type invariant of `device::Device`, `self.as_ref().as_raw()` is valid. 71 // - The safety requirement of this function guarantees that there are no concurrent calls 85 unsafe fn dma_set_coherent_mask(&self, mask: DmaMask) -> Resul [all...] |
| /linux/drivers/net/ethernet/sfc/ |
| H A D | mcdi_pcol.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 4 * Copyright 2009-2018 Solarflare Communications Inc. 5 * Copyright 2019-2020 Xilinx Inc. 13 /* Power-on reset state */ 35 /* The 'doorbell' addresses are hard-wired to alert the MC when written */ 38 /* The rest of these are firmware-defined */ 46 /* Values to be written to the per-port status dword in shared 71 * | | \--- Response 72 * | \------- Error 73 * \------------------------------ Resync (always set) [all …]
|
| /linux/net/ipv4/ |
| H A D | fib_frontend.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 59 return -ENOMEM; in fib4_rules_init() 65 hlist_add_head_rcu(&local_table->tb_hlist, in fib4_rules_init() 66 &net->ipv4.fib_table_hash[TABLE_LOCAL_INDEX]); in fib4_rules_init() 67 hlist_add_head_rcu(&main_table->tb_hlist, in fib4_rules_init() 68 &net->ipv4.fib_table_hash[TABLE_MAIN_INDEX]); in fib4_rules_init() 73 return -ENOMEM; in fib4_rules_init() 91 if (id == RT_TABLE_LOCAL && !net->ipv4.fib_has_custom_rules) in fib_new_table() 98 spin_lock(&net->ipv4.fib_table_hash_lock); in fib_new_table() 102 spin_unlock(&net->ipv4.fib_table_hash_lock); in fib_new_table() [all …]
|
| /linux/kernel/time/ |
| H A D | posix-cpu-timers.c | 1 // SPDX-License-Identifier: GPL-2.0 8 #include <linux/posix-timers.h> 20 #include "posix-timers.h" 28 pct->bases[CPUCLOCK_PROF].nextevt = cpu_limit * NSEC_PER_SEC; in posix_cputimers_group_init() 29 pct->timers_active = true; in posix_cputimers_group_init() 35 * tsk->signal->posix_cputimers.bases[clock].nextevt expiration cache if 39 * Returns 0 on success, -ESRCH on failure. Can fail if the task is exiting and 48 return -ESRCH; in update_rlimit_cpu() 102 ret = pid_for_clock(clock, false) ? 0 : -EINVAL; in validate_clock_permissions() 115 return pid_task(timer->it.cpu.pid, clock_pid_type(timer->it_clock)); in cpu_timer_task_rcu() [all …]
|
| /linux/drivers/net/dsa/ |
| H A D | mt7530.c | 1 // SPDX-License-Identifier: GPL-2.0-only 52 if (priv->bus) in mt7530_mutex_lock() 53 mutex_lock_nested(&priv->bus->mdio_lock, MDIO_MUTEX_NESTED); in mt7530_mutex_lock() 59 if (priv->bus) in mt7530_mutex_unlock() 60 mutex_unlock(&priv->bus->mdio_loc in mt7530_mutex_unlock() [all...] |
| /linux/drivers/usb/gadget/udc/cdns2/ |
| H A D | cdns2-gadget.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Cadence USBHS-DEV Driver - gadget side. 28 #include <linux/dma-mapping.h> 36 #include "cdns2-gadget.h" 37 #include "cdns2-trace.h" 40 * set_reg_bit_32 - set bit in given 32 bits register. 51 * clear_reg_bit_32 - clear bit in given 32 bits register. 80 dma_index = readl(&pdev->adma_regs->ep_traddr) - pep->ring.dma; in cdns2_get_dma_pos() 93 if (pdev->selected_ep == ep) in cdns2_select_ep() 96 pdev->selected_ep = ep; in cdns2_select_ep() [all …]
|