Home
last modified time | relevance | path

Searched refs:parity (Results 26 – 50 of 255) sorted by relevance

1234567891011

/linux-6.15/drivers/net/wan/
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()
H A Dwanxl.c326 unsigned short parity) in wanxl_attach() argument
334 if (parity != PARITY_NONE && in wanxl_attach()
335 parity != PARITY_CRC32_PR1_CCITT && in wanxl_attach()
336 parity != PARITY_CRC16_PR1_CCITT && in wanxl_attach()
337 parity != PARITY_CRC32_PR0_CCITT && in wanxl_attach()
338 parity != PARITY_CRC16_PR0_CCITT) in wanxl_attach()
342 get_status(port)->parity = parity; in wanxl_attach()
/linux-6.15/drivers/tty/serial/
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()
H A Dpch_uart.c428 unsigned int parity, unsigned int bits, in pch_uart_hal_set_line() argument
444 dev_err(priv->port.dev, "Invalid parity(0x%x)\n", parity); in pch_uart_hal_set_line()
458 lcr = parity; in pch_uart_hal_set_line()
985 port->icount.parity++; in pch_uart_err_ir()
1292 unsigned int baud, parity, bits, stb; in pch_uart_set_termios() local
1318 parity = PCH_UART_HAL_PARITY_ODD; in pch_uart_set_termios()
1320 parity = PCH_UART_HAL_PARITY_EVEN; in pch_uart_set_termios()
1323 parity = PCH_UART_HAL_PARITY_NONE; in pch_uart_set_termios()
1338 rtn = pch_uart_hal_set_line(priv, baud, parity, bits, stb); in pch_uart_set_termios()
1588 int parity = 'n'; in pch_console_setup() local
[all …]
H A Ddigicolor-usart.c152 port->icount.parity++; in digicolor_uart_rx()
418 int baud = 115200, bits = 8, parity = 'n', flow = 'n'; in digicolor_uart_console_setup() local
429 uart_parse_options(options, &baud, &parity, &bits, &flow); in digicolor_uart_console_setup()
431 return uart_set_options(port, co, baud, parity, bits, flow); in digicolor_uart_console_setup()
H A Dmxs-auart.c625 s->port.icount.parity++; in mxs_auart_rx_char()
1355 int *parity, int *bits) in auart_console_get_options() argument
1365 *parity = 'n'; in auart_console_get_options()
1368 *parity = 'e'; in auart_console_get_options()
1370 *parity = 'o'; in auart_console_get_options()
1394 int parity = 'n'; in auart_console_setup() local
1414 uart_parse_options(options, &baud, &parity, &bits, &flow); in auart_console_setup()
1416 auart_console_get_options(s, &baud, &parity, &bits); in auart_console_setup()
1418 ret = uart_set_options(&s->port, co, baud, parity, bits, flow); in auart_console_setup()
/linux-6.15/drivers/usb/serial/
H A Diuu_phoenix.c787 u32 *actual, u8 parity) in iuu_uart_baud() argument
840 switch (parity & 0x0F) { in iuu_uart_baud()
861 switch (parity & 0xF0) { in iuu_uart_baud()
890 u32 parity; in iuu_set_termios() local
901 parity = 0; in iuu_set_termios()
904 parity |= IUU_PARITY_SPACE; in iuu_set_termios()
906 parity |= IUU_PARITY_MARK; in iuu_set_termios()
908 parity |= IUU_PARITY_NONE; in iuu_set_termios()
911 parity |= IUU_PARITY_ODD; in iuu_set_termios()
913 parity |= IUU_PARITY_EVEN; in iuu_set_termios()
[all …]
H A Dconsole.c60 int parity = 'n'; in usb_console_setup() local
76 parity = *s++; in usb_console_setup()
96 switch (parity) { in usb_console_setup()
H A Dmxuport.c412 port->icount.parity++; in mxuport_lsr_event()
843 u8 parity; in mxuport_set_termios() local
879 parity = MX_PARITY_MARK; in mxuport_set_termios()
881 parity = MX_PARITY_SPACE; in mxuport_set_termios()
884 parity = MX_PARITY_ODD; in mxuport_set_termios()
886 parity = MX_PARITY_EVEN; in mxuport_set_termios()
889 parity = MX_PARITY_NONE; in mxuport_set_termios()
899 buf[1] = parity; in mxuport_set_termios()
927 dev_dbg(&port->dev, "parity : %d\n", parity); in mxuport_set_termios()
H A Dwhiteheat.c631 port_settings.parity = WHITEHEAT_PAR_MARK; in firm_setup_port()
633 port_settings.parity = WHITEHEAT_PAR_SPACE; in firm_setup_port()
636 port_settings.parity = WHITEHEAT_PAR_ODD; in firm_setup_port()
638 port_settings.parity = WHITEHEAT_PAR_EVEN; in firm_setup_port()
640 port_settings.parity = WHITEHEAT_PAR_NONE; in firm_setup_port()
641 dev_dbg(dev, "%s - parity = %c\n", __func__, port_settings.parity); in firm_setup_port()
/linux-6.15/drivers/scsi/
H A Daha152x.h271 unsigned parity:1; /* SCSI-parity: 1=enabled 0=disabled */ member
276 #define cf_parity fields.parity
323 int parity; member
H A Daha152x.c356 static int parity[] = {1, 1}; variable
357 module_param_array(parity, int, NULL, 0);
765 PARITY = setup->parity; in aha152x_probe_one()
3095 if ((setup->parity < 0) || (setup->parity > 1)) in checksetup()
3142 override.parity, in aha152x_init()
3163 override.parity, in aha152x_init()
3191 setup[setup_count].parity = parity[0]; in aha152x_init()
3205 setup[setup_count].parity, in aha152x_init()
3228 setup[setup_count].parity = parity[1]; in aha152x_init()
3241 setup[setup_count].parity, in aha152x_init()
[all …]
/linux-6.15/drivers/usb/storage/
H A Dalauda.c217 static unsigned char parity[256]; variable
224 parity[0] = 0; in nand_init_ecc()
226 parity[i] = (parity[i&(i-1)] ^ 1); in nand_init_ecc()
240 ecc2[i] = ~(a ^ (a<<1) ^ (parity[i] ? 0xa8 : 0)); in nand_init_ecc()
253 bit = parity[data[i]]; in nand_compute_ecc()
261 ecc[0] = ~(a ^ (a<<1) ^ (parity[par] ? 0xaa : 0)); in nand_compute_ecc()
264 ecc[1] = ~(a ^ (a<<1) ^ (parity[par] ? 0xaa : 0)); in nand_compute_ecc()
635 if (parity[data[6] ^ data[7]]) { in alauda_read_map()
857 if (parity[MSB_of(lbap) ^ LSB_of(lbap)]) in alauda_write_lba()
H A Dsddr09.c185 static unsigned char parity[256]; variable
191 parity[0] = 0; in nand_init_ecc()
193 parity[i] = (parity[i&(i-1)] ^ 1); in nand_init_ecc()
207 ecc2[i] = ~(a ^ (a<<1) ^ (parity[i] ? 0xa8 : 0)); in nand_init_ecc()
219 bit = parity[data[i]]; in nand_compute_ecc()
227 ecc[0] = ~(a ^ (a<<1) ^ (parity[par] ? 0xaa : 0)); in nand_compute_ecc()
230 ecc[1] = ~(a ^ (a<<1) ^ (parity[par] ? 0xaa : 0)); in nand_compute_ecc()
864 if (parity[MSB_of(lbap) ^ LSB_of(lbap)]) in sddr09_write_lba()
1313 if (parity[ptr[6] ^ ptr[7]]) { in sddr09_read_map()
/linux-6.15/drivers/mtd/
H A Dinftlcore.c468 unsigned char anac, nacs, parity; in INFTL_findwriteunit() local
584 parity = (nrbits(thisVUC, 16) & 0x1) ? 0x1 : 0; in INFTL_findwriteunit()
585 parity |= (nrbits(prev_block, 16) & 0x1) ? 0x2 : 0; in INFTL_findwriteunit()
586 parity |= (nrbits(anac, 8) & 0x1) ? 0x4 : 0; in INFTL_findwriteunit()
587 parity |= (nrbits(nacs, 8) & 0x1) ? 0x8 : 0; in INFTL_findwriteunit()
593 oob.u.a.parityPerField = parity; in INFTL_findwriteunit()
604 oob.u.b.parityPerField = parity; in INFTL_findwriteunit()
/linux-6.15/Documentation/input/devices/
H A Delantech.rst111 Turns parity checking ON or OFF.
113 By echoing "0" to this file parity checking will be turned OFF. Any
118 calculating a parity bit for the last 3 bytes of each packet. The driver
122 Hardware version 2 does not provide the same parity bits. Only some basic
200 P: 1 = enable parity checking for relative mode
244 some models have M as byte 3 odd parity bit
245 when parity checking is enabled (reg_11, P = 1):
246 p1..p2 = byte 1 and 2 odd parity bit
266 parity checking enabled (reg_11, P = 1):
312 p1..p3 = byte 1..3 odd parity bit
[all …]
/linux-6.15/include/uapi/linux/
H A Dsynclink.h168 unsigned char parity; /* none, even, or odd */ member
215 __u32 frame, parity, overrun, brk; member
/linux-6.15/drivers/tty/serdev/
H A Dserdev-ttyport.c188 enum serdev_parity parity) in ttyport_set_parity() argument
195 if (parity != SERDEV_PARITY_NONE) { in ttyport_set_parity()
197 if (parity == SERDEV_PARITY_ODD) in ttyport_set_parity()
/linux-6.15/include/linux/
H A Dsynclink.h32 unsigned char parity; member
H A Dserial.h42 __u32 frame, parity, overrun, brk; member
/linux-6.15/fs/ocfs2/
H A Dblockcheck.c97 u32 ocfs2_hamming_encode(u32 parity, void *data, unsigned int d, unsigned int nr) in ocfs2_hamming_encode() argument
136 parity ^= b; in ocfs2_hamming_encode()
141 return parity; in ocfs2_hamming_encode()
/linux-6.15/arch/mips/include/asm/octeon/
H A Dcvmx-pko-defs.h1818 uint64_t parity:1; member
1820 uint64_t parity:1;
1831 uint64_t parity:1; member
1833 uint64_t parity:1;
1843 uint64_t parity:1; member
1845 uint64_t parity:1;
1962 uint64_t parity:1; member
1964 uint64_t parity:1;
1975 uint64_t parity:1; member
1977 uint64_t parity:1;
[all …]
/linux-6.15/drivers/media/pci/saa7134/
H A Dsaa7134-input.c338 unsigned int start = 0,parity = 0,code = 0; in get_key_pinnacle() local
352 parity=b[(start+parity_offset) % 4]; in get_key_pinnacle()
357 if (parity == 0) in get_key_pinnacle()
361 if (ir->old == parity) in get_key_pinnacle()
364 ir->old = parity; in get_key_pinnacle()

1234567891011