Lines Matching defs:mdev

174 	struct macio_dev *mdev;
1751 pmac_call_feature(PMAC_FTR_MESH_ENABLE, macio_get_of_node(ms->mdev), 0, 1);
1754 pmac_call_feature(PMAC_FTR_MESH_ENABLE, macio_get_of_node(ms->mdev), 0, 0);
1761 static int mesh_suspend(struct macio_dev *mdev, pm_message_t mesg)
1763 struct mesh_state *ms = (struct mesh_state *)macio_get_drvdata(mdev);
1792 static int mesh_resume(struct macio_dev *mdev)
1794 struct mesh_state *ms = (struct mesh_state *)macio_get_drvdata(mdev);
1818 static int mesh_shutdown(struct macio_dev *mdev)
1820 struct mesh_state *ms = (struct mesh_state *)macio_get_drvdata(mdev);
1851 static int mesh_probe(struct macio_dev *mdev, const struct of_device_id *match)
1853 struct device_node *mesh = macio_get_of_node(mdev);
1854 struct pci_dev* pdev = macio_get_pci_dev(mdev);
1862 switch (mdev->bus->chip->type) {
1872 if (macio_resource_count(mdev) != 2 || macio_irq_count(mdev) != 2) {
1874 " (got %d,%d)\n", macio_resource_count(mdev),
1875 macio_irq_count(mdev));
1879 if (macio_request_resources(mdev, "mesh") != 0) {
1894 mesh_host->base = macio_resource_start(mdev, 0);
1895 mesh_host->irq = macio_irq(mdev, 0);
1897 macio_set_drvdata(mdev, ms);
1899 ms->mdev = mdev;
1902 ms->mesh = ioremap(macio_resource_start(mdev, 0), 0x1000);
1907 ms->dma = ioremap(macio_resource_start(mdev, 1), 0x1000);
1914 ms->meshintr = macio_irq(mdev, 0);
1915 ms->dmaintr = macio_irq(mdev, 1);
1925 dma_cmd_space = dma_alloc_coherent(&macio_get_pci_dev(mdev)->dev,
1971 if (scsi_add_host(mesh_host, &mdev->ofdev.dev))
1983 mesh_shutdown(mdev);
1985 dma_free_coherent(&macio_get_pci_dev(mdev)->dev, ms->dma_cmd_size,
1993 macio_release_resources(mdev);
1998 static int mesh_remove(struct macio_dev *mdev)
2000 struct mesh_state *ms = (struct mesh_state *)macio_get_drvdata(mdev);
2008 mesh_shutdown(mdev);
2018 dma_free_coherent(&macio_get_pci_dev(mdev)->dev, ms->dma_cmd_size,
2022 macio_release_resources(mdev);