Home
last modified time | relevance | path

Searched refs:gendev (Results 1 – 16 of 16) sorted by relevance

/drivers/ide/
Dide-probe.c538 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 …]
Dpmac.c419 pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent); in pmac_ide_apply_timings()
436 pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent); in pmac_ide_kauai_apply_timings()
455 pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent); in pmac_ide_do_update_timings()
500 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()
949 pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent); in pmac_ide_init_dev()
1461 pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent); in pmac_ide_build_dmatable()
1538 pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent); in pmac_ide_dma_setup()
1563 pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent); in pmac_ide_dma_start()
[all …]
Dide-gd.c143 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));
415 g->driverfs_dev = &drive->gendev;
Dide.c76 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()
Dide-proc.c514 struct device *dev = &drive->gendev; in ide_driver_proc_show()
533 struct device *dev = &drive->gendev; in ide_replace_subdriver()
Dide-tape.c1986 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()
Dide-cd.c1759 info->dev.parent = &drive->gendev; in ide_cd_probe()
1761 dev_set_name(&info->dev, "%s", dev_name(&drive->gendev)); in ide_cd_probe()
1775 g->driverfs_dev = &drive->gendev; in ide_cd_probe()
Dide-acpi.c181 struct device *dev = hwif->gendev.parent; in ide_acpi_hwif_get_handle()
/drivers/net/can/
Dled.c60 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/
D3c59x.c611 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/
Dde4x5.c856 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/
Dmacio_asic.c550 static void maciom_release(struct device *gendev, void *res) in maciom_release() argument
552 struct macio_dev *dev = to_macio_device(gendev); in maciom_release()
/drivers/net/ethernet/hp/
Dhp100.c2841 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/
Darcnet.c222 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/
Dlibata-core.c5757 static void ata_host_release(struct device *gendev, void *res) in ata_host_release() argument
5759 struct ata_host *host = dev_get_drvdata(gendev); in ata_host_release()
5777 dev_set_drvdata(gendev, NULL); in ata_host_release()
5956 static void ata_host_stop(struct device *gendev, void *res) in ata_host_stop() argument
5958 struct ata_host *host = dev_get_drvdata(gendev); in ata_host_stop()
/drivers/pci/
Dpci.c1419 static void pcim_release(struct device *gendev, void *res) in pcim_release() argument
1421 struct pci_dev *dev = container_of(gendev, struct pci_dev, dev); in pcim_release()