Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/net/ethernet/3com/
D3c59x.c611 struct device *gendev; member
701 ((struct pci_dev *) (((vp)->gendev) ? DEVICE_PCI((vp)->gendev) : NULL))
710 ((struct eisa_device *) (((vp)->gendev) ? DEVICE_EISA((vp)->gendev) : NULL))
753 static int vortex_probe1(struct device *gendev, void __iomem *ioaddr, int irq,
1088 static int vortex_probe1(struct device *gendev, void __iomem *ioaddr, int irq, in vortex_probe1() argument
1108 if (gendev) { in vortex_probe1()
1109 if ((pdev = DEVICE_PCI(gendev))) { in vortex_probe1()
1113 if ((edev = DEVICE_EISA(gendev))) { in vortex_probe1()
1123 SET_NETDEV_DEV(dev, gendev); in vortex_probe1()
1172 if (gendev == NULL) { in vortex_probe1()
[all …]
/kernel/linux/linux-5.10/drivers/ide/
Dide-probe.c540 ide_hwif_t *hwif = container_of(dev, ide_hwif_t, gendev); in hwif_release_dev()
550 dev_set_name(&hwif->gendev, "%s", hwif->name); in ide_register_port()
551 dev_set_drvdata(&hwif->gendev, hwif); in ide_register_port()
552 if (hwif->gendev.parent == NULL) in ide_register_port()
553 hwif->gendev.parent = hwif->dev; in ide_register_port()
554 hwif->gendev.release = hwif_release_dev; in ide_register_port()
556 ret = device_register(&hwif->gendev); in ide_register_port()
563 hwif->portdev = device_create(ide_port_class, &hwif->gendev, in ide_register_port()
567 device_unregister(&hwif->gendev); in ide_register_port()
979 ide_drive_t *drive = container_of(dev, ide_drive_t, gendev); in drive_release_dev()
[all …]
Dide-gd.c144 drive->gendev.bus->suspend(&drive->gendev, PMSG_SUSPEND);
376 idkp->dev.parent = &drive->gendev;
378 dev_set_name(&idkp->dev, "%s", dev_name(&drive->gendev));
403 device_add_disk(&drive->gendev, g, NULL);
Dpmac.c413 pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent); in pmac_ide_apply_timings()
430 pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent); in pmac_ide_kauai_apply_timings()
449 pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent); in pmac_ide_do_update_timings()
494 pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent); in pmac_ide_set_pio_mode()
775 pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent); in pmac_ide_set_dma_mode()
912 pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent); in pmac_ide_cable_detect()
944 pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent); in pmac_ide_init_dev()
1455 pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent); in pmac_ide_build_dmatable()
1532 pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent); in pmac_ide_dma_setup()
1557 pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent); in pmac_ide_dma_start()
[all …]
Dide.c77 if (!get_device(&drive->gendev)) in ide_device_get()
84 put_device(&drive->gendev); in ide_device_get()
107 put_device(&drive->gendev); in ide_device_put()
Dide-tape.c1999 tape->dev.parent = &drive->gendev; in ide_tape_probe()
2001 dev_set_name(&tape->dev, "%s", dev_name(&drive->gendev)); in ide_tape_probe()
2022 device_create(idetape_sysfs_class, &drive->gendev, in ide_tape_probe()
2024 device_create(idetape_sysfs_class, &drive->gendev, in ide_tape_probe()
Dide-cd.c1806 info->dev.parent = &drive->gendev; in ide_cd_probe()
1808 dev_set_name(&info->dev, "%s", dev_name(&drive->gendev)); in ide_cd_probe()
1832 device_add_disk(&drive->gendev, g, NULL); in ide_cd_probe()
Dide-acpi.c182 struct device *dev = hwif->gendev.parent; in ide_acpi_hwif_get_handle()
Dide-proc.c423 struct device *dev = &drive->gendev; in ide_driver_proc_show()
/kernel/linux/linux-5.10/drivers/net/can/
Dled.c57 static void can_led_release(struct device *gendev, void *res) in can_led_release() argument
59 struct can_priv *priv = netdev_priv(to_net_dev(gendev)); in can_led_release()
/kernel/linux/linux-5.10/lib/
Ddevres.c313 static void pcim_iomap_release(struct device *gendev, void *res) in pcim_iomap_release() argument
315 struct pci_dev *dev = to_pci_dev(gendev); in pcim_iomap_release()
/kernel/linux/linux-5.10/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);
1094 de4x5_hw_init(struct net_device *dev, u_long iobase, struct device *gendev) in de4x5_hw_init() argument
1101 dev_set_drvdata(gendev, dev); in de4x5_hw_init()
1107 pdev = to_pci_dev (gendev); in de4x5_hw_init()
1125 EISA_signature(name, gendev); in de4x5_hw_init()
1133 printk ("%s: %s at 0x%04lx", dev_name(gendev), name, iobase); in de4x5_hw_init()
1148 lp->gendev = gendev; in de4x5_hw_init()
1166 sprintf(lp->adapter_name,"%s (%s)", name, dev_name(gendev)); in de4x5_hw_init()
1172 lp->rx_ring = dma_alloc_coherent(gendev, lp->dma_size, in de4x5_hw_init()
[all …]
/kernel/linux/linux-5.10/drivers/nvdimm/
Dpmem.c384 struct device *gendev; in pmem_attach_disk() local
498 gendev = disk_to_dev(disk); in pmem_attach_disk()
499 gendev->groups = pmem_attribute_groups; in pmem_attach_disk()
/kernel/linux/linux-5.10/drivers/macintosh/
Dmacio_asic.c546 static void maciom_release(struct device *gendev, void *res) in maciom_release() argument
548 struct macio_dev *dev = to_macio_device(gendev); in maciom_release()
/kernel/linux/linux-5.10/include/linux/
Dide.h598 struct device gendev; member
629 #define to_ide_device(dev) container_of(dev, ide_drive_t, gendev)
787 struct device gendev; member
/kernel/linux/linux-5.10/drivers/net/arcnet/
Darcnet.c223 static void arcnet_led_release(struct device *gendev, void *res) in arcnet_led_release() argument
225 struct arcnet_local *lp = netdev_priv(to_net_dev(gendev)); in arcnet_led_release()
/kernel/linux/linux-5.10/drivers/ata/
Dlibata-core.c5333 static void ata_devres_release(struct device *gendev, void *res) in ata_devres_release() argument
5335 struct ata_host *host = dev_get_drvdata(gendev); in ata_devres_release()
5349 dev_set_drvdata(gendev, NULL); in ata_devres_release()
5503 static void ata_host_stop(struct device *gendev, void *res) in ata_host_stop() argument
5505 struct ata_host *host = dev_get_drvdata(gendev); in ata_host_stop()
/kernel/linux/linux-5.10/drivers/pci/
Dpci.c1966 static void pcim_release(struct device *gendev, void *res) in pcim_release() argument
1968 struct pci_dev *dev = to_pci_dev(gendev); in pcim_release()