Lines Matching refs:tmask
519 snd_clone_alloc(struct snd_clone *c, struct cdev **dev, int *unit, int tmask) in snd_clone_alloc() argument
528 SND_CLONE_ASSERT((c->typemask & tmask) == tmask, in snd_clone_alloc()
530 c->typemask, tmask)); in snd_clone_alloc()
532 SND_CLONE_ASSERT(*unit == -1 || !(*unit & (c->typemask | tmask)), in snd_clone_alloc()
534 c->typemask, tmask, *unit)); in snd_clone_alloc()
556 if (tmask > (ce->unit & c->typemask)) { in snd_clone_alloc()
560 } else if (tmask < (ce->unit & c->typemask)) in snd_clone_alloc()
567 if (*unit != -1 && *unit == (ce->unit & ~tmask)) in snd_clone_alloc()
576 if (*unit == -1 && (ce->unit & ~tmask) == allocunit) in snd_clone_alloc()
578 if ((ce->unit & ~tmask) < allocunit) in snd_clone_alloc()
617 if (allocunit < (nce->unit & ~tmask)) in snd_clone_alloc()
674 ce->unit = tmask | allocunit; in snd_clone_alloc()