Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
ipz_pt_fn.c File Reference
#include <linux/slab.h>
#include "ehca_tools.h"
#include "ipz_pt_fn.h"
#include "ehca_classes.h"

Go to the source code of this file.

Macros

#define PAGES_PER_KPAGE   (PAGE_SIZE >> EHCA_PAGESHIFT)
 

Functions

voidipz_qpageit_get_inc (struct ipz_queue *queue)
 
voidipz_qeit_eq_get_inc (struct ipz_queue *queue)
 
int ipz_queue_abs_to_offset (struct ipz_queue *queue, u64 addr, u64 *q_offset)
 
int ipz_queue_ctor (struct ehca_pd *pd, struct ipz_queue *queue, const u32 nr_of_pages, const u32 pagesize, const u32 qe_size, const u32 nr_of_sg, int is_small)
 
int ipz_queue_dtor (struct ehca_pd *pd, struct ipz_queue *queue)
 
int ehca_init_small_qp_cache (void)
 
void ehca_cleanup_small_qp_cache (void)
 

Variables

struct kmem_cachesmall_qp_cache
 

Macro Definition Documentation

#define PAGES_PER_KPAGE   (PAGE_SIZE >> EHCA_PAGESHIFT)

Definition at line 47 of file ipz_pt_fn.c.

Function Documentation

void ehca_cleanup_small_qp_cache ( void  )

Definition at line 291 of file ipz_pt_fn.c.

int ehca_init_small_qp_cache ( void  )

Definition at line 280 of file ipz_pt_fn.c.

void* ipz_qeit_eq_get_inc ( struct ipz_queue queue)

Definition at line 66 of file ipz_pt_fn.c.

void* ipz_qpageit_get_inc ( struct ipz_queue queue)

Definition at line 51 of file ipz_pt_fn.c.

int ipz_queue_abs_to_offset ( struct ipz_queue queue,
u64  addr,
u64 q_offset 
)

Definition at line 80 of file ipz_pt_fn.c.

int ipz_queue_ctor ( struct ehca_pd pd,
struct ipz_queue queue,
const u32  nr_of_pages,
const u32  pagesize,
const u32  qe_size,
const u32  nr_of_sg,
int  is_small 
)

Definition at line 204 of file ipz_pt_fn.c.

int ipz_queue_dtor ( struct ehca_pd pd,
struct ipz_queue queue 
)

Definition at line 255 of file ipz_pt_fn.c.

Variable Documentation

struct kmem_cache* small_qp_cache

Definition at line 49 of file ipz_pt_fn.c.