Lines Matching defs:nm
288 struct gpio_name *nm;
290 LIST_FOREACH(nm, &sc->sc_names, gp_next)
291 if (!strcmp(nm->gp_name, gp_name))
292 return (nm->gp_pin);
305 struct gpio_name *nm;
476 LIST_FOREACH(nm, &sc->sc_names, gp_next)
477 if (nm->gp_pin == pin) {
478 strlcpy(nm->gp_name, set->gp_name2,
479 sizeof(nm->gp_name));
484 nm = malloc(sizeof(*nm), M_DEVBUF, M_WAITOK);
485 strlcpy(nm->gp_name, set->gp_name2,
486 sizeof(nm->gp_name));
487 nm->gp_pin = set->gp_pin;
488 LIST_INSERT_HEAD(&sc->sc_names, nm, gp_next);
511 LIST_FOREACH(nm, &sc->sc_names, gp_next) {
512 if (nm->gp_pin == pin) {
513 LIST_REMOVE(nm, gp_next);
514 free(nm, M_DEVBUF, sizeof(*nm));