/linux/Documentation/devicetree/bindings/dma/ |
H A D | fsl-qdma.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/dma/fsl-qdma.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Frank Li <Frank.Li@nxp.com> 15 - const: fsl,ls1021a-qdma 16 - items: 17 - enum: 18 - fsl,ls1028a-qdma 19 - fsl,ls1043a-qdma [all …]
|
/linux/drivers/usb/host/ |
H A D | ohci.h | 1 /* SPDX-License-Identifier: GPL-1.0+ */ 6 * (C) Copyright 2000-2002 David Brownell <dbrownell@users.sourceforge.net> 27 /* first fields are hardware-specified */ 49 struct ed *ed_prev; /* for non-interrupt EDs */ 53 /* create --> IDLE --> OPER --> ... --> IDLE --> destroy 54 * usually: OPER --> UNLINK --> (IDLE | OPER) --> ... 76 ((int) (ohci->wdh_cnt - ed->takeback_wdh_cnt) >= 0) 89 /* first fields are hardware-specified */ 124 * big-endian PPC hardware that's the second entry. 132 struct td *td_hash; /* dma-->td hashtable */ [all …]
|
H A D | uhci-hcd.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 61 #define USBPORTSC_DMINUS 0x0020 /* D- high (line status) */ 80 /* PCI Intel-specific resume-enable register */ 97 /* When no queues need Full-Speed Bandwidth Reclamation, 110 * To facilitate the strongest possible byte-order checking from "sparse" 127 * with each endpoint, and qh->element (updated by the HC) is either: 128 * - the next unprocessed TD in the endpoint's queue, or 129 * - UHCI_PTR_TERM (when there's no more traffic for this endpoint). 133 * place. Then qh->element is UHCI_PTR_TERM. 135 * In the schedule, qh->link maintains a list of QHs seen by the HC: [all …]
|
H A D | ehci-platform.c | 1 // SPDX-License-Identifier: GPL-2.0 6 * Copyright 2010-2012 Hauke Mehrtens <hauke@hauke-m.de> 9 * Derived from the ohci-ssb driver 12 * Derived from the EHCI-PCI driver 13 * Copyright (c) 2000-2004 by David Brownell 15 * Derived from the ohci-pci driver 17 * Copyright 2000-2002 David Brownell 23 #include <linux/dma-mapping.h> 43 #define hcd_to_ehci_priv(h) ((struct ehci_platform_priv *)hcd_to_ehci(h)->priv) 58 struct platform_device *pdev = to_platform_device(hcd->self.controller); in ehci_platform_reset() [all …]
|
H A D | ohci-pci.c | 1 // SPDX-License-Identifier: GPL-1.0+ 6 * (C) Copyright 2000-2002 David Brownell <dbrownell@users.sourceforge.net> 26 #include "pci-quirks.h" 30 static const char hcd_name[] = "ohci-pci"; 33 /*-------------------------------------------------------------------------*/ 37 device_init_wakeup(&hcd->self.root_hub->dev, 0); in broken_suspend() 48 ohci->flags = OHCI_QUIRK_AMD756; in ohci_quirk_amd756() 74 struct pci_dev *pdev = to_pci_dev(hcd->self.controller); in ohci_quirk_ns() 77 b = pci_get_slot (pdev->bus, PCI_DEVFN (PCI_SLOT (pdev->devfn), 1)); in ohci_quirk_ns() 78 if (b && b->device == PCI_DEVICE_ID_NS_87560_LIO in ohci_quirk_ns() [all …]
|
H A D | fsl-mph-dr-of.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Setup platform devices needed by the Freescale multi-port host 4 * and/or dual-role USB controller modules based on the description 17 #include <linux/dma-mapping.h> 28 .drivers = { "fsl-ehci", NULL, NULL, }, 33 .drivers = { "fsl-usb2-otg", "fsl-ehci", "fsl-usb2-udc", }, 38 .drivers = { "fsl-usb2-udc", NULL, NULL, }, 84 const struct resource *res = ofdev->resource; in fsl_usb2_device_register() 85 unsigned int num = ofdev->num_resources; in fsl_usb2_device_register() 90 retval = -ENOMEM; in fsl_usb2_device_register() [all …]
|
/linux/Documentation/devicetree/bindings/usb/ |
H A D | generic-ehci.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/usb/generic-ehci.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Greg Kroah-Hartman <gregkh@linuxfoundation.org> 13 - $ref: usb-hcd.yaml 14 - if: 19 const: ibm,usb-ehci-440epx 28 - items: 29 - enum: [all …]
|
/linux/Documentation/devicetree/bindings/mips/cavium/ |
H A D | uctl.txt | 4 - compatible: "cavium,octeon-6335-uctl" 8 - reg: The base address of the UCTL register bank. 10 - #address-cells: Must be <2>. 12 - #size-cells: Must be <2>. 14 - ranges: Empty to signify direct mapping of the children. 16 - refclk-frequency: A single cell containing the reference clock 19 - refclk-type: A string describing the reference clock connection 24 compatible = "cavium,octeon-6335-uctl"; 27 #address-cells = <2>; 28 #size-cells = <2>; [all …]
|
/linux/drivers/dma/ |
H A D | fsl-edma-common.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 // Copyright (c) 2013-2014 Freescale Semiconductor, Inc 11 #include <linux/dma-mapping.h> 15 #include "fsl-edma-common.h" 49 spin_lock(&fsl_chan->vchan.lock); in fsl_edma_tx_chan_handler() 51 if (!fsl_chan->edesc) { in fsl_edma_tx_chan_handler() 53 spin_unlock(&fsl_chan->vchan.lock); in fsl_edma_tx_chan_handler() 57 if (!fsl_chan->edesc->iscyclic) { in fsl_edma_tx_chan_handler() 58 list_del(&fsl_chan->edesc->vdesc.node); in fsl_edma_tx_chan_handler() 59 vchan_cookie_complete(&fsl_chan->edesc->vdesc); in fsl_edma_tx_chan_handler() [all …]
|
H A D | fsl-edma-common.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 3 * Copyright 2013-2014 Freescale Semiconductor, Inc. 9 #include <linux/dma-direction.h> 11 #include "virt-dma.h" 267 struct edma_regs regs; member 274 return fsl_chan->edma->drvdata->flags; in fsl_edma_drvflags() 278 _Generic(((_tcd)->__name), \ 279 __iomem __le64 : edma_readq(chan->edma, &(_tcd)->__name), \ 280 __iomem __le32 : edma_readl(chan->edma, &(_tcd)->__name), \ 281 __iomem __le16 : edma_readw(chan->edma, &(_tcd)->__name) \ [all …]
|
/linux/arch/mips/include/asm/sgi/ |
H A D | hpc3.h | 36 /* The set of regs for each HPC3 PBUS DMA channel. */ 40 u32 _unused0[0x1000/4 - 2]; /* padding */ 48 #define HPC3_PDMACTRL_SEL 0x00000002 /* little endian transfer */ 54 #define HPC3_PDMACTRL_HW 0x0000ff00 /* DMA High-water mark */ 58 u32 _unused1[0x1000/4 - 1]; /* padding */ 65 u32 _unused0[0x1000/4 - 2]; /* padding */ 73 #define HPC3_SCTRL_ENDIAN 0x02 /* DMA endian mode, 0=big 1=little */ 89 #define HPC3_SDCFG_HW 0x01000 /* Enable 16-bit halfword DMA accesses to scsi */ 100 #define HPC3_SPCFG_HW 0x1000 /* Enable 16-bit halfword PIO accesses to scsi */ 105 u32 _unused1[0x1000/4 - 6]; /* padding */ [all …]
|
/linux/drivers/phy/broadcom/ |
H A D | phy-brcm-usb-init.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Copyright (C) 2014-2017 Broadcom 60 void __iomem *regs[BRCM_REGS_MAX]; member 85 * bus endianness (i.e., big-endian CPU + big endian bus ==> native in brcm_usb_readl() 86 * endian I/O). in brcm_usb_readl() 88 * Other architectures (e.g., ARM) either do not support big endian, or in brcm_usb_readl() 89 * else leave I/O in little endian mode. in brcm_usb_readl() 118 if (ini->ops->init_ipp) in brcm_usb_init_ipp() 119 ini->ops->init_ipp(ini); in brcm_usb_init_ipp() 124 if (ini->ops->init_common) in brcm_usb_init_common() [all …]
|
/linux/Documentation/bpf/standardization/ |
H A D | instruction-set.rst | 27 BCP 14 `<https://www.rfc-editor.org/info/rfc2119>`_ 28 `<https://www.rfc-editor.org/info/rfc8174>`_ 38 ----- 51 .. table:: Meaning of bit-width notation 63 For example, `u32` is a type whose valid values are all the 32-bit unsigned 64 numbers and `s16` is a type whose valid values are all the 16-bit signed 68 --------- 70 The following byteswap functions are direction-agnostic. That is, 74 * be16: Takes an unsigned 16-bit number and converts it between 75 host byte order and big-endian [all …]
|
/linux/Documentation/devicetree/bindings/pci/ |
H A D | fsl,layerscape-pcie.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/pci/fsl,layerscape-pcie.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Frank Li <Frank.Li@nxp.com> 16 which is used to describe the PLL settings at the time of chip-reset. 26 - enum: 27 - fsl,ls1012a-pcie 28 - fsl,ls1021a-pcie 29 - fsl,ls1028a-pcie [all …]
|
/linux/arch/arm64/include/asm/ |
H A D | syscall.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 12 typedef long (*syscall_fn_t)(const struct pt_regs *regs); 21 struct pt_regs *regs) in syscall_get_nr() argument 23 return regs->syscallno; in syscall_get_nr() 27 struct pt_regs *regs) in syscall_rollback() argument 29 regs->regs[0] = regs->orig_x0; in syscall_rollback() 33 struct pt_regs *regs) in syscall_get_return_value() argument 35 unsigned long val = regs->regs[0]; in syscall_get_return_value() 44 struct pt_regs *regs) in syscall_get_error() argument 46 unsigned long error = syscall_get_return_value(task, regs); in syscall_get_error() [all …]
|
/linux/include/video/ |
H A D | sstfb.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * linux/drivers/video/sstfb.h -- voodoo graphics frame buffer 105 # define LFB_WORD_SWIZZLE_WR BIT(11) /* enable write-wordswap (big-endian) */ 106 # define LFB_BYTE_SWIZZLE_WR BIT(12) /* enable write-byteswap (big-endian) */ 108 # define LFB_WORD_SWIZZLE_RD BIT(15) /* enable read-wordswap (big-endian) */ 109 # define LFB_BYTE_SWIZZLE_RD BIT(16) /* enable read-byteswap (big-endian) */ 192 # define BLT_SCR2SCR_BITBLT 0 /* Screen-to-Screen BitBLT */ 193 # define BLT_CPU2SCR_BITBLT 1 /* CPU-to-screen BitBLT */ 195 # define BLT_16BPP_FMT 2 /* 16 BPP (5-6-5 RGB) */ 196 #define BLTDATA 0x02fc /* BitBLT data for CPU-to-Screen BitBLTs */ [all …]
|
/linux/drivers/pci/controller/ |
H A D | pci-ixp4xx.c | 1 // SPDX-License-Identifier: GPL-2.0 7 * Based on the IXP4xx arch/arm/mach-ixp4xx/common-pci.c driver 9 * Copyright (C) 2003 Greg Ungerer <gerg@linux-m68k.org> 10 * Copyright (C) 2003-2004 MontaVista Software, Inc. 15 * - Test IO-space access 16 * - DMA support 113 * operates in big-endian or little-endian mode. That means that 114 * readl() and writel() that always use little-endian access 116 * when used in big-endian mode. The accesses to the individual 117 * PCI devices on the other hand, are always little-endian and [all …]
|
/linux/arch/arm64/lib/ |
H A D | strncmp.S | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Copyright (c) 2013-2022, Arm Limited. 6 * https://github.com/ARM-software/optimized-routines/blob/189dfefe37d54c5b/string/aarch64/strncmp.S 14 * ARMv8-a, AArch64. 48 /* Define endian dependent shift operations. 49 On big-endian early bytes are at MSB and on little-endian LSB. 70 /* NUL detection works on the principle that (X - 1) & (~X) & 0x80 71 (=> (X - 1) & ~(X | 0x7f)) is non-zero iff a byte is zero, and 81 eor diff, data1, data2 /* Non-zero if differences found. */ 83 bics has_nul, tmp1, tmp2 /* Non-zero if NUL terminator. */ [all …]
|
/linux/arch/powerpc/include/asm/ |
H A D | ptrace.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 8 * this should only contain volatile regs 9 * since we can keep non-volatile in the thread_struct 24 #include <asm/asm-const.h> 100 // Always displays as "REGS" in memory dumps 111 * pointer. This is 288 in the 64-bit big-endian ELF ABI, and 512 in 112 * the new ELFv2 little-endian ABI, so we allow the larger amount. 114 * For kernel code we allow a 288-byte redzone, in order to conserve 139 #define STACK_INT_FRAME_MARKER (STACK_FRAME_MIN_SIZE - 16) 156 #define STACK_INT_FRAME_MARKER (STACK_FRAME_MIN_SIZE - 8) [all …]
|
/linux/drivers/usb/fotg210/ |
H A D | fotg210-hcd.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 5 #include <linux/usb/ehci-dbgp.h> 14 * To facilitate the strongest possible byte-order checking from "sparse" 33 /* fotg210_hcd->lock guards shared data against other CPUs: 59 * ehci-timer.c) in parallel with this list. 89 struct fotg210_regs __iomem *regs; member 152 /* which ports have the change-suspend feature turned on */ 161 /* per-HC memory pools (could be per-bus, but ...) */ 193 return (struct fotg210_hcd *)(hcd->hcd_priv); in hcd_to_fotg210() 200 /*-------------------------------------------------------------------------*/ [all …]
|
/linux/drivers/memory/ |
H A D | brcmstb_dpfe.c | 1 // SPDX-License-Identifier: GPL-2.0-only 21 * - LE kernel + LE firmware image (the most common case) 22 * - LE kernel + BE firmware image 23 * - BE kernel + LE firmware image 24 * - BE kernel + BE firmware image 26 * The DPCU always runs in big endian mode. The firmware image, however, can 28 * always in little endian. 38 #define DRVNAME "brcmstb-dpfe" 48 #define DRAM_MSG_ADDR_MASK ((1UL << DRAM_MSG_TYPE_OFFSET) - 1) 50 (BITS_PER_LONG - DRAM_MSG_TYPE_OFFSET)) - 1) [all …]
|
/linux/sound/mips/ |
H A D | hal2.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * Based on OSS code from Ladislav Michl <ladis@linux-mips.org>, which 12 #include <linux/dma-mapping.h> 24 #include <sound/pcm-indirect.h> 29 static int index = SNDRV_DEFAULT_IDX1; /* Index 0-MAX */ 47 unsigned int ctrl; /* Current state of pbus->pbdma_ctrl */ 87 #define H2_INDIRECT_WAIT(regs) while (hal2_read(®s->isr) & H2_ISR_TSTATUS); argument 106 struct hal2_ctl_regs *regs = hal2->ctl_regs; in hal2_i_read32() local 108 hal2_write(H2_READ_ADDR(addr), ®s->iar); in hal2_i_read32() 109 H2_INDIRECT_WAIT(regs); in hal2_i_read32() [all …]
|
/linux/tools/testing/selftests/arm64/fp/ |
H A D | sve-ptrace.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2015-2021 ARM Limited. 68 #define VL_TESTS (((TEST_VQ_MAX - SVE_VQ_MIN) + 1) * 4) 84 if (ptrace(PTRACE_TRACEME, -1, NULL, NULL)) in do_child() 103 if (ret == -1) in get_fpsimd() 116 if (ret == -1) in set_fpsimd() 144 ret = ptrace(PTRACE_GETREGSET, pid, type->regset, &iov); in get_sve() 151 if (sve->size <= sz) in get_sve() 154 sz = sve->size; in get_sve() 170 iov.iov_len = sve->size; in set_sve() [all …]
|
/linux/arch/xtensa/kernel/ |
H A D | signal.c | 12 * 1997-11-28 Modified for POSIX.1b signals by Richard Henderson 57 flush_window_regs_user(struct pt_regs *regs) in flush_window_regs_user() argument 59 const unsigned long ws = regs->windowstart; in flush_window_regs_user() 60 const unsigned long wb = regs->windowbase; in flush_window_regs_user() 68 if (regs->wmask == 1) in flush_window_regs_user() 73 wm = (ws >> wb) | (ws << (XCHAL_NUM_AREGS / 4 - wb)); in flush_window_regs_user() 74 base = (XCHAL_NUM_AREGS / 4) - (regs->wmask >> 4); in flush_window_regs_user() 78 if ((regs->wmask & 2) == 0) in flush_window_regs_user() 79 if (__get_user(sp, (int*)(regs->areg[base * 4 + 1] - 12))) in flush_window_regs_user() 96 ®s->areg[(base + 1) * 4], 16)) in flush_window_regs_user() [all …]
|
/linux/drivers/net/ethernet/alteon/ |
H A D | acenic.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 17 * The Tigon uses 64-bit host addresses, regardless of their actual 18 * length, and it expects a big-endian format. For 32 bit systems the 20 * little endian 64 bit systems (Alpha) this looks strange with the 445 * TX ring - maximum TX ring entries for Tigon I's is 128 613 * efficient manner ;-( 638 struct ace_regs __iomem *regs; /* register base */ member 706 return (csm - prd - 1) & (ACE_TX_RING_ENTRIES(ap) - 1); in tx_space() 709 #define tx_free(ap) tx_space((ap)->tx_ret_csm, (ap)->tx_prd, ap) 715 aa->addrlo = baddr & 0xffffffff; in set_aceaddr() [all …]
|