Lines Matching refs:idx

64 static int module_slot_match(struct module *module, int idx)  in module_slot_match()  argument
70 if (!module || !*module->name || !slots[idx]) in module_slot_match()
74 s2 = slots[idx]; in module_slot_match()
208 int snd_card_new(struct device *parent, int idx, const char *xid, in snd_card_new() argument
230 if (idx < 0) /* first check the matching module-name slot */ in snd_card_new()
231 idx = get_slot_from_bitmask(idx, module_slot_match, module); in snd_card_new()
232 if (idx < 0) /* if not matched, assign an empty slot */ in snd_card_new()
233 idx = get_slot_from_bitmask(idx, check_empty_slot, module); in snd_card_new()
234 if (idx < 0) in snd_card_new()
236 else if (idx < snd_ecards_limit) { in snd_card_new()
237 if (test_bit(idx, snd_cards_lock)) in snd_card_new()
239 } else if (idx >= SNDRV_CARDS) in snd_card_new()
244 idx, snd_ecards_limit - 1, err); in snd_card_new()
248 set_bit(idx, snd_cards_lock); /* lock it */ in snd_card_new()
249 if (idx >= snd_ecards_limit) in snd_card_new()
250 snd_ecards_limit = idx + 1; /* increase the limit */ in snd_card_new()
253 card->number = idx; in snd_card_new()
274 err = kobject_set_name(&card->card_dev.kobj, "card%d", idx); in snd_card_new()
661 size_t idx; in card_id_store_attr() local
664 for (idx = 0; idx < copy; idx++) { in card_id_store_attr()
665 c = buf[idx]; in card_id_store_attr()
791 int idx, count; in snd_card_info_read() local
794 for (idx = count = 0; idx < SNDRV_CARDS; idx++) { in snd_card_info_read()
796 if ((card = snd_cards[idx]) != NULL) { in snd_card_info_read()
799 idx, in snd_card_info_read()
816 int idx, count; in snd_card_info_read_oss() local
819 for (idx = count = 0; idx < SNDRV_CARDS; idx++) { in snd_card_info_read_oss()
821 if ((card = snd_cards[idx]) != NULL) { in snd_card_info_read_oss()
839 int idx; in snd_card_module_info_read() local
842 for (idx = 0; idx < SNDRV_CARDS; idx++) { in snd_card_module_info_read()
844 if ((card = snd_cards[idx]) != NULL) in snd_card_module_info_read()
846 idx, card->module->name); in snd_card_module_info_read()