Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions | Variables
pq.h File Reference
#include <errno.h>
#include <inttypes.h>
#include <limits.h>
#include <stddef.h>
#include <sys/mman.h>
#include <sys/types.h>

Go to the source code of this file.

Data Structures

struct  raid6_calls
 
struct  raid6_recov_calls
 

Macros

#define BITS_PER_LONG   __WORDSIZE
 
#define PAGE_SIZE   4096
 
#define __init
 
#define __exit
 
#define __attribute_const__   __attribute__((const))
 
#define noinline   __attribute__((noinline))
 
#define preempt_enable()
 
#define preempt_disable()
 
#define cpu_has_feature(x)   1
 
#define enable_kernel_altivec()
 
#define disable_kernel_altivec()
 
#define EXPORT_SYMBOL(sym)
 
#define EXPORT_SYMBOL_GPL(sym)
 
#define MODULE_LICENSE(licence)
 
#define MODULE_DESCRIPTION(desc)
 
#define subsys_initcall(x)
 
#define module_exit(x)
 
#define RAID6_OK   0
 
#define RAID6_P_BAD   1
 
#define RAID6_Q_BAD   2
 
#define RAID6_PQ_BAD   3
 
#define jiffies   raid6_jiffies()
 
#define printk   printf
 
#define GFP_KERNEL   0
 
#define __get_free_pages(x, y)
 
#define free_pages(x, y)   munmap((void *)(x), PAGE_SIZE << (y))
 
#define HZ   1000
 

Typedefs

typedef uint8_t u8
 
typedef uint16_t u16
 
typedef uint32_t u32
 
typedef uint64_t u64
 

Functions

int raid6_select_algo (void)
 
const u8 raid6_gfmul[256][256] __attribute__ ((aligned(256)))
 
void raid6_dual_recov (int disks, size_t bytes, int faila, int failb, void **ptrs)
 

Variables

const char raid6_empty_zero_page [PAGE_SIZE]
 
struct raid6_calls raid6_call
 
struct raid6_calls raid6_intx1
 
struct raid6_calls raid6_intx2
 
struct raid6_calls raid6_intx4
 
struct raid6_calls raid6_intx8
 
struct raid6_calls raid6_intx16
 
struct raid6_calls raid6_intx32
 
struct raid6_calls raid6_mmxx1
 
struct raid6_calls raid6_mmxx2
 
struct raid6_calls raid6_sse1x1
 
struct raid6_calls raid6_sse1x2
 
struct raid6_calls raid6_sse2x1
 
struct raid6_calls raid6_sse2x2
 
struct raid6_calls raid6_sse2x4
 
struct raid6_calls raid6_altivec1
 
struct raid6_calls raid6_altivec2
 
struct raid6_calls raid6_altivec4
 
struct raid6_calls raid6_altivec8
 
struct raid6_recov_calls raid6_recov_intx1
 
struct raid6_recov_calls raid6_recov_ssse3
 
struct raid6_calls *const raid6_algos []
 
struct raid6_recov_calls *const raid6_recov_algos []
 
void(* raid6_2data_recov )(int disks, size_t bytes, int faila, int failb, void **ptrs)
 
void(* raid6_datap_recov )(int disks, size_t bytes, int faila, void **ptrs)
 

Macro Definition Documentation

#define __attribute_const__   __attribute__((const))

Definition at line 55 of file pq.h.

#define __exit

Definition at line 54 of file pq.h.

#define __get_free_pages (   x,
  y 
)
Value:
((unsigned long)mmap(NULL, PAGE_SIZE << (y), \
PROT_READ|PROT_WRITE, \
MAP_PRIVATE|MAP_ANONYMOUS,\
0, 0))

Definition at line 145 of file pq.h.

#define __init

Definition at line 53 of file pq.h.

#define BITS_PER_LONG   __WORDSIZE

Definition at line 41 of file pq.h.

#define cpu_has_feature (   x)    1

