Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
power.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <net/mac80211.h>
#include "iwl-io.h"
#include "iwl-debug.h"
#include "iwl-trans.h"
#include "iwl-modparams.h"
#include "dev.h"
#include "agn.h"
#include "commands.h"
#include "power.h"

Go to the source code of this file.

Data Structures

struct  iwl_power_vec_entry
 

Macros

#define IWL_DTIM_RANGE_0_MAX   2
 
#define IWL_DTIM_RANGE_1_MAX   10
 
#define NOSLP   cpu_to_le16(0), 0, 0
 
#define SLP   IWL_POWER_DRIVER_ALLOW_SLEEP_MSK, 0, 0
 
#define ASLP
 
#define ASLP_TOUT(T)   cpu_to_le32(T)
 
#define TU_TO_USEC   1024
 
#define SLP_TOUT(T)   cpu_to_le32((T) * TU_TO_USEC)
 
#define SLP_VEC(X0, X1, X2, X3, X4)
 

Functions

int iwl_power_set_mode (struct iwl_priv *priv, struct iwl_powertable_cmd *cmd, bool force)
 
int iwl_power_update_mode (struct iwl_priv *priv, bool force)
 
void iwl_power_initialize (struct iwl_priv *priv)
 

Macro Definition Documentation

#define ASLP
Value:
IWL_POWER_POWER_MANAGEMENT_ENA_MSK | \
IWL_POWER_ADVANCE_PM_ENA_MSK)

Definition at line 67 of file power.c.

#define ASLP_TOUT (   T)    cpu_to_le32(T)

Definition at line 70 of file power.c.

#define IWL_DTIM_RANGE_0_MAX   2

Definition at line 62 of file power.c.

#define IWL_DTIM_RANGE_1_MAX   10

Definition at line 63 of file power.c.

#define NOSLP   cpu_to_le16(0), 0, 0

Definition at line 65 of file power.c.

#define SLP   IWL_POWER_DRIVER_ALLOW_SLEEP_MSK, 0, 0

Definition at line 66 of file power.c.

#define SLP_TOUT (   T)    cpu_to_le32((T) * TU_TO_USEC)

Definition at line 72 of file power.c.

#define SLP_VEC (   X0,
  X1,
  X2,
  X3,
  X4 
)
Value:
{cpu_to_le32(X0), \
cpu_to_le32(X1), \
cpu_to_le32(X2), \
cpu_to_le32(X3), \
cpu_to_le32(X4)}

Definition at line 73 of file power.c.

#define TU_TO_USEC   1024

Definition at line 71 of file power.c.

Function Documentation

void iwl_power_initialize ( struct iwl_priv priv)

Definition at line 379 of file power.c.

int iwl_power_set_mode ( struct iwl_priv priv,
struct iwl_powertable_cmd cmd,
bool  force 
)

Definition at line 322 of file power.c.

int iwl_power_update_mode ( struct iwl_priv priv,
bool  force 
)

Definition at line 370 of file power.c.