Searched refs:parity (Results 51 - 75 of 189) sorted by relevance

12345678

/linux-master/drivers/usb/storage/
H A Dsddr09.c185 static unsigned char parity[256]; variable
191 parity[0] = 0;
193 parity[i] = (parity[i&(i-1)] ^ 1);
207 ecc2[i] = ~(a ^ (a<<1) ^ (parity[i] ? 0xa8 : 0));
219 bit = parity[data[i]];
227 ecc[0] = ~(a ^ (a<<1) ^ (parity[par] ? 0xaa : 0));
230 ecc[1] = ~(a ^ (a<<1) ^ (parity[par] ? 0xaa : 0));
864 if (parity[MSB_of(lbap) ^ LSB_of(lbap)])
1312 /* check even parity */
[all...]
/linux-master/drivers/tty/serial/
H A Dpch_uart.c428 unsigned int parity, unsigned int bits,
443 if (parity & ~(PCH_UART_LCR_PEN | PCH_UART_LCR_EPS | PCH_UART_LCR_SP)) {
444 dev_err(priv->port.dev, "Invalid parity(0x%x)\n", parity);
458 lcr = parity;
985 port->icount.parity++;
1284 /* Change the port parameters, including word length, parity, stop
1292 unsigned int baud, parity, bits, stb; local
1318 parity = PCH_UART_HAL_PARITY_ODD;
1320 parity
427 pch_uart_hal_set_line(struct eg20t_port *priv, unsigned int baud, unsigned int parity, unsigned int bits, unsigned int stb) argument
1589 int parity = 'n'; local
[all...]
H A Dmxs-auart.c184 * parity bit is transmitted and checked as a 0. When bits 1 and 7 are set,
185 * and bit 2 is 0, the parity bit is transmitted and checked as a 1. When this
186 * bit is cleared stick parity is disabled.
625 s->port.icount.parity++;
956 /* parity */
981 * If we're ignoring parity and break indicators,
1355 int *parity, int *bits)
1365 *parity = 'n';
1368 *parity = 'e';
1370 *parity
1354 auart_console_get_options(struct mxs_auart_port *s, int *baud, int *parity, int *bits) argument
1394 int parity = 'n'; local
[all...]
H A Dliteuart.c394 int parity = 'n'; local
406 uart_parse_options(options, &baud, &parity, &bits, &flow);
408 return uart_set_options(port, co, baud, parity, bits, flow);
H A Darc_uart.c481 int parity = 'n'; local
496 uart_parse_options(options, &baud, &parity, &bits, &flow);
502 return uart_set_options(port, co, baud, parity, bits, flow);
H A Dvt8500_serial.c76 #define VT8500_PARENB (1 << 4) /* Enable parity */
77 #define VT8500_PARODD (1 << 5) /* Odd parity (vs. even) */
178 port->icount.parity++;
353 /* calculate parity */
385 /* set parity, bits per char, and stop bit */
499 int parity = 'n'; local
511 uart_parse_options(options, &baud, &parity, &bits, &flow);
514 co, baud, parity, bits, flow);
H A Daltera_uart.c45 #define ALTERA_UART_STATUS_PE_MSK 0x0001 /* parity error */
59 #define ALTERA_UART_CONTROL_PE_MSK 0x0001 /* ...parity error */
222 port->icount.parity++;
441 int parity = 'n'; local
451 uart_parse_options(options, &baud, &parity, &bits, &flow);
453 return uart_set_options(port, co, baud, parity, bits, flow);
H A Dbcm63xx_uart.c274 port->icount.parity++;
733 int parity = 'n'; local
742 uart_parse_options(options, &baud, &parity, &bits, &flow);
744 return uart_set_options(port, co, baud, parity, bits, flow);
H A Dmcf.c300 port->icount.parity++;
507 int parity = 'n'; local
517 uart_parse_options(options, &baud, &parity, &bits, &flow);
519 return uart_set_options(port, co, baud, parity, bits, flow);
H A Ddz.c220 icount->parity++;
868 int parity = 'n'; local
882 uart_parse_options(options, &baud, &parity, &bits, &flow);
884 return uart_set_options(&dport->port, co, baud, parity, bits, flow);
H A Ddigicolor-usart.c152 port->icount.parity++;
418 int baud = 115200, bits = 8, parity = 'n', flow = 'n'; local
429 uart_parse_options(options, &baud, &parity, &bits, &flow);
431 return uart_set_options(port, co, baud, parity, bits, flow);
H A Dmilbeaut_usio.c174 port->icount.parity++;
423 int parity = 'n'; local
436 uart_parse_options(options, &baud, &parity, &bits, &flow);
441 return uart_set_options(port, co, baud, parity, bits, flow);
H A Dsunplus-uart.c52 #define SUP_UART_LSR_PE BIT(2) /* parity error status */
251 port->icount.parity++;
534 int parity = 'n'; local
545 uart_parse_options(options, &baud, &parity, &bits, &flow);
547 return uart_set_options(&sup->port, co, baud, parity, bits, flow);
/linux-master/drivers/mtd/
H A Dinftlcore.c468 unsigned char anac, nacs, parity; local
583 parity = (nrbits(thisVUC, 16) & 0x1) ? 0x1 : 0;
584 parity |= (nrbits(prev_block, 16) & 0x1) ? 0x2 : 0;
585 parity |= (nrbits(anac, 8) & 0x1) ? 0x4 : 0;
586 parity |= (nrbits(nacs, 8) & 0x1) ? 0x8 : 0;
592 oob.u.a.parityPerField = parity;
603 oob.u.b.parityPerField = parity;
/linux-master/arch/mips/include/asm/octeon/
H A Dcvmx-pko-defs.h1818 uint64_t parity:1; member in struct:cvmx_pko_reg_error::cvmx_pko_reg_error_s
1820 uint64_t parity:1;
1831 uint64_t parity:1; member in struct:cvmx_pko_reg_error::cvmx_pko_reg_error_cn30xx
1833 uint64_t parity:1;
1843 uint64_t parity:1; member in struct:cvmx_pko_reg_error::cvmx_pko_reg_error_cn50xx
1845 uint64_t parity:1;
1962 uint64_t parity:1; member in struct:cvmx_pko_reg_int_mask::cvmx_pko_reg_int_mask_s
1964 uint64_t parity:1;
1975 uint64_t parity:1; member in struct:cvmx_pko_reg_int_mask::cvmx_pko_reg_int_mask_cn30xx
1977 uint64_t parity
1987 uint64_t parity:1; member in struct:cvmx_pko_reg_int_mask::cvmx_pko_reg_int_mask_cn50xx
[all...]
/linux-master/drivers/nfc/s3fwrn5/
H A Dfirmware.c59 hdr.type = type | fw_info->parity;
60 fw_info->parity ^= 0x80;
469 fw_info->parity = 0x00;
/linux-master/drivers/platform/surface/aggregator/
H A Dcore.c328 /* serdev currently only supports EVEN/ODD parity. */
329 switch (uart->parity) {
340 dev_warn(&serdev->dev, "setup: unsupported parity (value: %#04x)\n",
341 uart->parity);
346 dev_err(&serdev->dev, "setup: failed to set parity (value: %#04x, error: %d)\n",
347 uart->parity, status);
/linux-master/drivers/media/pci/mantis/
H A Dmantis_common.h82 enum mantis_parity parity; member in struct:mantis_hwconfig
H A Dmantis_vp1033.c194 .parity = MANTIS_PARITY_NONE,
H A Dmantis_vp2040.c169 .parity = MANTIS_PARITY_NONE,
H A Dmantis_vp2033.c170 .parity = MANTIS_PARITY_NONE,
/linux-master/drivers/net/wan/
H A Dfsl_ucc_hdlc.h104 unsigned short parity; member in struct:ucc_hdlc_private
/linux-master/drivers/usb/serial/
H A Dwhiteheat.h63 #define WHITEHEAT_PAR_NONE 'n' /* no parity */
64 #define WHITEHEAT_PAR_EVEN 'e' /* even parity */
65 #define WHITEHEAT_PAR_ODD 'o' /* odd parity */
66 #define WHITEHEAT_PAR_SPACE '0' /* space (force 0) parity */
67 #define WHITEHEAT_PAR_MARK '1' /* mark (force 1) parity */
94 __u8 parity; /* see WHITEHEAT_PAR_* above */ member in struct:whiteheat_port_settings
/linux-master/drivers/scsi/isci/
H A Dphy.h135 u32 parity:1; member in struct:sci_phy_cap::__anon967::__anon968
/linux-master/drivers/scsi/
H A DBusLogic.h426 bool parity:1; /* Byte 0 Bit 1 */ member in struct:blogic_setup_info
556 bool parity:1; /* Byte 15 Bit 1 */ member in struct:blogic_autoscsi
952 bool parity:1; /* Byte 20 Bit 0 */ member in struct:fpoint_info
995 bool parity:1; member in struct:blogic_adapter

Completed in 340 milliseconds

12345678