Lines Matching defs:mdev
1541 static int pmz_attach(struct macio_dev *mdev, const struct of_device_id *match)
1549 if (pmz_ports[i].node == mdev->ofdev.dev.of_node)
1556 uap->dev = mdev;
1557 uap->port.dev = &mdev->ofdev.dev;
1558 dev_set_drvdata(&mdev->ofdev.dev, uap);
1577 static int pmz_detach(struct macio_dev *mdev)
1579 struct uart_pmac_port *uap = dev_get_drvdata(&mdev->ofdev.dev);
1590 dev_set_drvdata(&mdev->ofdev.dev, NULL);
1598 static int pmz_suspend(struct macio_dev *mdev, pm_message_t pm_state)
1600 struct uart_pmac_port *uap = dev_get_drvdata(&mdev->ofdev.dev);
1613 static int pmz_resume(struct macio_dev *mdev)
1615 struct uart_pmac_port *uap = dev_get_drvdata(&mdev->ofdev.dev);