Lines Matching defs:ent
210 struct sndstat_entry *ent;
212 SLIST_FOREACH(ent, &sndstat_devlist, link) {
213 if (ent->type == type && ent->unit == unit)
214 return ent;
255 struct sndstat_entry *ent;
275 ent = malloc(sizeof *ent, M_DEVBUF, M_WAITOK | M_ZERO);
276 ent->dev = dev;
277 ent->str = str;
278 ent->type = type;
279 ent->unit = unit;
280 ent->handler = handler;
283 SLIST_INSERT_HEAD(&sndstat_devlist, ent, link);
301 struct sndstat_entry *ent;
304 SLIST_FOREACH(ent, &sndstat_devlist, link) {
305 if (ent->dev == dev) {
306 SLIST_REMOVE(&sndstat_devlist, ent, sndstat_entry, link);
308 free(ent, M_DEVBUF);
321 struct sndstat_entry *ent;
324 SLIST_FOREACH(ent, &sndstat_devlist, link) {
325 if (ent->dev == NULL && ent->str == str) {
326 SLIST_REMOVE(&sndstat_devlist, ent, sndstat_entry, link);
329 free(ent, M_DEVBUF);
344 struct sndstat_entry *ent;
364 ent = sndstat_find(j, i);
365 if (!ent)
367 d = device_get_softc(ent->dev);
372 sbuf_printf(s, "%s:", device_get_nameunit(ent->dev));
373 sbuf_printf(s, " <%s>", device_get_desc(ent->dev));
375 sbuf_printf(s, " %s", ent->str);
376 if (ent->handler)
377 ent->handler(s, ent->dev, snd_verbose);
386 SLIST_FOREACH(ent, &sndstat_devlist, link) {
387 if (ent->dev == NULL && ent->str != NULL)
388 sbuf_printf(s, "%s\n", ent->str);