Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
qib_sdma.c File Reference
#include <linux/spinlock.h>
#include <linux/netdevice.h>
#include <linux/moduleparam.h>
#include "qib.h"
#include "qib_common.h"

Go to the source code of this file.

Macros

#define SDMA_DESC_LAST   (1ULL << 11)
 
#define SDMA_DESC_FIRST   (1ULL << 12)
 
#define SDMA_DESC_DMA_HEAD   (1ULL << 13)
 
#define SDMA_DESC_USE_LARGE_BUF   (1ULL << 14)
 
#define SDMA_DESC_INTR   (1ULL << 15)
 
#define SDMA_DESC_COUNT_LSB   16
 
#define SDMA_DESC_GEN_LSB   30
 

Functions

 module_param_named (sdma_descq_cnt, sdma_descq_cnt, ushort, S_IRUGO)
 
 MODULE_PARM_DESC (sdma_descq_cnt,"Number of SDMA descq entries")
 
int qib_sdma_make_progress (struct qib_pportdata *ppd)
 
void qib_sdma_intr (struct qib_pportdata *ppd)
 
void __qib_sdma_intr (struct qib_pportdata *ppd)
 
int qib_setup_sdma (struct qib_pportdata *ppd)
 
void qib_teardown_sdma (struct qib_pportdata *ppd)
 
int qib_sdma_running (struct qib_pportdata *ppd)
 
int qib_sdma_verbs_send (struct qib_pportdata *ppd, struct qib_sge_state *ss, u32 dwords, struct qib_verbs_txreq *tx)
 
void qib_sdma_process_event (struct qib_pportdata *ppd, enum qib_sdma_events event)
 
void __qib_sdma_process_event (struct qib_pportdata *ppd, enum qib_sdma_events event)
 

Variables

charqib_sdma_state_names []
 
charqib_sdma_event_names []
 

Macro Definition Documentation

#define SDMA_DESC_COUNT_LSB   16

Definition at line 54 of file qib_sdma.c.

#define SDMA_DESC_DMA_HEAD   (1ULL << 13)

Definition at line 51 of file qib_sdma.c.

#define SDMA_DESC_FIRST   (1ULL << 12)

Definition at line 50 of file qib_sdma.c.

#define SDMA_DESC_GEN_LSB   30

Definition at line 55 of file qib_sdma.c.

#define SDMA_DESC_INTR   (1ULL << 15)

Definition at line 53 of file qib_sdma.c.

#define SDMA_DESC_LAST   (1ULL << 11)

Definition at line 49 of file qib_sdma.c.

#define SDMA_DESC_USE_LARGE_BUF   (1ULL << 14)

Definition at line 52 of file qib_sdma.c.

Function Documentation

void __qib_sdma_intr ( struct qib_pportdata ppd)

Definition at line 424 of file qib_sdma.c.

void __qib_sdma_process_event ( struct qib_pportdata ppd,
enum qib_sdma_events  event 
)

Definition at line 726 of file qib_sdma.c.

module_param_named ( sdma_descq_cnt  ,
sdma_descq_cnt  ,
ushort  ,
S_IRUGO   
)
MODULE_PARM_DESC ( sdma_descq_cnt  ,
"Number of SDMA descq entries  
)
void qib_sdma_intr ( struct qib_pportdata ppd)

Definition at line 413 of file qib_sdma.c.

int qib_sdma_make_progress ( struct qib_pportdata ppd)

Definition at line 348 of file qib_sdma.c.

void qib_sdma_process_event ( struct qib_pportdata ppd,
enum qib_sdma_events  event 
)

Definition at line 711 of file qib_sdma.c.

int qib_sdma_running ( struct qib_pportdata ppd)

Definition at line 488 of file qib_sdma.c.

int qib_sdma_verbs_send ( struct qib_pportdata ppd,
struct qib_sge_state ss,
u32  dwords,
struct qib_verbs_txreq tx 
)

Definition at line 527 of file qib_sdma.c.

int qib_setup_sdma ( struct qib_pportdata ppd)

Definition at line 430 of file qib_sdma.c.

void qib_teardown_sdma ( struct qib_pportdata ppd)

Definition at line 474 of file qib_sdma.c.

Variable Documentation

char* qib_sdma_event_names[]
Initial value:
= {
[qib_sdma_event_e00_go_hw_down] = "e00_GoHwDown",
[qib_sdma_event_e10_go_hw_start] = "e10_GoHwStart",
[qib_sdma_event_e20_hw_started] = "e20_HwStarted",
[qib_sdma_event_e30_go_running] = "e30_GoRunning",
[qib_sdma_event_e40_sw_cleaned] = "e40_SwCleaned",
[qib_sdma_event_e50_hw_cleaned] = "e50_HwCleaned",
[qib_sdma_event_e60_hw_halted] = "e60_HwHalted",
[qib_sdma_event_e70_go_idle] = "e70_GoIdle",
[qib_sdma_event_e7220_err_halted] = "e7220_ErrHalted",
[qib_sdma_event_e7322_err_halted] = "e7322_ErrHalted",
[qib_sdma_event_e90_timer_tick] = "e90_TimerTick",
}

Definition at line 67 of file qib_sdma.c.

char* qib_sdma_state_names[]
Initial value:
= {
[qib_sdma_state_s00_hw_down] = "s00_HwDown",
[qib_sdma_state_s10_hw_start_up_wait] = "s10_HwStartUpWait",
[qib_sdma_state_s20_idle] = "s20_Idle",
[qib_sdma_state_s30_sw_clean_up_wait] = "s30_SwCleanUpWait",
[qib_sdma_state_s40_hw_clean_up_wait] = "s40_HwCleanUpWait",
[qib_sdma_state_s50_hw_halt_wait] = "s50_HwHaltWait",
[qib_sdma_state_s99_running] = "s99_Running",
}

Definition at line 57 of file qib_sdma.c.