Lines Matching refs:mdev
58 struct macio_dev *mdev; member
410 static int mac53c94_probe(struct macio_dev *mdev, const struct of_device_id *match) in mac53c94_probe() argument
412 struct device_node *node = macio_get_of_node(mdev); in mac53c94_probe()
413 struct pci_dev *pdev = macio_get_pci_dev(mdev); in mac53c94_probe()
420 if (macio_resource_count(mdev) != 2 || macio_irq_count(mdev) != 2) { in mac53c94_probe()
423 macio_resource_count(mdev), macio_irq_count(mdev)); in mac53c94_probe()
427 if (macio_request_resources(mdev, "mac53c94") != 0) { in mac53c94_probe()
440 macio_set_drvdata(mdev, state); in mac53c94_probe()
443 state->mdev = mdev; in mac53c94_probe()
446 ioremap(macio_resource_start(mdev, 0), 0x1000); in mac53c94_probe()
447 state->intr = macio_irq(mdev, 0); in mac53c94_probe()
449 ioremap(macio_resource_start(mdev, 1), 0x1000); in mac53c94_probe()
450 state->dmaintr = macio_irq(mdev, 1); in mac53c94_probe()
490 rc = scsi_add_host(host, &mdev->ofdev.dev); in mac53c94_probe()
508 macio_release_resources(mdev); in mac53c94_probe()
513 static int mac53c94_remove(struct macio_dev *mdev) in mac53c94_remove() argument
515 struct fsc_state *fp = (struct fsc_state *)macio_get_drvdata(mdev); in mac53c94_remove()
530 macio_release_resources(mdev); in mac53c94_remove()