Lines Matching refs:spriv
245 struct pl2303_serial_private *spriv = usb_get_serial_data(serial); in pl2303_vendor_read() local
250 if (spriv->type == &pl2303_type_data[TYPE_HXN]) in pl2303_vendor_read()
274 struct pl2303_serial_private *spriv = usb_get_serial_data(serial); in pl2303_vendor_write() local
281 if (spriv->type == &pl2303_type_data[TYPE_HXN]) in pl2303_vendor_write()
300 struct pl2303_serial_private *spriv = usb_get_serial_data(serial); in pl2303_update_reg() local
308 if (spriv->type == &pl2303_type_data[TYPE_HXN]) in pl2303_update_reg()
471 struct pl2303_serial_private *spriv; in pl2303_startup() local
483 spriv = kzalloc(sizeof(*spriv), GFP_KERNEL); in pl2303_startup()
484 if (!spriv) in pl2303_startup()
487 spriv->type = &pl2303_type_data[type]; in pl2303_startup()
488 spriv->quirks = (unsigned long)usb_get_serial_data(serial); in pl2303_startup()
489 spriv->quirks |= spriv->type->quirks; in pl2303_startup()
491 usb_set_serial_data(serial, spriv); in pl2303_startup()
496 kfree(spriv); in pl2303_startup()
510 if (spriv->quirks & PL2303_QUIRK_LEGACY) in pl2303_startup()
523 struct pl2303_serial_private *spriv = usb_get_serial_data(serial); in pl2303_release() local
525 kfree(spriv); in pl2303_release()
692 struct pl2303_serial_private *spriv = usb_get_serial_data(serial); in pl2303_encode_baud_rate() local
701 if (spriv->type->max_baud_rate) in pl2303_encode_baud_rate()
702 baud = min_t(speed_t, baud, spriv->type->max_baud_rate); in pl2303_encode_baud_rate()
707 if (spriv->type->no_divisors) in pl2303_encode_baud_rate()
714 else if (spriv->type->alt_divisors) in pl2303_encode_baud_rate()
796 struct pl2303_serial_private *spriv = usb_get_serial_data(serial); in pl2303_set_termios() local
904 if (spriv->quirks & PL2303_QUIRK_LEGACY) { in pl2303_set_termios()
906 } else if (spriv->type == &pl2303_type_data[TYPE_HXN]) { in pl2303_set_termios()
913 } else if (pl2303_enable_xonxoff(tty, spriv->type)) { in pl2303_set_termios()
914 if (spriv->type == &pl2303_type_data[TYPE_HXN]) { in pl2303_set_termios()
922 if (spriv->type == &pl2303_type_data[TYPE_HXN]) { in pl2303_set_termios()
961 struct pl2303_serial_private *spriv = usb_get_serial_data(serial); in pl2303_open() local
964 if (spriv->quirks & PL2303_QUIRK_LEGACY) { in pl2303_open()
969 if (spriv->type == &pl2303_type_data[TYPE_HXN]) { in pl2303_open()
1096 struct pl2303_serial_private *spriv = usb_get_serial_data(serial); in pl2303_update_line_status() local
1104 if (spriv->quirks & PL2303_QUIRK_UART_STATE_IDX0) in pl2303_update_line_status()