/drivers/ide/ |
D | ide-probe.c | 538 ide_hwif_t *hwif = container_of(dev, ide_hwif_t, gendev); in hwif_release_dev() 548 dev_set_name(&hwif->gendev, "%s", hwif->name); in ide_register_port() 549 dev_set_drvdata(&hwif->gendev, hwif); in ide_register_port() 550 if (hwif->gendev.parent == NULL) in ide_register_port() 551 hwif->gendev.parent = hwif->dev; in ide_register_port() 552 hwif->gendev.release = hwif_release_dev; in ide_register_port() 554 ret = device_register(&hwif->gendev); in ide_register_port() 561 hwif->portdev = device_create(ide_port_class, &hwif->gendev, in ide_register_port() 565 device_unregister(&hwif->gendev); in ide_register_port() 951 ide_drive_t *drive = container_of(dev, ide_drive_t, gendev); in drive_release_dev() [all …]
|
D | pmac.c | 418 pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent); in pmac_ide_apply_timings() 435 pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent); in pmac_ide_kauai_apply_timings() 454 pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent); in pmac_ide_do_update_timings() 499 pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent); in pmac_ide_set_pio_mode() 780 pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent); in pmac_ide_set_dma_mode() 917 pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent); in pmac_ide_cable_detect() 948 pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent); in pmac_ide_init_dev() 1460 pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent); in pmac_ide_build_dmatable() 1537 pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent); in pmac_ide_dma_setup() 1562 pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent); in pmac_ide_dma_start() [all …]
|
D | ide-gd.c | 143 drive->gendev.bus->suspend(&drive->gendev, PMSG_SUSPEND); 393 idkp->dev.parent = &drive->gendev; 395 dev_set_name(&idkp->dev, "%s", dev_name(&drive->gendev)); 419 device_add_disk(&drive->gendev, g);
|
D | ide.c | 76 if (!get_device(&drive->gendev)) in ide_device_get() 83 put_device(&drive->gendev); in ide_device_get() 106 put_device(&drive->gendev); in ide_device_put()
|
D | ide-proc.c | 514 struct device *dev = &drive->gendev; in ide_driver_proc_show() 533 struct device *dev = &drive->gendev; in ide_replace_subdriver()
|
D | ide-tape.c | 1986 tape->dev.parent = &drive->gendev; in ide_tape_probe() 1988 dev_set_name(&tape->dev, "%s", dev_name(&drive->gendev)); in ide_tape_probe() 2009 device_create(idetape_sysfs_class, &drive->gendev, in ide_tape_probe() 2011 device_create(idetape_sysfs_class, &drive->gendev, in ide_tape_probe()
|
D | ide-cd.c | 1757 info->dev.parent = &drive->gendev; in ide_cd_probe() 1759 dev_set_name(&info->dev, "%s", dev_name(&drive->gendev)); in ide_cd_probe() 1782 device_add_disk(&drive->gendev, g); in ide_cd_probe()
|
D | ide-acpi.c | 181 struct device *dev = hwif->gendev.parent; in ide_acpi_hwif_get_handle()
|
/drivers/net/can/ |
D | led.c | 60 static void can_led_release(struct device *gendev, void *res) in can_led_release() argument 62 struct can_priv *priv = netdev_priv(to_net_dev(gendev)); in can_led_release()
|
/drivers/net/ethernet/3com/ |
D | 3c59x.c | 611 struct device *gendev; member 702 ((struct pci_dev *) (((vp)->gendev) ? DEVICE_PCI((vp)->gendev) : NULL)) 711 ((struct eisa_device *) (((vp)->gendev) ? DEVICE_EISA((vp)->gendev) : NULL)) 754 static int vortex_probe1(struct device *gendev, void __iomem *ioaddr, int irq, 1097 static int vortex_probe1(struct device *gendev, void __iomem *ioaddr, int irq, in vortex_probe1() argument 1117 if (gendev) { in vortex_probe1() 1118 if ((pdev = DEVICE_PCI(gendev))) { in vortex_probe1() 1122 if ((edev = DEVICE_EISA(gendev))) { in vortex_probe1() 1132 SET_NETDEV_DEV(dev, gendev); in vortex_probe1() 1181 if (gendev == NULL) { in vortex_probe1() [all …]
|
/drivers/net/ethernet/dec/tulip/ |
D | de4x5.c | 856 struct device *gendev; /* Generic device */ member 910 static int de4x5_hw_init(struct net_device *dev, u_long iobase, struct device *gendev); 1095 de4x5_hw_init(struct net_device *dev, u_long iobase, struct device *gendev) in de4x5_hw_init() argument 1102 dev_set_drvdata(gendev, dev); in de4x5_hw_init() 1108 pdev = to_pci_dev (gendev); in de4x5_hw_init() 1126 EISA_signature(name, gendev); in de4x5_hw_init() 1134 printk ("%s: %s at 0x%04lx", dev_name(gendev), name, iobase); in de4x5_hw_init() 1149 lp->gendev = gendev; in de4x5_hw_init() 1169 sprintf(lp->adapter_name,"%s (%s)", name, dev_name(gendev)); in de4x5_hw_init() 1175 lp->rx_ring = dma_alloc_coherent(gendev, lp->dma_size, in de4x5_hw_init() [all …]
|
/drivers/macintosh/ |
D | macio_asic.c | 549 static void maciom_release(struct device *gendev, void *res) in maciom_release() argument 551 struct macio_dev *dev = to_macio_device(gendev); in maciom_release()
|
/drivers/net/ethernet/hp/ |
D | hp100.c | 2841 static int hp100_eisa_probe(struct device *gendev) in hp100_eisa_probe() argument 2844 struct eisa_device *edev = to_eisa_device(gendev); in hp100_eisa_probe() 2860 dev_set_drvdata(gendev, dev); in hp100_eisa_probe() 2867 static int hp100_eisa_remove(struct device *gendev) in hp100_eisa_remove() argument 2869 struct net_device *dev = dev_get_drvdata(gendev); in hp100_eisa_remove()
|
/drivers/net/arcnet/ |
D | arcnet.c | 222 static void arcnet_led_release(struct device *gendev, void *res) in arcnet_led_release() argument 224 struct arcnet_local *lp = netdev_priv(to_net_dev(gendev)); in arcnet_led_release()
|
/drivers/ata/ |
D | libata-core.c | 5894 static void ata_host_release(struct device *gendev, void *res) in ata_host_release() argument 5896 struct ata_host *host = dev_get_drvdata(gendev); in ata_host_release() 5914 dev_set_drvdata(gendev, NULL); in ata_host_release() 6093 static void ata_host_stop(struct device *gendev, void *res) in ata_host_stop() argument 6095 struct ata_host *host = dev_get_drvdata(gendev); in ata_host_stop()
|
/drivers/pci/ |
D | pci.c | 1464 static void pcim_release(struct device *gendev, void *res) in pcim_release() argument 1466 struct pci_dev *dev = to_pci_dev(gendev); in pcim_release()
|