Home
last modified time | relevance | path

Searched refs:xr_usb_serial (Results 1 – 3 of 3) sorted by relevance

/OK3568_Linux_fs/kernel/drivers/usb/serial/
H A Dxr_usb_serial_hal.c30 int xr_usb_serial_set_reg(struct xr_usb_serial *xr_usb_serial,int regnum, int value) in xr_usb_serial_set_reg() argument
35 if((xr_usb_serial->DeviceProduct&0xfff0) == 0x1400) in xr_usb_serial_set_reg()
38 result = usb_control_msg(xr_usb_serial->dev, /* usb device */ in xr_usb_serial_set_reg()
39 usb_sndctrlpipe(xr_usb_serial->dev, 0), /* endpoint pipe */ in xr_usb_serial_set_reg()
48 else if((xr_usb_serial->DeviceProduct == 0x1410) || in xr_usb_serial_set_reg()
49 (xr_usb_serial->DeviceProduct == 0x1412) || in xr_usb_serial_set_reg()
50 (xr_usb_serial->DeviceProduct == 0x1414)) in xr_usb_serial_set_reg()
52 if(xr_usb_serial->channel) in xr_usb_serial_set_reg()
53 channel = xr_usb_serial->channel - 1; in xr_usb_serial_set_reg()
54 result = usb_control_msg(xr_usb_serial->dev, /* usb device */ in xr_usb_serial_set_reg()
[all …]
H A Dxr_usb_serial_common.c71 static struct xr_usb_serial *xr_usb_serial_table[XR_USB_SERIAL_TTY_MINORS];
83 static struct xr_usb_serial *xr_usb_serial_get_by_index(unsigned index) in xr_usb_serial_get_by_index()
85 struct xr_usb_serial *xr_usb_serial; in xr_usb_serial_get_by_index() local
88 xr_usb_serial = xr_usb_serial_table[index]; in xr_usb_serial_get_by_index()
89 if (xr_usb_serial) { in xr_usb_serial_get_by_index()
90 mutex_lock(&xr_usb_serial->mutex); in xr_usb_serial_get_by_index()
91 if (xr_usb_serial->disconnected) { in xr_usb_serial_get_by_index()
92 mutex_unlock(&xr_usb_serial->mutex); in xr_usb_serial_get_by_index()
93 xr_usb_serial = NULL; in xr_usb_serial_get_by_index()
95 tty_port_get(&xr_usb_serial->port); in xr_usb_serial_get_by_index()
[all …]
H A Dxr_usb_serial_common.h84 struct xr_usb_serial *instance;
92 struct xr_usb_serial *instance;
112 struct xr_usb_serial { struct