Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
rtl871x_xmit.h File Reference
#include "osdep_service.h"
#include "drv_types.h"
#include "xmit_osdep.h"
#include "rtl8712_xmit.h"

Go to the source code of this file.

Data Structures

struct  hw_xmit
 
struct  pkt_attrib
 
struct  xmit_buf
 
struct  xmit_frame
 
struct  tx_servq
 
struct  sta_xmit_priv
 
struct  hw_txqueue
 
struct  xmit_priv
 

Macros

#define MAX_XMITBUF_SZ   (2048)
 
#define NR_XMITBUFF   (4)
 
#define XMITBUF_ALIGN_SZ   512
 
#define TX_GUARD_BAND   5
 
#define MAX_NUMBLKS   (1)
 
#define WEP_IV(pattrib_iv, txpn, keyidx)
 
#define TKIP_IV(pattrib_iv, txpn, keyidx)
 
#define AES_IV(pattrib_iv, txpn, keyidx)
 
#define WLANHDR_OFFSET   64
 
#define DATA_FRAMETAG   0x01
 
#define L2_FRAMETAG   0x02
 
#define MGNT_FRAMETAG   0x03
 
#define AMSDU_FRAMETAG   0x04
 
#define EII_FRAMETAG   0x05
 
#define IEEE8023_FRAMETAG   0x06
 
#define MP_FRAMETAG   0x07
 
#define TXAGG_FRAMETAG   0x08
 

Functions

int r8712_free_xmitbuf (struct xmit_priv *pxmitpriv, struct xmit_buf *pxmitbuf)
 
struct xmit_bufr8712_alloc_xmitbuf (struct xmit_priv *pxmitpriv)
 
void r8712_update_protection (struct _adapter *padapter, u8 *ie, uint ie_len)
 
struct xmit_framer8712_alloc_xmitframe (struct xmit_priv *pxmitpriv)
 
void r8712_free_xmitframe (struct xmit_priv *pxmitpriv, struct xmit_frame *pxmitframe)
 
void r8712_free_xmitframe_queue (struct xmit_priv *pxmitpriv, struct __queue *pframequeue)
 
sint r8712_xmit_classifier (struct _adapter *padapter, struct xmit_frame *pxmitframe)
 
sint r8712_xmitframe_coalesce (struct _adapter *padapter, _pkt *pkt, struct xmit_frame *pxmitframe)
 
sint _r8712_init_hw_txqueue (struct hw_txqueue *phw_txqueue, u8 ac_tag)
 
void _r8712_init_sta_xmit_priv (struct sta_xmit_priv *psta_xmitpriv)
 
sint r8712_update_attrib (struct _adapter *padapter, _pkt *pkt, struct pkt_attrib *pattrib)
 
int r8712_txframes_sta_ac_pending (struct _adapter *padapter, struct pkt_attrib *pattrib)
 
sint _r8712_init_xmit_priv (struct xmit_priv *pxmitpriv, struct _adapter *padapter)
 
void _free_xmit_priv (struct xmit_priv *pxmitpriv)
 
void r8712_free_xmitframe_ex (struct xmit_priv *pxmitpriv, struct xmit_frame *pxmitframe)
 
int r8712_pre_xmit (struct _adapter *padapter, struct xmit_frame *pxmitframe)
 
int r8712_xmit_enqueue (struct _adapter *padapter, struct xmit_frame *pxmitframe)
 
int r8712_xmit_direct (struct _adapter *padapter, struct xmit_frame *pxmitframe)
 
void r8712_xmit_bh (void *priv)
 
void xmitframe_xmitbuf_attach (struct xmit_frame *pxmitframe, struct xmit_buf *pxmitbuf)
 

Macro Definition Documentation

#define AES_IV (   pattrib_iv,
  txpn,
  keyidx 
)
Value:
do { \
pattrib_iv[0] = txpn._byte_.TSC0;\
pattrib_iv[1] = txpn._byte_.TSC1;\
pattrib_iv[2] = 0;\
pattrib_iv[3] = BIT(5) | ((keyidx & 0x3)<<6);\
pattrib_iv[4] = txpn._byte_.TSC2;\
pattrib_iv[5] = txpn._byte_.TSC3;\
pattrib_iv[6] = txpn._byte_.TSC4;\
pattrib_iv[7] = txpn._byte_.TSC5;\
txpn.val = txpn.val == 0xffffffffffffULL ? 0 : \
(txpn.val+1);\
} while (0)

Definition at line 76 of file rtl871x_xmit.h.

#define AMSDU_FRAMETAG   0x04

Definition at line 138 of file rtl871x_xmit.h.

#define DATA_FRAMETAG   0x01

Definition at line 135 of file rtl871x_xmit.h.

#define EII_FRAMETAG   0x05

Definition at line 139 of file rtl871x_xmit.h.

#define IEEE8023_FRAMETAG   0x06

Definition at line 140 of file rtl871x_xmit.h.

#define L2_FRAMETAG   0x02

Definition at line 136 of file rtl871x_xmit.h.

#define MAX_NUMBLKS   (1)

Definition at line 48 of file rtl871x_xmit.h.

#define MAX_XMITBUF_SZ   (2048)

Definition at line 36 of file rtl871x_xmit.h.

#define MGNT_FRAMETAG   0x03

Definition at line 137 of file rtl871x_xmit.h.

#define MP_FRAMETAG   0x07

