Lines Matching defs:slot
89 static int check_empty_slot(struct module *module, int slot)
91 return !slots[slot] || !*slots[slot];
94 /* return an empty slot number (>= 0) found in the given bitmask @mask.
95 * @mask == -1 == 0xffffffff means: take any free slot up to 32
96 * when no slot is available, return the original @mask as is.
101 int slot;
103 for (slot = 0; slot < SNDRV_CARDS; slot++) {
104 if (slot < 32 && !(mask & (1U << slot)))
106 if (!test_bit(slot, snd_cards_lock)) {
107 if (check(module, slot))
108 return slot; /* found */
288 if (idx < 0) /* first check the matching module-name slot */
290 if (idx < 0) /* if not matched, assign an empty slot */
301 dev_err(parent, "cannot find the slot for index %d (range 0-%i), error: %d\n",