Lines Matching +full:0 +full:x4c

100 	return 0;  in iuu_port_probe()
121 dev_dbg(&port->dev, "%s msg : SET = 0x%04x, CLEAR = 0x%04x\n", in iuu_tiocmset()
134 return 0; in iuu_tiocmset()
138 * When a card is present, the response is 0x00
198 priv->reset = 0; in iuu_reset()
204 * 0x00 = no card
205 * 0x01 = smartcard
206 * 0x02 = sim card
224 switch (st[0]) { in iuu_update_status_callback()
225 case 0x1: in iuu_update_status_callback()
228 case 0x0: in iuu_update_status_callback()
271 int actual = 0; in bulk_immediate()
292 int actual = 0; in read_immediate()
317 buf[0] = IUU_SET_LED; in iuu_led()
318 buf[1] = R & 0xFF; in iuu_led()
319 buf[2] = (R >> 8) & 0xFF; in iuu_led()
320 buf[3] = G & 0xFF; in iuu_led()
321 buf[4] = (G >> 8) & 0xFF; in iuu_led()
322 buf[5] = B & 0xFF; in iuu_led()
323 buf[6] = (B >> 8) & 0xFF; in iuu_led()
353 buf_ptr[0] = IUU_SET_LED; in iuu_led_activity_on()
357 iuu_rgbf_fill_buffer(buf_ptr, 255, 255, 0, 0, 0, 0, 255); in iuu_led_activity_on()
378 iuu_rgbf_fill_buffer(buf_ptr, 0, 0, 255, 255, 0, 0, 255); in iuu_led_activity_off()
394 int Count = 0; in iuu_clk()
395 u8 FrqGenAdr = 0x69; in iuu_clk()
396 u8 DIV = 0; /* 8bit */ in iuu_clk()
397 u8 XDRV = 0; /* 8bit */ in iuu_clk()
398 u8 PUMP = 0; /* 3bit */ in iuu_clk()
399 u8 PBmsb = 0; /* 2bit */ in iuu_clk()
400 u8 PBlsb = 0; /* 8bit */ in iuu_clk()
401 u8 PO = 0; /* 1bit */ in iuu_clk()
402 u8 Q = 0; /* 7bit */ in iuu_clk()
404 unsigned int P = 0; in iuu_clk()
405 unsigned int P2 = 0; in iuu_clk()
408 if (frq == 0) { in iuu_clk()
411 priv->buf[Count++] = 0x09; in iuu_clk()
412 priv->buf[Count++] = 0x00; in iuu_clk()
415 if (status != 0) { in iuu_clk()
423 XDRV = 0; in iuu_clk()
428 XDRV = 0; in iuu_clk()
433 XDRV = 0x28; in iuu_clk()
435 unsigned int result = 0; in iuu_clk()
436 unsigned int tmp = 0; in iuu_clk()
439 char found = 0x00; in iuu_clk()
465 found = 0x01; in iuu_clk()
470 PUMP = 0x04; in iuu_clk()
471 PBmsb = (P2 >> 8 & 0x03); in iuu_clk()
472 PBlsb = P2 & 0xFF; in iuu_clk()
473 PO = (P >> 10) & 0x01; in iuu_clk()
476 priv->buf[Count++] = IUU_UART_WRITE_I2C; /* 0x4C */ in iuu_clk()
478 priv->buf[Count++] = 0x09; in iuu_clk()
479 priv->buf[Count++] = 0x20; /* Adr = 0x09 */ in iuu_clk()
480 priv->buf[Count++] = IUU_UART_WRITE_I2C; /* 0x4C */ in iuu_clk()
482 priv->buf[Count++] = 0x0C; in iuu_clk()
483 priv->buf[Count++] = DIV; /* Adr = 0x0C */ in iuu_clk()
484 priv->buf[Count++] = IUU_UART_WRITE_I2C; /* 0x4C */ in iuu_clk()
486 priv->buf[Count++] = 0x12; in iuu_clk()
487 priv->buf[Count++] = XDRV; /* Adr = 0x12 */ in iuu_clk()
488 priv->buf[Count++] = IUU_UART_WRITE_I2C; /* 0x4C */ in iuu_clk()
490 priv->buf[Count++] = 0x13; in iuu_clk()
491 priv->buf[Count++] = 0x6B; /* Adr = 0x13 */ in iuu_clk()
492 priv->buf[Count++] = IUU_UART_WRITE_I2C; /* 0x4C */ in iuu_clk()
494 priv->buf[Count++] = 0x40; in iuu_clk()
495 priv->buf[Count++] = (0xC0 | ((PUMP & 0x07) << 2)) | in iuu_clk()
496 (PBmsb & 0x03); /* Adr = 0x40 */ in iuu_clk()
497 priv->buf[Count++] = IUU_UART_WRITE_I2C; /* 0x4C */ in iuu_clk()
499 priv->buf[Count++] = 0x41; in iuu_clk()
500 priv->buf[Count++] = PBlsb; /* Adr = 0x41 */ in iuu_clk()
501 priv->buf[Count++] = IUU_UART_WRITE_I2C; /* 0x4C */ in iuu_clk()
503 priv->buf[Count++] = 0x42; in iuu_clk()
504 priv->buf[Count++] = Q | (((PO & 0x01) << 7)); /* Adr = 0x42 */ in iuu_clk()
505 priv->buf[Count++] = IUU_UART_WRITE_I2C; /* 0x4C */ in iuu_clk()
507 priv->buf[Count++] = 0x44; in iuu_clk()
508 priv->buf[Count++] = (char)0xFF; /* Adr = 0x44 */ in iuu_clk()
509 priv->buf[Count++] = IUU_UART_WRITE_I2C; /* 0x4C */ in iuu_clk()
511 priv->buf[Count++] = 0x45; in iuu_clk()
512 priv->buf[Count++] = (char)0xFE; /* Adr = 0x45 */ in iuu_clk()
513 priv->buf[Count++] = IUU_UART_WRITE_I2C; /* 0x4C */ in iuu_clk()
515 priv->buf[Count++] = 0x46; in iuu_clk()
516 priv->buf[Count++] = 0x7F; /* Adr = 0x46 */ in iuu_clk()
517 priv->buf[Count++] = IUU_UART_WRITE_I2C; /* 0x4C */ in iuu_clk()
519 priv->buf[Count++] = 0x47; in iuu_clk()
520 priv->buf[Count++] = (char)0x84; /* Adr = 0x47 */ in iuu_clk()
536 if (iuu_led(port, 0xF000, 0, 0, 0xFF) < 0) in iuu_uart_flush()
543 rxcmd[0] = IUU_UART_RX; in iuu_uart_flush()
545 for (i = 0; i < 2; i++) { in iuu_uart_flush()
558 if (priv->len > 0) { in iuu_uart_flush()
568 iuu_led(port, 0, 0xF000, 0, 0xFF); in iuu_uart_flush()
613 priv->writelen = 0; in iuu_bulk_write()
646 int len = 0; in iuu_uart_read_callback()
657 len = (int) data[0]; in iuu_uart_read_callback()
664 /* if len > 0 call readbuf */ in iuu_uart_read_callback()
666 if (len > 0) { in iuu_uart_read_callback()
675 priv->poll = 0; in iuu_uart_read_callback()
682 status = iuu_reset(port, 0xC); in iuu_uart_read_callback()
687 if (priv->writelen > 0) { in iuu_uart_read_callback()
707 if (count == 0) in iuu_uart_write()
749 buf[0] = IUU_UART_ENABLE; in iuu_uart_on()
750 buf[1] = (u8) ((IUU_BAUD_9600 >> 8) & 0x00FF); in iuu_uart_on()
751 buf[2] = (u8) (0x00FF & IUU_BAUD_9600); in iuu_uart_on()
752 buf[3] = (u8) (0x0F0 & IUU_ONE_STOP_BIT) | (0x07 & IUU_PARITY_EVEN); in iuu_uart_on()
776 buf[0] = IUU_UART_DISABLE; in iuu_uart_off()
792 u8 DataCount = 0; in iuu_uart_baud()
793 u8 T1Frekvens = 0; in iuu_uart_baud()
794 u8 T1reload = 0; in iuu_uart_baud()
795 unsigned int T1FrekvensHZ = 0; in iuu_uart_baud()
825 T1Frekvens = 0; in iuu_uart_baud()
840 switch (parity & 0x0F) { in iuu_uart_baud()
842 dataout[DataCount++] = 0x00; in iuu_uart_baud()
845 dataout[DataCount++] = 0x01; in iuu_uart_baud()
848 dataout[DataCount++] = 0x02; in iuu_uart_baud()
851 dataout[DataCount++] = 0x03; in iuu_uart_baud()
854 dataout[DataCount++] = 0x04; in iuu_uart_baud()
861 switch (parity & 0xF0) { in iuu_uart_baud()
901 parity = 0; in iuu_set_termios()
928 if (status != 0) /* Set failed - return old bits */ in iuu_set_termios()
938 /* iuu_led (port,255,0,0,0); */ in iuu_close()
945 iuu_led(port, 0, 0, 0xF000, 0xFF); in iuu_close()
953 tty->termios.c_lflag = 0; in iuu_init_termios()
954 tty->termios.c_oflag = 0; in iuu_init_termios()
955 tty->termios.c_iflag = 0; in iuu_init_termios()
973 priv->poll = 0; in iuu_open()
977 usb_sndctrlpipe(port->serial->dev, 0), \ in iuu_open()
978 b, a, c, d, NULL, 0, 1000); \ in iuu_open()
979 dev_dbg(dev, "0x%x:0x%x:0x%x:0x%x %d\n", a, b, c, d, result); } while (0) in iuu_open()
984 /* sprintf(buf ,"%c%c%c%c",0x03,0x02,0x02,0x0); */ in iuu_open()
986 SOUP(0x03, 0x02, 0x02, 0x0); in iuu_open()
988 iuu_led(port, 0xF000, 0xF000, 0, 0xFF); in iuu_open()
1019 case 0: in iuu_open()
1020 iuu_cardin = 0; in iuu_open()
1021 iuu_cardout = 0; in iuu_open()
1025 iuu_cardout = 0; in iuu_open()
1028 iuu_cardin = 0; in iuu_open()
1033 iuu_cardout = 0; in iuu_open()
1036 iuu_cardin = 0; in iuu_open()
1041 iuu_cardout = 0; in iuu_open()
1044 iuu_cardin = 0; in iuu_open()
1049 iuu_cardout = 0; in iuu_open()
1052 iuu_cardin = 0; in iuu_open()
1087 buf[0] = IUU_SET_VCC; in iuu_vcc_set()
1088 buf[1] = vcc & 0xFF; in iuu_vcc_set()
1089 buf[2] = (vcc >> 8) & 0xFF; in iuu_vcc_set()
1090 buf[3] = (vcc >> 16) & 0xFF; in iuu_vcc_set()
1091 buf[4] = (vcc >> 24) & 0xFF; in iuu_vcc_set()
1151 return 0; in iuu_remove_sysfs_attrs()
1202 MODULE_PARM_DESC(cdmode, "Card detect mode (0=none, 1=CD, 2=!CD, 3=DSR, "