Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
ore_raid.h File Reference
#include <scsi/osd_ore.h>

Go to the source code of this file.

Macros

#define ORE_ERR(fmt, a...)   printk(KERN_ERR "ore: " fmt, ##a)
 
#define ORE_DBGMSG(fmt, a...)   do { if (0) printk(fmt, ##a); } while (0)
 
#define _LLU(x)   (unsigned long long)(x)
 
#define ORE_DBGMSG2(M...)   do {} while (0)
 

Functions

int _ore_post_alloc_raid_stuff (struct ore_io_state *ios)
 
void _ore_free_raid_stuff (struct ore_io_state *ios)
 
void _ore_add_sg_seg (struct ore_per_dev_state *per_dev, unsigned cur_len, bool not_last)
 
int _ore_add_parity_unit (struct ore_io_state *ios, struct ore_striping_info *si, struct ore_per_dev_state *per_dev, unsigned cur_len)
 
void _ore_add_stripe_page (struct __stripe_pages_2d *sp2d, struct ore_striping_info *si, struct page *page)
 
int _ore_get_io_state (struct ore_layout *layout, struct ore_components *oc, unsigned numdevs, unsigned sgs_per_dev, unsigned num_par_pages, struct ore_io_state **pios)
 
int _ore_add_stripe_unit (struct ore_io_state *ios, unsigned *cur_pg, unsigned pgbase, struct page **pages, struct ore_per_dev_state *per_dev, int cur_len)
 
int _ore_read_mirror (struct ore_io_state *ios, unsigned cur_comp)
 
int ore_io_execute (struct ore_io_state *ios)
 

Macro Definition Documentation

#define _LLU (   x)    (unsigned long long)(x)

Definition at line 29 of file ore_raid.h.

#define ORE_DBGMSG (   fmt,
  a... 
)    do { if (0) printk(fmt, ##a); } while (0)

Definition at line 24 of file ore_raid.h.

#define ORE_DBGMSG2 (   M...)    do {} while (0)

Definition at line 31 of file ore_raid.h.

#define ORE_ERR (   fmt,
  a... 
)    printk(KERN_ERR "ore: " fmt, ##a)

Definition at line 18 of file ore_raid.h.

Function Documentation

int _ore_add_parity_unit ( struct ore_io_state ios,
struct ore_striping_info si,
struct ore_per_dev_state *  per_dev,
unsigned  cur_len 
)

Definition at line 620 of file ore_raid.c.

void _ore_add_sg_seg ( struct ore_per_dev_state *  per_dev,
unsigned  cur_len,
bool  not_last 
)

Definition at line 264 of file ore_raid.c.

void _ore_add_stripe_page ( struct __stripe_pages_2d sp2d,
struct ore_striping_info si,
struct page page 
)

Definition at line 249 of file ore_raid.c.

int _ore_add_stripe_unit ( struct ore_io_state ios,
unsigned *  cur_pg,
unsigned  pgbase,
struct page **  pages,
struct ore_per_dev_state *  per_dev,
int  cur_len 
)

Definition at line 575 of file ore.c.

void _ore_free_raid_stuff ( struct ore_io_state ios)

Definition at line 694 of file ore_raid.c.

int _ore_get_io_state ( struct ore_layout layout,
struct ore_components oc,
unsigned  numdevs,
unsigned  sgs_per_dev,
unsigned  num_par_pages,
struct ore_io_state **  pios 
)

Definition at line 138 of file ore.c.

int _ore_post_alloc_raid_stuff ( struct ore_io_state ios)

Definition at line 680 of file ore_raid.c.

int _ore_read_mirror ( struct ore_io_state ios,
unsigned  cur_comp 
)

Definition at line 913 of file ore.c.

int ore_io_execute ( struct ore_io_state ios)

Definition at line 354 of file ore.c.