Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
dca.h File Reference
#include <linux/pci.h>

Go to the source code of this file.

Data Structures

struct  dca_provider
 
struct  dca_domain
 
struct  dca_ops
 

Macros

#define DCA_PROVIDER_ADD   0x0001
 
#define DCA_PROVIDER_REMOVE   0x0002
 
#define DCA_GET_TAG_TWO_ARGS
 

Functions

void dca_register_notify (struct notifier_block *nb)
 
void dca_unregister_notify (struct notifier_block *nb)
 
struct dca_provideralloc_dca_provider (struct dca_ops *ops, int priv_size)
 
void free_dca_provider (struct dca_provider *dca)
 
int register_dca_provider (struct dca_provider *dca, struct device *dev)
 
void unregister_dca_provider (struct dca_provider *dca, struct device *dev)
 
int dca_add_requester (struct device *dev)
 
int dca_remove_requester (struct device *dev)
 
u8 dca_get_tag (int cpu)
 
u8 dca3_get_tag (struct device *dev, int cpu)
 
int __init dca_sysfs_init (void)
 
void __exit dca_sysfs_exit (void)
 
int dca_sysfs_add_provider (struct dca_provider *dca, struct device *dev)
 
void dca_sysfs_remove_provider (struct dca_provider *dca)
 
int dca_sysfs_add_req (struct dca_provider *dca, struct device *dev, int slot)
 
void dca_sysfs_remove_req (struct dca_provider *dca, int slot)
 

Macro Definition Documentation

#define DCA_GET_TAG_TWO_ARGS

Definition at line 67 of file dca.h.

#define DCA_PROVIDER_ADD   0x0001

Definition at line 32 of file dca.h.

#define DCA_PROVIDER_REMOVE   0x0002

Definition at line 33 of file dca.h.

Function Documentation

struct dca_provider* alloc_dca_provider ( struct dca_ops ops,
int  priv_size 
)
read

alloc_dca_provider - get data struct for describing a dca provider - pointer to struct of dca operation function pointers - size of extra mem to be added for provider's needs

Definition at line 324 of file dca-core.c.

u8 dca3_get_tag ( struct device dev,
int  cpu 
)

dca3_get_tag - return the dca tag to the requester device for the given cpu (new api) - the device that wants dca service - the cpuid as returned by get_cpu()

Definition at line 298 of file dca-core.c.

int dca_add_requester ( struct device dev)

dca_add_requester - add a dca client to the list - the device that wants dca service

Definition at line 186 of file dca-core.c.

u8 dca_get_tag ( int  cpu)

dca_get_tag - return the dca tag for the given cpu (old api) - the cpuid as returned by get_cpu()

Definition at line 311 of file dca-core.c.

void dca_register_notify ( struct notifier_block nb)

dca_register_notify - register a client's notifier callback

Definition at line 439 of file dca-core.c.

int dca_remove_requester ( struct device dev)

dca_remove_requester - remove a dca client from the list - the device that wants dca service

Definition at line 241 of file dca-core.c.

int dca_sysfs_add_provider ( struct dca_provider dca,
struct device dev 
)

Definition at line 53 of file dca-sysfs.c.

int dca_sysfs_add_req ( struct dca_provider dca,
struct device dev,
int  slot 
)

Definition at line 36 of file dca-sysfs.c.

void __exit dca_sysfs_exit ( void  )

Definition at line 106 of file dca-sysfs.c.

int __init dca_sysfs_init ( void  )

Definition at line 93 of file dca-sysfs.c.

void dca_sysfs_remove_provider ( struct dca_provider dca)

Definition at line 84 of file dca-sysfs.c.

void dca_sysfs_remove_req ( struct dca_provider dca,
int  slot 
)

Definition at line 48 of file dca-sysfs.c.

void dca_unregister_notify ( struct notifier_block nb)

dca_unregister_notify - remove a client's notifier callback

Definition at line 448 of file dca-core.c.

void free_dca_provider ( struct dca_provider dca)

free_dca_provider - release the dca provider data struct - pointer to struct of dca operation function pointers - size of extra mem to be added for provider's needs

Definition at line 344 of file dca-core.c.

int register_dca_provider ( struct dca_provider dca,
struct device dev 
)

register_dca_provider - register a dca provider - struct created by alloc_dca_provider() - device providing dca services

Definition at line 355 of file dca-core.c.

void unregister_dca_provider ( struct dca_provider dca,
struct device dev 
)

unregister_dca_provider - remove a dca provider - struct created by alloc_dca_provider()

Definition at line 412 of file dca-core.c.