Home
last modified time | relevance | path

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

12345678

/drivers/scsi/aic7xxx/aicasm/
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/media/pci/mantis/
Dmantis_uart.c43 enum mantis_parity parity; member
58 } parity[3] = { variable
119 mmwrite((mmread(MANTIS_UART_CTL) | (params->parity & 0x3)), MANTIS_UART_CTL); in mantis_uart_setup()
155 params.parity = config->parity; in mantis_uart_init()
158 parity[params.parity].string); in mantis_uart_init()
/drivers/tty/serial/
Dmax3100.c112 int parity; /* keeps track if we should send parity */ member
146 int parity; in max3100_do_parity() local
148 if (s->parity & MAX3100_PARITY_ODD) in max3100_do_parity()
149 parity = 1; in max3100_do_parity()
151 parity = 0; in max3100_do_parity()
153 if (s->parity & MAX3100_7BIT) in max3100_do_parity()
158 parity = parity ^ (hweight8(c) & 1); in max3100_do_parity()
159 return parity; in max3100_do_parity()
169 if (s->parity & MAX3100_7BIT) in max3100_calc_parity()
174 if (s->parity & MAX3100_PARITY_ON) in max3100_calc_parity()
[all …]
D21285.c95 port->icount.parity++; in serial21285_rx_chars()
386 int *parity, int *bits) in serial21285_get_options() argument
409 *parity = 'o'; in serial21285_get_options()
411 *parity = 'e'; in serial21285_get_options()
425 int parity = 'n'; in serial21285_console_setup() local
437 uart_parse_options(options, &baud, &parity, &bits, &flow); in serial21285_console_setup()
439 serial21285_get_options(port, &baud, &parity, &bits); in serial21285_console_setup()
441 return uart_set_options(port, co, baud, parity, bits, flow); in serial21285_console_setup()
Dapbuart.c98 port->icount.parity++; in apbuart_rx_chars()
455 int *parity, int *bits) in apbuart_console_get_options() argument
462 *parity = 'n'; in apbuart_console_get_options()
465 *parity = 'e'; in apbuart_console_get_options()
467 *parity = 'o'; in apbuart_console_get_options()
481 int parity = 'n'; in apbuart_console_setup() local
500 uart_parse_options(options, &baud, &parity, &bits, &flow); in apbuart_console_setup()
502 apbuart_console_get_options(port, &baud, &parity, &bits); in apbuart_console_setup()
504 return uart_set_options(port, co, baud, parity, bits, flow); in apbuart_console_setup()
Dserial_ks8695.c178 port->icount.parity++; in ks8695uart_rx_chars()
578 static void __init ks8695_console_get_options(struct uart_port *port, int *baud, int *parity, int *… in ks8695_console_get_options() argument
586 *parity = 'o'; in ks8695_console_get_options()
589 *parity = 'e'; in ks8695_console_get_options()
592 *parity = 'n'; in ks8695_console_get_options()
619 int parity = 'n'; in ks8695_console_setup() local
630 uart_parse_options(options, &baud, &parity, &bits, &flow); in ks8695_console_setup()
632 ks8695_console_get_options(port, &baud, &parity, &bits); in ks8695_console_setup()
634 return uart_set_options(port, co, baud, parity, bits, flow); in ks8695_console_setup()
Defm32-uart.c220 port->icount.parity++; in efm32_uart_rx_chars()
556 int *baud, int *parity, int *bits) in efm32_uart_console_get_options() argument
578 *parity = 'o'; in efm32_uart_console_get_options()
581 *parity = 'e'; in efm32_uart_console_get_options()
584 *parity = 'n'; in efm32_uart_console_get_options()
591 *baud, *parity, *bits); in efm32_uart_console_get_options()
599 int parity = 'n'; in efm32_uart_console_setup() local
631 uart_parse_options(options, &baud, &parity, &bits, &flow); in efm32_uart_console_setup()
634 &baud, &parity, &bits); in efm32_uart_console_setup()
636 return uart_set_options(&efm_port->port, co, baud, parity, bits, flow); in efm32_uart_console_setup()
Dnetx-serial.c217 port->icount.parity++; in netx_rxint()
552 int *parity, int *bits, int *flow) in netx_console_get_options() argument
565 *parity = 'n'; in netx_console_get_options()
568 *parity = 'e'; in netx_console_get_options()
570 *parity = 'o'; in netx_console_get_options()
598 int parity = 'n'; in netx_console_setup() local
611 uart_parse_options(options, &baud, &parity, &bits, &flow); in netx_console_setup()
618 &parity, &bits, &flow); in netx_console_setup()
623 return uart_set_options(&sport->port, co, baud, parity, bits, flow); in netx_console_setup()
Damba-pl010.c155 uap->port.icount.parity++; in pl010_rx_chars()
625 int *parity, int *bits) in pl010_console_get_options() argument
631 *parity = 'n'; in pl010_console_get_options()
634 *parity = 'e'; in pl010_console_get_options()
636 *parity = 'o'; in pl010_console_get_options()
655 int parity = 'n'; in pl010_console_setup() local
677 uart_parse_options(options, &baud, &parity, &bits, &flow); in pl010_console_setup()
679 pl010_console_get_options(uap, &baud, &parity, &bits); in pl010_console_setup()
681 return uart_set_options(&uap->port, co, baud, parity, bits, flow); in pl010_console_setup()
Dsuncore.c89 char parity; in sunserial_console_termios() local
124 parity = *(++s); in sunserial_console_termios()
155 switch (parity) { in sunserial_console_termios()
Dsa1100.c212 sport->port.icount.parity++; in sa1100_rx_chars()
750 int *parity, int *bits) in sa1100_console_get_options() argument
761 *parity = 'n'; in sa1100_console_get_options()
764 *parity = 'e'; in sa1100_console_get_options()
766 *parity = 'o'; in sa1100_console_get_options()
786 int parity = 'n'; in sa1100_console_setup() local
799 uart_parse_options(options, &baud, &parity, &bits, &flow); in sa1100_console_setup()
801 sa1100_console_get_options(sport, &baud, &parity, &bits); in sa1100_console_setup()
803 return uart_set_options(&sport->port, co, baud, parity, bits, flow); in sa1100_console_setup()
Dclps711x.c122 port->icount.parity++; in uart_clps711x_int_rx()
389 int baud = 38400, bits = 8, parity = 'n', flow = 'n'; in uart_clps711x_console_setup() local
414 parity = 'e'; in uart_clps711x_console_setup()
416 parity = 'o'; in uart_clps711x_console_setup()
426 uart_parse_options(options, &baud, &parity, &bits, &flow); in uart_clps711x_console_setup()
428 ret = uart_set_options(port, co, baud, parity, bits, flow); in uart_clps711x_console_setup()
/drivers/firmware/
Dpcdp.c28 char parity; in setup_serial_console() local
36 switch (uart->parity) { in setup_serial_console()
37 case 0x2: parity = 'e'; break; in setup_serial_console()
38 case 0x3: parity = 'o'; break; in setup_serial_console()
39 default: parity = 'n'; in setup_serial_console()
41 p += sprintf(p, "%c%d", parity, uart->bits); in setup_serial_console()
/drivers/mtd/
Dssfdc.c189 int parity; in get_parity() local
191 parity = 1; in get_parity()
193 parity += (number >> k); in get_parity()
194 parity &= 1; in get_parity()
196 return parity; in get_parity()
202 int block_address, parity; in get_logical_address() local
218 parity = block_address & 0x01; in get_logical_address()
222 if (get_parity(block_address, 10) != parity) { in get_logical_address()
/drivers/input/serio/
Dams_delta_serio.c42 int i, parity = 0; in check_data() local
54 parity++; in check_data()
57 if (!(parity & 0x01)) { in check_data()
60 data, parity); in check_data()
/drivers/scsi/pcmcia/
Daha152x_stub.c63 static int parity = 1; variable
70 module_param(parity, int, 0);
167 s.parity = parity; in aha152x_config_cs()
/drivers/net/wan/
Dhdlc_raw.c73 if (new_settings.parity == PARITY_DEFAULT) in raw_ioctl()
74 new_settings.parity = PARITY_CRC16_PR1_CCITT; in raw_ioctl()
77 new_settings.parity); in raw_ioctl()
Dhdlc_raw_eth.c89 if (new_settings.parity == PARITY_DEFAULT) in raw_eth_ioctl()
90 new_settings.parity = PARITY_CRC16_PR1_CCITT; in raw_eth_ioctl()
93 new_settings.parity); in raw_eth_ioctl()
Dhd64572.c442 switch(port->parity) { in sca_open()
496 unsigned short parity) in sca_attach() argument
505 if (parity != PARITY_NONE && in sca_attach()
506 parity != PARITY_CRC16_PR0 && in sca_attach()
507 parity != PARITY_CRC16_PR1 && in sca_attach()
508 parity != PARITY_CRC32_PR1_CCITT && in sca_attach()
509 parity != PARITY_CRC16_PR1_CCITT) in sca_attach()
513 dev_to_port(dev)->parity = parity; in sca_attach()
Dhd64570.c478 switch(port->parity) { in sca_open()
543 unsigned short parity) in sca_attach() argument
552 if (parity != PARITY_NONE && in sca_attach()
553 parity != PARITY_CRC16_PR0 && in sca_attach()
554 parity != PARITY_CRC16_PR1 && in sca_attach()
555 parity != PARITY_CRC16_PR0_CCITT && in sca_attach()
556 parity != PARITY_CRC16_PR1_CCITT) in sca_attach()
560 dev_to_port(dev)->parity = parity; in sca_attach()
Dwanxl.c320 unsigned short parity) in wanxl_attach() argument
328 if (parity != PARITY_NONE && in wanxl_attach()
329 parity != PARITY_CRC32_PR1_CCITT && in wanxl_attach()
330 parity != PARITY_CRC16_PR1_CCITT && in wanxl_attach()
331 parity != PARITY_CRC32_PR0_CCITT && in wanxl_attach()
332 parity != PARITY_CRC16_PR0_CCITT) in wanxl_attach()
336 get_status(port)->parity = parity; in wanxl_attach()
/drivers/staging/skein/
Dthreefish_api.c11 u64 parity = KEY_SCHEDULE_CONST; in threefish_set_key() local
19 parity ^= key_data[i]; in threefish_set_key()
21 key_ctx->key[i] = parity; in threefish_set_key()
/drivers/usb/serial/
Diuu_phoenix.c788 u32 *actual, u8 parity) in iuu_uart_baud() argument
841 switch (parity & 0x0F) { in iuu_uart_baud()
863 switch (parity & 0xF0) { in iuu_uart_baud()
892 u32 parity; in iuu_set_termios() local
903 parity = 0; in iuu_set_termios()
906 parity |= IUU_PARITY_SPACE; in iuu_set_termios()
908 parity |= IUU_PARITY_MARK; in iuu_set_termios()
910 parity |= IUU_PARITY_NONE; in iuu_set_termios()
913 parity |= IUU_PARITY_ODD; in iuu_set_termios()
915 parity |= IUU_PARITY_EVEN; in iuu_set_termios()
[all …]
Dconsole.c63 int parity = 'n'; in usb_console_setup() local
79 parity = *s++; in usb_console_setup()
99 switch (parity) { in usb_console_setup()
/drivers/scsi/
Daha152x.h271 unsigned parity:1; /* SCSI-parity: 1=enabled 0=disabled */ member
276 #define cf_parity fields.parity
323 int parity; member

12345678