Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
n2_core.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/of_device.h>
#include <linux/cpumask.h>
#include <linux/slab.h>
#include <linux/interrupt.h>
#include <linux/crypto.h>
#include <crypto/md5.h>
#include <crypto/sha.h>
#include <crypto/aes.h>
#include <crypto/des.h>
#include <linux/mutex.h>
#include <linux/delay.h>
#include <linux/sched.h>
#include <crypto/internal/hash.h>
#include <crypto/scatterwalk.h>
#include <crypto/algapi.h>
#include <asm/hypervisor.h>
#include <asm/mdesc.h>
#include "n2_core.h"

Go to the source code of this file.

Data Structures

struct  spu_queue
 
struct  n2_request_common
 
struct  n2_ahash_alg
 
struct  n2_hmac_alg
 
struct  n2_hash_ctx
 
struct  n2_hmac_ctx
 
struct  n2_hash_req_ctx
 
struct  n2_cipher_context
 
struct  n2_crypto_chunk
 
struct  n2_request_context
 
struct  n2_cipher_alg
 
struct  n2_cipher_request_context
 
struct  n2_cipher_tmpl
 
struct  n2_hash_tmpl
 

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define DRV_MODULE_NAME   "n2_crypto"
 
#define DRV_MODULE_VERSION   "0.2"
 
#define DRV_MODULE_RELDATE   "July 28, 2011"
 
#define N2_CRA_PRIORITY   200
 
#define OFFSET_NOT_RUNNING   (~(unsigned int)0)
 
#define N2_HASH_KEY_MAX   32 /* HW limit for all HMAC requests */
 
#define N2_CHUNK_ARR_LEN   16
 
#define NUM_CIPHER_TMPLS   ARRAY_SIZE(cipher_tmpls)
 
#define NUM_HASH_TMPLS   ARRAY_SIZE(hash_tmpls)
 

Functions

 MODULE_AUTHOR ("David S. Miller ([email protected])")
 
 MODULE_DESCRIPTION ("Niagara2 Crypto driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_VERSION (DRV_MODULE_VERSION)
 
 MODULE_DEVICE_TABLE (of, n2_crypto_match)
 
 MODULE_DEVICE_TABLE (of, n2_mau_match)
 
 module_init (n2_init)
 
 module_exit (n2_exit)
 

Variables

struct spu_queue __attribute__
 

Macro Definition Documentation

#define DRV_MODULE_NAME   "n2_crypto"

Definition at line 33 of file n2_core.c.

#define DRV_MODULE_RELDATE   "July 28, 2011"

Definition at line 35 of file n2_core.c.

#define DRV_MODULE_VERSION   "0.2"

Definition at line 34 of file n2_core.c.

#define N2_CHUNK_ARR_LEN   16

Definition at line 660 of file n2_core.c.

#define N2_CRA_PRIORITY   200

Definition at line 45 of file n2_core.c.

#define N2_HASH_KEY_MAX   32 /* HW limit for all HMAC requests */

Definition at line 282 of file n2_core.c.

#define NUM_CIPHER_TMPLS   ARRAY_SIZE(cipher_tmpls)

Definition at line 1267 of file n2_core.c.

#define NUM_HASH_TMPLS   ARRAY_SIZE(hash_tmpls)

Definition at line 1355 of file n2_core.c.

#define OFFSET_NOT_RUNNING   (~(unsigned int)0)

Definition at line 89 of file n2_core.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 6 of file n2_core.c.

Function Documentation

MODULE_AUTHOR ( "David S. Miller ([email protected])"  )
MODULE_DESCRIPTION ( "Niagara2 Crypto driver )
MODULE_DEVICE_TABLE ( of  ,
n2_crypto_match   
)
MODULE_DEVICE_TABLE ( of  ,
n2_mau_match   
)
module_exit ( n2_exit  )
module_init ( n2_init  )
MODULE_LICENSE ( "GPL"  )
MODULE_VERSION ( DRV_MODULE_VERSION  )

Variable Documentation