Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
req_progress Struct Reference

Data Fields

struct sg_mapping_iter src_sg_it
 
struct sg_mapping_iter dst_sg_it
 
void(* complete )(void)
 
void(* process )(int is_first)
 
int sg_src_left
 
int src_start
 
int crypt_len
 
int hw_nbytes
 
int copy_back
 
int sg_dst_left
 
int dst_start
 
int hw_processed_bytes
 

Detailed Description

struct req_progress - used for every crypt request : sg iterator for src : sg iterator for dst : bytes left in src to process (scatter list) : offset to add to src start position (scatter list) : length of current hw crypt/hash process : total bytes to process in hw for this request : whether to copy data back (crypt) or not (hash) : bytes left dst to process in this scatter list : offset to add to dst start position (scatter list) : number of bytes processed by hw (request).

sg helper are used to iterate over the scatterlist. Since the size of the SRAM may be less than the scatter size, this struct struct is used to keep track of progress within current scatterlist.

Definition at line 65 of file mv_cesa.c.

Field Documentation

void(* complete)(void)

Definition at line 68 of file mv_cesa.c.

int copy_back

Definition at line 77 of file mv_cesa.c.

int crypt_len

Definition at line 74 of file mv_cesa.c.

Definition at line 67 of file mv_cesa.c.

int dst_start

Definition at line 79 of file mv_cesa.c.

int hw_nbytes

Definition at line 75 of file mv_cesa.c.

int hw_processed_bytes

Definition at line 80 of file mv_cesa.c.

void(* process)(int is_first)

Definition at line 69 of file mv_cesa.c.

int sg_dst_left

Definition at line 78 of file mv_cesa.c.

int sg_src_left

Definition at line 72 of file mv_cesa.c.

Definition at line 66 of file mv_cesa.c.

int src_start

Definition at line 73 of file mv_cesa.c.


The documentation for this struct was generated from the following file: