• Home
  • Raw
  • Download

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()
201 int snd_card_new(struct device *parent, int idx, const char *xid, in snd_card_new() argument
223 if (idx < 0) /* first check the matching module-name slot */ in snd_card_new()
224 idx = get_slot_from_bitmask(idx, module_slot_match, module); in snd_card_new()
225 if (idx < 0) /* if not matched, assign an empty slot */ in snd_card_new()
226 idx = get_slot_from_bitmask(idx, check_empty_slot, module); in snd_card_new()
227 if (idx < 0) in snd_card_new()
229 else if (idx < snd_ecards_limit) { in snd_card_new()
230 if (test_bit(idx, snd_cards_lock)) in snd_card_new()
232 } else if (idx >= SNDRV_CARDS) in snd_card_new()
237 idx, snd_ecards_limit - 1, err); in snd_card_new()
241 set_bit(idx, snd_cards_lock); /* lock it */ in snd_card_new()
242 if (idx >= snd_ecards_limit) in snd_card_new()
243 snd_ecards_limit = idx + 1; /* increase the limit */ in snd_card_new()
246 card->number = idx; in snd_card_new()
267 err = kobject_set_name(&card->card_dev.kobj, "card%d", idx); in snd_card_new()
652 size_t idx; in card_id_store_attr() local
655 for (idx = 0; idx < copy; idx++) { in card_id_store_attr()
656 c = buf[idx]; in card_id_store_attr()
780 int idx, count; in snd_card_info_read() local
783 for (idx = count = 0; idx < SNDRV_CARDS; idx++) { in snd_card_info_read()
785 if ((card = snd_cards[idx]) != NULL) { in snd_card_info_read()
788 idx, in snd_card_info_read()
804 int idx, count; in snd_card_info_read_oss() local
807 for (idx = count = 0; idx < SNDRV_CARDS; idx++) { in snd_card_info_read_oss()
809 if ((card = snd_cards[idx]) != NULL) { in snd_card_info_read_oss()
826 int idx; in snd_card_module_info_read() local
829 for (idx = 0; idx < SNDRV_CARDS; idx++) { in snd_card_module_info_read()
831 if ((card = snd_cards[idx]) != NULL) in snd_card_module_info_read()
833 idx, card->module->name); in snd_card_module_info_read()