Lines Matching +full:grant +full:- +full:dma
1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 2005-2009 Ariff Abdullah <ariff@FreeBSD.org>
5 * Portions Copyright (c) Ryan Beasley <ryan.beasley@gmail.com> - GSoC 2006
6 * Copyright (c) 1999 Cameron Grant <cg@FreeBSD.org>
8 * Copyright (c) 2024-2025 The FreeBSD Foundation
146 u_int16_t lpeak, rpeak; /**< Peak value from 0-32767. */
180 #define CHN_HEAD(x, y) &(x)->y.head
236 if (((y)->type w t->type) || \
237 (((y)->type == t->type) && ((y)->unit w t->unit))) \
252 (((x) != NULL && (x)->parentchannel != NULL && \
253 (x)->parentchannel->bufhard != NULL) ? \
254 (x)->parentchannel->bufhard : (y))
313 #define CHN_GETVOLUME(x, y, z) ((x)->volume[y][z])
316 #define CHN_GETMUTE(x, y, z) ((x)->muted[y][z])
322 #define CHN_LOCKOWNED(c) mtx_owned((c)->lock)
323 #define CHN_LOCK(c) mtx_lock((c)->lock)
324 #define CHN_UNLOCK(c) mtx_unlock((c)->lock)
325 #define CHN_TRYLOCK(c) mtx_trylock((c)->lock)
326 #define CHN_LOCKASSERT(c) mtx_assert((c)->lock, MA_OWNED)
327 #define CHN_UNLOCKASSERT(c) mtx_assert((c)->lock, MA_NOTOWNED)
354 #define PCMTRIG_ABORT -1
362 #define CHN_F_RUNNING 0x00000004 /* dma is running */
367 #define CHN_F_NBIO 0x00000040 /* do non-blocking i/o */
371 #define CHN_F_DIRTY 0x00000200 /* need re-config */
383 #define CHN_F_BITPERFECT 0x20000000 /* un-cooked, Heh.. */
384 #define CHN_F_PASSTHROUGH 0x40000000 /* passthrough re-config */
435 #define CHN_STARTED(c) ((c)->flags & CHN_F_TRIGGERED)
437 #define CHN_DIRSTR(c) (((c)->direction == PCMDIR_PLAY) ? \
439 #define CHN_BITPERFECT(c) ((c)->flags & CHN_F_BITPERFECT)
440 #define CHN_PASSTHROUGH(c) ((c)->flags & CHN_F_PASSTHROUGH)