Home
last modified time | relevance | path

Searched refs:parity (Results 1 – 25 of 156) sorted by relevance

1234567

/linux/drivers/scsi/aic7xxx/aicasm/
H A Daicasm_insformat.h55 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/Documentation/driver-api/mtd/
H A Dnand_ecc.rst32 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).
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.
69 - cp2 is the parity over bit0, bit1, bit4 and bit5
[all …]
/linux/arch/mips/mm/
H A Dcerr-sb1.c256 static const uint8_t parity[256] = { variable
290 char parity = 0; in range_parity() local
295 parity = !parity; in range_parity()
298 return parity; in range_parity()
305 char parity = 0; in inst_parity() local
313 parity <<= 1; in inst_parity()
314 parity |= byte_parity; in inst_parity()
316 return parity; in inst_parity()
436 p ^= (parity[w>>24] ^ parity[(w>>16) & 0xFF] in dc_ecc()
437 ^ parity[(w>>8) & 0xFF] ^ parity[w & 0xFF]); in dc_ecc()
[all …]
/linux/tools/testing/selftests/bpf/libarena/selftests/
H A Dtest_parallel_bitmap.bpf.c102 static void bitmap_test_reset_single(int parity) in bitmap_test_reset_single() argument
106 for (bit = parity; bit < TEST_BITMAP_BITS && can_loop; bit += 2) in bitmap_test_reset_single()
111 static int bitmap_test_common_single(int parity) in bitmap_test_common_single() argument
116 for (bit = parity; bit < TEST_BITMAP_BITS && can_loop; bit += 2) { in bitmap_test_common_single()
130 static int bitmap_test_common(int parity) in bitmap_test_common() argument
142 ret = bitmap_test_common_single(parity); in bitmap_test_common()
149 bitmap_test_reset_single(parity); in bitmap_test_common()
/linux/drivers/media/pci/mantis/
H A Dmantis_uart.c31 enum mantis_parity parity; member
46 } parity[3] = { variable
114 mmwrite((mmread(MANTIS_UART_CTL) | (params->parity & 0x3)), MANTIS_UART_CTL); in mantis_uart_setup()
150 params.parity = config->parity; in mantis_uart_init()
153 parity[params.parity].string); in mantis_uart_init()
/linux/drivers/tty/serial/
H A Dmax3100.c93 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 ^ parity8(c); in max3100_do_parity()
137 return parity; in max3100_do_parity()
413 u32 param_new, param_mask, parity = 0; max3100_set_termios() local
[all...]
H A D21285.c132 port->icount.parity++; in serial21285_rx_chars()
401 int *parity, int *bits) in serial21285_get_options() argument
424 *parity = 'o'; in serial21285_get_options()
426 *parity = 'e'; in serial21285_get_options()
440 int parity = 'n'; in serial21285_console_setup() local
449 uart_parse_options(options, &baud, &parity, &bits, &flow); in serial21285_console_setup()
451 serial21285_get_options(port, &baud, &parity, &bits); in serial21285_console_setup()
453 return uart_set_options(port, co, baud, parity, bits, flow); in serial21285_console_setup()
H A Dsuncore.c90 char parity; in sunserial_console_termios() local
125 parity = *(++s); in sunserial_console_termios()
156 switch (parity) { in sunserial_console_termios()
H A Dfsl_linflexuart.c255 sport->icount.parity++; in linflex_rxint()
665 linflex_console_get_options(struct uart_port *sport, int *parity, int *bits) in linflex_console_get_options() argument
677 *parity = 'n'; in linflex_console_get_options()
680 *parity = 'o'; in linflex_console_get_options()
682 *parity = 'e'; in linflex_console_get_options()
698 int parity = 'n'; in linflex_console_setup() local
716 uart_parse_options(options, &baud, &parity, &bits, &flow); in linflex_console_setup()
718 linflex_console_get_options(sport, &parity, &bits); in linflex_console_setup()
736 ret = uart_set_options(sport, co, baud, parity, bits, flow); in linflex_console_setup()
H A Dclps711x.c115 port->icount.parity++; in uart_clps711x_int_rx()
381 int baud = 38400, bits = 8, parity = 'n', flow = 'n'; in uart_clps711x_console_setup() local
406 parity = 'e'; in uart_clps711x_console_setup()
408 parity = 'o'; in uart_clps711x_console_setup()
418 uart_parse_options(options, &baud, &parity, &bits, &flow); in uart_clps711x_console_setup()
420 ret = uart_set_options(port, co, baud, parity, bits, flow); in uart_clps711x_console_setup()
H A Dsa1100.c201 sport->port.icount.parity++; in sa1100_rx_chars()
717 int *parity, int *bits) in sa1100_console_get_options() argument
728 *parity = 'n'; in sa1100_console_get_options()
731 *parity = 'e'; in sa1100_console_get_options()
733 *parity = 'o'; in sa1100_console_get_options()
753 int parity = 'n'; in sa1100_console_setup() local
766 uart_parse_options(options, &baud, &parity, &bits, &flow); in sa1100_console_setup()
768 sa1100_console_get_options(sport, &baud, &parity, &bits); in sa1100_console_setup()
770 return uart_set_options(&sport->port, co, baud, parity, bits, flow); in sa1100_console_setup()
/linux/Documentation/driver-api/md/
H A Draid5-ppl.rst6 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
28 array member drives in the metadata area, on the parity drive of a particular
37 performed for this stripe (parity is not updated). So it is possible to have
H A Draid5-cache.rst27 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/generic/
H A Dyamon-dt.c160 char mode_var_name[9], path[20], parity; in yamon_dt_serial_config() local
177 parity = 0; in yamon_dt_serial_config()
191 parity = mode_var[0]; in yamon_dt_serial_config()
205 if (parity != 'e' && parity != 'n' && parity != 'o') in yamon_dt_serial_config()
206 parity = 'n'; in yamon_dt_serial_config()
212 uart, baud, parity, stop_bits, in yamon_dt_serial_config()
/linux/drivers/fsi/
H A Dfsi-master-i2cr.c38 static bool i2cr_check_parity32(u32 v, bool parity) in i2cr_check_parity32() argument
44 parity = !parity; in i2cr_check_parity32()
47 return parity; in i2cr_check_parity32()
53 bool parity = I2CR_INITIAL_PARITY; in i2cr_check_parity64() local
57 parity = !parity; in i2cr_check_parity64()
60 return parity; in i2cr_check_parity64()
63 static u32 i2cr_get_command(u32 address, bool parity) in i2cr_get_command() argument
67 if (i2cr_check_parity32(address, parity)) in i2cr_get_command()
/linux/drivers/mtd/
H A Dssfdc.c185 int parity; in get_parity() local
187 parity = 1; in get_parity()
189 parity += (number >> k); in get_parity()
190 parity &= 1; in get_parity()
192 return parity; in get_parity()
198 int block_address, parity; in get_logical_address() local
214 parity = block_address & 0x01; in get_logical_address()
218 if (get_parity(block_address, 10) != parity) { in get_logical_address()
/linux/Documentation/core-api/
H A Dlibrs.rst57 and stores the result in the parity buffer. Note that the parity buffer
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.
113 /* Receive parity */
130 /* Receive parity */
141 Note: It's not necessary to give data and received parity to the
152 /* Receive parity */
/linux/drivers/scsi/pcmcia/
H A Daha152x_stub.c66 static int parity = 1; variable
73 module_param(parity, int, 0);
171 s.parity = parity; in aha152x_config_cs()
/linux/drivers/input/serio/
H A Dams_delta_serio.c42 int i, parity = 0; in check_data() local
52 parity++; in check_data()
55 if (!(parity & 0x01)) { in check_data()
58 parity); in check_data()
/linux/drivers/net/wan/
H A Dhdlc_raw.c70 if (new_settings.parity == PARITY_DEFAULT) in raw_ioctl()
71 new_settings.parity = PARITY_CRC16_PR1_CCITT; in raw_ioctl()
74 new_settings.parity); in raw_ioctl()
H A Dhdlc_raw_eth.c86 if (new_settings.parity == PARITY_DEFAULT) in raw_eth_ioctl()
87 new_settings.parity = PARITY_CRC16_PR1_CCITT; in raw_eth_ioctl()
90 new_settings.parity); in raw_eth_ioctl()
H A Dhd64572.c436 switch (port->parity) { in sca_open()
497 unsigned short parity) in sca_attach() argument
506 if (parity != PARITY_NONE && in sca_attach()
507 parity != PARITY_CRC16_PR0 && in sca_attach()
508 parity != PARITY_CRC16_PR1 && in sca_attach()
509 parity != PARITY_CRC32_PR1_CCITT && in sca_attach()
510 parity != PARITY_CRC16_PR1_CCITT) in sca_attach()
514 dev_to_port(dev)->parity = parity; in sca_attach()
H A Dhd64570.c479 switch (port->parity) { in sca_open()
551 unsigned short parity) in sca_attach() argument
560 if (parity != PARITY_NONE && in sca_attach()
561 parity != PARITY_CRC16_PR0 && in sca_attach()
562 parity != PARITY_CRC16_PR1 && in sca_attach()
563 parity != PARITY_CRC16_PR0_CCITT && in sca_attach()
564 parity != PARITY_CRC16_PR1_CCITT) in sca_attach()
568 dev_to_port(dev)->parity = parity; in sca_attach()
/linux/arch/powerpc/platforms/powernv/
H A Drng.c34 unsigned long parity; in rng_whiten() local
41 : "=r" (parity) : "r" (val)); in rng_whiten()
47 rng->mask = (rng->mask << 1) | (parity & 1); in rng_whiten()
/linux/arch/m68k/atari/
H A Ddebug.c169 int parity = (cflag & PARENB) ? ((cflag & PARODD) ? 0x04 : 0x06) : 0; in atari_init_mfp_port() local
179 st_mfp.usart_ctr = parity | csize | 0x88; /* 1:16 clk mode, 1 stop bit */ in atari_init_mfp_port()
268 int parity = (cflag & PARENB) ? ((cflag & PARODD) ? 0x0c : 0x08) : 0x04; in atari_init_midi_port() local
283 acia.mid_ctrl = div | csize | parity | in atari_init_midi_port()

1234567