Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Typedefs | Functions | Variables
main.c File Reference
#include <linux/device.h>
#include <linux/kallsyms.h>
#include <linux/export.h>
#include <linux/mutex.h>
#include <linux/pm.h>
#include <linux/pm_runtime.h>
#include <linux/resume-trace.h>
#include <linux/interrupt.h>
#include <linux/sched.h>
#include <linux/async.h>
#include <linux/suspend.h>
#include <linux/cpuidle.h>
#include "../base.h"
#include "power.h"

Go to the source code of this file.

Typedefs

typedef int(* pm_callback_t )(struct device *)
 

Functions

 LIST_HEAD (dpm_list)
 
void device_pm_sleep_init (struct device *dev)
 
void device_pm_lock (void)
 
void device_pm_unlock (void)
 
void device_pm_add (struct device *dev)
 
void device_pm_remove (struct device *dev)
 
void device_pm_move_before (struct device *deva, struct device *devb)
 
void device_pm_move_after (struct device *deva, struct device *devb)
 
void device_pm_move_last (struct device *dev)
 
void dpm_resume_start (pm_message_t state)
 
 EXPORT_SYMBOL_GPL (dpm_resume_start)
 
void dpm_resume (pm_message_t state)
 
void dpm_complete (pm_message_t state)
 
void dpm_resume_end (pm_message_t state)
 
 EXPORT_SYMBOL_GPL (dpm_resume_end)
 
int dpm_suspend_end (pm_message_t state)
 
 EXPORT_SYMBOL_GPL (dpm_suspend_end)
 
int dpm_suspend (pm_message_t state)
 
int dpm_prepare (pm_message_t state)
 
int dpm_suspend_start (pm_message_t state)
 
 EXPORT_SYMBOL_GPL (dpm_suspend_start)
 
void __suspend_report_result (const char *function, void *fn, int ret)
 
 EXPORT_SYMBOL_GPL (__suspend_report_result)
 
int device_pm_wait_for_dev (struct device *subordinate, struct device *dev)
 
 EXPORT_SYMBOL_GPL (device_pm_wait_for_dev)
 
void dpm_for_each_dev (void *data, void(*fn)(struct device *, void *))
 
 EXPORT_SYMBOL_GPL (dpm_for_each_dev)
 

Variables

struct suspend_stats suspend_stats
 

Typedef Documentation

typedef int(* pm_callback_t)(struct device *)

Definition at line 35 of file main.c.

Function Documentation

void __suspend_report_result ( const char function,
void fn,
int  ret 
)

Definition at line 1341 of file main.c.

void device_pm_add ( struct device dev)

device_pm_add - Add a device to the PM core's list of active devices. : Device to add to the list.

Definition at line 93 of file main.c.

void device_pm_lock ( void  )

device_pm_lock - Lock the list of active devices used by the PM core.

Definition at line 76 of file main.c.

void device_pm_move_after ( struct device deva,
struct device devb 
)

device_pm_move_after - Move device in the PM core's list of active devices. : Device to move in dpm_list. : Device should come after.

Definition at line 142 of file main.c.

void device_pm_move_before ( struct device deva,
struct device devb 
)

device_pm_move_before - Move device in the PM core's list of active devices. : Device to move in dpm_list. : Device should come before.

Definition at line 128 of file main.c.

void device_pm_move_last ( struct device dev)

device_pm_move_last - Move device to end of the PM core's list of devices. : Device to move in dpm_list.

Definition at line 155 of file main.c.

void device_pm_remove ( struct device dev)

device_pm_remove - Remove a device from the PM core's list of active devices. : Device to be removed from the list.

Definition at line 110 of file main.c.

void device_pm_sleep_init ( struct device dev)

device_pm_sleep_init - Initialize system suspend-related device fields. : Device object being initialized.

Definition at line 63 of file main.c.

void device_pm_unlock ( void  )

device_pm_unlock - Unlock the list of active devices used by the PM core.

Definition at line 84 of file main.c.

int device_pm_wait_for_dev ( struct device subordinate,
struct device dev 
)

device_pm_wait_for_dev - Wait for suspend/resume of a device to complete. : Device to wait for. : Device that needs to wait for .

Definition at line 1353 of file main.c.

void dpm_complete ( pm_message_t  state)

dpm_complete - Complete a PM transition for all non-sysdev devices. : PM transition of the system being carried out.

Execute the ->complete() callbacks for all devices whose PM status is not DPM_ON (this allows new devices to be registered).

Definition at line 771 of file main.c.

void dpm_for_each_dev ( void data,
void(*)(struct device *, void *)  fn 
)

Definition at line 1368 of file main.c.

int dpm_prepare ( pm_message_t  state)

dpm_prepare - Prepare all non-sysdev devices for a system PM transition. : PM transition of the system being carried out.

Execute the ->prepare() callback(s) for all devices.

Definition at line 1283 of file main.c.

void dpm_resume ( pm_message_t  state)

dpm_resume - Execute "resume" callbacks for non-sysdev devices. : PM transition of the system being carried out.

Execute the appropriate "resume" callback for all devices whose status indicates that they are suspended.

Definition at line 674 of file main.c.

void dpm_resume_end ( pm_message_t  state)

dpm_resume_end - Execute "resume" callbacks and complete system transition. : PM transition of the system being carried out.

Execute "resume" callbacks for all devices and complete the PM transition of the system.

Definition at line 803 of file main.c.

void dpm_resume_start ( pm_message_t  state)

dpm_resume_start - Execute "noirq" and "early" device callbacks. : PM transition of the system being carried out.

Definition at line 555 of file main.c.

int dpm_suspend ( pm_message_t  state)

dpm_suspend - Execute "suspend" callbacks for all non-sysdev devices. : PM transition of the system being carried out.

Definition at line 1176 of file main.c.

int dpm_suspend_end ( pm_message_t  state)

dpm_suspend_end - Execute "late" and "noirq" device suspend callbacks. : PM transition of the system being carried out.

Definition at line 1007 of file main.c.

int dpm_suspend_start ( pm_message_t  state)

dpm_suspend_start - Prepare devices for PM transition and suspend them. : PM transition of the system being carried out.

Prepare all non-sysdev devices for system PM transition and execute "suspend" callbacks for them.

Definition at line 1327 of file main.c.

EXPORT_SYMBOL_GPL ( dpm_resume_start  )
EXPORT_SYMBOL_GPL ( dpm_resume_end  )
EXPORT_SYMBOL_GPL ( dpm_suspend_end  )
EXPORT_SYMBOL_GPL ( dpm_suspend_start  )
EXPORT_SYMBOL_GPL ( __suspend_report_result  )
EXPORT_SYMBOL_GPL ( device_pm_wait_for_dev  )
EXPORT_SYMBOL_GPL ( dpm_for_each_dev  )
LIST_HEAD ( dpm_list  )

Variable Documentation

Definition at line 53 of file main.c.