Lines Matching defs:mdev
1474 static int pmz_attach(struct macio_dev *mdev, const struct of_device_id *match)
1482 if (pmz_ports[i].node == mdev->ofdev.dev.of_node)
1489 uap->dev = mdev;
1490 uap->port.dev = &mdev->ofdev.dev;
1491 dev_set_drvdata(&mdev->ofdev.dev, uap);
1510 static int pmz_detach(struct macio_dev *mdev)
1512 struct uart_pmac_port *uap = dev_get_drvdata(&mdev->ofdev.dev);
1523 dev_set_drvdata(&mdev->ofdev.dev, NULL);
1531 static int pmz_suspend(struct macio_dev *mdev, pm_message_t pm_state)
1533 struct uart_pmac_port *uap = dev_get_drvdata(&mdev->ofdev.dev);
1546 static int pmz_resume(struct macio_dev *mdev)
1548 struct uart_pmac_port *uap = dev_get_drvdata(&mdev->ofdev.dev);