Lines Matching refs:port_priv

638 	struct cp210x_port_private *port_priv = usb_get_serial_port_data(port);  in cp210x_read_reg_block()  local
644 port_priv->bInterfaceNumber, buf, bufsize, in cp210x_read_reg_block()
692 struct cp210x_port_private *port_priv = usb_get_serial_port_data(port); in cp210x_write_u16_reg() local
697 port_priv->bInterfaceNumber, NULL, 0, in cp210x_write_u16_reg()
715 struct cp210x_port_private *port_priv = usb_get_serial_port_data(port); in cp210x_write_reg_block() local
720 port_priv->bInterfaceNumber, buf, bufsize, in cp210x_write_reg_block()
769 struct cp210x_port_private *port_priv = usb_get_serial_port_data(port); in cp210x_open() local
789 port_priv->event_mode = false; in cp210x_open()
796 struct cp210x_port_private *port_priv = usb_get_serial_port_data(port); in cp210x_close() local
806 port_priv->event_mode = false; in cp210x_close()
830 struct cp210x_port_private *port_priv = usb_get_serial_port_data(port); in cp210x_process_char() local
832 switch (port_priv->event_state) { in cp210x_process_char()
835 port_priv->event_state = ES_ESCAPE; in cp210x_process_char()
844 port_priv->event_state = ES_DATA; in cp210x_process_char()
847 port_priv->event_state = ES_LSR_DATA_0; in cp210x_process_char()
850 port_priv->event_state = ES_LSR; in cp210x_process_char()
853 port_priv->event_state = ES_MSR; in cp210x_process_char()
857 port_priv->event_state = ES_DATA; in cp210x_process_char()
862 port_priv->lsr = *ch; in cp210x_process_char()
863 port_priv->event_state = ES_LSR_DATA_1; in cp210x_process_char()
867 __func__, port_priv->lsr, *ch); in cp210x_process_char()
868 cp210x_process_lsr(port, port_priv->lsr, flag); in cp210x_process_char()
869 port_priv->event_state = ES_DATA; in cp210x_process_char()
873 port_priv->lsr = *ch; in cp210x_process_char()
874 cp210x_process_lsr(port, port_priv->lsr, flag); in cp210x_process_char()
875 port_priv->event_state = ES_DATA; in cp210x_process_char()
880 port_priv->event_state = ES_DATA; in cp210x_process_char()
890 struct cp210x_port_private *port_priv = usb_get_serial_port_data(port); in cp210x_process_read_urb() local
898 if (port_priv->event_mode) { in cp210x_process_read_urb()
920 struct cp210x_port_private *port_priv = usb_get_serial_port_data(port); in cp210x_get_tx_queue_byte_count() local
926 port_priv->bInterfaceNumber, &sts, sizeof(sts), in cp210x_get_tx_queue_byte_count()
1077 struct cp210x_port_private *port_priv = usb_get_serial_port_data(port); in cp210x_enable_event_mode() local
1080 if (port_priv->event_mode) in cp210x_enable_event_mode()
1086 port_priv->event_state = ES_DATA; in cp210x_enable_event_mode()
1087 port_priv->event_mode = true; in cp210x_enable_event_mode()
1092 port_priv->event_mode = false; in cp210x_enable_event_mode()
1098 struct cp210x_port_private *port_priv = usb_get_serial_port_data(port); in cp210x_disable_event_mode() local
1101 if (!port_priv->event_mode) in cp210x_disable_event_mode()
1110 port_priv->event_mode = false; in cp210x_disable_event_mode()
1128 struct cp210x_port_private *port_priv = usb_get_serial_port_data(port); in cp210x_set_flow_control() local
1168 mutex_lock(&port_priv->mutex); in cp210x_set_flow_control()
1182 if (port_priv->dtr) in cp210x_set_flow_control()
1190 if (port_priv->rts) in cp210x_set_flow_control()
1197 if (port_priv->rts) in cp210x_set_flow_control()
1229 port_priv->crtscts = crtscts; in cp210x_set_flow_control()
1231 mutex_unlock(&port_priv->mutex); in cp210x_set_flow_control()
1316 struct cp210x_port_private *port_priv = usb_get_serial_port_data(port); in cp210x_tiocmset_port() local
1322 mutex_lock(&port_priv->mutex); in cp210x_tiocmset_port()
1325 port_priv->rts = true; in cp210x_tiocmset_port()
1330 port_priv->dtr = true; in cp210x_tiocmset_port()
1335 port_priv->rts = false; in cp210x_tiocmset_port()
1340 port_priv->dtr = false; in cp210x_tiocmset_port()
1349 if (port_priv->crtscts && control & CONTROL_WRITE_RTS) { in cp210x_tiocmset_port()
1359 if (port_priv->dtr) in cp210x_tiocmset_port()
1365 if (port_priv->rts) in cp210x_tiocmset_port()
1384 mutex_unlock(&port_priv->mutex); in cp210x_tiocmset_port()
1974 struct cp210x_port_private *port_priv; in cp210x_port_probe() local
1976 port_priv = kzalloc(sizeof(*port_priv), GFP_KERNEL); in cp210x_port_probe()
1977 if (!port_priv) in cp210x_port_probe()
1980 port_priv->bInterfaceNumber = cp210x_interface_num(serial); in cp210x_port_probe()
1981 mutex_init(&port_priv->mutex); in cp210x_port_probe()
1983 usb_set_serial_port_data(port, port_priv); in cp210x_port_probe()
1990 struct cp210x_port_private *port_priv; in cp210x_port_remove() local
1992 port_priv = usb_get_serial_port_data(port); in cp210x_port_remove()
1993 kfree(port_priv); in cp210x_port_remove()