Lines Matching refs:tmask
613 snd_clone_alloc(struct snd_clone *c, struct cdev **dev, int *unit, int tmask) in snd_clone_alloc() argument
622 SND_CLONE_ASSERT((c->typemask & tmask) == tmask, in snd_clone_alloc()
624 c->typemask, tmask)); in snd_clone_alloc()
626 SND_CLONE_ASSERT(*unit == -1 || !(*unit & (c->typemask | tmask)), in snd_clone_alloc()
628 c->typemask, tmask, *unit)); in snd_clone_alloc()
650 if (tmask > (ce->unit & c->typemask)) { in snd_clone_alloc()
654 } else if (tmask < (ce->unit & c->typemask)) in snd_clone_alloc()
661 if (*unit != -1 && *unit == (ce->unit & ~tmask)) in snd_clone_alloc()
670 if (*unit == -1 && (ce->unit & ~tmask) == allocunit) in snd_clone_alloc()
672 if ((ce->unit & ~tmask) < allocunit) in snd_clone_alloc()
711 if (allocunit < (nce->unit & ~tmask)) in snd_clone_alloc()
768 ce->unit = tmask | allocunit; in snd_clone_alloc()