Lines Matching refs:dmp
33 struct devmap *dmp; in dev_map_add() local
38 dmp = malloc(sizeof(struct devmap)); in dev_map_add()
39 if (sscanf(line, "%s %s", dmp->device, dmp->devno) != 2) { in dev_map_add()
40 free(dmp); in dev_map_add()
44 list_add_tail(&dmp->head, &all_devmaps); in dev_map_add()
55 struct devmap *dmp = list_entry(p, struct devmap, head); in dev_map_find() local
57 if (!strcmp(this, dmp->devno)) in dev_map_find()
58 return dmp->device; in dev_map_find()
87 struct devmap *dmp = list_entry(p, struct devmap, head); in dev_map_exit() local
89 list_del(&dmp->head); in dev_map_exit()
90 free(dmp); in dev_map_exit()