Lines Matching refs:ofdev
53 tmp = get_device(&dev->ofdev.dev); in macio_dev_get()
63 put_device(&dev->ofdev.dev); in macio_dev_put()
236 dev->interrupt[index].name = dev_name(&dev->ofdev.dev); in macio_create_fixup_irq()
244 struct device_node *np = dev->ofdev.dev.of_node; in macio_add_missing_resources()
285 struct device_node *np = dev->ofdev.dev.of_node; in macio_setup_interrupts()
300 res->name = dev_name(&dev->ofdev.dev); in macio_setup_interrupts()
313 struct device_node *np = dev->ofdev.dev.of_node; in macio_setup_resources()
323 res->name = dev_name(&dev->ofdev.dev); in macio_setup_resources()
336 index, dev_name(&dev->ofdev.dev)); in macio_setup_resources()
370 dev->ofdev.dev.of_node = np; in macio_add_one_device()
371 dev->ofdev.archdata.dma_mask = 0xffffffffUL; in macio_add_one_device()
372 dev->ofdev.dev.dma_mask = &dev->ofdev.archdata.dma_mask; in macio_add_one_device()
373 dev->ofdev.dev.coherent_dma_mask = dev->ofdev.archdata.dma_mask; in macio_add_one_device()
374 dev->ofdev.dev.parent = parent; in macio_add_one_device()
375 dev->ofdev.dev.bus = &macio_bus_type; in macio_add_one_device()
376 dev->ofdev.dev.release = macio_release_dev; in macio_add_one_device()
377 dev->ofdev.dev.dma_parms = &dev->dma_parms; in macio_add_one_device()
380 dma_set_max_seg_size(&dev->ofdev.dev, 65536); in macio_add_one_device()
381 dma_set_seg_boundary(&dev->ofdev.dev, 0xffffffff); in macio_add_one_device()
390 dev->ofdev.dev.archdata = chip->lbus.pdev->dev.archdata; in macio_add_one_device()
391 dev->ofdev.dev.dma_ops = chip->lbus.pdev->dev.dma_ops; in macio_add_one_device()
396 dev, &dev->ofdev, &dev->ofdev.dev, &dev->ofdev.dev.kobj); in macio_add_one_device()
402 dev_set_name(&dev->ofdev.dev, "%1d.%08x:%.*s", in macio_add_one_device()
412 dev_set_name(&dev->ofdev.dev, "%1d.%08x:%.*s", in macio_add_one_device()
423 if (of_device_register(&dev->ofdev) != 0) { in macio_add_one_device()
425 dev_name(&dev->ofdev.dev)); in macio_add_one_device()
479 mdev = macio_add_one_device(chip, &rdev->ofdev.dev, np, NULL, in macio_pci_add_devices()
491 pnode = mbdev->ofdev.dev.of_node; in macio_pci_add_devices()
496 if (macio_add_one_device(chip, &mbdev->ofdev.dev, np, in macio_pci_add_devices()
504 pnode = sdev->ofdev.dev.of_node; in macio_pci_add_devices()
509 if (macio_add_one_device(chip, &sdev->ofdev.dev, np, in macio_pci_add_devices()
561 dr = devres_find(&dev->ofdev.dev, maciom_release, NULL, NULL); in macio_enable_devres()
567 return devres_get(&dev->ofdev.dev, dr, NULL, NULL) != NULL; in macio_enable_devres()
572 return devres_find(&dev->ofdev.dev, maciom_release, NULL, NULL); in find_macio_dr()
613 dev_name(&dev->ofdev.dev)); in macio_request_resource()