Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
sgbuf.c File Reference
#include <linux/slab.h>
#include <linux/mm.h>
#include <linux/vmalloc.h>
#include <linux/export.h>
#include <sound/memalloc.h>

Go to the source code of this file.

Macros

#define SGBUF_TBL_ALIGN   32
 
#define sgbuf_align_table(tbl)   ALIGN((tbl), SGBUF_TBL_ALIGN)
 
#define MAX_ALLOC_PAGES   32
 

Functions

int snd_free_sgbuf_pages (struct snd_dma_buffer *dmab)
 
voidsnd_malloc_sgbuf_pages (struct device *device, size_t size, struct snd_dma_buffer *dmab, size_t *res_size)
 
unsigned int snd_sgbuf_get_chunk_size (struct snd_dma_buffer *dmab, unsigned int ofs, unsigned int size)
 
 EXPORT_SYMBOL (snd_sgbuf_get_chunk_size)
 

Macro Definition Documentation

#define MAX_ALLOC_PAGES   32

Definition at line 65 of file sgbuf.c.

#define sgbuf_align_table (   tbl)    ALIGN((tbl), SGBUF_TBL_ALIGN)

Definition at line 31 of file sgbuf.c.

#define SGBUF_TBL_ALIGN   32

Definition at line 30 of file sgbuf.c.

Function Documentation

EXPORT_SYMBOL ( snd_sgbuf_get_chunk_size  )
int snd_free_sgbuf_pages ( struct snd_dma_buffer dmab)

Definition at line 33 of file sgbuf.c.

void* snd_malloc_sgbuf_pages ( struct device device,
size_t  size,
struct snd_dma_buffer dmab,
size_t res_size 
)

Definition at line 67 of file sgbuf.c.

unsigned int snd_sgbuf_get_chunk_size ( struct snd_dma_buffer dmab,
unsigned int  ofs,
unsigned int  size 
)

Definition at line 144 of file sgbuf.c.