Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
memory.c File Reference
#include <linux/pci.h>
#include <linux/gfp.h>
#include <linux/time.h>
#include <linux/mutex.h>
#include <linux/export.h>
#include <sound/core.h>
#include <sound/emu10k1.h>

Go to the source code of this file.

Macros

#define __set_ptb_entry(emu, page, addr)   (((u32 *)(emu)->ptb_pages.area)[page] = cpu_to_le32(((addr) << 1) | (page)))
 
#define UNIT_PAGES   (PAGE_SIZE / EMUPAGESIZE)
 
#define MAX_ALIGN_PAGES   (MAXPAGES / UNIT_PAGES)
 
#define get_aligned_page(offset)   ((offset) >> PAGE_SHIFT)
 
#define aligned_page_offset(page)   ((page) << PAGE_SHIFT)
 
#define get_emu10k1_memblk(l, member)   list_entry(l, struct snd_emu10k1_memblk, member)
 

Functions

int snd_emu10k1_memblk_map (struct snd_emu10k1 *emu, struct snd_emu10k1_memblk *blk)
 
 EXPORT_SYMBOL (snd_emu10k1_memblk_map)
 
struct snd_util_memblksnd_emu10k1_alloc_pages (struct snd_emu10k1 *emu, struct snd_pcm_substream *substream)
 
int snd_emu10k1_free_pages (struct snd_emu10k1 *emu, struct snd_util_memblk *blk)
 
struct snd_util_memblksnd_emu10k1_synth_alloc (struct snd_emu10k1 *hw, unsigned int size)
 
 EXPORT_SYMBOL (snd_emu10k1_synth_alloc)
 
int snd_emu10k1_synth_free (struct snd_emu10k1 *emu, struct snd_util_memblk *memblk)
 
 EXPORT_SYMBOL (snd_emu10k1_synth_free)
 
int snd_emu10k1_synth_bzero (struct snd_emu10k1 *emu, struct snd_util_memblk *blk, int offset, int size)
 
 EXPORT_SYMBOL (snd_emu10k1_synth_bzero)
 
int snd_emu10k1_synth_copy_from_user (struct snd_emu10k1 *emu, struct snd_util_memblk *blk, int offset, const char __user *data, int size)
 
 EXPORT_SYMBOL (snd_emu10k1_synth_copy_from_user)
 

Macro Definition Documentation

#define __set_ptb_entry (   emu,
  page,
  addr 
)    (((u32 *)(emu)->ptb_pages.area)[page] = cpu_to_le32(((addr) << 1) | (page)))

Definition at line 36 of file memory.c.

#define aligned_page_offset (   page)    ((page) << PAGE_SHIFT)

Definition at line 44 of file memory.c.

#define get_aligned_page (   offset)    ((offset) >> PAGE_SHIFT)

Definition at line 42 of file memory.c.

#define get_emu10k1_memblk (   l,
  member 
)    list_entry(l, struct snd_emu10k1_memblk, member)

Definition at line 79 of file memory.c.

#define MAX_ALIGN_PAGES   (MAXPAGES / UNIT_PAGES)

Definition at line 40 of file memory.c.

#define UNIT_PAGES   (PAGE_SIZE / EMUPAGESIZE)

Definition at line 39 of file memory.c.

Function Documentation

EXPORT_SYMBOL ( snd_emu10k1_memblk_map  )
EXPORT_SYMBOL ( snd_emu10k1_synth_alloc  )
EXPORT_SYMBOL ( snd_emu10k1_synth_free  )
EXPORT_SYMBOL ( snd_emu10k1_synth_bzero  )
EXPORT_SYMBOL ( snd_emu10k1_synth_copy_from_user  )
struct snd_util_memblk* snd_emu10k1_alloc_pages ( struct snd_emu10k1 *  emu,
struct snd_pcm_substream substream 
)
read

Definition at line 298 of file memory.c.

int snd_emu10k1_free_pages ( struct snd_emu10k1 *  emu,
struct snd_util_memblk blk 
)

Definition at line 358 of file memory.c.

int snd_emu10k1_memblk_map ( struct snd_emu10k1 *  emu,
struct snd_emu10k1_memblk *  blk 
)

Definition at line 255 of file memory.c.

struct snd_util_memblk* snd_emu10k1_synth_alloc ( struct snd_emu10k1 *  hw,
unsigned int  size 
)
read

Definition at line 375 of file memory.c.

int snd_emu10k1_synth_bzero ( struct snd_emu10k1 *  emu,
struct snd_util_memblk blk,
int  offset,
int  size 
)

Definition at line 520 of file memory.c.

int snd_emu10k1_synth_copy_from_user ( struct snd_emu10k1 *  emu,
struct snd_util_memblk blk,
int  offset,
const char __user data,
int  size 
)

Definition at line 550 of file memory.c.

int snd_emu10k1_synth_free ( struct snd_emu10k1 *  emu,
struct snd_util_memblk memblk 
)

Definition at line 402 of file memory.c.