Definition at line 60 of file pq.h.

#define disable_kernel_altivec ( )

Definition at line 62 of file pq.h.

#define enable_kernel_altivec (   void)

Definition at line 61 of file pq.h.

#define EXPORT_SYMBOL (   sym)

Definition at line 64 of file pq.h.

#define EXPORT_SYMBOL_GPL (   sym)

Definition at line 65 of file pq.h.

#define free_pages (   x,
  y 
)    munmap((void *)(x), PAGE_SIZE << (y))

Definition at line 149 of file pq.h.

#define GFP_KERNEL   0

Definition at line 144 of file pq.h.

#define HZ   1000

Definition at line 157 of file pq.h.

#define jiffies   raid6_jiffies()

Definition at line 142 of file pq.h.

#define MODULE_DESCRIPTION (   desc)

Definition at line 67 of file pq.h.

#define module_exit (   x)

Definition at line 69 of file pq.h.

#define MODULE_LICENSE (   licence)

Definition at line 66 of file pq.h.

#define noinline   __attribute__((noinline))

Definition at line 56 of file pq.h.

#define PAGE_SIZE   4096

Definition at line 49 of file pq.h.

#define preempt_disable ( )

Definition at line 59 of file pq.h.

#define preempt_enable ( )

Definition at line 58 of file pq.h.

#define printk   printf

Definition at line 143 of file pq.h.

#define RAID6_OK   0

Definition at line 119 of file pq.h.

#define RAID6_P_BAD   1

Definition at line 120 of file pq.h.

#define RAID6_PQ_BAD   3

Definition at line 122 of file pq.h.

#define RAID6_Q_BAD   2

Definition at line 121 of file pq.h.

#define subsys_initcall (   x)

Definition at line 68 of file pq.h.

Typedef Documentation

typedef uint16_t u16

Definition at line 44 of file pq.h.

typedef uint32_t u32

Definition at line 45 of file pq.h.

typedef uint64_t u64

Definition at line 46 of file pq.h.

typedef uint8_t u8

Definition at line 43 of file pq.h.

Function Documentation

const u8 raid6_gfmul [256][256] __attribute__ ( (aligned(256))  )
void raid6_dual_recov ( int  disks,
size_t  bytes,
int  faila,
int  failb,
void **  ptrs 
)

Definition at line 113 of file recov.c.

int raid6_select_algo ( void  )

Definition at line 159 of file algos.c.

Variable Documentation

void(* raid6_2data_recov)(int disks, size_t bytes, int faila, int failb, void **ptrs)

Definition at line 67 of file algos.c.

struct raid6_calls* const raid6_algos[]

Definition at line 36 of file algos.c.

struct raid6_calls raid6_altivec1
struct raid6_calls raid6_altivec2
struct raid6_calls raid6_altivec4
struct raid6_calls raid6_altivec8
struct raid6_calls raid6_call

Definition at line 33 of file algos.c.

void(* raid6_datap_recov)(int disks, size_t bytes, int faila, void **ptrs)

Definition at line 70 of file algos.c.

const char raid6_empty_zero_page[PAGE_SIZE]
struct raid6_calls raid6_intx1
struct raid6_calls raid6_intx16
struct raid6_calls raid6_intx2
struct raid6_calls raid6_intx32
struct raid6_calls raid6_intx4
struct raid6_calls raid6_intx8
struct raid6_calls raid6_mmxx1
struct raid6_calls raid6_mmxx2
struct raid6_recov_calls* const raid6_recov_algos[]

Definition at line 73 of file algos.c.

struct raid6_recov_calls raid6_recov_intx1

Definition at line 101 of file recov.c.

struct raid6_recov_calls raid6_recov_ssse3
struct raid6_calls raid6_sse1x1
struct raid6_calls raid6_sse1x2
struct raid6_calls raid6_sse2x1
struct raid6_calls raid6_sse2x2
struct raid6_calls raid6_sse2x4