Lines Matching refs:mdev
1559 static int pmz_attach(struct macio_dev *mdev, const struct of_device_id *match) in pmz_attach() argument
1567 if (pmz_ports[i].node == mdev->ofdev.dev.of_node) in pmz_attach()
1574 uap->dev = mdev; in pmz_attach()
1575 uap->port.dev = &mdev->ofdev.dev; in pmz_attach()
1576 dev_set_drvdata(&mdev->ofdev.dev, uap); in pmz_attach()
1595 static int pmz_detach(struct macio_dev *mdev) in pmz_detach() argument
1597 struct uart_pmac_port *uap = dev_get_drvdata(&mdev->ofdev.dev); in pmz_detach()
1608 dev_set_drvdata(&mdev->ofdev.dev, NULL); in pmz_detach()
1616 static int pmz_suspend(struct macio_dev *mdev, pm_message_t pm_state) in pmz_suspend() argument
1618 struct uart_pmac_port *uap = dev_get_drvdata(&mdev->ofdev.dev); in pmz_suspend()
1631 static int pmz_resume(struct macio_dev *mdev) in pmz_resume() argument
1633 struct uart_pmac_port *uap = dev_get_drvdata(&mdev->ofdev.dev); in pmz_resume()