Definition at line 141 of file rtl871x_xmit.h.

#define NR_XMITBUFF   (4)

Definition at line 39 of file rtl871x_xmit.h.

#define TKIP_IV (   pattrib_iv,
  txpn,
  keyidx 
)
Value:
do { \
pattrib_iv[0] = txpn._byte_.TSC1;\
pattrib_iv[1] = (txpn._byte_.TSC1 | 0x20) & 0x7f;\
pattrib_iv[2] = txpn._byte_.TSC0;\
pattrib_iv[3] = BIT(5) | ((keyidx & 0x3)<<6);\
pattrib_iv[4] = txpn._byte_.TSC2;\
pattrib_iv[5] = txpn._byte_.TSC3;\
pattrib_iv[6] = txpn._byte_.TSC4;\
pattrib_iv[7] = txpn._byte_.TSC5;\
txpn.val = txpn.val == 0xffffffffffffULL ? 0 : \
(txpn.val+1);\
} while (0)

Definition at line 62 of file rtl871x_xmit.h.

#define TX_GUARD_BAND   5

Definition at line 47 of file rtl871x_xmit.h.

#define TXAGG_FRAMETAG   0x08

Definition at line 142 of file rtl871x_xmit.h.

#define WEP_IV (   pattrib_iv,
  txpn,
  keyidx 
)
Value:
do { \
pattrib_iv[0] = txpn._byte_.TSC0;\
pattrib_iv[1] = txpn._byte_.TSC1;\
pattrib_iv[2] = txpn._byte_.TSC2;\
pattrib_iv[3] = ((keyidx & 0x3)<<6);\
txpn.val = (txpn.val == 0xffffff) ? 0 : (txpn.val+1);\
} while (0)

Definition at line 51 of file rtl871x_xmit.h.

#define WLANHDR_OFFSET   64

Definition at line 134 of file rtl871x_xmit.h.

#define XMITBUF_ALIGN_SZ   512

Definition at line 46 of file rtl871x_xmit.h.

Function Documentation

void _free_xmit_priv ( struct xmit_priv pxmitpriv)

Definition at line 160 of file rtl871x_xmit.c.

sint _r8712_init_hw_txqueue ( struct hw_txqueue phw_txqueue,
u8  ac_tag 
)

Definition at line 41 of file rtl8712_xmit.c.

void _r8712_init_sta_xmit_priv ( struct sta_xmit_priv psta_xmitpriv)

Definition at line 51 of file rtl871x_xmit.c.

sint _r8712_init_xmit_priv ( struct xmit_priv pxmitpriv,
struct _adapter padapter 
)

Definition at line 64 of file rtl871x_xmit.c.

struct xmit_buf* r8712_alloc_xmitbuf ( struct xmit_priv pxmitpriv)
read

Definition at line 739 of file rtl871x_xmit.c.

struct xmit_frame* r8712_alloc_xmitframe ( struct xmit_priv pxmitpriv)
read

Definition at line 788 of file rtl871x_xmit.c.

int r8712_free_xmitbuf ( struct xmit_priv pxmitpriv,
struct xmit_buf pxmitbuf 
)

Definition at line 761 of file rtl871x_xmit.c.

void r8712_free_xmitframe ( struct xmit_priv pxmitpriv,
struct xmit_frame pxmitframe 
)

Definition at line 820 of file rtl871x_xmit.c.

void r8712_free_xmitframe_ex ( struct xmit_priv pxmitpriv,
struct xmit_frame pxmitframe 
)

Definition at line 843 of file rtl871x_xmit.c.

void r8712_free_xmitframe_queue ( struct xmit_priv pxmitpriv,
struct __queue pframequeue 
)

Definition at line 852 of file rtl871x_xmit.c.

int r8712_pre_xmit ( struct _adapter padapter,
struct xmit_frame pxmitframe 
)

Definition at line 1034 of file rtl871x_xmit.c.

int r8712_txframes_sta_ac_pending ( struct _adapter padapter,
struct pkt_attrib pattrib 
)

Definition at line 64 of file rtl8712_xmit.c.

sint r8712_update_attrib ( struct _adapter padapter,
_pkt pkt,
struct pkt_attrib pattrib 
)

Definition at line 184 of file rtl871x_xmit.c.

void r8712_update_protection ( struct _adapter padapter,
u8 ie,
uint  ie_len 
)

Definition at line 706 of file rtl871x_xmit.c.

void r8712_xmit_bh ( void priv)

Definition at line 331 of file usb_ops_linux.c.

sint r8712_xmit_classifier ( struct _adapter padapter,
struct xmit_frame pxmitframe 
)

Definition at line 912 of file rtl871x_xmit.c.

int r8712_xmit_direct ( struct _adapter padapter,
struct xmit_frame pxmitframe 
)

Definition at line 741 of file rtl8712_xmit.c.

int r8712_xmit_enqueue ( struct _adapter padapter,
struct xmit_frame pxmitframe 
)

Definition at line 752 of file rtl8712_xmit.c.

sint r8712_xmitframe_coalesce ( struct _adapter padapter,
_pkt pkt,
struct xmit_frame pxmitframe 
)

Definition at line 583 of file rtl871x_xmit.c.

void xmitframe_xmitbuf_attach ( struct xmit_frame pxmitframe,
struct xmit_buf pxmitbuf 
)

Definition at line 1014 of file rtl871x_xmit.c.