Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
dma.c File Reference
#include <linux/init.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/pci.h>
#include <linux/interrupt.h>
#include <linux/dmaengine.h>
#include <linux/delay.h>
#include <linux/dma-mapping.h>
#include <linux/workqueue.h>
#include <linux/prefetch.h>
#include <linux/i7300_idle.h>
#include "dma.h"
#include "registers.h"
#include "hw.h"
#include "../dmaengine.h"

Go to the source code of this file.

Macros

#define IOAT_TEST_SIZE   2000
 

Functions

 module_param (ioat_pending_level, int, 0644)
 
 MODULE_PARM_DESC (ioat_pending_level,"high-water mark for pushing ioat descriptors (default: 4)")
 
void ioat_init_channel (struct ioatdma_device *device, struct ioat_chan_common *chan, int idx)
 
 module_param (ioat_initial_desc_count, int, 0644)
 
 MODULE_PARM_DESC (ioat_initial_desc_count,"ioat1: initial descriptors per channel (default: 256)")
 
void ioat_dma_unmap (struct ioat_chan_common *chan, enum dma_ctrl_flags flags, size_t len, struct ioat_dma_descriptor *hw)
 
dma_addr_t ioat_get_current_completion (struct ioat_chan_common *chan)
 
bool ioat_cleanup_preamble (struct ioat_chan_common *chan, dma_addr_t *phys_complete)
 
enum dma_status ioat_dma_tx_status (struct dma_chan *c, dma_cookie_t cookie, struct dma_tx_state *txstate)
 
int __devinit ioat_dma_self_test (struct ioatdma_device *device)
 
 module_param_string (ioat_interrupt_style, ioat_interrupt_style, sizeof(ioat_interrupt_style), 0644)
 
 MODULE_PARM_DESC (ioat_interrupt_style,"set ioat interrupt style: msix (default), ""msix-single-vector, msi, intx)")
 
int __devinit ioat_probe (struct ioatdma_device *device)
 
int __devinit ioat_register (struct ioatdma_device *device)
 
void ioat_kobject_add (struct ioatdma_device *device, struct kobj_type *type)
 
void ioat_kobject_del (struct ioatdma_device *device)
 
int __devinit ioat1_dma_probe (struct ioatdma_device *device, int dca)
 
void __devexit ioat_dma_remove (struct ioatdma_device *device)
 

Variables

int ioat_pending_level = 4
 
struct ioat_sysfs_entry ioat_cap_attr = __ATTR_RO(cap)
 
struct ioat_sysfs_entry ioat_version_attr = __ATTR_RO(version)
 
struct sysfs_ops ioat_sysfs_ops
 

Macro Definition Documentation

#define IOAT_TEST_SIZE   2000

Definition at line 783 of file dma.c.

Function Documentation

int __devinit ioat1_dma_probe ( struct ioatdma_device device,
int  dca 
)

Definition at line 1186 of file dma.c.

bool ioat_cleanup_preamble ( struct ioat_chan_common chan,
dma_addr_t phys_complete 
)

Definition at line 571 of file dma.c.

void __devexit ioat_dma_remove ( struct ioatdma_device device)

Definition at line 1219 of file dma.c.

int __devinit ioat_dma_self_test ( struct ioatdma_device device)

ioat_dma_self_test - Perform a IOAT transaction to verify the HW works. : device to be tested

Definition at line 796 of file dma.c.

enum dma_status ioat_dma_tx_status ( struct dma_chan c,
dma_cookie_t  cookie,
struct dma_tx_state txstate 
)

Definition at line 728 of file dma.c.

void ioat_dma_unmap ( struct ioat_chan_common chan,
enum dma_ctrl_flags  flags,
size_t  len,
struct ioat_dma_descriptor hw 
)

Definition at line 534 of file dma.c.

dma_addr_t ioat_get_current_completion ( struct ioat_chan_common chan)

Definition at line 549 of file dma.c.

void ioat_init_channel ( struct ioatdma_device device,
struct ioat_chan_common chan,
int  idx 
)

Definition at line 102 of file dma.c.

void ioat_kobject_add ( struct ioatdma_device device,
struct kobj_type type 
)

Definition at line 1151 of file dma.c.

void ioat_kobject_del ( struct ioatdma_device device)

Definition at line 1171 of file dma.c.

int __devinit ioat_probe ( struct ioatdma_device device)

Definition at line 997 of file dma.c.

int __devinit ioat_register ( struct ioatdma_device device)

Definition at line 1052 of file dma.c.

module_param ( ioat_pending_level  ,
int  ,
0644   
)
module_param ( ioat_initial_desc_count  ,
int  ,
0644   
)
module_param_string ( ioat_interrupt_style  ,
ioat_interrupt_style  ,
sizeof(ioat_interrupt_style)  ,
0644   
)
MODULE_PARM_DESC ( ioat_pending_level  ,
"high-water mark for pushing ioat descriptors (default: 4)"   
)
MODULE_PARM_DESC ( ioat_initial_desc_count  ,
"ioat1: initial descriptors per channel (default: 256)"   
)
MODULE_PARM_DESC ( ioat_interrupt_style  ,
"set ioat interrupt style: msix   default,
""msix-single-  vector,
msi  ,
intx   
)

Variable Documentation

Definition at line 1108 of file dma.c.

int ioat_pending_level = 4

Definition at line 45 of file dma.c.

struct sysfs_ops ioat_sysfs_ops
Initial value:
= {
.show = ioat_attr_show,
}

Definition at line 1142 of file dma.c.

struct ioat_sysfs_entry ioat_version_attr = __ATTR_RO(version)

Definition at line 1118 of file dma.c.