/openbmc/linux/include/uapi/linux/ |
H A D | virtio_config.h | 43 /* Device entered invalid state, driver must reset it */ 52 * rest are per-device feature bits. 58 /* Do we get callbacks when the ring is completely used, even if we've 70 * If clear - device has the platform DMA (e.g. IOMMU) bypass quirk feature. 71 * If set - use platform DMA tools to access the memory. 109 * This feature indicates that the driver can reset a queue individually.
|
/openbmc/qemu/include/standard-headers/linux/ |
H A D | virtio_config.h | 32 #include "standard-headers/linux/types.h" 43 /* Device entered invalid state, driver must reset it */ 52 * rest are per-device feature bits. 58 /* Do we get callbacks when the ring is completely used, even if we've 70 * If clear - device has the platform DMA (e.g. IOMMU) bypass quirk feature. 71 * If set - use platform DMA tools to access the memory. 112 * This feature indicates that the driver can reset a queue individually.
|
/openbmc/linux/drivers/soc/ti/ |
H A D | k3-ringacc.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * TI K3 NAVSS Ring Accelerator subsystem driver 5 * Copyright (C) 2019 Texas Instruments Incorporated - http://www.ti.com 8 #include <linux/dma-mapping.h> 14 #include <linux/dma/ti-cppi5.h> 15 #include <linux/soc/ti/k3-ringacc.h> 28 * struct k3_ring_rt_regs - The RA realtime Control/Status Registers region 31 * @db: Ring Doorbell Register 33 * @occ: Ring Occupancy Register 34 * @indx: Ring Current Index Register [all …]
|
/openbmc/linux/arch/arm64/boot/dts/freescale/ |
H A D | fsl-ls1088a.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * Device Tree Include file for NXP Layerscape-1088A family SoC. 5 * Copyright 2017-2020 NXP 10 #include <dt-bindings/clock/fsl,qoriq-clockgen.h> 11 #include <dt-bindings/interrupt-controller/arm-gic.h> 12 #include <dt-bindings/thermal/thermal.h> 16 interrupt-parent = <&gic>; 17 #address-cells = <2>; 18 #size-cells = <2>; 26 #address-cells = <1>; [all …]
|
H A D | imx8mp.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 #include <dt-bindings/clock/imx8mp-clock.h> 7 #include <dt-bindings/power/imx8mp-power.h> 8 #include <dt-bindings/reset/imx8mp-reset.h> 9 #include <dt-bindings/gpio/gpio.h> 10 #include <dt-bindings/input/input.h> 11 #include <dt-bindings/interconnect/fsl,imx8mp.h> 12 #include <dt-bindings/interrupt-controller/arm-gic.h> 13 #include <dt-bindings/thermal/thermal.h> 15 #include "imx8mp-pinfunc.h" [all …]
|
H A D | imx8mq.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 4 * Copyright (C) 2017-2018 Pengutronix, Lucas Stach <kernel@pengutronix.de> 7 #include <dt-bindings/clock/imx8mq-clock.h> 8 #include <dt-bindings/power/imx8mq-power.h> 9 #include <dt-bindings/reset/imx8mq-reset.h> 10 #include <dt-bindings/gpio/gpio.h> 11 #include "dt-bindings/input/input.h" 12 #include <dt-bindings/interrupt-controller/arm-gic.h> 13 #include <dt-bindings/thermal/thermal.h> 14 #include <dt-bindings/interconnect/imx8mq.h> [all …]
|
/openbmc/linux/drivers/thunderbolt/ |
H A D | nhi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Thunderbolt driver - NHI driver 16 #include <linux/dma-mapping.h> 28 #define RING_TYPE(ring) ((ring)->is_tx ? "TX ring" : "RX ring") argument 37 * Minimal number of vectors when we use MSI-X. Two for control channel 38 * Rx/Tx and the rest four are for cross domain DMA paths. 51 MODULE_PARM_DESC(host_reset, "reset USBv2 host router (default: true)"); 53 static int ring_interrupt_index(const struct tb_ring *ring) in ring_interrupt_index() argument 55 int bit = ring->hop; in ring_interrupt_index() 56 if (!ring->is_tx) in ring_interrupt_index() [all …]
|
/openbmc/linux/drivers/usb/host/ |
H A D | xhci.c | 1 // SPDX-License-Identifier: GPL-2.0 21 #include <linux/dma-mapping.h> 24 #include "xhci-trace.h" 25 #include "xhci-debugfs.h" 26 #include "xhci-dbgcap.h" 42 static bool td_on_ring(struct xhci_td *td, struct xhci_ring *ring) in td_on_ring() argument 44 struct xhci_segment *seg = ring->first_seg; in td_on_ring() 46 if (!td || !td->start_seg) in td_on_ring() 49 if (seg == td->start_seg) in td_on_ring() 51 seg = seg->next; in td_on_ring() [all …]
|
H A D | xhci.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 19 #include <linux/io-64-nonatomic-lo-hi.h> 20 #include <linux/io-64-nonatomic-hi-lo.h> 22 /* Code sharing between pci-quirks and xhci hcd */ 23 #include "xhci-ext-caps.h" 24 #include "pci-quirks.h" 26 #include "xhci-port.h" 27 #include "xhci-caps.h" 35 /* Max number of USB devices for any host controller - limit in section 6.1 */ 37 /* Section 5.3.3 - MaxPorts */ [all …]
|
H A D | xhci-mem.c | 1 // SPDX-License-Identifier: GPL-2.0 16 #include <linux/dma-mapping.h> 19 #include "xhci-trace.h" 20 #include "xhci-debugfs.h" 23 * Allocates a generic ring segment from the ring pool, sets the dma address, 36 dma_addr_t dma; in xhci_segment_alloc() local 38 struct device *dev = xhci_to_hcd(xhci)->self.sysdev; in xhci_segment_alloc() 44 seg->trbs = dma_pool_zalloc(xhci->segment_pool, flags, &dma); in xhci_segment_alloc() 45 if (!seg->trbs) { in xhci_segment_alloc() 51 seg->bounce_buf = kzalloc_node(max_packet, flags, in xhci_segment_alloc() [all …]
|
H A D | xhci-ring.c | 1 // SPDX-License-Identifier: GPL-2.0 12 * Ring initialization rules: 14 * 2. Ring cycle state = 0. This represents Producer Cycle State (PCS) or 15 * Consumer Cycle State (CCS), depending on ring function. 18 * Ring behavior rules: 19 * 1. A ring is empty if enqueue == dequeue. This means there will always be at 20 * least one free TRB in the ring. This is useful if you want to turn that 21 * into a link TRB and expand the ring. 24 * link TRB had its toggle bit set, you may need to update the ring cycle 26 * until you reach a non-link TRB. [all …]
|
H A D | oxu210hp-hcd.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 * This code is *strongly* based on EHCI-HCD code by David Brownell since 7 * the chip is a quasi-EHCI compatible. 25 #include <linux/dma-mapping.h> 82 #define EHCI_TUNE_CERR 3 /* 0-3 qtd retries; 0 == don't stop */ 85 #define EHCI_TUNE_MULT_HS 1 /* 1-3 transactions/uframe; 4.10.3 */ 101 u32 hcs_params; /* HCSPARAMS - offset 0x4 */ 110 u32 hcc_params; /* HCCPARAMS - offset 0x8 */ 116 #define HCC_64BIT_ADDR(p) ((p)&(1)) /* true: can use 64-bit addr */ 117 u8 portroute[8]; /* nibbles for routing - offset 0xC */ [all …]
|
/openbmc/linux/drivers/net/ethernet/freescale/ |
H A D | fec.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 5 * fec.h -- Fast Ethernet Controller for Motorola ColdFire SoC 8 * (C) Copyright 2000-2005, Greg Ungerer (gerg@snapgear.com) 9 * (C) Copyright 2000-2001, Lineo (www.lineo.com) 23 #include <dt-bindings/firmware/imx/rsrc.h> 48 #define FEC_TXIC0 0x0f0 /* Tx Interrupt Coalescing for ring 0 */ 49 #define FEC_TXIC1 0x0f4 /* Tx Interrupt Coalescing for ring 1 */ 50 #define FEC_TXIC2 0x0f8 /* Tx Interrupt Coalescing for ring 2 */ 51 #define FEC_RXIC0 0x100 /* Rx Interrupt Coalescing for ring 0 */ 52 #define FEC_RXIC1 0x104 /* Rx Interrupt Coalescing for ring 1 */ [all …]
|
H A D | fec_main.c | 1 // SPDX-License-Identifier: GPL-2.0+ 17 * Copyright (c) 2001-2005 Greg Ungerer (gerg@snapgear.com) 20 * Copyright (c) 2004-2006 Macq Electronique SA. 22 * Copyright (C) 2010-2011 Freescale Semiconductor, Inc. 190 .name = "imx25-fec", 193 .name = "imx27-fec", 196 .name = "imx28-fec", 199 .name = "imx6q-fec", 202 .name = "mvf600-fec", 205 .name = "imx6sx-fec", [all …]
|
/openbmc/linux/drivers/net/ipa/ |
H A D | gsi.c | 1 // SPDX-License-Identifier: GPL-2.0 3 /* Copyright (c) 2015-2018, The Linux Foundation. All rights reserved. 4 * Copyright (C) 2018-2023 Linaro Ltd. 31 * providing a well-defined communication layer between the AP subsystem 34 * -------- --------- 36 * | AP +<---. .----+ Modem | 37 * | +--. | | .->+ | 39 * -------- | | | | --------- 41 * --+-+---+-+-- 43 * |-----------| [all …]
|
/openbmc/linux/drivers/virtio/ |
H A D | virtio_ring.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 2 /* Virtio ring implementation. 13 #include <linux/dma-mapping.h> 19 /* For development, we want to crash whenever the ring is screwed. */ 22 dev_err(&(_vq)->vq.vdev->dev, \ 23 "%s:"fmt, (_vq)->vq.name, ##args); \ 29 if ((_vq)->in_use) \ 31 (_vq)->vq.name, (_vq)->in_use); \ 32 (_vq)->in_use = __LINE__; \ 35 do { BUG_ON(!(_vq)->in_use); (_vq)->in_use = 0; } while(0) [all …]
|
/openbmc/linux/sound/pci/ |
H A D | atiixp.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 27 static int index = SNDRV_DEFAULT_IDX1; /* Index 0-MAX */ 32 static int ac97_codec = -1; 45 MODULE_PARM_DESC(spdif_aclink, "S/PDIF over AC-link."); 143 #define ATI_REG_OUT_DMA_SLOT_BIT(x) (1U << ((x) - 3)) 169 #define ATI_REG_6CH_REORDER_EN (1U<<0) /* 3,4,7,8,6,9 -> 3,4,6,9,7,8 */ 191 * DMA packate descriptor 195 __le32 addr; /* DMA buffer address */ 212 * constants and callbacks for each DMA type 227 * DMA stream [all …]
|
/openbmc/linux/drivers/net/can/spi/mcp251xfd/ |
H A D | mcp251xfd-core.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // mcp251xfd - Microchip MCP251xFD Family CAN controller driver 6 // Marc Kleine-Budde <kernel@pengutronix.de> 79 * [-64,63] for TDCO, indicating a relative TDCO. 115 return __mcp251xfd_get_model_str(priv->devtype_data.model); in mcp251xfd_get_model_str() 160 if (!priv->reg_vdd) in mcp251xfd_vdd_enable() 163 return regulator_enable(priv->reg_vdd); in mcp251xfd_vdd_enable() 168 if (!priv->reg_vdd) in mcp251xfd_vdd_disable() 171 return regulator_disable(priv->reg_vdd); in mcp251xfd_vdd_disable() 177 if (!priv->reg_xceiver) in mcp251xfd_transceiver_enable() [all …]
|
/openbmc/linux/Documentation/admin-guide/ |
H A D | kernel-parameters.txt | 5 force -- enable ACPI if default was off 6 on -- enable ACPI but allow fallback to DT [arm64,riscv64] 7 off -- disable ACPI if default was on 8 noirq -- do not use ACPI for IRQ routing 9 strict -- Be less tolerant of platforms that are not 11 rsdt -- prefer RSDT over (default) XSDT 12 copy_dsdt -- copy DSDT to memory 26 If set to vendor, prefer vendor-specific driver 58 Documentation/firmware-guide/acpi/debug.rst for more information about 116 Format: <byte> or <bitmap-list> [all …]
|
/openbmc/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 13 - System ioctls: These query and set global attributes which affect the 17 - VM ioctls: These query and set attributes that affect an entire virtual 24 - vcpu ioctls: These query and set attributes that control the operation 32 - device ioctls: These query and set attributes that control the operation 80 facility that allows backward-compatible extensions to the API to be 104 the ioctl returns -ENOTTY. 122 ----------------------- 139 ----------------- [all …]
|
/openbmc/linux/sound/pci/nm256/ |
H A D | nm256.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 68 MODULE_PARM_DESC(reset_workaround, "Enable AC97 RESET workaround for some laptops."); 70 MODULE_PARM_DESC(reset_workaround_2, "Enable extended AC97 RESET workaround for some other laptops.… 160 /* DMA buffer offsets */ 178 u32 buf; /* offset from chip->buffer */ 264 return readb(chip->cport + offset); in snd_nm256_readb() 270 return readw(chip->cport + offset); in snd_nm256_readw() 276 return readl(chip->cport + offset); in snd_nm256_readl() 282 writeb(val, chip->cport + offset); in snd_nm256_writeb() 288 writew(val, chip->cport + offset); in snd_nm256_writew() [all …]
|
/openbmc/linux/drivers/net/ethernet/broadcom/asp2/ |
H A D | bcmasp_intf.c | 1 // SPDX-License-Identifier: GPL-2.0 39 return beg + DESC_SIZE - 1; in incr_last_byte() 63 (intf->port << TX_EPKT_C_CFG_MISC_PS_SHIFT)), in bcmasp_enable_tx() 87 spin_lock_bh(&intf->parent->mda_lock); in bcmasp_set_rx_mode() 91 if (dev->flags & IFF_PROMISC) in bcmasp_set_rx_mode() 98 bcmasp_set_oaddr(intf, dev->dev_addr, 1); in bcmasp_set_rx_mode() 100 if (dev->flags & IFF_ALLMULTI) { in bcmasp_set_rx_mode() 106 ret = bcmasp_set_en_mda_filter(intf, ha->addr, mask); in bcmasp_set_rx_mode() 108 intf->mib.mc_filters_full_cnt++; in bcmasp_set_rx_mode() 115 ret = bcmasp_set_en_mda_filter(intf, ha->addr, mask); in bcmasp_set_rx_mode() [all …]
|
/openbmc/linux/drivers/usb/fotg210/ |
H A D | fotg210-hcd.c | 1 // SPDX-License-Identifier: GPL-2.0+ 2 /* Faraday FOTG210 EHCI-like driver 6 * Author: Yuan-Hsin Chen <yhchen@faraday-tech.com> 7 * Feng-Hsin Chiang <john453@faraday-tech.com> 8 * Po-Yu Chuang <ratbert.chuang@gmail.com> 10 * Most of code borrowed from the Linux-3.7 EHCI driver 29 #include <linux/dma-mapping.h> 49 #define FOTG210_TUNE_CERR 3 /* 0-3 qtd retries; 0 == don't stop */ 52 #define FOTG210_TUNE_MULT_HS 1 /* 1-3 transactions/uframe; 4.10.3 */ 60 #define FOTG210_TUNE_FLS 1 /* (medium) 512-frame schedule */ [all …]
|
/openbmc/linux/drivers/media/usb/uvc/ |
H A D | uvc_video.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * uvc_video.c -- USB Video Class driver - Video handling 5 * Copyright (C) 2005-2010 9 #include <linux/dma-mapping.h> 24 #include <media/v4l2-common.h> 28 /* ------------------------------------------------------------------------ 39 pipe = (query & 0x80) ? usb_rcvctrlpipe(dev->udev, 0) in __uvc_query_ctrl() 40 : usb_sndctrlpipe(dev->udev, 0); in __uvc_query_ctrl() 43 return usb_control_msg(dev->udev, pipe, query, type, cs << 8, in __uvc_query_ctrl() 88 * This quirk is applied to all controls, regardless of their data type. in uvc_query_ctrl() [all …]
|
/openbmc/linux/drivers/iommu/amd/ |
H A D | iommu.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2007-2010 Advanced Micro Devices, Inc. 8 #define pr_fmt(fmt) "AMD-Vi: " fmt 14 #include <linux/pci-ats.h> 19 #include <linux/dma-map-ops.h> 20 #include <linux/dma-direct.h> 21 #include <linux/iommu-helper.h> 23 #include <linux/amd-iommu.h> 30 #include <linux/io-pgtable.h> 39 #include <asm/dma.h> [all …]
|