Lines Matching refs:tmask
611 snd_clone_alloc(struct snd_clone *c, struct cdev **dev, int *unit, int tmask)
620 SND_CLONE_ASSERT((c->typemask & tmask) == tmask,
621 ("invalid tmask: typemask=0x%08x tmask=0x%08x",
622 c->typemask, tmask));
624 SND_CLONE_ASSERT(*unit == -1 || !(*unit & (c->typemask | tmask)),
625 ("typemask collision: typemask=0x%08x tmask=0x%08x *unit=%d",
626 c->typemask, tmask, *unit));
648 if (tmask > (ce->unit & c->typemask)) {
652 } else if (tmask < (ce->unit & c->typemask))
659 if (*unit != -1 && *unit == (ce->unit & ~tmask))
668 if (*unit == -1 && (ce->unit & ~tmask) == allocunit)
670 if ((ce->unit & ~tmask) < allocunit)
709 if (allocunit < (nce->unit & ~tmask))
766 ce->unit = tmask | allocunit;