Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
generic.c File Reference
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/slab.h>
#include <linux/sysrq.h>
#include <linux/tty.h>
#include <linux/tty_flip.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/usb.h>
#include <linux/usb/serial.h>
#include <linux/uaccess.h>
#include <linux/kfifo.h>
#include <linux/serial.h>

Go to the source code of this file.

Functions

int usb_serial_generic_register (void)
 
void usb_serial_generic_deregister (void)
 
int usb_serial_generic_open (struct tty_struct *tty, struct usb_serial_port *port)
 
 EXPORT_SYMBOL_GPL (usb_serial_generic_open)
 
void usb_serial_generic_close (struct usb_serial_port *port)
 
 EXPORT_SYMBOL_GPL (usb_serial_generic_close)
 
int usb_serial_generic_prepare_write_buffer (struct usb_serial_port *port, void *dest, size_t size)
 
int usb_serial_generic_write (struct tty_struct *tty, struct usb_serial_port *port, const unsigned char *buf, int count)
 
 EXPORT_SYMBOL_GPL (usb_serial_generic_write)
 
int usb_serial_generic_write_room (struct tty_struct *tty)
 
int usb_serial_generic_chars_in_buffer (struct tty_struct *tty)
 
int usb_serial_generic_submit_read_urbs (struct usb_serial_port *port, gfp_t mem_flags)
 
 EXPORT_SYMBOL_GPL (usb_serial_generic_submit_read_urbs)
 
void usb_serial_generic_process_read_urb (struct urb *urb)
 
 EXPORT_SYMBOL_GPL (usb_serial_generic_process_read_urb)
 
void usb_serial_generic_read_bulk_callback (struct urb *urb)
 
 EXPORT_SYMBOL_GPL (usb_serial_generic_read_bulk_callback)
 
void usb_serial_generic_write_bulk_callback (struct urb *urb)
 
 EXPORT_SYMBOL_GPL (usb_serial_generic_write_bulk_callback)
 
void usb_serial_generic_throttle (struct tty_struct *tty)
 
 EXPORT_SYMBOL_GPL (usb_serial_generic_throttle)
 
void usb_serial_generic_unthrottle (struct tty_struct *tty)
 
 EXPORT_SYMBOL_GPL (usb_serial_generic_unthrottle)
 
int usb_serial_handle_sysrq_char (struct usb_serial_port *port, unsigned int ch)
 
 EXPORT_SYMBOL_GPL (usb_serial_handle_sysrq_char)
 
int usb_serial_handle_break (struct usb_serial_port *port)
 
 EXPORT_SYMBOL_GPL (usb_serial_handle_break)
 
void usb_serial_handle_dcd_change (struct usb_serial_port *usb_port, struct tty_struct *tty, unsigned int status)
 
 EXPORT_SYMBOL_GPL (usb_serial_handle_dcd_change)
 
int usb_serial_generic_resume (struct usb_serial *serial)
 
 EXPORT_SYMBOL_GPL (usb_serial_generic_resume)
 
void usb_serial_generic_disconnect (struct usb_serial *serial)
 
 EXPORT_SYMBOL_GPL (usb_serial_generic_disconnect)
 
void usb_serial_generic_release (struct usb_serial *serial)
 

Function Documentation

EXPORT_SYMBOL_GPL ( usb_serial_generic_open  )
EXPORT_SYMBOL_GPL ( usb_serial_generic_close  )
EXPORT_SYMBOL_GPL ( usb_serial_generic_write  )
EXPORT_SYMBOL_GPL ( usb_serial_generic_submit_read_urbs  )
EXPORT_SYMBOL_GPL ( usb_serial_generic_process_read_urb  )
EXPORT_SYMBOL_GPL ( usb_serial_generic_read_bulk_callback  )
EXPORT_SYMBOL_GPL ( usb_serial_generic_write_bulk_callback  )
EXPORT_SYMBOL_GPL ( usb_serial_generic_throttle  )
EXPORT_SYMBOL_GPL ( usb_serial_generic_unthrottle  )
EXPORT_SYMBOL_GPL ( usb_serial_handle_sysrq_char  )
EXPORT_SYMBOL_GPL ( usb_serial_handle_break  )
EXPORT_SYMBOL_GPL ( usb_serial_handle_dcd_change  )
EXPORT_SYMBOL_GPL ( usb_serial_generic_resume  )
EXPORT_SYMBOL_GPL ( usb_serial_generic_disconnect  )
int usb_serial_generic_chars_in_buffer ( struct tty_struct tty)

Definition at line 249 of file generic.c.

void usb_serial_generic_close ( struct usb_serial_port port)

Definition at line 128 of file generic.c.

void usb_serial_generic_deregister ( void  )

Definition at line 78 of file generic.c.

void usb_serial_generic_disconnect ( struct usb_serial serial)

Definition at line 519 of file generic.c.

int usb_serial_generic_open ( struct tty_struct tty,
struct usb_serial_port port 
)

Definition at line 86 of file generic.c.

int usb_serial_generic_prepare_write_buffer ( struct usb_serial_port port,
void dest,
size_t  size 
)

Definition at line 134 of file generic.c.

void usb_serial_generic_process_read_urb ( struct urb urb)

Definition at line 312 of file generic.c.

void usb_serial_generic_read_bulk_callback ( struct urb urb)

Definition at line 342 of file generic.c.

int usb_serial_generic_register ( void  )

Definition at line 61 of file generic.c.

void usb_serial_generic_release ( struct usb_serial serial)

Definition at line 529 of file generic.c.

int usb_serial_generic_resume ( struct usb_serial serial)

Definition at line 491 of file generic.c.

int usb_serial_generic_submit_read_urbs ( struct usb_serial_port port,
gfp_t  mem_flags 
)

Definition at line 291 of file generic.c.

void usb_serial_generic_throttle ( struct tty_struct tty)

Definition at line 409 of file generic.c.

void usb_serial_generic_unthrottle ( struct tty_struct tty)

Definition at line 422 of file generic.c.

int usb_serial_generic_write ( struct tty_struct tty,
struct usb_serial_port port,
const unsigned char buf,
int  count 
)

usb_serial_generic_write - generic write function for serial USB devices : Pointer to &struct tty_struct for the device : Pointer to the &usb_serial_port structure for the device : Pointer to the data to write : Number of bytes to write

Returns the number of characters actually written, which may be anything from zero to . If an error occurs, it returns the negative errno value.

Definition at line 211 of file generic.c.

void usb_serial_generic_write_bulk_callback ( struct urb urb)

Definition at line 378 of file generic.c.

int usb_serial_generic_write_room ( struct tty_struct tty)

Definition at line 232 of file generic.c.

int usb_serial_handle_break ( struct usb_serial_port port)

Definition at line 459 of file generic.c.

void usb_serial_handle_dcd_change ( struct usb_serial_port usb_port,
struct tty_struct tty,
unsigned int  status 
)

usb_serial_handle_dcd_change - handle a change of carrier detect state : usb_serial_port structure for the open port : tty_struct structure for the port : new carrier detect status, nonzero if active

Definition at line 476 of file generic.c.

int usb_serial_handle_sysrq_char ( struct usb_serial_port port,
unsigned int  ch 
)

Definition at line 452 of file generic.c.