Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
iwl-io.h File Reference
#include "iwl-devtrace.h"
#include "iwl-trans.h"

Go to the source code of this file.

Macros

#define iwl_read_targ_mem_bytes(trans, addr, buf, bufsize)
 

Functions

void iwl_set_bit (struct iwl_trans *trans, u32 reg, u32 mask)
 
void iwl_clear_bit (struct iwl_trans *trans, u32 reg, u32 mask)
 
void iwl_set_bits_mask (struct iwl_trans *trans, u32 reg, u32 mask, u32 value)
 
int iwl_poll_bit (struct iwl_trans *trans, u32 addr, u32 bits, u32 mask, int timeout)
 
int iwl_poll_direct_bit (struct iwl_trans *trans, u32 addr, u32 mask, int timeout)
 
int iwl_grab_nic_access_silent (struct iwl_trans *trans)
 
bool iwl_grab_nic_access (struct iwl_trans *trans)
 
void iwl_release_nic_access (struct iwl_trans *trans)
 
u32 iwl_read_direct32 (struct iwl_trans *trans, u32 reg)
 
void iwl_write_direct32 (struct iwl_trans *trans, u32 reg, u32 value)
 
u32 iwl_read_prph (struct iwl_trans *trans, u32 reg)
 
void iwl_write_prph (struct iwl_trans *trans, u32 addr, u32 val)
 
void iwl_set_bits_prph (struct iwl_trans *trans, u32 reg, u32 mask)
 
void iwl_set_bits_mask_prph (struct iwl_trans *trans, u32 reg, u32 bits, u32 mask)
 
void iwl_clear_bits_prph (struct iwl_trans *trans, u32 reg, u32 mask)
 
void _iwl_read_targ_mem_dwords (struct iwl_trans *trans, u32 addr, void *buf, int dwords)
 
int _iwl_write_targ_mem_dwords (struct iwl_trans *trans, u32 addr, void *buf, int dwords)
 
u32 iwl_read_targ_mem (struct iwl_trans *trans, u32 addr)
 
int iwl_write_targ_mem (struct iwl_trans *trans, u32 addr, u32 val)
 

Macro Definition Documentation

#define iwl_read_targ_mem_bytes (   trans,
  addr,
  buf,
  bufsize 
)
Value:
do { \
BUILD_BUG_ON((bufsize) % sizeof(u32)); \
_iwl_read_targ_mem_dwords(trans, addr, buf, \
(bufsize) / sizeof(u32));\
} while (0)

Definition at line 82 of file iwl-io.h.

Function Documentation

void _iwl_read_targ_mem_dwords ( struct iwl_trans trans,
u32  addr,
void buf,
int  dwords 
)

Definition at line 301 of file iwl-io.c.

int _iwl_write_targ_mem_dwords ( struct iwl_trans trans,
u32  addr,
void buf,
int  dwords 
)

Definition at line 329 of file iwl-io.c.

void iwl_clear_bit ( struct iwl_trans trans,
u32  reg,
u32  mask 
)

Definition at line 58 of file iwl-io.c.

void iwl_clear_bits_prph ( struct iwl_trans trans,
u32  reg,
u32  mask 
)

Definition at line 286 of file iwl-io.c.

bool iwl_grab_nic_access ( struct iwl_trans trans)

Definition at line 144 of file iwl-io.c.

int iwl_grab_nic_access_silent ( struct iwl_trans trans)

Definition at line 102 of file iwl-io.c.

int iwl_poll_bit ( struct iwl_trans trans,
u32  addr,
u32  bits,
u32  mask,
int  timeout 
)

Definition at line 86 of file iwl-io.c.

int iwl_poll_direct_bit ( struct iwl_trans trans,
u32  addr,
u32  mask,
int  timeout 
)

Definition at line 201 of file iwl-io.c.

u32 iwl_read_direct32 ( struct iwl_trans trans,
u32  reg 
)

Definition at line 173 of file iwl-io.c.

u32 iwl_read_prph ( struct iwl_trans trans,
u32  reg 
)

Definition at line 230 of file iwl-io.c.

u32 iwl_read_targ_mem ( struct iwl_trans trans,
u32  addr 
)

Definition at line 319 of file iwl-io.c.

void iwl_release_nic_access ( struct iwl_trans trans)

Definition at line 158 of file iwl-io.c.

void iwl_set_bit ( struct iwl_trans trans,
u32  reg,
u32  mask 
)

Definition at line 48 of file iwl-io.c.

void iwl_set_bits_mask ( struct iwl_trans trans,
u32  reg,
u32  mask,
u32  value 
)

Definition at line 68 of file iwl-io.c.

void iwl_set_bits_mask_prph ( struct iwl_trans trans,
u32  reg,
u32  bits,
u32  mask 
)

Definition at line 271 of file iwl-io.c.

void iwl_set_bits_prph ( struct iwl_trans trans,
u32  reg,
u32  mask 
)

Definition at line 257 of file iwl-io.c.

void iwl_write_direct32 ( struct iwl_trans trans,
u32  reg,
u32  value 
)

Definition at line 188 of file iwl-io.c.

void iwl_write_prph ( struct iwl_trans trans,
u32  addr,
u32  val 
)

Definition at line 244 of file iwl-io.c.

int iwl_write_targ_mem ( struct iwl_trans trans,
u32  addr,
u32  val 
)

Definition at line 350 of file iwl-io.c.