Lines Matching refs:mdev
58 struct macio_dev *mdev; member
409 static int mac53c94_probe(struct macio_dev *mdev, const struct of_device_id *match) in mac53c94_probe() argument
411 struct device_node *node = macio_get_of_node(mdev); in mac53c94_probe()
412 struct pci_dev *pdev = macio_get_pci_dev(mdev); in mac53c94_probe()
419 if (macio_resource_count(mdev) != 2 || macio_irq_count(mdev) != 2) { in mac53c94_probe()
422 macio_resource_count(mdev), macio_irq_count(mdev)); in mac53c94_probe()
426 if (macio_request_resources(mdev, "mac53c94") != 0) { in mac53c94_probe()
439 macio_set_drvdata(mdev, state); in mac53c94_probe()
442 state->mdev = mdev; in mac53c94_probe()
445 ioremap(macio_resource_start(mdev, 0), 0x1000); in mac53c94_probe()
446 state->intr = macio_irq(mdev, 0); in mac53c94_probe()
448 ioremap(macio_resource_start(mdev, 1), 0x1000); in mac53c94_probe()
449 state->dmaintr = macio_irq(mdev, 1); in mac53c94_probe()
489 rc = scsi_add_host(host, &mdev->ofdev.dev); in mac53c94_probe()
507 macio_release_resources(mdev); in mac53c94_probe()
512 static int mac53c94_remove(struct macio_dev *mdev) in mac53c94_remove() argument
514 struct fsc_state *fp = (struct fsc_state *)macio_get_drvdata(mdev); in mac53c94_remove()
529 macio_release_resources(mdev); in mac53c94_remove()