Lines Matching refs:mdp
657 struct map_dev *mdp = malloc(sizeof(*mdp)); in read_map_devs() local
659 mdp->from_dev = from_dev; in read_map_devs()
660 mdp->to_dev = to_dev; in read_map_devs()
661 list_add_tail(&mdp->head, &map_devs); in read_map_devs()
675 struct map_dev *mdp = list_entry(p, struct map_dev, head); in release_map_devs() local
677 list_del(&mdp->head); in release_map_devs()
679 free(mdp->from_dev); in release_map_devs()
680 free(mdp->to_dev); in release_map_devs()
681 free(mdp); in release_map_devs()
696 struct map_dev *mdp = list_entry(p, struct map_dev, head); in map_dev() local
698 if (strcmp(from_dev, mdp->from_dev) == 0) in map_dev()
699 return mdp->to_dev; in map_dev()