Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
alloc.c File Reference
#include <linux/errno.h>
#include <linux/slab.h>
#include <linux/mm.h>
#include <linux/export.h>
#include <linux/bitmap.h>
#include <linux/dma-mapping.h>
#include <linux/vmalloc.h>
#include "mlx4.h"

Go to the source code of this file.

Functions

u32 mlx4_bitmap_alloc (struct mlx4_bitmap *bitmap)
 
void mlx4_bitmap_free (struct mlx4_bitmap *bitmap, u32 obj)
 
u32 mlx4_bitmap_alloc_range (struct mlx4_bitmap *bitmap, int cnt, int align)
 
u32 mlx4_bitmap_avail (struct mlx4_bitmap *bitmap)
 
void mlx4_bitmap_free_range (struct mlx4_bitmap *bitmap, u32 obj, int cnt)
 
int mlx4_bitmap_init (struct mlx4_bitmap *bitmap, u32 num, u32 mask, u32 reserved_bot, u32 reserved_top)
 
void mlx4_bitmap_cleanup (struct mlx4_bitmap *bitmap)
 
int mlx4_buf_alloc (struct mlx4_dev *dev, int size, int max_direct, struct mlx4_buf *buf)
 
 EXPORT_SYMBOL_GPL (mlx4_buf_alloc)
 
void mlx4_buf_free (struct mlx4_dev *dev, int size, struct mlx4_buf *buf)
 
 EXPORT_SYMBOL_GPL (mlx4_buf_free)
 
int mlx4_db_alloc (struct mlx4_dev *dev, struct mlx4_db *db, int order)
 
 EXPORT_SYMBOL_GPL (mlx4_db_alloc)
 
void mlx4_db_free (struct mlx4_dev *dev, struct mlx4_db *db)
 
 EXPORT_SYMBOL_GPL (mlx4_db_free)
 
int mlx4_alloc_hwq_res (struct mlx4_dev *dev, struct mlx4_hwq_resources *wqres, int size, int max_direct)
 
 EXPORT_SYMBOL_GPL (mlx4_alloc_hwq_res)
 
void mlx4_free_hwq_res (struct mlx4_dev *dev, struct mlx4_hwq_resources *wqres, int size)
 
 EXPORT_SYMBOL_GPL (mlx4_free_hwq_res)
 

Function Documentation

EXPORT_SYMBOL_GPL ( mlx4_buf_alloc  )
EXPORT_SYMBOL_GPL ( mlx4_buf_free  )
EXPORT_SYMBOL_GPL ( mlx4_db_alloc  )
EXPORT_SYMBOL_GPL ( mlx4_db_free  )
EXPORT_SYMBOL_GPL ( mlx4_alloc_hwq_res  )
EXPORT_SYMBOL_GPL ( mlx4_free_hwq_res  )
int mlx4_alloc_hwq_res ( struct mlx4_dev dev,
struct mlx4_hwq_resources wqres,
int  size,
int  max_direct 
)

Definition at line 368 of file alloc.c.

u32 mlx4_bitmap_alloc ( struct mlx4_bitmap bitmap)

Definition at line 44 of file alloc.c.

u32 mlx4_bitmap_alloc_range ( struct mlx4_bitmap bitmap,
int  cnt,
int  align 
)

Definition at line 79 of file alloc.c.

u32 mlx4_bitmap_avail ( struct mlx4_bitmap bitmap)

Definition at line 116 of file alloc.c.

void mlx4_bitmap_cleanup ( struct mlx4_bitmap bitmap)

Definition at line 155 of file alloc.c.

void mlx4_bitmap_free ( struct mlx4_bitmap bitmap,
u32  obj 
)

Definition at line 74 of file alloc.c.

void mlx4_bitmap_free_range ( struct mlx4_bitmap bitmap,
u32  obj,
int  cnt 
)

Definition at line 121 of file alloc.c.

int mlx4_bitmap_init ( struct mlx4_bitmap bitmap,
u32  num,
u32  mask,
u32  reserved_bot,
u32  reserved_top 
)

Definition at line 131 of file alloc.c.

int mlx4_buf_alloc ( struct mlx4_dev dev,
int  size,
int  max_direct,
struct mlx4_buf buf 
)

Definition at line 167 of file alloc.c.

void mlx4_buf_free ( struct mlx4_dev dev,
int  size,
struct mlx4_buf buf 
)

Definition at line 236 of file alloc.c.

int mlx4_db_alloc ( struct mlx4_dev dev,
struct mlx4_db db,
int  order 
)

Definition at line 309 of file alloc.c.

void mlx4_db_free ( struct mlx4_dev dev,
struct mlx4_db db 
)

Definition at line 339 of file alloc.c.

void mlx4_free_hwq_res ( struct mlx4_dev dev,
struct mlx4_hwq_resources wqres,
int  size 
)

Definition at line 405 of file alloc.c.