/linux/drivers/crypto/intel/qat/qat_common/ |
H A D | adf_gen4_ras.h | 37 /* HI CPP Agent Command parity error log */ 40 /* HI CPP Agent Command parity error logging enable */ 43 /* RI Memory parity error status register */ 46 /* RI Memory parity error reporting enable */ 50 * RI Memory parity error mask 51 * BIT(0) - BIT(3) - ri_iosf_pdata_rxq[0:3] parity error 52 * BIT(4) - ri_tlq_phdr parity error 53 * BIT(5) - ri_tlq_pdata parity error 54 * BIT(6) - ri_tlq_nphdr parity error 55 * BIT(7) - ri_tlq_npdata parity error [all …]
|
/linux/Documentation/driver-api/mtd/ |
H A D | nand_ecc.rst | 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, 59 cp is my abbreviation for column parity, rp for row parity. 61 Let's start to explain column parity. 63 - cp0 is the parity that belongs to all bit0, bit2, bit4, bit6. [all …]
|
/linux/drivers/scsi/csiostor/ |
H A D | csio_hw_t5.c | 75 { MSTGRPPERR_F, "Master Response Read Queue parity error", in csio_t5_pcie_intr_handler() 77 { MSTTIMEOUTPERR_F, "Master Timeout FIFO parity error", -1, 1 }, in csio_t5_pcie_intr_handler() 78 { MSIXSTIPERR_F, "MSI-X STI SRAM parity error", -1, 1 }, in csio_t5_pcie_intr_handler() 79 { MSIXADDRLPERR_F, "MSI-X AddrL parity error", -1, 1 }, in csio_t5_pcie_intr_handler() 80 { MSIXADDRHPERR_F, "MSI-X AddrH parity error", -1, 1 }, in csio_t5_pcie_intr_handler() 81 { MSIXDATAPERR_F, "MSI-X data parity error", -1, 1 }, in csio_t5_pcie_intr_handler() 82 { MSIXDIPERR_F, "MSI-X DI parity error", -1, 1 }, in csio_t5_pcie_intr_handler() 83 { PIOCPLGRPPERR_F, "PCI PIO completion Group FIFO parity error", in csio_t5_pcie_intr_handler() 85 { PIOREQGRPPERR_F, "PCI PIO request Group FIFO parity error", in csio_t5_pcie_intr_handler() 87 { TARTAGPERR_F, "PCI PCI target tag FIFO parity error", -1, 1 }, in csio_t5_pcie_intr_handler() [all …]
|
/linux/Documentation/driver-api/md/ |
H A D | raid5-ppl.rst | 2 Partial Parity Log 5 Partial Parity Log (PPL) is a feature available for RAID5 arrays. The issue 6 addressed by PPL is that after a dirty shutdown, parity of a particular stripe 8 in degraded state, there is no way to recalculate parity, because one of the 10 array or using it is as degraded - data calculated from parity for array blocks 15 Partial parity for a write operation is the XOR of stripe data chunks not 17 write hole. XORing partial parity with the modified chunks produces parity for 20 this stripe is missing, this updated parity can be used to recover its 26 When handling a write request PPL writes partial parity before new data and 27 parity are dispatched to disks. PPL is a distributed log - it is stored on [all …]
|
H A D | raid5-cache.rst | 27 and parity don't match. The reason is that a stripe write involves several RAID 53 write. For non-full-stripe writes, MD must read old data before the new parity 83 ID for recovery identification. Data can be IO data and parity data. Data is 91 write-through mode, MD calculates parity for IO data, writes both IO data and 92 parity to the log, writes the data and parity to RAID disks after the data and 93 parity is settled down in log and finally the IO is finished. Read just reads 99 MD will calculate parity for the data and write parity into the log. After this 100 is finished, MD will write both data and parity into RAID disks, then MD can 107 data and data. If MD finds a stripe with data and valid parities (1 parity for
|
/linux/arch/mips/mm/ |
H A D | cerr-sb1.c | 80 printk(" tag-parity"); in breakout_cerri() 82 printk(" data-parity"); in breakout_cerri() 255 /* Parity lookup table. */ 256 static const uint8_t parity[256] = { variable 275 /* Masks to select bits for Hamming parity, mask_72_64[i] for bit[i] */ 287 /* Calculate the parity on a range of bits */ 290 char parity = 0; in range_parity() local 295 parity = !parity; in range_parity() 298 return parity; in range_parity() 301 /* Calculate the 4-bit even byte-parity for an instruction */ [all …]
|
/linux/drivers/scsi/aic7xxx/aicasm/ |
H A D | aicasm_insformat.h | 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, 110 parity : 1; member 112 uint32_t parity : 1, 128 parity : 1; member 130 uint32_t parity : 1, [all …]
|
/linux/arch/powerpc/platforms/44x/ |
H A D | machine_check.c | 45 printk("TLB Parity Error\n"); in machine_check_440A() 48 printk("I-Cache Parity Error\n"); in machine_check_440A() 51 printk("D-Cache Search Parity Error\n"); in machine_check_440A() 53 printk("D-Cache Flush Parity Error\n"); in machine_check_440A() 83 printk(KERN_ERR "TLB Parity Error\n"); in machine_check_47x() 86 printk(KERN_ERR "I-Cache Parity Error\n"); in machine_check_47x() 89 printk(KERN_ERR "D-Cache Search Parity Error\n"); in machine_check_47x() 91 printk(KERN_ERR "GPR Parity Error\n"); in machine_check_47x() 93 printk(KERN_ERR "FPR Parity Error\n"); in machine_check_47x()
|
/linux/Documentation/devicetree/bindings/serial/ |
H A D | xlnx,opb-uartlite.yaml | 45 xlnx,use-parity: 49 Whether parity checking was enabled when the device was configured. 51 xlnx,odd-parity: 55 Whether odd parity was configured. 63 - xlnx,use-parity 69 xlnx,use-parity: 73 - xlnx,odd-parity 86 xlnx,use-parity = <0>;
|
/linux/arch/mips/include/asm/sgi/ |
H A D | mc.h | 21 #define SGIMC_CCTRL0_EPERRGIO 0x00000020 /* GIO parity error enable */ 22 #define SGIMC_CCTRL0_EPERRMEM 0x00000040 /* Main mem parity error enable */ 23 #define SGIMC_CCTRL0_EPERRCPU 0x00000080 /* CPU bus parity error enable */ 28 #define SGIMC_CCTRL0_EPERRSCMD 0x00001000 /* SysCMD bus parity error enable */ 36 #define SGIMC_CCTRL0_R4KNOCHKPARR 0x04000000 /* Don't chk parity on mem data reads */ 122 #define SGIMC_CSTAT_RD 0x00000100 /* read parity error */ 123 #define SGIMC_CSTAT_PAR 0x00000200 /* CPU parity error */ 125 #define SGIMC_CSTAT_SYSAD_PAR 0x00000800 /* sysad parity error */ 126 #define SGIMC_CSTAT_SYSCMD_PAR 0x00001000 /* syscmd parity error */ 128 #define SGIMC_CSTAT_PAR_MASK 0x00001f00 /* parity error mask */ [all …]
|
/linux/drivers/usb/serial/ |
H A D | keyspan_usa28msg.h | 48 If the port is configured for parity, the data will be an 49 alternating string of parity and data bytes, so the message 57 If there is no parity, the format is simply: 63 USB IN (USA28 -> host, receive) messages contain data and parity 64 if parity is configred, thusly: 70 If parity is not configured, the format is: 76 In the TX messages (USB OUT), the 0x01 bit of the PARity byte is 77 the parity bit. In the RX messages (USB IN), the PARity byte is 78 the content of the 8051's status register; the parity bit 112 u8 parity, // 1=use parity, 0=don't member [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 */ 238 /* Set of show/store abstract level functions for PCI Parity object */ 283 /* PCI Parity control files */ 514 /* Clear any PCI parity errors logged by this device. */ 529 * PCI Parity polling 531 * Function to retrieve the current parity status 567 "Master Data Parity Error on %s\n", in edac_pci_dev_parity_test() [all …]
|
/linux/Documentation/core-api/ |
H A D | librs.rst | 57 and stores the result in the parity buffer. Note that the parity buffer 74 /* Parity buffer. Size = number of roots */ 76 /* Initialize the parity buffer */ 78 /* Encode 512 byte in data8. Store parity in buffer par */ 86 received parity symbols and corrects errors in the data. 107 /* Parity buffer. Size = number of roots */ 113 /* Receive parity */ 124 /* Parity buffer. Size = number of roots */ 130 /* Receive parity */ 141 Note: It's not necessary to give data and received parity to the [all …]
|
/linux/drivers/media/pci/mantis/ |
H A D | mantis_uart.c | 31 enum mantis_parity parity; member 46 } parity[3] = { variable 71 dprintk(MANTIS_ERROR, 1, "UART parity error"); in mantis_uart_read() 114 mmwrite((mmread(MANTIS_UART_CTL) | (params->parity & 0x3)), MANTIS_UART_CTL); in mantis_uart_setup() 148 /* default parity: */ in mantis_uart_init() 150 params.parity = config->parity; in mantis_uart_init() 151 dprintk(MANTIS_INFO, 1, "Initializing UART @ %sbps parity:%s", in mantis_uart_init() 153 parity[params.parity].string); in mantis_uart_init()
|
/linux/drivers/net/ethernet/broadcom/bnx2x/ |
H A D | bnx2x_reg.h | 38 /* [RW 5] Parity mask register #0 read/write */ 40 /* [R 5] Parity register #0 read */ 42 /* [RC 5] Parity register #0 read clear */ 48 /* [RW 4] Parity mask register #0 read/write */ 50 /* [R 4] Parity register #0 read */ 52 /* [RC 4] Parity register #0 read clear */ 192 /* [RW 27] Parity mask register #0 read/write */ 194 /* [R 27] Parity register #0 read */ 196 /* [RC 27] Parity register #0 read clear */ 410 /* [RW 5] Parity mask register #0 read/write */ [all …]
|
/linux/drivers/tty/serial/ |
H A D | max3100.c | 93 int parity; /* keeps track if we should send parity */ member 124 int parity; in max3100_do_parity() local 126 if (s->parity & MAX3100_PARITY_ODD) in max3100_do_parity() 127 parity = 1; in max3100_do_parity() 129 parity = 0; in max3100_do_parity() 131 if (s->parity & MAX3100_7BIT) in max3100_do_parity() 136 parity = parity ^ (hweight8(c) & 1); in max3100_do_parity() 137 return parity; in max3100_do_parity() 147 if (s->parity & MAX3100_7BIT) in max3100_calc_parity() 152 if (s->parity & MAX3100_PARITY_ON) in max3100_calc_parity() [all …]
|
/linux/drivers/md/ |
H A D | raid5.h | 31 * Empty -> Want - on read or write to get old data for parity calc 52 * from parity calculations, and a clean block that has been 53 * successfully written to the spare ( or to parity when resyncing). 55 * is set whenever a write is scheduled to the spare, or to the parity 77 * third list, the written list (bh_written). Once both the parity 133 * -updating the parity on a write operation (reconstruct write and 135 * -checking parity correctness 144 * 1/ Parity check operations destroy the in cache version of the parity block, 145 * so we prevent parity dependent operations like writes and compute_blocks 147 * the check without damaging the parity block, in these cases the parity [all …]
|
/linux/fs/ocfs2/ |
H A D | blockcheck.h | 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); 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.
|
H A D | blockcheck.c | 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. 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 73 * would be _if_ it were bumped up by the parity bit. Capice? in calc_code_bit() 92 * parity = ocfs2_hamming_encode(0, buf1, 512 * 8, 0); 93 * parity = ocfs2_hamming_encode(parity, buf2, 512 * 8, 512 * 8); 97 u32 ocfs2_hamming_encode(u32 parity, void *data, unsigned int d, unsigned int nr) in ocfs2_hamming_encode() argument 122 * parity bits that are part of the bit number in ocfs2_hamming_encode() [all …]
|
/linux/Documentation/admin-guide/device-mapper/ |
H A D | dm-raid.rst | 22 raid4 RAID4 with dedicated last parity disk 23 raid5_n RAID5 with dedicated last parity disk supporting takeover 29 - rotating parity 0 with data continuation 32 - rotating parity N with data continuation 35 - rotating parity 0 with data restart 38 - rotating parity N with data restart 41 - rotating parity zero (left-to-right) with data restart 44 - rotating parity N (right-to-left) with data restart 47 - rotating parity N (right-to-left) with data continuation 48 raid6_n_6 RAID6 with dedicate parity disks [all …]
|
/linux/lib/reed_solomon/ |
H A D | reed_solomon.c | 317 * encode_rs8 - Calculate the parity for data values (8bit data width) 321 * @par: parity data, must be initialized by caller (usually all 0) 324 * The parity uses a uint16_t data type to enable 341 * @par: received parity data field 347 * @invmsk: invert data mask (will be xored on data, not on parity!) 350 * The syndrome and parity uses a uint16_t data type to enable 352 * syndrome result and the received parity before calling this code. 359 * errors. The count includes errors in the parity. 372 * encode_rs16 - Calculate the parity for data values (16bit data width) 376 * @par: parity data, must be initialized by caller (usually all 0) [all …]
|
/linux/drivers/fsi/ |
H A D | fsi-master-i2cr.c | 39 static bool i2cr_check_parity32(u32 v, bool parity) in i2cr_check_parity32() argument 45 parity = !parity; in i2cr_check_parity32() 48 return parity; in i2cr_check_parity32() 54 bool parity = I2CR_INITIAL_PARITY; in i2cr_check_parity64() local 58 parity = !parity; in i2cr_check_parity64() 61 return parity; in i2cr_check_parity64() 64 static u32 i2cr_get_command(u32 address, bool parity) in i2cr_get_command() argument 68 if (i2cr_check_parity32(address, parity)) in i2cr_get_command()
|
/linux/Documentation/scsi/ |
H A D | aha152x.rst | 30 PARITY enable parity checking (0/1; default 1 [on]) 48 - DSETUP0="{ IOPORT, IRQ, SCSI_ID, RECONNECT, PARITY, SYNCHRONOUS, DELAY, EXT_TRANS }" 51 - DSETUP1="{ IOPORT, IRQ, SCSI_ID, RECONNECT, PARITY, SYNCHRONOUS, DELAY, EXT_TRANS }" 66 …aha152x=<IOPORT>[,<IRQ>[,<SCSI-ID>[,<RECONNECT>[,<PARITY>[,<SYNCHRONOUS>[,<DELAY> [,<EXT_TRANS]]]]… 82 aha152x=IOPORT,IRQ,SCSI_ID,RECONNECT,PARITY,SYNCHRONOUS,DELAY,EXT_TRANS 88 aha152x1=IOPORT,IRQ,SCSI_ID,RECONNECT,PARITY,SYNCHRONOUS,DELAY,EXT_TRANS 106 parity=PAR0[PAR1] 107 use parity for first and second controller
|
/linux/arch/arm/mm/ |
H A D | fsr-3level.c | 27 { do_bad, SIGBUS, 0, "synchronous parity error" }, 28 { do_bad, SIGBUS, 0, "asynchronous parity error" }, 31 { do_bad, SIGBUS, 0, "synchronous parity error (translation table walk" }, 32 { do_bad, SIGBUS, 0, "synchronous parity error (translation table walk" }, 33 { do_bad, SIGBUS, 0, "synchronous parity error (translation table walk" }, 34 { do_bad, SIGBUS, 0, "synchronous parity error (translation table walk" },
|
/linux/arch/mips/mti-malta/ |
H A D | malta-init.c | 46 char parity = '\0', bits = '\0', flow = '\0'; in console_config() local 56 parity = *s++; in console_config() 68 if (parity != 'n' && parity != 'o' && parity != 'e') in console_config() 69 parity = 'n'; in console_config() 77 parity, bits); in console_config() 83 parity, bits, flow); in console_config()
|