Lines Matching refs:b
31 #define SND_DMA(b) (sndbuf_getflags((b)) & SNDBUF_F_DMA) argument
32 #define SNDBUF_LOCKASSERT(b) argument
67 void sndbuf_destroy(struct snd_dbuf *b);
69 void sndbuf_dump(struct snd_dbuf *b, char *s, u_int32_t what);
71 int sndbuf_alloc(struct snd_dbuf *b, bus_dma_tag_t dmatag, int dmaflags, unsigned int size);
72 int sndbuf_setup(struct snd_dbuf *b, void *buf, unsigned int size);
73 void sndbuf_free(struct snd_dbuf *b);
74 int sndbuf_resize(struct snd_dbuf *b, unsigned int blkcnt, unsigned int blksz);
75 int sndbuf_remalloc(struct snd_dbuf *b, unsigned int blkcnt, unsigned int blksz);
76 void sndbuf_reset(struct snd_dbuf *b);
77 void sndbuf_clear(struct snd_dbuf *b, unsigned int length);
78 void sndbuf_fillsilence(struct snd_dbuf *b);
79 void sndbuf_fillsilence_rl(struct snd_dbuf *b, u_int rl);
80 void sndbuf_softreset(struct snd_dbuf *b);
81 void sndbuf_clearshadow(struct snd_dbuf *b);
83 u_int32_t sndbuf_getfmt(struct snd_dbuf *b);
84 int sndbuf_setfmt(struct snd_dbuf *b, u_int32_t fmt);
85 unsigned int sndbuf_getspd(struct snd_dbuf *b);
86 void sndbuf_setspd(struct snd_dbuf *b, unsigned int spd);
87 unsigned int sndbuf_getbps(struct snd_dbuf *b);
91 void *sndbuf_getbuf(struct snd_dbuf *b);
92 void *sndbuf_getbufofs(struct snd_dbuf *b, unsigned int ofs);
93 unsigned int sndbuf_getsize(struct snd_dbuf *b);
94 unsigned int sndbuf_getmaxsize(struct snd_dbuf *b);
95 unsigned int sndbuf_getallocsize(struct snd_dbuf *b);
96 unsigned int sndbuf_getalign(struct snd_dbuf *b);
97 unsigned int sndbuf_getblkcnt(struct snd_dbuf *b);
98 void sndbuf_setblkcnt(struct snd_dbuf *b, unsigned int blkcnt);
99 unsigned int sndbuf_getblksz(struct snd_dbuf *b);
100 void sndbuf_setblksz(struct snd_dbuf *b, unsigned int blksz);
101 unsigned int sndbuf_runsz(struct snd_dbuf *b);
102 void sndbuf_setrun(struct snd_dbuf *b, int go);
103 struct selinfo *sndbuf_getsel(struct snd_dbuf *b);
105 unsigned int sndbuf_getxrun(struct snd_dbuf *b);
106 void sndbuf_setxrun(struct snd_dbuf *b, unsigned int xrun);
107 unsigned int sndbuf_gethwptr(struct snd_dbuf *b);
108 void sndbuf_sethwptr(struct snd_dbuf *b, unsigned int ptr);
109 unsigned int sndbuf_getfree(struct snd_dbuf *b);
110 unsigned int sndbuf_getfreeptr(struct snd_dbuf *b);
111 unsigned int sndbuf_getready(struct snd_dbuf *b);
112 unsigned int sndbuf_getreadyptr(struct snd_dbuf *b);
113 u_int64_t sndbuf_getblocks(struct snd_dbuf *b);
114 u_int64_t sndbuf_getprevblocks(struct snd_dbuf *b);
115 u_int64_t sndbuf_gettotal(struct snd_dbuf *b);
116 u_int64_t sndbuf_getprevtotal(struct snd_dbuf *b);
119 void sndbuf_updateprevtotal(struct snd_dbuf *b);
121 int sndbuf_acquire(struct snd_dbuf *b, u_int8_t *from, unsigned int count);
122 int sndbuf_dispose(struct snd_dbuf *b, u_int8_t *to, unsigned int count);
125 u_int32_t sndbuf_getflags(struct snd_dbuf *b);
126 void sndbuf_setflags(struct snd_dbuf *b, u_int32_t flags, int on);
128 int sndbuf_dmasetup(struct snd_dbuf *b, struct resource *drq);
129 int sndbuf_dmasetdir(struct snd_dbuf *b, int dir);
130 void sndbuf_dma(struct snd_dbuf *b, int go);
131 int sndbuf_dmaptr(struct snd_dbuf *b);
132 void sndbuf_dmabounce(struct snd_dbuf *b);
135 void sndbuf_getpeaks(struct snd_dbuf *b, int *lp, int *rp);