Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
caamrng.c File Reference
#include <linux/hw_random.h>
#include <linux/completion.h>
#include <linux/atomic.h>
#include "compat.h"
#include "regs.h"
#include "intern.h"
#include "desc_constr.h"
#include "jr.h"
#include "error.h"

Go to the source code of this file.

Data Structures

struct  buf_data
 
struct  caam_rng_ctx
 

Macros

#define RN_BUF_SIZE
 
#define DESC_JOB_O_LEN   (CAAM_CMD_SZ * 2 + CAAM_PTR_SZ * 2)
 
#define DESC_RNG_LEN   (10 * CAAM_CMD_SZ)
 
#define BUF_NOT_EMPTY   0
 
#define BUF_EMPTY   1
 
#define BUF_PENDING   2 /* Empty, but with job pending --don't submit another */
 

Functions

 module_init (caam_rng_init)
 
 module_exit (caam_rng_exit)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DESCRIPTION ("FSL CAAM support for hw_random API")
 
 MODULE_AUTHOR ("Freescale Semiconductor - NMG")
 

Macro Definition Documentation

#define BUF_EMPTY   1

Definition at line 64 of file caamrng.c.

#define BUF_NOT_EMPTY   0

Definition at line 63 of file caamrng.c.

#define BUF_PENDING   2 /* Empty, but with job pending --don't submit another */

Definition at line 65 of file caamrng.c.

#define DESC_JOB_O_LEN   (CAAM_CMD_SZ * 2 + CAAM_PTR_SZ * 2)

Definition at line 54 of file caamrng.c.

#define DESC_RNG_LEN   (10 * CAAM_CMD_SZ)

Definition at line 55 of file caamrng.c.

#define RN_BUF_SIZE
Value:
(0xffff / L1_CACHE_BYTES * \
L1_CACHE_BYTES)

Definition at line 50 of file caamrng.c.

Function Documentation

MODULE_AUTHOR ( "Freescale Semiconductor - NMG"  )
MODULE_DESCRIPTION ( "FSL CAAM support for hw_random API"  )
module_exit ( caam_rng_exit  )
module_init ( caam_rng_init  )
MODULE_LICENSE ( "GPL"  )