Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
dma.c File Reference
#include "b43.h"
#include "dma.h"
#include "main.h"
#include "debugfs.h"
#include "xmit.h"
#include <linux/dma-mapping.h>
#include <linux/pci.h>
#include <linux/delay.h>
#include <linux/skbuff.h>
#include <linux/etherdevice.h>
#include <linux/slab.h>
#include <asm/div64.h>

Go to the source code of this file.

Macros

#define TX_SLOTS_PER_FRAME   2
 
#define divide(a, b)
 
#define modulo(a, b)
 
#define destroy_ring(dma, ring)
 

Functions

void b43_dma_free (struct b43_wldev *dev)
 
int b43_dma_init (struct b43_wldev *dev)
 
int b43_dma_tx (struct b43_wldev *dev, struct sk_buff *skb)
 
void b43_dma_handle_txstatus (struct b43_wldev *dev, const struct b43_txstatus *status)
 
void b43_dma_rx (struct b43_dmaring *ring)
 
void b43_dma_tx_suspend (struct b43_wldev *dev)
 
void b43_dma_tx_resume (struct b43_wldev *dev)
 
void b43_dma_direct_fifo_rx (struct b43_wldev *dev, unsigned int engine_index, bool enable)
 

Macro Definition Documentation

#define destroy_ring (   dma,
  ring 
)
Value:
do { \
b43_destroy_dmaring((dma)->ring, __stringify(ring)); \
(dma)->ring = NULL; \
} while (0)

Definition at line 1040 of file dma.c.

#define divide (   a,
  b 
)
Value:
({ \
typeof(a) __a = a; \
do_div(__a, b); \
__a; \
})

Definition at line 982 of file dma.c.

#define modulo (   a,
  b 
)
Value:
({ \
typeof(a) __a = a; \
do_div(__a, b); \
})

Definition at line 988 of file dma.c.

#define TX_SLOTS_PER_FRAME   2

Definition at line 48 of file dma.c.

Function Documentation

void b43_dma_direct_fifo_rx ( struct b43_wldev dev,
unsigned int  engine_index,
bool  enable 
)

Definition at line 1766 of file dma.c.

void b43_dma_free ( struct b43_wldev dev)

Definition at line 1045 of file dma.c.

void b43_dma_handle_txstatus ( struct b43_wldev dev,
const struct b43_txstatus status 
)

Definition at line 1481 of file dma.c.

int b43_dma_init ( struct b43_wldev dev)

Definition at line 1119 of file dma.c.

void b43_dma_rx ( struct b43_dmaring ring)

Definition at line 1692 of file dma.c.

int b43_dma_tx ( struct b43_wldev dev,
struct sk_buff skb 
)

Definition at line 1407 of file dma.c.

void b43_dma_tx_resume ( struct b43_wldev dev)

Definition at line 1734 of file dma.c.

void b43_dma_tx_suspend ( struct b43_wldev dev)

Definition at line 1724 of file dma.c.