/linux/Documentation/devicetree/bindings/spi/ |
H A D | spi-sifive.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/spi/spi-sifive.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Pragnesh Patel <pragnesh.patel@sifive.com> 11 - Paul Walmsley <paul.walmsley@sifive.com> 12 - Palmer Dabbelt <palmer@sifive.com> 15 - $ref: spi-controller.yaml# 20 - enum: 21 - sifive,fu540-c000-spi [all …]
|
H A D | spi-peripheral-props.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/spi/spi-peripheral-props.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Peripheral-specific properties for a SPI bus. 11 be common properties like spi-max-frequency, spi-cpha, etc. or they could be 13 need to be defined in the peripheral node because they are per-peripheral and 19 - Mark Brown <broonie@kernel.org> 27 - minimum: 0 32 spi-cs-high: [all …]
|
/linux/tools/spi/ |
H A D | spidev_test.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * Cross-compile with cross-gcc -I/path/to/cross-kernel/include 40 static uint8_t bits = 8; variable 71 while (length-- > 0) { in hex_dump() 91 * Unescape - process hexadecimal escape character 92 * converts shell input "\x23" -> 0x23 128 .bits_per_word = bits, in transfer() 175 printf("Usage: %s [-2348CDFHILMNORSZbdilopsv]\n", prog); in print_usage() 177 " -D --device device to use (default /dev/spidev1.1)\n" in print_usage() 178 " -s --speed max speed (Hz)\n" in print_usage() [all …]
|
/linux/fs/jfs/ |
H A D | jfs_dmap.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Copyright (C) International Business Machines Corp., 2000-2002 13 #define LPERDMAP 256 /* num leaves per dmap tree */ 14 #define L2LPERDMAP 8 /* l2 number of leaves per dmap tree */ 15 #define DBWORD 32 /* # of blks covered by a map word */ 17 #define BUDMIN L2DBWORD /* max free string in a map word */ 18 #define BPERDMAP (LPERDMAP * DBWORD) /* num of blks per dmap */ 19 #define L2BPERDMAP 13 /* l2 num of blks per dmap */ 22 #define LPERCTL 1024 /* num of leaves per dmapctl tree */ 23 #define L2LPERCTL 10 /* l2 num of leaves per dmapctl tree */ [all …]
|
H A D | jfs_dmap.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (C) International Business Machines Corp., 2000-2004 41 * take the lock in read mode. a single top-down request may proceed 42 * exclusively while multiple bottoms-up requests may proceed 50 * in the face of multiple-bottoms up requests. 57 #define BMAP_LOCK_INIT(bmp) mutex_init(&bmp->db_bmaplock) 58 #define BMAP_LOCK(bmp) mutex_lock(&bmp->db_bmaplock) 59 #define BMAP_UNLOCK(bmp) mutex_unlock(&bmp->db_bmaplock) 88 static int dbFindBits(u32 word, int l2nb); 99 static int cnttz(u32 word); [all …]
|
/linux/include/uapi/scsi/ |
H A D | scsi_bsg_fc.h | 1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ 51 * (aka port_id), the value is effectively in big-endian 53 * element [0] is bits 23:16 of the FC Address Identifier 54 * element [1] is bits 15:8 of the FC Address Identifier 55 * element [2] is bits 7:0 of the FC Address Identifier 78 * There is no additional response data - fc_bsg_reply->result is sufficient 99 * There is no additional response data - fc_bsg_reply->result is sufficient 124 /* fc_bsg_ctels_reply->status values */ 136 * LS_ACC or LS_RJT (by contents of word 0). The reject 137 * data will be in word 1. [all …]
|
/linux/drivers/ntb/hw/idt/ |
H A D | ntb_hw_idt.h | 7 * Copyright (C) 2016-2018 T-Platforms JSC All Rights Reserved. 36 * IDT PCIe-switch NTB Linux driver 39 * Serge Semin <fancer.lancer@gmail.com>, <Sergey.Semin@t-platforms.ru> 55 * the supported IDT PCIe-switches 66 * IDT PCIe-switches device IDs 78 * NT-function Configuration Space registers 79 * NOTE 1) The IDT PCIe-switch internal data is little-endian 83 * with byte-enables corresponding to their native size or 86 * So to simplify the driver code, there is only DWORD-sized read/write 94 /* PCI Express Device Control/Status (WORD+WORD) */ [all …]
|
/linux/Documentation/devicetree/bindings/eeprom/ |
H A D | microchip,93lc46b.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Cory Tusar <cory.tusar@pid1solutions.com> 15 - atmel,at93c46 16 - atmel,at93c46d 17 - atmel,at93c56 18 - atmel,at93c66 19 - eeprom-93xx46 20 - microchip,93lc46b [all …]
|
/linux/drivers/crypto/ccp/ |
H A D | ccp-dev.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 19 #include <linux/dma-direction.h> 27 #include "sp-dev.h" 63 /* ------------------------ CCP Version 5 Specifics ------------------------ */ 103 #define QUEUE_SIZE_VAL ((ffs(COMMANDS_PER_QUEUE) - 2) & \ 105 #define Q_PTR_MASK (2 << (QUEUE_SIZE_VAL + 5) - 1) 125 /* ------------------------ CCP Version 3 Specifics ------------------------ */ 147 /* XTS-AES Related Values */ 156 /* Pass-Through Related Values */ 174 #define KSB_COUNT (KSB_END - KSB_START + 1) [all …]
|
/linux/drivers/net/ethernet/netronome/nfp/ |
H A D | nfp_net_ctrl.h | 1 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ 2 /* Copyright (C) 2015-2018 Netronome Systems, Inc. */ 17 /* 64-bit per app capabilities */ 23 * THB-350, 32k needs to be reserved. 61 /* Hash type pre-pended when a RSS hash was computed */ 80 /* Read/Write config words (0x0000 - 0x002c) 87 * %NFP_NET_CFG_EXN: MSI-X table entry for exceptions 88 * %NFP_NET_CFG_LSC: MSI-X table entry for link state changes 92 * - define Error details in UPDATE 108 #define NFP_NET_CFG_CTRL_RXQINQ (0x1 << 13) /* Enable S-tag strip */ [all …]
|
/linux/include/uapi/linux/ |
H A D | hdreg.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 17 #define IDE_DRIVE_TASK_INVALID -1 137 * 0x01->0x02 Reserved 141 * 0x04->0x07 Reserved 146 * 0x09->0x0F Reserved 151 * 0x10->0x1F Reserved 153 #define WIN_READ 0x20 /* 28-Bit */ 154 #define WIN_READ_ONCE 0x21 /* 28-Bit without retries */ 155 #define WIN_READ_LONG 0x22 /* 28-Bit */ 156 #define WIN_READ_LONG_ONCE 0x23 /* 28-Bit without retries */ [all …]
|
/linux/Documentation/crypto/ |
H A D | descore-readme.rst | 1 .. SPDX-License-Identifier: GPL-2.0 13 ------------------------------------------------------------------------------ 15 des - fast & portable DES encryption & decryption. 42 2. PORTABILITY to any byte-addressable host with a 32bit unsigned C type 43 3. Plug-compatible replacement for KERBEROS's low-level routines. 46 register-starved machines. My discussions with Richard Outerbridge, 51 up in a parameterized fashion so it can easily be modified by speed-daemon 58 compile on a SPARCStation 1 (cc -O4, gcc -O2): 60 this code (byte-order independent): 62 - 30us per encryption (options: 64k tables, no IP/FP) [all …]
|
/linux/arch/mips/cavium-octeon/executive/ |
H A D | cvmx-pko.c | 7 * Copyright (c) 2003-2008 Cavium Networks 14 * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty 21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 34 #include <asm/octeon/cvmx-config.h> 35 #include <asm/octeon/cvmx-pko.h> 36 #include <asm/octeon/cvmx-helper.h> 64 return -1; in __cvmx_pko_int() 85 config.s.tail = (queue == (num_queues - 1)); in __cvmx_pko_iport_config() 95 (CVMX_FPA_OUTPUT_BUFFER_POOL_SIZE - in __cvmx_pko_iport_config() 191 * 64bit words. This allows the normal two word send to stay in cvmx_pko_initialize_global() [all …]
|
/linux/drivers/net/ethernet/microchip/vcap/ |
H A D | vcap_api.h | 1 /* SPDX-License-Identifier: BSD-3-Clause */ 53 VCAP_USER_MAX = __VCAP_USER_AFTER_LAST - 1, 89 char *name; /* user-friendly name */ 91 u16 sw_count; /* maximum subwords used per rule */ 92 u16 sw_width; /* bits per subword in a keyset */ 93 u16 sticky_width; /* sticky bits per rule */ 94 u16 act_width; /* bits per subword in an actionset */ 102 /* map of keys per keyset */ 106 /* map of actions per actionset */ 110 /* map of keyset typegroups per subword size */ [all …]
|
/linux/include/linux/spi/ |
H A D | spi.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later 10 #include <linux/bits.h> 23 /* Max no. of CS supported per spi device */ 36 * INTERFACES between SPI master-side drivers and SPI slave protocol handlers, 42 * struct spi_statistics - statistics for spi transfers 43 * @syncp: seqcount to protect members in this struct for per-cpu update 44 * on 32-bit systems 46 * @messages: number of spi-messages handled 95 u64_stats_update_begin(&__lstats->syncp); \ 96 u64_stats_add(&__lstats->field, count); \ [all …]
|
/linux/arch/powerpc/platforms/512x/ |
H A D | mpc512x_lpbfifo.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * Copyright (C) 2013-2015 Alexander Popov <alex.popov@linux.com>. 21 #include <linux/dma-direction.h> 22 #include <linux/dma-mapping.h> 61 * mpc512x_lpbfifo_irq - IRQ handler for LPB FIFO 76 if (!req || req->dir == MPC512X_LPBFIFO_REQ_DIR_READ) { in mpc512x_lpbfifo_irq() 81 status = in_be32(&lpbfifo.regs->status); in mpc512x_lpbfifo_irq() 84 out_be32(&lpbfifo.regs->enable, in mpc512x_lpbfifo_irq() 89 out_be32(&lpbfifo.regs->status, MPC512X_SCLPC_SUCCESS); in mpc512x_lpbfifo_irq() 101 if (req->callback) in mpc512x_lpbfifo_irq() [all …]
|
/linux/sound/pci/ca0106/ |
H A D | ca0106.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Copyright (c) 2004 James Courtier-Dutton <James@superbug.demon.co.uk> 11 * Support interrupts per period. 50 * Implement support for Line-in capture on SB Live 24bit. 72 /* the relevant bits and zero to the other bits */ 73 #define IPR_MIDI_RX_B 0x00020000 /* MIDI UART-B Receive buffer non-empty */ 74 #define IPR_MIDI_TX_B 0x00010000 /* MIDI UART-B Transmit buffer empty */ 75 #define IPR_SPDIF_IN_USER 0x00004000 /* SPDIF input user data has 16 more bits */ 76 #define IPR_SPDIF_OUT_USER 0x00002000 /* SPDIF output user data needs 16 more bits */ 87 #define IPR_MIDI_RX_A 0x00000004 /* MIDI UART-A Receive buffer non-empty */ [all …]
|
/linux/drivers/net/ethernet/freescale/dpaa2/ |
H A D | dpaa2-eth.h | 1 /* SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) */ 2 /* Copyright 2014-2016 Freescale Semiconductor Inc. 3 * Copyright 2016-2022 NXP 17 #include <soc/fsl/dpaa2-io.h> 18 #include <soc/fsl/dpaa2-fd.h> 20 #include "dpni-cmd.h" 22 #include "dpaa2-eth-trace.h" 23 #include "dpaa2-eth-debugfs.h" 24 #include "dpaa2-mac.h" 30 /* Maximum number of scatter-gather entries in an ingress frame, [all …]
|
/linux/include/linux/pds/ |
H A D | pds_adminq.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 14 * enum pds_core_adminq_opcode - AdminQ command opcodes 48 * enum pds_core_notifyq_opcode - NotifyQ event codes 60 * struct pds_core_notifyq_event - Generic event reporting structure 73 * struct pds_core_link_change_event - Link change event notification 76 * @link_status: link up/down, with error bits 89 * struct pds_core_reset_event - Reset event notification 106 * struct pds_core_client_event - Client event notification 122 * struct pds_core_notifyq_cmd - Placeholder for building qcq 130 * union pds_core_notifyq_comp - Overlay of notifyq event structures [all …]
|
/linux/include/uapi/misc/ |
H A D | xilinx_sdfec.h | 1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ 3 * Xilinx SD-FEC 26 (XSDFEC_LDPC_SC_TABLE_ADDR_HIGH - XSDFEC_LDPC_SC_TABLE_ADDR_BASE) 28 (XSDFEC_LDPC_LA_TABLE_ADDR_HIGH - XSDFEC_LDPC_LA_TABLE_ADDR_BASE) 30 (XSDFEC_LDPC_QC_TABLE_ADDR_HIGH - XSDFEC_LDPC_QC_TABLE_ADDR_BASE) 33 * enum xsdfec_code - Code Type. 47 * enum xsdfec_order - Order 49 * @XSDFEC_OUT_OF_ORDER: Out-of-order execution of blocks. 60 * enum xsdfec_turbo_alg - Turbo Algorithm Type. 61 * @XSDFEC_MAX_SCALE: Max Log-Map algorithm with extrinsic scaling. When [all …]
|
/linux/include/drm/display/ |
H A D | drm_dsc.h | 1 /* SPDX-License-Identifier: MIT 45 * struct drm_dsc_rc_range_parameters - DSC Rate Control range parameters 56 * @range_max_qp: Max Quantization Parameters allowed for this range 61 * Bits/group offset to apply to target for this group 67 * struct drm_dsc_config - Parameters required to configure DSC 75 * Bits per component for previous reconstructed line buffer 79 * @bits_per_component: Bits per component to code (8/10/12) 84 * Flag to indicate if RGB - YCoCg conversion is needed 89 * @slice_count: Number fo slices per line used by the DSC encoder 114 * Offset to bits/group used by RC to determine QP adjustment [all …]
|
/linux/drivers/net/ipa/ |
H A D | ipa_endpoint.c | 1 // SPDX-License-Identifier: GPL-2.0 3 /* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved. 4 * Copyright (C) 2019-2024 Linaro Ltd. 8 #include <linux/bits.h> 10 #include <linux/dma-direction.h> 30 #define IPA_REPLENISH_BATCH 16 /* Must be non-zero */ 33 #define IPA_RX_BUFFER_OVERHEAD (PAGE_SIZE - SKB_MAX_ORDER(NET_SKB_PAD, 0)) 35 /* Where to find the QMAP mux_id for a packet within modem-supplied metadata */ 40 /** enum ipa_status_opcode - IPA status opcode field hardware values */ 51 /** enum ipa_status_exception - IPA status exception field hardware values */ [all …]
|
/linux/drivers/usb/gadget/udc/ |
H A D | amd5536udc.h | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * amd5536.h -- header for AMD 5536 UDC high/full speed USB device controller 56 /* Global CSR's -------------------------------------------------------------*/ 59 /* EP NE bits */ 79 /* max pkt */ 83 /* Device Config Register ---------------------------------------------------*/ 106 /* Device Control Register --------------------------------------------------*/ 130 /* Device Status Register ---------------------------------------------------*/ 157 /* Device Interrupt Register ------------------------------------------------*/ 169 /* Device Interrupt Mask Register -------------------------------------------*/ [all …]
|
/linux/drivers/scsi/lpfc/ |
H A D | lpfc_hw.h | 4 * Copyright (C) 2017-2023 Broadcom. All Rights Reserved. The term * 6 * Copyright (C) 2004-2016 Emulex. All rights reserved. * 16 * FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT, ARE * 50 #define SLI2_IOCB_CMD_R0_ENTRIES 172 /* SLI-2 FCP command ring entries */ 51 #define SLI2_IOCB_RSP_R0_ENTRIES 134 /* SLI-2 FCP response ring entries */ 52 #define SLI2_IOCB_CMD_R1_ENTRIES 4 /* SLI-2 extra command ring entries */ 53 #define SLI2_IOCB_RSP_R1_ENTRIES 4 /* SLI-2 extra response ring entries */ 54 #define SLI2_IOCB_CMD_R1XTRA_ENTRIES 36 /* SLI-2 extra FCP cmd ring entries */ 55 #define SLI2_IOCB_RSP_R1XTRA_ENTRIES 52 /* SLI-2 extra FCP rsp ring entries */ 56 #define SLI2_IOCB_CMD_R2_ENTRIES 20 /* SLI-2 ELS command ring entries */ [all …]
|
/linux/include/linux/ |
H A D | randomize_kstack.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 8 #include <linux/percpu-defs.h> 16 * it provides an arch-agnostic way to grow the stack with correct 17 * alignment. Also, since this use is being explicitly masked to a max of 18 * 10 bits, stack-clash style attacks are unlikely. For more details see 35 * Use, at most, 6 bits of entropy (on 64-bit; 8 on 32-bit). This cap is 37 * the bottom 4 bits (on 64-bit systems, 2 for 32-bit), since stack 38 * alignment will always be at least word size. This makes the compiler 39 * code gen better when it is applying the actual per-arch alignment to 50 * add_random_kstack_offset - Increase stack utilization by previously [all …]
|