Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Typedefs | Functions
netdev.c File Reference
#include <linux/types.h>
#include <linux/etherdevice.h>
#include <linux/mutex.h>
#include <linux/semaphore.h>
#include <linux/version.h>
#include <linux/vmalloc.h>
#include "csr_wifi_hip_unifi.h"
#include "csr_wifi_hip_conversions.h"
#include "unifi_priv.h"
#include <net/pkt_sched.h>

Go to the source code of this file.

Macros

#define UF_VLAN_LLC_HEADER_SIZE   18
 
#define SN_TO_INDEX(__ba_session, __sn)   (((__sn - __ba_session->start_sn) & 0xFFF) % __ba_session->wind_size)
 
#define ADVANCE_EXPECTED_SN(__ba_session)
 
#define FREE_BUFFER_SLOT(__ba_session, __index)
 

Typedefs

typedef int(* tx_signal_handler )(unifi_priv_t *priv, struct sk_buff *skb, const struct ethhdr *ehdr, CSR_PRIORITY priority)
 

Functions

unifi_priv_tuf_alloc_netdevice (CsrSdioFunction *sdio_dev, int bus_id)
 
u8 uf_alloc_netdevice_for_other_interfaces (unifi_priv_t *priv, u16 interfaceTag)
 
int uf_free_netdevice (unifi_priv_t *priv)
 
CSR_PRIORITY get_packet_priority (unifi_priv_t *priv, struct sk_buff *skb, const struct ethhdr *ehdr, netInterface_priv_t *interfacePriv)
 
int skb_add_llc_snap (struct net_device *dev, struct sk_buff *skb, int proto)
 
int skb_80211_to_ether (unifi_priv_t *priv, struct sk_buff *skb, const unsigned char *daddr, const unsigned char *saddr, const CSR_SIGNAL *signal, bulk_data_param_t *bulkdata)
 
int prepare_and_add_macheader (unifi_priv_t *priv, struct sk_buff *skb, struct sk_buff *newSkb, CSR_PRIORITY priority, bulk_data_param_t *bulkdata, u16 interfaceTag, const u8 *daddr, const u8 *saddr, u8 protection)
 
void unifi_pause_xmit (void *ospriv, unifi_TrafficQueue queue)
 
void unifi_restart_xmit (void *ospriv, unifi_TrafficQueue queue)
 
void uf_process_rx_pending_queue (unifi_priv_t *priv, int queue, CsrWifiMacAddress source_address, int indicate, u16 interfaceTag)
 
void uf_resume_data_plane (unifi_priv_t *priv, int queue, CsrWifiMacAddress peer_address, u16 interfaceTag)
 
void uf_free_pending_rx_packets (unifi_priv_t *priv, int queue, CsrWifiMacAddress peer_address, u16 interfaceTag)
 
void uf_net_get_name (struct net_device *dev, char *name, int len)
 
void scroll_ba_window (unifi_priv_t *priv, netInterface_priv_t *interfacePriv, ba_session_rx_struct *ba_session, u16 sn)
 

Macro Definition Documentation

#define ADVANCE_EXPECTED_SN (   __ba_session)
Value:
{ \
__ba_session->expected_sn++; \
__ba_session->expected_sn &= 0xFFF; \
}

Definition at line 3072 of file netdev.c.

#define FREE_BUFFER_SLOT (   __ba_session,
  __index 
)
Value:
{ \
__ba_session->occupied_slots--; \
__ba_session->buffer[__index].active = FALSE; \
ADVANCE_EXPECTED_SN(__ba_session); \
}

Definition at line 3078 of file netdev.c.

#define SN_TO_INDEX (   __ba_session,
  __sn 
)    (((__sn - __ba_session->start_sn) & 0xFFF) % __ba_session->wind_size)

Definition at line 3069 of file netdev.c.

#define UF_VLAN_LLC_HEADER_SIZE   18

Typedef Documentation

typedef int(* tx_signal_handler)(unifi_priv_t *priv, struct sk_buff *skb, const struct ethhdr *ehdr, CSR_PRIORITY priority)

Definition at line 81 of file netdev.c.

Function Documentation

CSR_PRIORITY get_packet_priority ( unifi_priv_t priv,
struct sk_buff skb,
const struct ethhdr ehdr,
netInterface_priv_t interfacePriv 
)

Definition at line 746 of file netdev.c.

int prepare_and_add_macheader ( unifi_priv_t priv,
struct sk_buff skb,
struct sk_buff newSkb,
CSR_PRIORITY  priority,
bulk_data_param_t bulkdata,
u16  interfaceTag,
const u8 daddr,
const u8 saddr,
u8  protection 
)

Definition at line 1201 of file netdev.c.

void scroll_ba_window ( unifi_priv_t priv,
netInterface_priv_t interfacePriv,
ba_session_rx_struct ba_session,
u16  sn 
)

Definition at line 3136 of file netdev.c.

int skb_80211_to_ether ( unifi_priv_t priv,
struct sk_buff skb,
const unsigned char daddr,
const unsigned char saddr,
const CSR_SIGNAL signal,
bulk_data_param_t bulkdata 
)

Definition at line 1017 of file netdev.c.

int skb_add_llc_snap ( struct net_device dev,
struct sk_buff skb,
int  proto 
)

Definition at line 844 of file netdev.c.

unifi_priv_t* uf_alloc_netdevice ( CsrSdioFunction sdio_dev,
int  bus_id 
)

Definition at line 182 of file netdev.c.

u8 uf_alloc_netdevice_for_other_interfaces ( unifi_priv_t priv,
u16  interfaceTag 
)

Definition at line 412 of file netdev.c.

int uf_free_netdevice ( unifi_priv_t priv)

Definition at line 476 of file netdev.c.

void uf_free_pending_rx_packets ( unifi_priv_t priv,
int  queue,
CsrWifiMacAddress  peer_address,
u16  interfaceTag 
)

Definition at line 2142 of file netdev.c.

void uf_net_get_name ( struct net_device dev,
char name,
int  len 
)

Definition at line 2926 of file netdev.c.

void uf_process_rx_pending_queue ( unifi_priv_t priv,
int  queue,
CsrWifiMacAddress  source_address,
int  indicate,
u16  interfaceTag 
)

Definition at line 2033 of file netdev.c.

void uf_resume_data_plane ( unifi_priv_t priv,
int  queue,
CsrWifiMacAddress  peer_address,
u16  interfaceTag 
)

Definition at line 2108 of file netdev.c.

void unifi_restart_xmit ( void ospriv,
unifi_TrafficQueue  queue 
)

Definition at line 1905 of file netdev.c.