/linux/drivers/scsi/csiostor/ |
H A D | csio_hw_t5.c | 4 * Copyright (c) 2008-2013 Chelsio Communications, Inc. All rights reserved. 11 * Redistribution and use in source and binary forms, with or 15 * - Redistributions of source code must retain the above 19 * - Redistributions in binary form must reproduce the above 30 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 42 * Truncation intentional: we only read the bottom 32-bits of the in csio_t5_set_mem_win() 43 * 64-bit BAR0/BAR1 ... We use the hardware backdoor mechanism to in csio_t5_set_mem_win() 46 * accesses to our Configuration Space and we need to set up the PCI-E in csio_t5_set_mem_win() 48 * coming across the PCI-E link. in csio_t5_set_mem_win() 57 * to use the new values.) in csio_t5_set_mem_win() [all …]
|
H A D | csio_hw.c | 4 * Copyright (c) 2008-2012 Chelsio Communications, Inc. All rights reserved. 12 * Redistribution and use in source and binary forms, with or 16 * - Redistributions of source code must retain the above 20 * - Redistributions in binary form must reproduce the above 31 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 64 {"T580-Dbg 10G", "Chelsio T580-Dbg 10G [FCoE]"}, 65 {"T520-CR 10G", "Chelsio T520-CR 10G [FCoE]"}, 66 {"T522-CR 10G/1G", "Chelsio T522-CR 10G/1G [FCoE]"}, 67 {"T540-CR 10G", "Chelsio T540-CR 10G [FCoE]"}, 68 {"T520-BCH 10G", "Chelsio T520-BCH 10G [FCoE]"}, [all …]
|
/linux/Documentation/devicetree/bindings/serial/ |
H A D | xlnx,opb-uartlite.yaml | 1 # SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/serial/xlnx,opb-uartlite.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Peter Korsgaard <jacmet@sunsite.dk> 16 - xlnx,xps-uartlite-1.00.a 17 - xlnx,opb-uartlite-1.00.b 25 port-number: 32 clock-names: 35 current-speed: [all …]
|
/linux/drivers/usb/serial/ |
H A D | keyspan_usa28msg.h | 1 /* SPDX-License-Identifier: BSD-3-Clause */ 5 Copyright (C) 1998-2000 InnoSys Incorporated. All Rights Reserved 6 This file is available under a BSD-style copyright 10 Redistribution and use in source and binary forms, with or without 19 Copyright (C) 1998-2000 InnoSys Incorporated. All Rights Reserved 21 This file is available under a BSD-style copyright 33 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 36 OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 45 USB OUT (host -> USA28, transmit) messages contain a 48 If the port is configured for parity, the data will be an [all …]
|
H A D | keyspan_usa90msg.h | 1 /* SPDX-License-Identifier: BSD-3-Clause */ 5 Copyright (c) 1998-2003 InnoSys Incorporated. All Rights Reserved 6 This file is available under a BSD-style copyright 10 Redistribution and use in source and binary forms, with or without 19 Copyright (c) 1998-2003 InnoSys Incorporated. All Rights Reserved 21 This file is available under a BSD-style copyright 33 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 36 OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 63 lcr, // use PARITY, STOPBITS, DATABITS below 72 txFlowControl , // use TX_FLOW... bits below [all …]
|
H A D | io_16654.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 21 // Numbers 0-7 are passed to the Edgeport directly. Numbers 8 and 27 // the EdgePort firmware -- that includes THR, RHR, IER, FCR. 44 #define XON1 12 // Bank2[ 4 ] Xon-1 45 #define XON2 13 // Bank2[ 5 ] Xon-2 46 #define XOFF1 14 // Bank2[ 6 ] Xoff-1 47 #define XOFF2 15 // Bank2[ 7 ] Xoff-2 104 #define LCR_STOP_2 0x04 // 2 stop bits (if 6-8 bits/char) 107 #define LCR_PAR_NONE 0x00 // No parity 108 #define LCR_PAR_ODD 0x08 // Odd parity [all …]
|
/linux/drivers/scsi/aic7xxx/aicasm/ |
H A D | aicasm_insformat.h | 8 * Redistribution and use in source and binary forms, with or without 19 * 3. Neither the names of the above-listed copyright holders nor the names 34 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 37 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 55 parity : 1; member 57 uint32_t parity : 1, 74 parity : 1; member 76 uint32_t parity : 1, 92 parity : 1; member 94 uint32_t parity : 1, [all …]
|
/linux/Documentation/driver-api/mtd/ |
H A D | nand_ecc.rst | 2 NAND Error-correction Code 11 After that the speed was increased by 35-40%. 28 not use the right terminology, my coding theory class was almost 30 32 bytes. This is done by calculating several parity bits over the rows and 33 columns. The parity used is even parity which means that the parity bit = 1 34 if the data over which the parity is calculated is 1 and the parity bit = 0 35 if the data over which the parity is calculated is 0. So the total 36 number of bits over the data over which the parity is calculated + the 37 parity bit is even. (see wikipedia if you can't follow this). 38 Parity is often calculated by means of an exclusive or operation, [all …]
|
/linux/Documentation/scsi/ |
H A D | aha152x.rst | 1 .. SPDX-License-Identifier: GPL-2.0 5 Adaptec AHA-1520/1522 SCSI driver for Linux (aha152x) 8 Copyright |copy| 1993-1999 Jürgen Fischer <fischer@norbit.de> 14 bottom-half handler complete()). 27 IRQ interrupt level (9-12; default 11) 28 SCSI_ID scsi id of controller (0-7; default 7) 30 PARITY enable parity checking (0/1; default 1 [on]) 42 - DAUTOCONF 43 use configuration the controller reports (AHA-152x only) 45 - DSKIP_BIOSTEST [all …]
|
H A D | aic7xxx.rst | 1 .. SPDX-License-Identifier: GPL-2.0 5 Adaptec Aic7xxx Fast -> Ultra160 Family Manager Set v7.0 36 aic7892 20 PCI/64-66 80MHz 16Bit 16 3 4 5 6 7 8 41 aic7899 20 PCI/64-66 80MHz 16Bit 16 2 3 4 5 6 7 8 44 1. Multiplexed Twin Channel Device - One controller servicing two 46 2. Multi-function Twin Channel Device - Two controllers on one chip. 47 3. Command Channel Secondary DMA Engine - Allows scatter gather list 49 4. 64 Byte SCB Support - Allows disconnected, untagged request table 51 5. Block Move Instruction Support - Doubles the speed of certain 53 6. 'Bayonet' style Scatter Gather Engine - Improves S/G prefetch [all …]
|
/linux/fs/ocfs2/ |
H A D | blockcheck.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 63 * Encoding hamming code parity bits for a buffer. 70 * parity = ocfs2_hamming_encode(0, buf1, 512 * 8, 0); 71 * parity = ocfs2_hamming_encode(parity, buf2, 512 * 8, 512 * 8); 73 * If you just have one buffer, use ocfs2_hamming_encode_block(). 75 u32 ocfs2_hamming_encode(u32 parity, void *data, unsigned int d, 78 * Fix a buffer with a bit error. The 'fix' is the original parity 79 * xor'd with the parity calculated now. 85 * If you only have one buffer, use ocfs2_hamming_fix_block().
|
H A D | blockcheck.c | 1 // SPDX-License-Identifier: GPL-2.0-only 28 * We use the following conventions: 31 * p = # parity bits 39 * power-of-two bits for parity, the data bit number and the code bit 40 * number are offset by all the parity bits beforehand. 42 * Recall that bit numbers in hamming code are 1-based. This function 43 * takes the 0-based data bit from the caller. 46 * so it's a parity bit. 2 is a power of two (2^1), so it's a parity bit. 51 * number of parity bits added. This allows the function to start the 59 * Data bits are 0-based, but we're talking code bits, which in calc_code_bit() [all …]
|
/linux/Documentation/driver-api/md/ |
H A D | raid5-cache.rst | 7 caches data to the RAID disks. The cache can be in write-through (supported 8 since 4.4) or write-back mode (supported since 4.10). mdadm (supported since 9 3.4) has a new option '--write-journal' to create array with cache. Please 11 in write-through mode. A user can switch it to write-back mode by:: 13 echo "write-back" > /sys/block/md0/md/journal_mode 15 And switch it back to write-through mode by:: 17 echo "write-through" > /sys/block/md0/md/journal_mode 22 write-through mode 27 and parity don't match. The reason is that a stripe write involves several RAID 34 The write-through cache will cache all data on cache disk first. After the data [all …]
|
/linux/Documentation/core-api/ |
H A D | librs.rst | 2 Reed-Solomon Library Programming Interface 10 The generic Reed-Solomon Library provides encoding, decoding and error 13 Reed-Solomon codes are used in communication and storage applications to 27 This chapter provides examples of how to use the library. 30 ------------ 54 -------- 56 The encoder calculates the Reed-Solomon code over the given data length 57 and stores the result in the parity buffer. Note that the parity buffer 60 The expanded data can be inverted on the fly by providing a non-zero 63 Reed-Solomon code for all 0x00 is all 0x00. The code is inverted before [all …]
|
/linux/drivers/md/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 20 # after relevant mdadm enhancements - to make "names=yes" 21 # the default - are widely available. 34 Software RAID mini-HOWTO, available from 48 If you don't use raid and say Y, this autodetection can cause 49 a several-second delay in the boot time due to various 65 tristate "RAID-0 (striping) mode" 69 use the so-called raid0 mode, i.e. it will combine the hard disk 75 Software-RAID mini-HOWTO, available from 85 tristate "RAID-1 (mirroring) mode" [all …]
|
H A D | raid5.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 31 * Empty -> Want - on read or write to get old data for parity calc 32 * Empty -> Dirty - on compute_parity to satisfy write/sync request. 33 * Empty -> Clean - on compute_block when computing a block for failed drive 34 * Want -> Empty - on failed read 35 * Want -> Clean - on successful completion of read request 36 * Dirty -> Clean - on successful completion of write request 37 * Dirty -> Clean - on failed write 38 * Clean -> Dirty - on compute_parity to satisfy write/sync (RECONSTRUCT or RMW) 40 * The Want->Empty, Want->Clean, Dirty->Clean, transitions [all …]
|
/linux/include/uapi/asm-generic/ |
H A D | termbits-common.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 11 #define IGNPAR 0x004 /* Ignore characters with parity errors */ 12 #define PARMRK 0x008 /* Mark parity and framing errors */ 13 #define INPCK 0x010 /* Enable input parity check */ 50 #define CMSPAR 0x40000000 /* mark or space (stick) parity */ 55 /* tcflow() ACTION argument and TCXONC use these */ 61 /* tcflush() QUEUE_SELECTOR argument and TCFLSH use these */
|
/linux/include/linux/platform_data/ |
H A D | spi-davinci.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 19 * davinci_spi_platform_data - Platform data for SPI master device on DaVinci 28 * @dma_event_q: DMA event queue to use if SPI_IO_TYPE_DMA is used for any 41 * davinci_spi_config - Per-chip-select configuration for SPI slave devices 45 * @odd_parity: polarity of parity flag at the end of transmit data stream. 46 * 0 - odd parity, 1 - even parity. 47 * @parity_enable: enable transmission of parity at end of each transmit 50 * @timer_disable: disable chip-select timers (setup and hold) 51 * @c2tdelay: chip-select setup time. Measured in number of SPI module clocks. 52 * @t2cdelay: chip-select hold time. Measured in number of SPI module clocks. [all …]
|
/linux/arch/mips/include/asm/sn/sn0/ |
H A D | hubpi.h | 8 * Copyright (C) 1992 - 1997, 1999 Silicon Graphics, Inc. 20 * All register "addresses" are actually offsets. Use the LOCAL_HUB 65 #define PI_NMI_OFFSET (PI_NMI_B - PI_NMI_A) 109 /* Built-In Self Test support */ 132 #define PI_GFX_OFFSET (PI_GFX_PAGE_B - PI_GFX_PAGE_A) 160 #define PI_STACKADDR_OFFSET (PI_ERR_STACK_ADDR_B - PI_ERR_STACK_ADDR_A) 161 #define PI_ERRSTAT_OFFSET (PI_ERR_STATUS0_B - PI_ERR_STATUS0_A) 162 #define PI_RDCLR_OFFSET (PI_ERR_STATUS0_A_RCLR - PI_ERR_STATUS0_A) 173 #define PI_ERR_SYSSTATE_B 0x00000100 /* SysState parity error */ 175 #define PI_ERR_SYSAD_DATA_B 0x00000400 /* SysAD data parity error */ [all …]
|
/linux/drivers/net/ethernet/broadcom/bnx2x/ |
H A D | bnx2x_reg.h | 3 * Copyright (c) 2007-2013 Broadcom Corporation 13 * R - Read only 14 * RC - Clear on read 15 * RW - Read/Write 16 * ST - Statistics register (clear on read) 17 * W - Write only 18 * WB - Wide bus register - the size is over 32 bits and it should be 20 * WR - Write Clear (write 1 to clear the bit) 32 /* [RW 1] Initiate the ATC array - reset all the valid bits */ 38 /* [RW 5] Parity mask register #0 read/write */ [all …]
|
/linux/Documentation/admin-guide/ |
H A D | serial-console.rst | 6 To use a serial port as console you need to compile the support into your 7 kernel - by default it is not compiled in. For PC style serial ports 10 :menuselection:`Character devices --> Serial drivers --> 8250/16550 and compatible serial support -… 16 use for console output. 29 defines the baudrate/parity/bits/flow control of 31 speed, P is parity (n/o/e), N is number of bits, 74 The kernel command line is used also by systemd. It would use the last 83 You will need to create a new device to use ``/dev/console``. The official 86 (You can also use a network device as a console. See 89 Here's an example that will use ``/dev/ttyS1`` (COM2) as the console. [all …]
|
/linux/drivers/edac/ |
H A D | edac_pci_sysfs.c | 20 static int check_pci_errors; /* default NO check PCI parity */ 21 static int edac_pci_panic_on_pe; /* default NO panic on PCI Parity */ 22 static int edac_pci_log_pe = 1; /* log PCI parity errors */ 23 static int edac_pci_log_npe = 1; /* log PCI non-parity error errors */ 61 return sprintf(data, "%u\n", atomic_read(&pci->counters.pe_count)); in instance_pe_count_show() 67 return sprintf(data, "%u\n", atomic_read(&pci->counters.npe_count)); in instance_npe_count_show() 103 if (instance_attr->show) in edac_pci_instance_show() 104 return instance_attr->show(pci, buffer); in edac_pci_instance_show() 105 return -EIO; in edac_pci_instance_show() 116 if (instance_attr->store) in edac_pci_instance_store() [all …]
|
/linux/arch/mips/include/asm/sgi/ |
H A D | hpc3.h | 27 #define HPCDMA_XIU 0x01000000 /* Tx buffer in use by CPU. */ 40 u32 _unused0[0x1000/4 - 2]; /* padding */ 53 #define HPC3_PDMACTRL_RT 0x00000040 /* Use realtime GIO bus servicing */ 54 #define HPC3_PDMACTRL_HW 0x0000ff00 /* DMA High-water mark */ 58 u32 _unused1[0x1000/4 - 1]; /* padding */ 63 volatile u32 cbptr; /* current dma buffer ptr, diagnostic use only */ 65 u32 _unused0[0x1000/4 - 2]; /* padding */ 72 #define HPC3_SCTRL_IRQ 0x01 /* IRQ asserted, either dma done or parity */ 79 #define HPC3_SCTRL_PERR 0x80 /* Bad parity on HPC3 iface to scsi controller */ 89 #define HPC3_SDCFG_HW 0x01000 /* Enable 16-bit halfword DMA accesses to scsi */ [all …]
|
/linux/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | t4_hw.c | 4 * Copyright (c) 2003-2016 Chelsio Communications, Inc. All rights reserved. 12 * Redistribution and use in source and binary forms, with or 16 * - Redistributions of source code must retain the above 20 * - Redistributions in binary form must reproduce the above 31 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 43 * t4_wait_op_done_val - wait until an operation is completed 46 * @mask: a single-bit field within @reg that indicates completion 55 * operation completes and -EAGAIN otherwise. 68 if (--attempts == 0) in t4_wait_op_done_val() 69 return -EAGAIN; in t4_wait_op_done_val() [all …]
|
/linux/drivers/scsi/pcmcia/ |
H A D | aha152x_stub.c | 3 A driver for Adaptec AHA152X-compatible PCMCIA SCSI cards. 5 This driver supports the Adaptec AHA-1460, the New Media Bus 11 License Version 1.1 (the "License"); you may not use this file 27 above. If you wish to allow the use of your version of this file 28 only under the terms of the GPL and not to allow others to use 32 the provisions above, a recipient may use your version of this 66 static int parity = 1; variable 73 module_param(parity, int, 0); 78 MODULE_DESCRIPTION("Adaptec AHA152X-compatible PCMCIA SCSI card driver"); 96 dev_dbg(&link->dev, "aha152x_attach()\n"); in aha152x_probe() [all …]
|