Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
asyncdata.c File Reference
#include "gigaset.h"
#include <linux/crc-ccitt.h>
#include <linux/bitrev.h>
#include <linux/export.h>

Go to the source code of this file.

Functions

void gigaset_m10x_input (struct inbuf_t *inbuf)
 
 EXPORT_SYMBOL_GPL (gigaset_m10x_input)
 
int gigaset_m10x_send_skb (struct bc_state *bcs, struct sk_buff *skb)
 
 EXPORT_SYMBOL_GPL (gigaset_m10x_send_skb)
 

Function Documentation

EXPORT_SYMBOL_GPL ( gigaset_m10x_input  )
EXPORT_SYMBOL_GPL ( gigaset_m10x_send_skb  )
void gigaset_m10x_input ( struct inbuf_t inbuf)

gigaset_m10x_input() - process a block of data received from the device : received data and device descriptor structure.

Called by hardware module {ser,usb}_gigaset with a block of received bytes. Separates the bytes received over the serial data channel into user data and command replies (locked/unlocked) according to the current state of the interface.

Definition at line 407 of file asyncdata.c.

int gigaset_m10x_send_skb ( struct bc_state bcs,
struct sk_buff skb 
)

gigaset_m10x_send_skb() - queue an skb for sending : B channel descriptor structure. : data to send.

Called by LL to encode and queue an skb for sending, and start transmission if necessary. Once the payload data has been transmitted completely, gigaset_skb_sent() will be called with the skb's link layer header preserved.

Return value: number of bytes accepted for sending (skb->len) if ok, error code < 0 (eg. -ENOMEM) on error

Definition at line 585 of file asyncdata.c.