Lines Matching defs:id
31 * Each sequencer device entry has an id string and the corresponding
32 * driver with the same id is loaded when required. For example,
61 char id[ID_LEN]; /* driver id */
96 static struct ops_list *find_driver(char *id, int create_if_empty);
97 static struct ops_list *create_driver(char *id);
114 ops->id,
163 request_module("snd-%s", ops->id);
176 * id = id of driver
179 int snd_seq_device_new(struct snd_card *card, int device, char *id, int argsize,
194 snd_assert(id != NULL, return -EINVAL);
196 ops = find_driver(id, 1);
209 strlcpy(dev->id, id, sizeof(dev->id));
241 ops = find_driver(dev->id, 0);
275 ops = find_driver(dev->id, 0);
297 ops = find_driver(dev->id, 0);
309 * id = driver id
312 int snd_seq_device_register_driver(char *id, struct snd_seq_dev_ops *entry,
318 if (id == NULL || entry == NULL ||
323 ops = find_driver(id, 1);
329 snd_printk(KERN_WARNING "driver_register: driver '%s' already exists\n", id);
357 static struct ops_list * create_driver(char *id)
366 strlcpy(ops->id, id, sizeof(ops->id));
372 lockdep_set_class(&ops->reg_mutex, (struct lock_class_key *)id);
392 int snd_seq_device_unregister_driver(char *id)
397 ops = find_driver(id, 0);
403 id, ops->driver);
464 dev->name, ops->id, ops->argsize, dev->argsize);
472 dev->name, dev->id);
491 dev->name, ops->id, ops->argsize, dev->argsize);
500 dev->name, dev->id);
507 * find the matching driver with given id
509 static struct ops_list * find_driver(char *id, int create_if_empty)
515 if (strcmp(ops->id, id) == 0) {
523 return create_driver(id);