Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
oid_mgt.c File Reference
#include <linux/kernel.h>
#include <linux/slab.h>
#include "prismcompat.h"
#include "islpci_dev.h"
#include "islpci_mgt.h"
#include "isl_oid.h"
#include "oid_mgt.h"
#include "isl_ioctl.h"

Go to the source code of this file.

Macros

#define OID_STRUCT(name, oid, s, t)   [name] = {oid, 0, sizeof(s), t}
 
#define OID_STRUCT_C(name, oid, s, t)   OID_STRUCT(name,oid,s,t | OID_FLAG_CACHED)
 
#define OID_U32(name, oid)   OID_STRUCT(name,oid,u32,OID_TYPE_U32)
 
#define OID_U32_C(name, oid)   OID_STRUCT_C(name,oid,u32,OID_TYPE_U32)
 
#define OID_STRUCT_MLME(name, oid)   OID_STRUCT(name,oid,struct obj_mlme,OID_TYPE_MLME)
 
#define OID_STRUCT_MLMEEX(name, oid)   OID_STRUCT(name,oid,struct obj_mlmeex,OID_TYPE_MLMEEX)
 
#define OID_UNKNOWN(name, oid)   OID_STRUCT(name,oid,0,0)
 

Functions

int channel_of_freq (int f)
 
int mgt_init (islpci_private *priv)
 
void mgt_clean (islpci_private *priv)
 
void mgt_le_to_cpu (int type, void *data)
 
int mgt_set_request (islpci_private *priv, enum oid_num_t n, int extra, void *data)
 
int mgt_set_varlen (islpci_private *priv, enum oid_num_t n, void *data, int extra_len)
 
int mgt_get_request (islpci_private *priv, enum oid_num_t n, int extra, void *data, union oid_res_t *res)
 
int mgt_commit_list (islpci_private *priv, enum oid_num_t *l, int n)
 
void mgt_set (islpci_private *priv, enum oid_num_t n, void *data)
 
void mgt_get (islpci_private *priv, enum oid_num_t n, void *res)
 
int mgt_commit (islpci_private *priv)
 
int mgt_mlme_answer (islpci_private *priv)
 
enum oid_num_t mgt_oidtonum (u32 oid)
 
int mgt_response_to_str (enum oid_num_t n, union oid_res_t *r, char *str)
 

Variables

struct oid_t isl_oid []
 

Macro Definition Documentation

#define OID_STRUCT (   name,
  oid,
  s,
  t 
)    [name] = {oid, 0, sizeof(s), t}

Definition at line 49 of file oid_mgt.c.

#define OID_STRUCT_C (   name,
  oid,
  s,
  t 
)    OID_STRUCT(name,oid,s,t | OID_FLAG_CACHED)

Definition at line 50 of file oid_mgt.c.

#define OID_STRUCT_MLME (   name,
  oid 
)    OID_STRUCT(name,oid,struct obj_mlme,OID_TYPE_MLME)

Definition at line 53 of file oid_mgt.c.

#define OID_STRUCT_MLMEEX (   name,
  oid 
)    OID_STRUCT(name,oid,struct obj_mlmeex,OID_TYPE_MLMEEX)

Definition at line 54 of file oid_mgt.c.

#define OID_U32 (   name,
  oid 
)    OID_STRUCT(name,oid,u32,OID_TYPE_U32)

Definition at line 51 of file oid_mgt.c.

#define OID_U32_C (   name,
  oid 
)    OID_STRUCT_C(name,oid,u32,OID_TYPE_U32)

Definition at line 52 of file oid_mgt.c.

#define OID_UNKNOWN (   name,
  oid 
)    OID_STRUCT(name,oid,0,0)

Definition at line 56 of file oid_mgt.c.

Function Documentation

int channel_of_freq ( int  f)

Definition at line 35 of file oid_mgt.c.

void mgt_clean ( islpci_private priv)

Definition at line 264 of file oid_mgt.c.

int mgt_commit ( islpci_private priv)

Definition at line 697 of file oid_mgt.c.

int mgt_commit_list ( islpci_private priv,
enum oid_num_t l,
int  n 
)

Definition at line 593 of file oid_mgt.c.

void mgt_get ( islpci_private priv,
enum oid_num_t  n,
void res 
)

Definition at line 638 of file oid_mgt.c.

int mgt_get_request ( islpci_private priv,
enum oid_num_t  n,
int  extra,
void data,
union oid_res_t res 
)

Definition at line 516 of file oid_mgt.c.

int mgt_init ( islpci_private priv)

Definition at line 237 of file oid_mgt.c.

void mgt_le_to_cpu ( int  type,
void data 
)

Definition at line 279 of file oid_mgt.c.

int mgt_mlme_answer ( islpci_private priv)

Definition at line 761 of file oid_mgt.c.

enum oid_num_t mgt_oidtonum ( u32  oid)

Definition at line 778 of file oid_mgt.c.

int mgt_response_to_str ( enum oid_num_t  n,
union oid_res_t r,
char str 
)

Definition at line 792 of file oid_mgt.c.

void mgt_set ( islpci_private priv,
enum oid_num_t  n,
void data 
)

Definition at line 628 of file oid_mgt.c.

int mgt_set_request ( islpci_private priv,
enum oid_num_t  n,
int  extra,
void data 
)

Definition at line 419 of file oid_mgt.c.

int mgt_set_varlen ( islpci_private priv,
enum oid_num_t  n,
void data,
int  extra_len 
)

Definition at line 481 of file oid_mgt.c.

Variable Documentation

struct oid_t isl_oid[]

Definition at line 58 of file oid_mgt.c.