Lines Matching +full:0 +full:x2184

93 	minor = idr_alloc(&acm_minors, acm, 0, ACM_TTY_MINORS, GFP_KERNEL);  in acm_alloc_minor()
120 retval = usb_control_msg(acm->dev, usb_sndctrlpipe(acm->dev, 0), in acm_ctrl_msg()
122 acm->control->altsetting[0].desc.bInterfaceNumber, in acm_ctrl_msg()
126 "%s - rq 0x%02x, val %#x, len %#x, result %d\n", in acm_ctrl_msg()
131 return retval < 0 ? retval : 0; in acm_ctrl_msg()
143 control, NULL, 0); in acm_set_control()
147 acm_ctrl_msg(acm, USB_CDC_REQ_SET_LINE_CODING, 0, line, sizeof *(line))
149 acm_ctrl_msg(acm, USB_CDC_REQ_SEND_BREAK, ms, NULL, 0)
156 for (i = 0; i < ACM_NW; i++) in acm_poison_urbs()
158 for (i = 0; i < acm->rx_buflimit; i++) in acm_poison_urbs()
166 for (i = 0; i < acm->rx_buflimit; i++) in acm_unpoison_urbs()
168 for (i = 0; i < ACM_NW; i++) in acm_unpoison_urbs()
184 wbn = 0; in acm_wb_alloc()
185 i = 0; in acm_wb_alloc()
190 wb->len = 0; in acm_wb_alloc()
206 for (i = 0; i < ACM_NW; i++) in acm_wb_is_avail()
241 if (rc < 0) { in acm_start_wb()
313 "%s - serial state: 0x%x\n", __func__, newctrl); in acm_process_notification()
342 tty_insert_flip_char(&acm->port, 0, TTY_BREAK); in acm_process_notification()
381 case 0: in acm_ctrl_irq()
417 acm->nb_index = 0; in acm_ctrl_irq()
438 acm->nb_index = 0; in acm_ctrl_irq()
456 return 0; in acm_submit_read_urb()
473 return 0; in acm_submit_read_urb()
481 for (i = 0; i < acm->rx_buflimit; ++i) { in acm_submit_read_urbs()
487 return 0; in acm_submit_read_urbs()
518 case 0: in acm_read_bulk_callback()
566 schedule_delayed_work(&acm->dwork, 0); in acm_read_bulk_callback()
596 schedule_delayed_work(&acm->dwork, 0); in acm_write_bulk()
607 for (i = 0; i < acm->rx_buflimit; i++) in acm_softint()
616 for (i = 0; i < acm->rx_buflimit; i++) in acm_softint()
651 return 0; in acm_tty_install()
674 val = 0; in acm_port_dtr_rts()
725 return 0; in acm_port_activate()
728 for (i = 0; i < acm->rx_buflimit; i++) in acm_port_activate()
766 acm->control->needs_remote_wakeup = 0; in acm_port_shutdown()
813 return 0; in acm_tty_write()
819 if (wbn < 0) { in acm_tty_write()
821 return 0; in acm_tty_write()
852 if (stat < 0) in acm_tty_write()
864 return acm_wb_is_avail(acm) ? acm->writesize : 0; in acm_tty_write_room()
874 for (i = 0; i < ACM_NW; i++) in acm_tty_flush_buffer()
888 return 0; in acm_tty_chars_in_buffer()
922 retval = acm_send_break(acm, state ? 0xffff : 0); in acm_tty_break_ctl()
923 if (retval < 0) in acm_tty_break_ctl()
933 return (acm->ctrlout & USB_CDC_CTRL_DTR ? TIOCM_DTR : 0) | in acm_tty_tiocmget()
934 (acm->ctrlout & USB_CDC_CTRL_RTS ? TIOCM_RTS : 0) | in acm_tty_tiocmget()
935 (acm->ctrlin & USB_CDC_SERIAL_STATE_DSR ? TIOCM_DSR : 0) | in acm_tty_tiocmget()
936 (acm->ctrlin & USB_CDC_SERIAL_STATE_RING_SIGNAL ? TIOCM_RI : 0) | in acm_tty_tiocmget()
937 (acm->ctrlin & USB_CDC_SERIAL_STATE_DCD ? TIOCM_CD : 0) | in acm_tty_tiocmget()
948 set = (set & TIOCM_DTR ? USB_CDC_CTRL_DTR : 0) | in acm_tty_tiocmset()
949 (set & TIOCM_RTS ? USB_CDC_CTRL_RTS : 0); in acm_tty_tiocmset()
950 clear = (clear & TIOCM_DTR ? USB_CDC_CTRL_DTR : 0) | in acm_tty_tiocmset()
951 (clear & TIOCM_RTS ? USB_CDC_CTRL_RTS : 0); in acm_tty_tiocmset()
956 return 0; in acm_tty_tiocmset()
971 return 0; in get_serial_info()
978 int retval = 0; in set_serial_info()
1002 int rv = 0; in wait_serial_change()
1056 return 0; in acm_tty_get_icount()
1068 if (rv < 0) { in acm_tty_ioctl()
1089 newline.bCharFormat = termios->c_cflag & CSTOPB ? 2 : 0; in acm_tty_set_termios()
1092 (termios->c_cflag & CMSPAR ? 2 : 0) : 0; in acm_tty_set_termios()
1096 acm->clocal = ((termios->c_cflag & CLOCAL) != 0); in acm_tty_set_termios()
1136 for (wb = &acm->wb[0], i = 0; i < ACM_NW; i++, wb++) in acm_write_buffers_free()
1144 for (i = 0; i < acm->rx_buflimit; i++) in acm_read_buffers_free()
1155 for (wb = &acm->wb[0], i = 0; i < ACM_NW; i++, wb++) { in acm_write_buffers_alloc()
1159 while (i != 0) { in acm_write_buffers_alloc()
1168 return 0; in acm_write_buffers_alloc()
1194 int combined_interfaces = 0; in acm_probe()
1205 memset(&h, 0x00, sizeof(struct usb_cdc_parsed_header)); in acm_probe()
1212 control_interface = usb_ifnum_to_if(usb_dev, 0); in acm_probe()
1252 } else if (call_intf_num > 0) { in acm_probe()
1324 control_interface->cur_altsetting->desc.bNumEndpoints == 0) in acm_probe()
1327 epctrl = &control_interface->cur_altsetting->endpoint[0].desc; in acm_probe()
1328 epread = &data_interface->cur_altsetting->endpoint[0].desc; in acm_probe()
1360 if (minor < 0) { in acm_probe()
1397 if (acm_write_buffers_alloc(acm) < 0) in acm_probe()
1400 acm->ctrlurb = usb_alloc_urb(0, GFP_KERNEL); in acm_probe()
1404 for (i = 0; i < num_rx_buf; i++) { in acm_probe()
1415 urb = usb_alloc_urb(0, GFP_KERNEL); in acm_probe()
1434 for (i = 0; i < ACM_NW; i++) { in acm_probe()
1437 snd->urb = usb_alloc_urb(0, GFP_KERNEL); in acm_probe()
1456 if (i < 0) in acm_probe()
1472 if (i < 0) { in acm_probe()
1475 acm->country_code_size = 0; in acm_probe()
1481 if (i < 0) { in acm_probe()
1485 acm->country_code_size = 0; in acm_probe()
1499 acm->nb_index = 0; in acm_probe()
1500 acm->nb_size = 0; in acm_probe()
1526 return 0; in acm_probe()
1543 for (i = 0; i < ACM_NW; i++) in acm_probe()
1546 for (i = 0; i < num_rx_buf; i++) in acm_probe()
1601 for (i = 0; i < ACM_NW; i++) in acm_disconnect()
1603 for (i = 0; i < acm->rx_buflimit; i++) in acm_disconnect()
1635 return 0; in acm_suspend()
1639 acm->urbs_in_error_delay = 0; in acm_suspend()
1641 return 0; in acm_suspend()
1648 int rv = 0; in acm_resume()
1672 if (rv < 0) in acm_resume()
1700 acm->nb_index = 0; /* pending control transfers are lost */ in acm_pre_reset()
1702 return 0; in acm_pre_reset()
1706 USB_DEVICE_AND_INTERFACE_INFO(0x0421, x, \
1711 USB_DEVICE_AND_INTERFACE_INFO(0x04e7, x, \
1721 { USB_DEVICE(0x0424, 0x274e), /* Microchip Technology, Inc. (formerly SMSC) */
1723 { USB_DEVICE(0x076d, 0x0006), /* Denso Cradle CU-321 */
1725 { USB_DEVICE(0x17ef, 0x7000), /* Lenovo USB modem */
1727 { USB_DEVICE(0x0870, 0x0001), /* Metricom GS Modem */
1730 { USB_DEVICE(0x045b, 0x023c), /* Renesas USB Download mode */
1733 { USB_DEVICE(0x045b, 0x0248), /* Renesas USB Download mode */
1736 { USB_DEVICE(0x045b, 0x024D), /* Renesas USB Download mode */
1739 { USB_DEVICE(0x0e8d, 0x0003), /* FIREFLY, MediaTek Inc; andrey.arapov@gmail.com */
1742 { USB_DEVICE(0x0e8d, 0x2000), /* MediaTek Inc Preloader */
1745 { USB_DEVICE(0x0e8d, 0x3329), /* MediaTek Inc GPS */
1748 { USB_DEVICE(0x0482, 0x0203), /* KYOCERA AH-K3001V */
1751 { USB_DEVICE(0x079b, 0x000f), /* BT On-Air USB MODEM */
1754 { USB_DEVICE(0x0ace, 0x1602), /* ZyDAS 56K USB MODEM */
1757 { USB_DEVICE(0x0ace, 0x1608), /* ZyDAS 56K USB MODEM */
1760 { USB_DEVICE(0x0ace, 0x1611), /* ZyDAS 56K USB MODEM - new version */
1763 { USB_DEVICE(0x11ca, 0x0201), /* VeriFone Mx870 Gadget Serial */
1766 { USB_DEVICE(0x1901, 0x0006), /* GE Healthcare Patient Monitor UI Controller */
1769 { USB_DEVICE(0x1965, 0x0018), /* Uniden UBC125XLT */
1772 { USB_DEVICE(0x22b8, 0x7000), /* Motorola Q Phone */
1775 { USB_DEVICE(0x0803, 0x3095), /* Zoom Telephonics Model 3095F USB MODEM */
1778 { USB_DEVICE(0x0572, 0x1321), /* Conexant USB MODEM CX93010 */
1781 { USB_DEVICE(0x0572, 0x1324), /* Conexant USB MODEM RD02-D400 */
1784 { USB_DEVICE(0x0572, 0x1328), /* Shiro / Aztech USB MODEM UM-3100 */
1787 { USB_DEVICE(0x0572, 0x1349), /* Hiro (Conexant) USB MODEM H50228 */
1790 { USB_DEVICE(0x20df, 0x0001), /* Simtec Electronics Entropy Key */
1792 { USB_DEVICE(0x2184, 0x001c) }, /* GW Instek AFG-2225 */
1793 { USB_DEVICE(0x2184, 0x0036) }, /* GW Instek AFG-125 */
1794 { USB_DEVICE(0x22b8, 0x6425), /* Motorola MOTOMAGX phones */
1797 { USB_DEVICE(0x22b8, 0x2d91) }, /* modem */
1798 { USB_DEVICE(0x22b8, 0x2d92), /* modem + diagnostics */
1801 { USB_DEVICE(0x22b8, 0x2d93), /* modem + AT port */
1804 { USB_DEVICE(0x22b8, 0x2d95), /* modem + AT port + diagnostics */
1807 { USB_DEVICE(0x22b8, 0x2d96), /* modem + NMEA */
1810 { USB_DEVICE(0x22b8, 0x2d97), /* modem + diagnostics + NMEA */
1813 { USB_DEVICE(0x22b8, 0x2d99), /* modem + AT port + NMEA */
1816 { USB_DEVICE(0x22b8, 0x2d9a), /* modem + AT port + diagnostics + NMEA */
1820 { USB_DEVICE(0x0572, 0x1329), /* Hummingbird huc56s (Conexant) */
1827 { USB_DEVICE(0x0572, 0x1340), /* Conexant CX93010-2x UCMxx */
1830 { USB_DEVICE(0x05f9, 0x4002), /* PSC Scanning, Magellan 800i */
1833 { USB_DEVICE(0x1bbb, 0x0003), /* Alcatel OT-I650 */
1836 { USB_DEVICE(0x1576, 0x03b1), /* Maretron USB100 */
1839 { USB_DEVICE(0xfff0, 0x0100), /* DATECS FP-2000 */
1842 { USB_DEVICE(0x09d8, 0x0320), /* Elatec GmbH TWN3 */
1845 { USB_DEVICE(0x0c26, 0x0020), /* Icom ICF3400 Serie */
1848 { USB_DEVICE(0x0ca6, 0xa050), /* Castles VEGA3000 */
1852 { USB_DEVICE(0x2912, 0x0001), /* ATOL FPrint */
1861 { NOKIA_PCSUITE_ACM_INFO(0x042D), }, /* Nokia 3250 */
1862 { NOKIA_PCSUITE_ACM_INFO(0x04D8), }, /* Nokia 5500 Sport */
1863 { NOKIA_PCSUITE_ACM_INFO(0x04C9), }, /* Nokia E50 */
1864 { NOKIA_PCSUITE_ACM_INFO(0x0419), }, /* Nokia E60 */
1865 { NOKIA_PCSUITE_ACM_INFO(0x044D), }, /* Nokia E61 */
1866 { NOKIA_PCSUITE_ACM_INFO(0x0001), }, /* Nokia E61i */
1867 { NOKIA_PCSUITE_ACM_INFO(0x0475), }, /* Nokia E62 */
1868 { NOKIA_PCSUITE_ACM_INFO(0x0508), }, /* Nokia E65 */
1869 { NOKIA_PCSUITE_ACM_INFO(0x0418), }, /* Nokia E70 */
1870 { NOKIA_PCSUITE_ACM_INFO(0x0425), }, /* Nokia N71 */
1871 { NOKIA_PCSUITE_ACM_INFO(0x0486), }, /* Nokia N73 */
1872 { NOKIA_PCSUITE_ACM_INFO(0x04DF), }, /* Nokia N75 */
1873 { NOKIA_PCSUITE_ACM_INFO(0x000e), }, /* Nokia N77 */
1874 { NOKIA_PCSUITE_ACM_INFO(0x0445), }, /* Nokia N80 */
1875 { NOKIA_PCSUITE_ACM_INFO(0x042F), }, /* Nokia N91 & N91 8GB */
1876 { NOKIA_PCSUITE_ACM_INFO(0x048E), }, /* Nokia N92 */
1877 { NOKIA_PCSUITE_ACM_INFO(0x0420), }, /* Nokia N93 */
1878 { NOKIA_PCSUITE_ACM_INFO(0x04E6), }, /* Nokia N93i */
1879 { NOKIA_PCSUITE_ACM_INFO(0x04B2), }, /* Nokia 5700 XpressMusic */
1880 { NOKIA_PCSUITE_ACM_INFO(0x0134), }, /* Nokia 6110 Navigator (China) */
1881 { NOKIA_PCSUITE_ACM_INFO(0x046E), }, /* Nokia 6110 Navigator */
1882 { NOKIA_PCSUITE_ACM_INFO(0x002f), }, /* Nokia 6120 classic & */
1883 { NOKIA_PCSUITE_ACM_INFO(0x0088), }, /* Nokia 6121 classic */
1884 { NOKIA_PCSUITE_ACM_INFO(0x00fc), }, /* Nokia 6124 classic */
1885 { NOKIA_PCSUITE_ACM_INFO(0x0042), }, /* Nokia E51 */
1886 { NOKIA_PCSUITE_ACM_INFO(0x00b0), }, /* Nokia E66 */
1887 { NOKIA_PCSUITE_ACM_INFO(0x00ab), }, /* Nokia E71 */
1888 { NOKIA_PCSUITE_ACM_INFO(0x0481), }, /* Nokia N76 */
1889 { NOKIA_PCSUITE_ACM_INFO(0x0007), }, /* Nokia N81 & N81 8GB */
1890 { NOKIA_PCSUITE_ACM_INFO(0x0071), }, /* Nokia N82 */
1891 { NOKIA_PCSUITE_ACM_INFO(0x04F0), }, /* Nokia N95 & N95-3 NAM */
1892 { NOKIA_PCSUITE_ACM_INFO(0x0070), }, /* Nokia N95 8GB */
1893 { NOKIA_PCSUITE_ACM_INFO(0x0099), }, /* Nokia 6210 Navigator, RM-367 */
1894 { NOKIA_PCSUITE_ACM_INFO(0x0128), }, /* Nokia 6210 Navigator, RM-419 */
1895 { NOKIA_PCSUITE_ACM_INFO(0x008f), }, /* Nokia 6220 Classic */
1896 { NOKIA_PCSUITE_ACM_INFO(0x00a0), }, /* Nokia 6650 */
1897 { NOKIA_PCSUITE_ACM_INFO(0x007b), }, /* Nokia N78 */
1898 { NOKIA_PCSUITE_ACM_INFO(0x0094), }, /* Nokia N85 */
1899 { NOKIA_PCSUITE_ACM_INFO(0x003a), }, /* Nokia N96 & N96-3 */
1900 { NOKIA_PCSUITE_ACM_INFO(0x00e9), }, /* Nokia 5320 XpressMusic */
1901 { NOKIA_PCSUITE_ACM_INFO(0x0108), }, /* Nokia 5320 XpressMusic 2G */
1902 { NOKIA_PCSUITE_ACM_INFO(0x01f5), }, /* Nokia N97, RM-505 */
1903 { NOKIA_PCSUITE_ACM_INFO(0x02e3), }, /* Nokia 5230, RM-588 */
1904 { NOKIA_PCSUITE_ACM_INFO(0x0178), }, /* Nokia E63 */
1905 { NOKIA_PCSUITE_ACM_INFO(0x010e), }, /* Nokia E75 */
1906 { NOKIA_PCSUITE_ACM_INFO(0x02d9), }, /* Nokia 6760 Slide */
1907 { NOKIA_PCSUITE_ACM_INFO(0x01d0), }, /* Nokia E52 */
1908 { NOKIA_PCSUITE_ACM_INFO(0x0223), }, /* Nokia E72 */
1909 { NOKIA_PCSUITE_ACM_INFO(0x0275), }, /* Nokia X6 */
1910 { NOKIA_PCSUITE_ACM_INFO(0x026c), }, /* Nokia N97 Mini */
1911 { NOKIA_PCSUITE_ACM_INFO(0x0154), }, /* Nokia 5800 XpressMusic */
1912 { NOKIA_PCSUITE_ACM_INFO(0x04ce), }, /* Nokia E90 */
1913 { NOKIA_PCSUITE_ACM_INFO(0x01d4), }, /* Nokia E55 */
1914 { NOKIA_PCSUITE_ACM_INFO(0x0302), }, /* Nokia N8 */
1915 { NOKIA_PCSUITE_ACM_INFO(0x0335), }, /* Nokia E7 */
1916 { NOKIA_PCSUITE_ACM_INFO(0x03cd), }, /* Nokia C7 */
1917 { SAMSUNG_PCSUITE_ACM_INFO(0x6651), }, /* Samsung GTi8510 (INNOV8) */
1920 { USB_DEVICE(0x03eb, 0x0030), }, /* Owen SI30 */
1922 /* NOTE: non-Nokia COMM/ACM/0xff is likely MSFT RNDIS... NOT a modem! */
1925 { USB_DEVICE(0x04d8, 0x0082), /* Application mode */
1928 { USB_DEVICE(0x04d8, 0x0083), /* Bootloader mode */
1934 { USB_DEVICE(0x04d8, 0xfd08),
1938 { USB_DEVICE(0x04d8, 0xf58b),
1944 { USB_DEVICE(0x04e2, 0x1400), .driver_info = IGNORE_DEVICE },
1945 { USB_DEVICE(0x04e2, 0x1401), .driver_info = IGNORE_DEVICE },
1946 { USB_DEVICE(0x04e2, 0x1402), .driver_info = IGNORE_DEVICE },
1947 { USB_DEVICE(0x04e2, 0x1403), .driver_info = IGNORE_DEVICE },
1948 { USB_DEVICE(0x04e2, 0x1410), .driver_info = IGNORE_DEVICE },
1949 { USB_DEVICE(0x04e2, 0x1411), .driver_info = IGNORE_DEVICE },
1950 { USB_DEVICE(0x04e2, 0x1412), .driver_info = IGNORE_DEVICE },
1951 { USB_DEVICE(0x04e2, 0x1414), .driver_info = IGNORE_DEVICE },
1952 { USB_DEVICE(0x04e2, 0x1420), .driver_info = IGNORE_DEVICE },
1953 { USB_DEVICE(0x04e2, 0x1422), .driver_info = IGNORE_DEVICE },
1954 { USB_DEVICE(0x04e2, 0x1424), .driver_info = IGNORE_DEVICE },
1958 { USB_DEVICE(0x04e8, 0x685d),
1963 { USB_DEVICE(0x058b, 0x0041),
1968 { USB_DEVICE(0x108c, 0x0159), /* ES581.4 */
1971 { USB_DEVICE(0x108c, 0x0168), /* ES582.1 */
1974 { USB_DEVICE(0x108c, 0x0169), /* ES584.1 */
1978 { USB_DEVICE(0x1bc7, 0x0021), /* Telit 3G ACM only composition */
1981 { USB_DEVICE(0x1bc7, 0x0023), /* Telit 3G ACM + ECM composition */
1986 { USB_DEVICE(0x27c6, 0x5395),
1991 { USB_DEVICE(0x32a7, 0x0000),
2013 { USB_DEVICE(0x1519, 0x0452), /* Intel 7260 modem */
2079 acm_tty_driver->minor_start = 0, in acm_init()
2102 return 0; in acm_init()