/linux/Documentation/admin-guide/perf/ |
H A D | imx-ddr.rst | 23 .. code-block:: bash 25 perf stat -a -e imx8_ddr0/cycles/ cmd 26 perf stat -a -e imx8_ddr0/read/,imx8_ddr0/write/ cmd 28 AXI filtering is only used by CSV modes 0x41 (axid-read) and 0x42 (axid-write) 33 un-supported, and value 1 for supported. 37 --AXI_ID defines AxID matching value. 38 --AXI_MASKING defines which bits of AxID are meaningful for the matching. 40 - 0: corresponding bit is masked. 41 - 1: corresponding bit is not masked, i.e. used to do the matching. 44 When non-masked bits are matching corresponding AXI_ID bits then counter is [all …]
|
/linux/drivers/net/wireless/ath/wil6210/ |
H A D | interrupt.c | 1 // SPDX-License-Identifier: ISC 3 * Copyright (c) 2012-2017 Qualcomm Atheros, Inc. 4 * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved. 15 * There is ISR pseudo-cause register, 16 * dma_rgf->DMA_RGF.PSEUDO_CAUSE.PSEUDO_CAUSE 48 /* configure to Clear-On-Read mode */ 56 /* configure to Write-1-to-Clear mode */ 122 clear_bit(wil_status_irqen, wil->status); in wil6210_mask_irq_pseudo() 139 bool unmask_rx_htrsh = atomic_read(&wil->connected_vifs) > 0; in wil6210_unmask_irq_rx() 172 set_bit(wil_status_irqen, wil->status); in wil6210_unmask_irq_pseudo() [all …]
|
/linux/drivers/irqchip/ |
H A D | irq-bcm2835.c | 1 // SPDX-License-Identifier: GPL-2.0+ 23 * Quirk 3: The shortcut interrupts can't be (un)masked in bank 0 25 * Those interrupts that have shortcuts can only be masked/unmasked in 30 * Bits 0-6: IRQ (index in order of interrupts from banks 1, 2, then 0) 54 /* Shortcuts can't be disabled so any unknown new ones need to be masked */ 94 writel_relaxed(HWIRQ_BIT(d->hwirq), intc.disable[HWIRQ_BANK(d->hwirq)]); in armctrl_mask_irq() 99 writel_relaxed(HWIRQ_BIT(d->hwirq), intc.enable[HWIRQ_BANK(d->hwirq)]); in armctrl_unmask_irq() 103 .name = "ARMCTRL-level", 115 return -EINVAL; in armctrl_xlate() 118 return -EINVAL; in armctrl_xlate() [all …]
|
/linux/include/xen/interface/ |
H A D | xen.h | 1 /* SPDX-License-Identifier: MIT */ 69 /* Architecture-specific hypercall definitions. */ 83 * In the side comments, 'V.' denotes a per-VCPU VIRQ while 'G.' denotes a 84 * global VIRQ. The former can be bound once per VCPU and cannot be re-bound. 86 * allocated to VCPU0 but can subsequently be re-bound. 102 /* Architecture-specific VIRQ definitions. */ 127 * x != 0 => PFD == x - 1 129 * Sub-commands: ptr[1:0] specifies the appropriate MMU_* command. 130 * ------------- 138 * ptr[:2] -- Machine address of the page-table entry to modify. [all …]
|
/linux/include/uapi/linux/ |
H A D | userfaultfd.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 199 * UFFD_FEATURE_SIGBUS feature means no page-fault 208 * hugetlbfs-backed pages. 211 * UFFD_FEATURE_MINOR_HUGETLBFS, but for shmem-backed pages instead. 215 * masked. 218 * write-protection mode is supported on both shmem and hugetlbfs. 221 * write-protection mode will always apply to unpopulated pages 224 * when userfault write-protection mode is registered. 226 * UFFD_FEATURE_WP_ASYNC indicates that userfaultfd write-protection 228 * automatically resolved and write-protection is un-set.
|
H A D | vfio.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 37 /* Two-stage IOMMU */ 43 * The No-IOMMU IOMMU offers no translation or isolation for devices and 44 * supports no ioctls outside of VFIO_CHECK_EXTENSION. Use of VFIO's No-IOMMU 100 /* -------- IOCTLs for VFIO file descriptor (/dev/vfio/vfio) -------- */ 103 * VFIO_GET_API_VERSION - _IO(VFIO_TYPE, VFIO_BASE + 0) 114 * VFIO_CHECK_EXTENSION - _IOW(VFIO_TYPE, VFIO_BASE + 1, __u32) 123 * VFIO_SET_IOMMU - _IOW(VFIO_TYPE, VFIO_BASE + 2, __s32) 130 * Return: 0 on success, -errno on failure 135 /* -------- IOCTLs for GROUP file descriptors (/dev/vfio/$GROUP) -------- */ [all …]
|
H A D | kfd_ioctl.h | 30 * - 1.1 - initial version 31 * - 1.3 - Add SMI events support 32 * - 1.4 - Indicate new SRAM EDC bit in device properties 33 * - 1.5 - Add SVM API 34 * - 1.6 - Quer [all...] |
H A D | ethtool.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 26 * have the same layout for 32-bit and 64-bit userland. 38 * struct ethtool_cmd - DEPRECATED, link control and status 43 * interface supports autonegotiation or auto-detection. 44 * Read-only. 48 * auto-detection. 56 * @autoneg: Enable/disable autonegotiation and auto-detection; 60 * Read-only. 62 * obsoleted by &struct ethtool_coalesce. Read-only; deprecated. 64 * obsoleted by &struct ethtool_coalesce. Read-only; deprecated. [all …]
|
/linux/drivers/soc/qcom/ |
H A D | smsm.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright (c) 2012-2013, The Linux Foundation. All rights reserved. 27 * read-write, while the rest should be considered read-only. 34 * The subscription matrix is laid out in entry-major order: 63 * struct qcom_smsm - smsm driver context 72 * @lock: spinlock for read-modify-write of the outgoing state 98 * struct smsm_entry - per remote processor entry context 99 * @smsm: back-reference to driver context 123 * struct smsm_host - representation of a remote host 138 * smsm_update_bits() - change bit in outgoing entry and inform subscribers [all …]
|
/linux/arch/x86/math-emu/ |
H A D | reg_ld_str.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /*---------------------------------------------------------------------------+ 9 | E-mail billm@suburbia.net | 12 +---------------------------------------------------------------------------*/ 14 /*---------------------------------------------------------------------------+ 19 +---------------------------------------------------------------------------*/ 33 #define DOUBLE_Emin (-1022) /* smallest valid exponent */ 37 #define SINGLE_Emin (-126) /* smallest valid exponent */ 59 if (!(ptr->sigh | ptr->sigl)) { in FPU_tagof() 62 /* The number is a de-normal or pseudodenormal. */ in FPU_tagof() [all …]
|
/linux/arch/powerpc/sysdev/xive/ |
H A D | common.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 31 #include <asm/xive-regs.h> 34 #include "xive-internal.h" 40 #define DBG_VERBOSE(fmt, ...) pr_devel("cpu %d - " fmt, \ 73 * Use early_cpu_to_node() for hot-plugged CPUs 85 #define XIVE_INVALID_TARGET (-1) 94 return xd->flags & XIVE_IRQ_FLAG_STORE_EOI && xive_store_eoi; in xive_is_store_eoi() 107 if (!q->qpage) in xive_read_eq() 109 cur = be32_to_cpup(q->qpage + q->idx); in xive_read_eq() 112 if ((cur >> 31) == q->toggle) in xive_read_eq() [all …]
|
/linux/drivers/gpu/drm/bridge/synopsys/ |
H A D | dw-hdmi-ahb-audio.c | 1 // SPDX-License-Identifier: GPL-2.0-only 22 #include "dw-hdmi-audio.h" 24 #define DRIVER_NAME "dw-hdmi-ahb-audio" 86 * allocation bits. Note that we can't do channel remapping here - 89 * Mappings for alsa-lib pcm/surround*.conf files: 157 u32 *src = dw->buf_src + offset; in dw_hdmi_reformat_iec958() 158 u32 *dst = dw->buf_dst + offset; in dw_hdmi_reformat_iec958() 159 u32 *end = dw->buf_src + offset + bytes; in dw_hdmi_reformat_iec958() 164 b = (sample & 8) << (28 - 3); in dw_hdmi_reformat_iec958() 185 u32 *src = dw->buf_src + offset; in dw_hdmi_reformat_s24() [all …]
|
/linux/include/linux/ |
H A D | irq.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 10 * Thanks. --rmk 36 * Bits 0-7 are the same as the IRQF_* bits in linux/interrupt.h 38 * IRQ_TYPE_NONE - default, unspecified type 39 * IRQ_TYPE_EDGE_RISING - rising edge triggered 40 * IRQ_TYPE_EDGE_FALLING - falling edge triggered 41 * IRQ_TYPE_EDGE_BOTH - rising and falling edge triggered 42 * IRQ_TYPE_LEVEL_HIGH - high level triggered 43 * IRQ_TYPE_LEVEL_LOW - low level triggered 44 * IRQ_TYPE_LEVEL_MASK - Mask to filter out the level bits [all …]
|
/linux/drivers/misc/genwqe/ |
H A D | card_ddcb.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * Author: Joerg-Stephan Vogt <jsvogt@de.ibm.com> 26 #include <linux/dma-mapping.h> 30 #include <linux/crc-itu-t.h> 41 * +---+---+---+---+---+---+---+---+ 44 * +---+---+---+---+---+---+---+---+ 46 * enqueued_ddcbs = A - N = 2 - 2 = 0 49 * +---+---+---+---+---+---+---+---+ 52 * +---+---+---+---+---+---+---+---+ 54 * enqueued_ddcbs = N - A = 4 - 2 = 2 [all …]
|
/linux/drivers/mtd/nand/raw/ |
H A D | omap2.c | 1 // SPDX-License-Identifier: GPL-2.0-only 10 #include <linux/dma-mapping.h> 18 #include <linux/mtd/nand-ecc-sw-bch.h> 21 #include <linux/omap-dma.h> 29 #include <linux/omap-gpmc.h> 30 #include <linux/platform_data/mtd-nand-omap2.h> 32 #define DRIVER_NAME "omap2-nand" 198 * omap_prefetch_enable - configures and starts prefetch transfer 212 return -1; in omap_prefetch_enable() 214 if (readl(info->reg.gpmc_prefetch_control)) in omap_prefetch_enable() [all …]
|
/linux/drivers/mfd/ |
H A D | db8500-prcmu.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * Copyright (C) ST-Ericsson SA 2010 35 #include <linux/mfd/dbx500-prcmu.h> 37 #include <linux/regulator/db8500-prcmu.h> 39 #include "db8500-prcmu-regs.h" 227 #define ALL_MBOX_BITS (MBOX_BIT(NUM_MB) - 1) 332 #define VALID_WAKEUPS (BIT(NUM_PRCMU_WAKEUP_INDICES) - 1) 347 * mb0_transfer - state needed for mailbox 0 communication. 351 * @mask_work: Work structure used for (un)masking wakeup interrupts. 368 * mb1_transfer - state needed for mailbox 1 communication. [all …]
|
/linux/drivers/dma/stm32/ |
H A D | stm32-dma3.c | 1 // SPDX-License-Identifier: GPL-2.0-only 11 #include <linux/dma-mapping.h> 24 #include "../virt-dma.h" 56 /* MISR DMA non-secure/secure masked interrupt status register */ 140 CTR1_PAM_0S_LT, /* if DDW > SDW, padded with 0s else left-truncated */ 141 CTR1_PAM_SE_RT, /* if DDW > SDW, sign extended else right-truncated */ 163 /* CxLLR DMA channel x linked-list address register */ 192 AXI64, /* 1x AXI: 64-bit port 0 */ 193 AHB32, /* 1x AHB: 32-bit port 0 */ 194 AHB32_AHB32, /* 2x AHB: 32-bit port 0 and 32-bit port 1 */ [all …]
|
/linux/drivers/net/ethernet/qlogic/qede/ |
H A D | qede_main.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 3 * Copyright (c) 2015-2017 QLogic Corporation 4 * Copyright (c) 2019-2020 Marvell International Ltd. 17 #include <linux/dma-mapping.h> 125 return -EINVAL; in qede_set_vf_vlan() 129 return -EPROTONOSUPPORT; in qede_set_vf_vlan() 134 return edev->ops->iov->set_vlan(edev->cdev, vlan, vf); in qede_set_vf_vlan() 145 return -EINVAL; in qede_set_vf_mac() 148 return edev->ops->iov->set_mac(edev->cdev, mac, vfidx); in qede_set_vf_mac() 154 struct qed_dev_info *qed_info = &edev->dev_info.common; in qede_sriov_configure() [all …]
|
/linux/drivers/platform/x86/lenovo/ |
H A D | thinkpad_acpi.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * thinkpad_acpi.c - ThinkPad ACPI Extras 5 * Copyright (C) 2004-2005 Borislav Deianov <borislav@users.sf.net> 6 * Copyright (C) 2006-2009 Henrique de Moraes Holschuh <hmh@hmh.eng.br> 16 * 2007-10-20 changelog trimmed down 18 * 2007-03-27 0.14 renamed to thinkpad_acpi and moved to 21 * 2006-11-22 0.13 new maintainer 23 * not be updated further in-file. 25 * 2005-03-17 0.11 support for 600e, 770x 28 * 2005-01-16 0.9 use MODULE_VERSION [all …]
|
/linux/drivers/net/ethernet/agere/ |
H A D | et131x.c | 2 * 10/100/1000 Base-T Ethernet Driver for the ET1301 and ET131x series MACs 10 *------------------------------------------------------------------------------ 87 MODULE_DESCRIPTION("10/100/1000 Base-T Ethernet Driver for the ET1310 by Agere Systems"); 106 * In both cases, when flow control is enabled for either Tx or bi-direction, 156 #define ET131X_PCI_DEVICE_ID_GIG 0xED00 /* ET1310 1000 Base-T 8 */ 157 #define ET131X_PCI_DEVICE_ID_FAST 0xED01 /* ET1310 100 Base-T */ 173 /* number of RFDs - default and min */ 189 u32 word2; /* Bits 10-31 reserved, 0-9 descriptor */ 197 * PE-MCXMAC Data Sheet IPD DS54 0210-1 (also IPD-DS80 0205-2) 210 * 11-15: unused [all …]
|
/linux/drivers/scsi/ |
H A D | pmcraid.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * pmcraid.c -- driver for PMC Sierra MaxRAID controller adapters 5 * Written By: Anil Ravindranath<anil_ravindranath@pmc-sierra.com> 6 * PMC-Sierra Inc 54 * pmcraid_adapter_count - count of configured adapters 59 * Supporting user-level control interface through IOCTL commands. 60 * pmcraid_major - major number to use 61 * pmcraid_minor - minor number(s) to use 72 MODULE_AUTHOR("Anil Ravindranath<anil_ravindranath@pmc-sierra.com>"); 79 "Enables firmware error code logging, default :1 high-severity" [all …]
|
/linux/drivers/mtd/chips/ |
H A D | cfi_cmdset_0002.c | 1 // SPDX-License-Identifier: GPL-2.0 118 * CFI Primary Vendor-Specific Extended Query table 1.5 122 struct cfi_pri_amdstd *extp = cfi->cmdset_priv; in cfi_use_status_reg() 125 return extp && extp->MinorVersion >= '5' && in cfi_use_status_reg() 126 (extp->SoftwareFeatures & poll_mask) == CFI_POLL_STATUS_REG; in cfi_use_status_reg() 132 struct cfi_private *cfi = map->fldrv_priv; in cfi_check_err_status() 138 cfi_send_gen_cmd(0x70, cfi->addr_unlock1, chip->start, map, cfi, in cfi_check_err_status() 139 cfi->device_type, NULL); in cfi_check_err_status() 151 map->name, chipstatus); in cfi_check_err_status() 154 map->name, chipstatus); in cfi_check_err_status() [all …]
|
/linux/Documentation/virt/kvm/ |
H A D | api.rst | 1 .. SPDX-License-Identifier: GPL-2.0 4 The Definitive KVM (Kernel-based Virtual Machine) API Documentation 24 - System ioctls: These query and set global attributes which affect the 28 - VM ioctls: These query and set attributes that affect an entire virtual 35 - vcpu ioctls: These query and set attributes that control the operation 43 - device ioctls: These query and set attributes that control the operation 92 facility that allows backward-compatible extensions to the API to be 133 ----------------------- 150 ----------------- 189 address used by the VM. The IPA_Bits is encoded in bits[7-0] of the [all …]
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_tc.c | 14 * - Redistributions of source code must retain the above 18 * - Redistributions in binary form must reproduce the above 156 return tc ? tc : ERR_PTR(-ENOMEM); in mlx5e_tc_table_alloc() 166 return tc->chains; in mlx5e_nic_chains() 172 * which call rhashtable_destroy on fg->ftes_hash which will take ht->mutex but 173 * it's different than the ht->mutex here. 189 void *headers_c = spec->match_criteria, *headers_v = spec->match_value, *fmask, *fval; in mlx5e_tc_match_to_reg_match() 193 u32 max_mask = GENMASK(match_len - 1, 0); in mlx5e_tc_match_to_reg_match() 227 spec->match_criteria_enable |= MLX5_MATCH_MISC_PARAMETERS_2; in mlx5e_tc_match_to_reg_match() 236 void *headers_c = spec->match_criteria, *headers_v = spec->match_value, *fmask, *fval; in mlx5e_tc_match_to_reg_get_match() [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> 62 #include <linux/entry-kvm.h> 108 ((struct kvm_vcpu *)(ctxt)->vcpu) 111 * - enable syscall per default because its emulated by KVM 112 * - enable LME and LMA per default on 64 bit KVM 143 *(((struct kvm_x86_ops *)0)->func)); 146 #include <asm/kvm-x86-ops.h> [all …]
|