FreeBSD kernel sound device code
snd_dbuf Struct Reference

#include <buffer.h>

Collaboration diagram for snd_dbuf:

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_channelchannel
 
char name [SNDBUF_NAMELEN]
 

Detailed Description

Definition at line 41 of file buffer.h.

Field Documentation

◆ align

u_int32_t snd_dbuf::align

Definition at line 53 of file buffer.h.

Referenced by sndbuf_getalign(), and sndbuf_setfmt().

◆ allocsize

unsigned int snd_dbuf::allocsize

Definition at line 46 of file buffer.h.

Referenced by sndbuf_getallocsize(), sndbuf_remalloc(), and sndbuf_resize().

◆ blkcnt

unsigned int snd_dbuf::blkcnt

◆ blksz

◆ bps

u_int32_t snd_dbuf::bps

Definition at line 53 of file buffer.h.

Referenced by sndbuf_getbps(), and sndbuf_setfmt().

◆ buf

◆ buf_addr

bus_addr_t snd_dbuf::buf_addr

Definition at line 59 of file buffer.h.

Referenced by sndbuf_alloc(), sndbuf_free(), and sndbuf_setmap().

◆ bufsize

◆ channel

struct pcm_channel* snd_dbuf::channel

Definition at line 62 of file buffer.h.

Referenced by sndbuf_create(), sndbuf_remalloc(), and sndbuf_resize().

◆ dev

device_t snd_dbuf::dev

Definition at line 42 of file buffer.h.

Referenced by sndbuf_create(), and sndbuf_setmap().

◆ dir

int snd_dbuf::dir

Definition at line 52 of file buffer.h.

Referenced by sndbuf_dma(), and sndbuf_dmasetdir().

◆ dl

volatile int snd_dbuf::dl

Definition at line 47 of file buffer.h.

Referenced by sndbuf_dump(), sndbuf_reset(), sndbuf_runsz(), and sndbuf_setrun().

◆ dmachan

int snd_dbuf::dmachan

Definition at line 52 of file buffer.h.

Referenced by sndbuf_dma(), sndbuf_dmaptr(), and sndbuf_dmasetup().

◆ dmaflags

int snd_dbuf::dmaflags

Definition at line 60 of file buffer.h.

Referenced by sndbuf_alloc().

◆ dmamap

bus_dmamap_t snd_dbuf::dmamap

Definition at line 57 of file buffer.h.

Referenced by sndbuf_alloc(), and sndbuf_free().

◆ dmatag

bus_dma_tag_t snd_dbuf::dmatag

Definition at line 58 of file buffer.h.

Referenced by sndbuf_alloc(), and sndbuf_free().

◆ flags

u_int32_t snd_dbuf::flags

◆ fmt

u_int32_t snd_dbuf::fmt

◆ hp

volatile int snd_dbuf::hp

Definition at line 50 of file buffer.h.

Referenced by sndbuf_dump(), sndbuf_gethwptr(), sndbuf_reset(), and sndbuf_sethwptr().

◆ maxsize

unsigned int snd_dbuf::maxsize

◆ name

char snd_dbuf::name[SNDBUF_NAMELEN]

Definition at line 63 of file buffer.h.

Referenced by sndbuf_create().

◆ prev_total

volatile u_int64_t snd_dbuf::prev_total

◆ rl

◆ rp

◆ sel

struct selinfo snd_dbuf::sel

Definition at line 61 of file buffer.h.

Referenced by sndbuf_getsel().

◆ shadbuf

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().

◆ sl

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().

◆ spd

u_int32_t snd_dbuf::spd

Definition at line 53 of file buffer.h.

Referenced by sndbuf_dump(), sndbuf_getspd(), and sndbuf_setspd().

◆ tmpbuf

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().

◆ total

volatile u_int64_t snd_dbuf::total

◆ xrun

int snd_dbuf::xrun

Definition at line 55 of file buffer.h.

Referenced by sndbuf_dump(), sndbuf_getxrun(), sndbuf_reset(), and sndbuf_setxrun().


The documentation for this struct was generated from the following file: