FreeBSD kernel sound device code
|
#include <buffer.h>
Data Fields | |
device_t | dev |
u_int8_t * | buf |
u_int8_t * | tmpbuf |
u_int8_t * | shadbuf |
volatile int | sl |
unsigned int | bufsize |
unsigned int | maxsize |
unsigned int | allocsize |
volatile int | dl |
volatile int | rp |
volatile int | rl |
volatile int | hp |
volatile u_int64_t | total |
volatile u_int64_t | prev_total |
int | dmachan |
int | dir |
u_int32_t | fmt |
u_int32_t | spd |
u_int32_t | bps |
u_int32_t | align |
unsigned int | blksz |
unsigned int | blkcnt |
int | xrun |
u_int32_t | flags |
bus_dmamap_t | dmamap |
bus_dma_tag_t | dmatag |
bus_addr_t | buf_addr |
int | dmaflags |
struct selinfo | sel |
struct pcm_channel * | channel |
char | name [SNDBUF_NAMELEN] |
u_int32_t snd_dbuf::align |
Definition at line 53 of file buffer.h.
Referenced by sndbuf_getalign(), and sndbuf_setfmt().
unsigned int snd_dbuf::allocsize |
Definition at line 46 of file buffer.h.
Referenced by sndbuf_getallocsize(), sndbuf_remalloc(), and sndbuf_resize().
unsigned int snd_dbuf::blkcnt |
Definition at line 54 of file buffer.h.
Referenced by sndbuf_dump(), sndbuf_getblkcnt(), sndbuf_remalloc(), sndbuf_resize(), and sndbuf_setblkcnt().
unsigned int snd_dbuf::blksz |
Definition at line 54 of file buffer.h.
Referenced by sndbuf_dump(), sndbuf_getblksz(), sndbuf_getblocks(), sndbuf_getprevblocks(), sndbuf_remalloc(), sndbuf_resize(), sndbuf_setblksz(), and sndbuf_setrun().
u_int32_t snd_dbuf::bps |
Definition at line 53 of file buffer.h.
Referenced by sndbuf_getbps(), and sndbuf_setfmt().
u_int8_t* snd_dbuf::buf |
Definition at line 43 of file buffer.h.
Referenced by sndbuf_alloc(), sndbuf_dma(), sndbuf_free(), sndbuf_getbuf(), sndbuf_getbufofs(), sndbuf_remalloc(), sndbuf_reset(), sndbuf_setmap(), sndbuf_setup(), and sndbuf_softreset().
bus_addr_t snd_dbuf::buf_addr |
Definition at line 59 of file buffer.h.
Referenced by sndbuf_alloc(), sndbuf_free(), and sndbuf_setmap().
unsigned int snd_dbuf::bufsize |
Definition at line 46 of file buffer.h.
Referenced by sndbuf_acquire(), sndbuf_alloc(), sndbuf_clear(), sndbuf_dispose(), sndbuf_dma(), sndbuf_dmaptr(), sndbuf_dump(), sndbuf_fillsilence(), sndbuf_fillsilence_rl(), sndbuf_getbufofs(), sndbuf_getfree(), sndbuf_getfreeptr(), sndbuf_getready(), sndbuf_getreadyptr(), sndbuf_getsize(), sndbuf_remalloc(), sndbuf_reset(), sndbuf_resize(), sndbuf_setup(), and sndbuf_softreset().
struct pcm_channel* snd_dbuf::channel |
Definition at line 62 of file buffer.h.
Referenced by sndbuf_create(), sndbuf_remalloc(), and sndbuf_resize().
device_t snd_dbuf::dev |
Definition at line 42 of file buffer.h.
Referenced by sndbuf_create(), and sndbuf_setmap().
int snd_dbuf::dir |
Definition at line 52 of file buffer.h.
Referenced by sndbuf_dma(), and sndbuf_dmasetdir().
volatile int snd_dbuf::dl |
Definition at line 47 of file buffer.h.
Referenced by sndbuf_dump(), sndbuf_reset(), sndbuf_runsz(), and sndbuf_setrun().
int snd_dbuf::dmachan |
Definition at line 52 of file buffer.h.
Referenced by sndbuf_dma(), sndbuf_dmaptr(), and sndbuf_dmasetup().
int snd_dbuf::dmaflags |
Definition at line 60 of file buffer.h.
Referenced by sndbuf_alloc().
bus_dmamap_t snd_dbuf::dmamap |
Definition at line 57 of file buffer.h.
Referenced by sndbuf_alloc(), and sndbuf_free().
bus_dma_tag_t snd_dbuf::dmatag |
Definition at line 58 of file buffer.h.
Referenced by sndbuf_alloc(), and sndbuf_free().
u_int32_t snd_dbuf::flags |
Definition at line 56 of file buffer.h.
Referenced by sndbuf_alloc(), sndbuf_dump(), sndbuf_free(), sndbuf_getflags(), sndbuf_setflags(), and sndbuf_setup().
u_int32_t snd_dbuf::fmt |
Definition at line 53 of file buffer.h.
Referenced by sndbuf_clear(), sndbuf_clearshadow(), sndbuf_dump(), sndbuf_fillsilence(), sndbuf_fillsilence_rl(), sndbuf_getfmt(), and sndbuf_setfmt().
volatile int snd_dbuf::hp |
Definition at line 50 of file buffer.h.
Referenced by sndbuf_dump(), sndbuf_gethwptr(), sndbuf_reset(), and sndbuf_sethwptr().
unsigned int snd_dbuf::maxsize |
Definition at line 46 of file buffer.h.
Referenced by sndbuf_alloc(), sndbuf_dump(), sndbuf_getmaxsize(), sndbuf_remalloc(), sndbuf_resize(), and sndbuf_setup().
char snd_dbuf::name[SNDBUF_NAMELEN] |
Definition at line 63 of file buffer.h.
Referenced by sndbuf_create().
volatile u_int64_t snd_dbuf::prev_total |
Definition at line 51 of file buffer.h.
Referenced by sndbuf_dump(), sndbuf_getprevblocks(), sndbuf_getprevtotal(), sndbuf_reset(), and sndbuf_updateprevtotal().
volatile int snd_dbuf::rl |
Definition at line 49 of file buffer.h.
Referenced by feed_mixer_rec(), sndbuf_acquire(), sndbuf_dispose(), sndbuf_dump(), sndbuf_fillsilence(), sndbuf_fillsilence_rl(), sndbuf_getfree(), sndbuf_getfreeptr(), sndbuf_getready(), sndbuf_reset(), and sndbuf_softreset().
volatile int snd_dbuf::rp |
Definition at line 48 of file buffer.h.
Referenced by feed_mixer_rec(), sndbuf_dispose(), sndbuf_dump(), sndbuf_fillsilence(), sndbuf_fillsilence_rl(), sndbuf_getfreeptr(), sndbuf_getreadyptr(), and sndbuf_reset().
struct selinfo snd_dbuf::sel |
Definition at line 61 of file buffer.h.
Referenced by sndbuf_getsel().
u_int8_t* snd_dbuf::shadbuf |
shadow buffer used w/ S_D_SILENCE/SKIP
Definition at line 44 of file buffer.h.
Referenced by chn_init(), dsp_ioctl(), sndbuf_clearshadow(), sndbuf_free(), and sndbuf_remalloc().
volatile int snd_dbuf::sl |
shadbuf ready length in # of bytes
Definition at line 45 of file buffer.h.
Referenced by chn_init(), dsp_ioctl(), sndbuf_clearshadow(), sndbuf_free(), and sndbuf_remalloc().
u_int32_t snd_dbuf::spd |
Definition at line 53 of file buffer.h.
Referenced by sndbuf_dump(), sndbuf_getspd(), and sndbuf_setspd().
u_int8_t * snd_dbuf::tmpbuf |
Definition at line 43 of file buffer.h.
Referenced by feed_mixer_rec(), sndbuf_feed(), sndbuf_free(), sndbuf_remalloc(), and sndbuf_resize().
volatile u_int64_t snd_dbuf::total |
Definition at line 51 of file buffer.h.
Referenced by sndbuf_acquire(), sndbuf_dump(), sndbuf_getblocks(), sndbuf_gettotal(), sndbuf_reset(), and sndbuf_updateprevtotal().
int snd_dbuf::xrun |
Definition at line 55 of file buffer.h.
Referenced by sndbuf_dump(), sndbuf_getxrun(), sndbuf_reset(), and sndbuf_setxrun().