Lines Matching refs:mdp
639 struct map_dev *mdp = malloc(sizeof(*mdp));
641 mdp->from_dev = from_dev;
642 mdp->to_dev = to_dev;
643 list_add_tail(&mdp->head, &map_devs);
657 struct map_dev *mdp = list_entry(p, struct map_dev, head);
659 list_del(&mdp->head);
661 free(mdp->from_dev);
662 free(mdp->to_dev);
663 free(mdp);
678 struct map_dev *mdp = list_entry(p, struct map_dev, head);
680 if (strcmp(from_dev, mdp->from_dev) == 0)
681 return mdp->to_dev;