Home
last modified time | relevance | path

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

1234567

/drivers/scsi/aic7xxx/aicasm/
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 …]
/drivers/tty/serial/
A Dmax3100.c125 int parity; in max3100_do_parity() local
128 parity = 1; in max3100_do_parity()
130 parity = 0; in max3100_do_parity()
132 if (s->parity & MAX3100_7BIT) in max3100_do_parity()
137 parity = parity ^ parity8(c); in max3100_do_parity()
138 return parity; in max3100_do_parity()
201 s->port.icount.parity++; in max3100_handlerx_unlocked()
472 parity &= ~MAX3100_7BIT; in max3100_set_termios()
475 parity |= MAX3100_7BIT; in max3100_set_termios()
516 s->parity = parity; in max3100_set_termios()
[all …]
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()
A Dapbuart.c93 port->icount.parity++; in apbuart_rx_chars()
424 int *parity, int *bits) in apbuart_console_get_options() argument
431 *parity = 'n'; in apbuart_console_get_options()
434 *parity = 'e'; in apbuart_console_get_options()
436 *parity = 'o'; in apbuart_console_get_options()
450 int parity = 'n'; in apbuart_console_setup() local
469 uart_parse_options(options, &baud, &parity, &bits, &flow); in apbuart_console_setup()
471 apbuart_console_get_options(port, &baud, &parity, &bits); in apbuart_console_setup()
473 return uart_set_options(port, co, baud, parity, bits, flow); in apbuart_console_setup()
A Damba-pl010.c139 port->icount.parity++; in pl010_rx_chars()
576 int *parity, int *bits) in pl010_console_get_options() argument
582 *parity = 'n'; in pl010_console_get_options()
585 *parity = 'e'; in pl010_console_get_options()
587 *parity = 'o'; in pl010_console_get_options()
606 int parity = 'n'; in pl010_console_setup() local
628 uart_parse_options(options, &baud, &parity, &bits, &flow); in pl010_console_setup()
630 pl010_console_get_options(uap, &baud, &parity, &bits); in pl010_console_setup()
632 return uart_set_options(&uap->port, co, baud, parity, bits, flow); in pl010_console_setup()
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()
A Dsuncore.c90 char parity; in sunserial_console_termios() local
125 parity = *(++s); in sunserial_console_termios()
156 switch (parity) { in sunserial_console_termios()
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()
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()
/drivers/media/pci/mantis/
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()
/drivers/fsi/
A Dfsi-master-i2cr.c39 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()
/drivers/mtd/
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()
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()
/drivers/input/serio/
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()
/drivers/scsi/pcmcia/
A Daha152x_stub.c66 static int parity = 1; variable
73 module_param(parity, int, 0);
171 s.parity = parity; in aha152x_config_cs()
/drivers/net/wan/
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()
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()
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()
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()
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()
/drivers/usb/serial/
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 …]
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()
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()
/drivers/usb/storage/
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()
/drivers/scsi/
A Daha152x.h271 unsigned parity:1; /* SCSI-parity: 1=enabled 0=disabled */ member
276 #define cf_parity fields.parity
323 int parity; member

Completed in 53 milliseconds

1234567