gendev           6058 drivers/ata/libata-core.c static void ata_devres_release(struct device *gendev, void *res)
gendev           6060 drivers/ata/libata-core.c 	struct ata_host *host = dev_get_drvdata(gendev);
gendev           6074 drivers/ata/libata-core.c 	dev_set_drvdata(gendev, NULL);
gendev           6287 drivers/ata/libata-core.c static void ata_host_stop(struct device *gendev, void *res)
gendev           6289 drivers/ata/libata-core.c 	struct ata_host *host = dev_get_drvdata(gendev);
gendev            182 drivers/ide/ide-acpi.c 	struct device		*dev = hwif->gendev.parent;
gendev           1775 drivers/ide/ide-cd.c 	info->dev.parent = &drive->gendev;
gendev           1777 drivers/ide/ide-cd.c 	dev_set_name(&info->dev, "%s", dev_name(&drive->gendev));
gendev           1801 drivers/ide/ide-cd.c 	device_add_disk(&drive->gendev, g, NULL);
gendev            144 drivers/ide/ide-gd.c 	drive->gendev.bus->suspend(&drive->gendev, PMSG_SUSPEND);
gendev            395 drivers/ide/ide-gd.c 	idkp->dev.parent = &drive->gendev;
gendev            397 drivers/ide/ide-gd.c 	dev_set_name(&idkp->dev, "%s", dev_name(&drive->gendev));
gendev            422 drivers/ide/ide-gd.c 	device_add_disk(&drive->gendev, g, NULL);
gendev            540 drivers/ide/ide-probe.c 	ide_hwif_t *hwif = container_of(dev, ide_hwif_t, gendev);
gendev            550 drivers/ide/ide-probe.c 	dev_set_name(&hwif->gendev, "%s", hwif->name);
gendev            551 drivers/ide/ide-probe.c 	dev_set_drvdata(&hwif->gendev, hwif);
gendev            552 drivers/ide/ide-probe.c 	if (hwif->gendev.parent == NULL)
gendev            553 drivers/ide/ide-probe.c 		hwif->gendev.parent = hwif->dev;
gendev            554 drivers/ide/ide-probe.c 	hwif->gendev.release = hwif_release_dev;
gendev            556 drivers/ide/ide-probe.c 	ret = device_register(&hwif->gendev);
gendev            563 drivers/ide/ide-probe.c 	hwif->portdev = device_create(ide_port_class, &hwif->gendev,
gendev            567 drivers/ide/ide-probe.c 		device_unregister(&hwif->gendev);
gendev            979 drivers/ide/ide-probe.c 	ide_drive_t *drive = container_of(dev, ide_drive_t, gendev);
gendev           1039 drivers/ide/ide-probe.c 		struct device *dev = &drive->gendev;
gendev           1044 drivers/ide/ide-probe.c 		dev->parent = &hwif->gendev;
gendev           1250 drivers/ide/ide-probe.c 	hwif->gendev.parent = hw->parent ? hw->parent : hw->dev;
gendev           1499 drivers/ide/ide-probe.c 			device_unregister(&hwif->gendev);
gendev           1564 drivers/ide/ide-probe.c 		device_unregister(&drive->gendev);
gendev           1611 drivers/ide/ide-probe.c 	device_unregister(&hwif->gendev);
gendev            424 drivers/ide/ide-proc.c 	struct device		*dev = &drive->gendev;
gendev           1973 drivers/ide/ide-tape.c 	tape->dev.parent = &drive->gendev;
gendev           1975 drivers/ide/ide-tape.c 	dev_set_name(&tape->dev, "%s", dev_name(&drive->gendev));
gendev           1996 drivers/ide/ide-tape.c 	device_create(idetape_sysfs_class, &drive->gendev,
gendev           1998 drivers/ide/ide-tape.c 	device_create(idetape_sysfs_class, &drive->gendev,
gendev             77 drivers/ide/ide.c 	if (!get_device(&drive->gendev))
gendev             84 drivers/ide/ide.c 		put_device(&drive->gendev);
gendev            107 drivers/ide/ide.c 	put_device(&drive->gendev);
gendev            413 drivers/ide/pmac.c 	pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent);
gendev            430 drivers/ide/pmac.c 	pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent);
gendev            449 drivers/ide/pmac.c 	pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent);
gendev            494 drivers/ide/pmac.c 	pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent);
gendev            775 drivers/ide/pmac.c 	pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent);
gendev            912 drivers/ide/pmac.c 	pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent);
gendev            944 drivers/ide/pmac.c 	pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent);
gendev           1456 drivers/ide/pmac.c 	pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent);
gendev           1533 drivers/ide/pmac.c 	pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent);
gendev           1558 drivers/ide/pmac.c 	pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent);
gendev           1575 drivers/ide/pmac.c 	pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent);
gendev           1599 drivers/ide/pmac.c 	pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent);
gendev           1653 drivers/ide/pmac.c 	pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent);
gendev           1675 drivers/ide/pmac.c 	pmac_ide_hwif_t *pmif = dev_get_drvdata(hwif->gendev.parent);
gendev            546 drivers/macintosh/macio_asic.c static void maciom_release(struct device *gendev, void *res)
gendev            548 drivers/macintosh/macio_asic.c 	struct macio_dev *dev = to_macio_device(gendev);
gendev            223 drivers/net/arcnet/arcnet.c static void arcnet_led_release(struct device *gendev, void *res)
gendev            225 drivers/net/arcnet/arcnet.c 	struct arcnet_local *lp = netdev_priv(to_net_dev(gendev));
gendev             57 drivers/net/can/led.c static void can_led_release(struct device *gendev, void *res)
gendev             59 drivers/net/can/led.c 	struct can_priv *priv = netdev_priv(to_net_dev(gendev));
gendev            611 drivers/net/ethernet/3com/3c59x.c 	struct device *gendev;
gendev            701 drivers/net/ethernet/3com/3c59x.c 	((struct pci_dev *) (((vp)->gendev) ? DEVICE_PCI((vp)->gendev) : NULL))
gendev            710 drivers/net/ethernet/3com/3c59x.c 	((struct eisa_device *) (((vp)->gendev) ? DEVICE_EISA((vp)->gendev) : NULL))
gendev            753 drivers/net/ethernet/3com/3c59x.c static int vortex_probe1(struct device *gendev, void __iomem *ioaddr, int irq,
gendev           1088 drivers/net/ethernet/3com/3c59x.c static int vortex_probe1(struct device *gendev, void __iomem *ioaddr, int irq,
gendev           1108 drivers/net/ethernet/3com/3c59x.c 	if (gendev) {
gendev           1109 drivers/net/ethernet/3com/3c59x.c 		if ((pdev = DEVICE_PCI(gendev))) {
gendev           1113 drivers/net/ethernet/3com/3c59x.c 		if ((edev = DEVICE_EISA(gendev))) {
gendev           1123 drivers/net/ethernet/3com/3c59x.c 	SET_NETDEV_DEV(dev, gendev);
gendev           1172 drivers/net/ethernet/3com/3c59x.c 	if (gendev == NULL) {
gendev           1202 drivers/net/ethernet/3com/3c59x.c 	vp->gendev = gendev;
gendev           1210 drivers/net/ethernet/3com/3c59x.c 	vp->rx_ring = dma_alloc_coherent(gendev, sizeof(struct boom_rx_desc) * RX_RING_SIZE
gendev           1747 drivers/net/ethernet/3com/3c59x.c 			dma = dma_map_single(vp->gendev, skb->data,
gendev           1749 drivers/net/ethernet/3com/3c59x.c 			if (dma_mapping_error(vp->gendev, dma))
gendev           2052 drivers/net/ethernet/3com/3c59x.c 		vp->tx_skb_dma = dma_map_single(vp->gendev, skb->data, len,
gendev           2054 drivers/net/ethernet/3com/3c59x.c 		if (dma_mapping_error(vp->gendev, vp->tx_skb_dma)) {
gendev           2153 drivers/net/ethernet/3com/3c59x.c 		dma_addr = dma_map_single(vp->gendev, skb->data, skb->len,
gendev           2155 drivers/net/ethernet/3com/3c59x.c 		if (dma_mapping_error(vp->gendev, dma_addr))
gendev           2163 drivers/net/ethernet/3com/3c59x.c 		dma_addr = dma_map_single(vp->gendev, skb->data,
gendev           2165 drivers/net/ethernet/3com/3c59x.c 		if (dma_mapping_error(vp->gendev, dma_addr))
gendev           2174 drivers/net/ethernet/3com/3c59x.c 			dma_addr = skb_frag_dma_map(vp->gendev, frag,
gendev           2178 drivers/net/ethernet/3com/3c59x.c 			if (dma_mapping_error(vp->gendev, dma_addr)) {
gendev           2180 drivers/net/ethernet/3com/3c59x.c 					dma_unmap_page(vp->gendev,
gendev           2185 drivers/net/ethernet/3com/3c59x.c 				dma_unmap_single(vp->gendev,
gendev           2203 drivers/net/ethernet/3com/3c59x.c 	dma_addr = dma_map_single(vp->gendev, skb->data, skb->len, DMA_TO_DEVICE);
gendev           2204 drivers/net/ethernet/3com/3c59x.c 	if (dma_mapping_error(vp->gendev, dma_addr))
gendev           2239 drivers/net/ethernet/3com/3c59x.c 	dev_err(vp->gendev, "Error mapping dma buffer\n");
gendev           2305 drivers/net/ethernet/3com/3c59x.c 				dma_unmap_single(vp->gendev, vp->tx_skb_dma, (vp->tx_skb->len + 3) & ~3, DMA_TO_DEVICE);
gendev           2434 drivers/net/ethernet/3com/3c59x.c 					dma_unmap_single(vp->gendev,
gendev           2440 drivers/net/ethernet/3com/3c59x.c 							dma_unmap_page(vp->gendev,
gendev           2445 drivers/net/ethernet/3com/3c59x.c 					dma_unmap_single(vp->gendev,
gendev           2555 drivers/net/ethernet/3com/3c59x.c 					dma_addr_t dma = dma_map_single(vp->gendev, skb_put(skb, pkt_len),
gendev           2562 drivers/net/ethernet/3com/3c59x.c 					dma_unmap_single(vp->gendev, dma, pkt_len, DMA_FROM_DEVICE);
gendev           2629 drivers/net/ethernet/3com/3c59x.c 				dma_sync_single_for_cpu(vp->gendev, dma, PKT_BUF_SZ, DMA_FROM_DEVICE);
gendev           2633 drivers/net/ethernet/3com/3c59x.c 				dma_sync_single_for_device(vp->gendev, dma, PKT_BUF_SZ, DMA_FROM_DEVICE);
gendev           2645 drivers/net/ethernet/3com/3c59x.c 				newdma = dma_map_single(vp->gendev, newskb->data,
gendev           2647 drivers/net/ethernet/3com/3c59x.c 				if (dma_mapping_error(vp->gendev, newdma)) {
gendev           2658 drivers/net/ethernet/3com/3c59x.c 				dma_unmap_single(vp->gendev, dma, PKT_BUF_SZ, DMA_FROM_DEVICE);
gendev           2755 drivers/net/ethernet/3com/3c59x.c 				dma_unmap_single(vp->gendev, le32_to_cpu(vp->rx_ring[i].addr),
gendev           2769 drivers/net/ethernet/3com/3c59x.c 						dma_unmap_single(vp->gendev,
gendev           2774 drivers/net/ethernet/3com/3c59x.c 				dma_unmap_single(vp->gendev, le32_to_cpu(vp->tx_ring[i].addr), skb->len, DMA_TO_DEVICE);
gendev           2966 drivers/net/ethernet/3com/3c59x.c 			strlcpy(info->bus_info, dev_name(vp->gendev),
gendev           3229 drivers/net/ethernet/3com/3c59x.c 	device_set_wakeup_enable(vp->gendev, vp->enable_wol);
gendev            856 drivers/net/ethernet/dec/tulip/de4x5.c     struct device *gendev;	            /* Generic device */
gendev            910 drivers/net/ethernet/dec/tulip/de4x5.c static int     de4x5_hw_init(struct net_device *dev, u_long iobase, struct device *gendev);
gendev           1094 drivers/net/ethernet/dec/tulip/de4x5.c de4x5_hw_init(struct net_device *dev, u_long iobase, struct device *gendev)
gendev           1101 drivers/net/ethernet/dec/tulip/de4x5.c     dev_set_drvdata(gendev, dev);
gendev           1107 drivers/net/ethernet/dec/tulip/de4x5.c 	pdev = to_pci_dev (gendev);
gendev           1125 drivers/net/ethernet/dec/tulip/de4x5.c 	EISA_signature(name, gendev);
gendev           1133 drivers/net/ethernet/dec/tulip/de4x5.c     printk ("%s: %s at 0x%04lx", dev_name(gendev), name, iobase);
gendev           1148 drivers/net/ethernet/dec/tulip/de4x5.c 	lp->gendev = gendev;
gendev           1166 drivers/net/ethernet/dec/tulip/de4x5.c 	sprintf(lp->adapter_name,"%s (%s)", name, dev_name(gendev));
gendev           1172 drivers/net/ethernet/dec/tulip/de4x5.c 	lp->rx_ring = dma_alloc_coherent(gendev, lp->dma_size,
gendev           1245 drivers/net/ethernet/dec/tulip/de4x5.c 	        dma_free_coherent (gendev, lp->dma_size,
gendev           1270 drivers/net/ethernet/dec/tulip/de4x5.c     SET_NETDEV_DEV(dev, gendev);
gendev           1276 drivers/net/ethernet/dec/tulip/de4x5.c 	    dma_free_coherent (gendev, lp->dma_size,
gendev           1679 drivers/net/ethernet/dec/tulip/de4x5.c     dma_unmap_single(lp->gendev, le32_to_cpu(lp->tx_ring[entry].buf),
gendev           1746 drivers/net/ethernet/dec/tulip/de4x5.c 	struct net_device *dev = dev_get_drvdata(lp->gendev);
gendev           1900 drivers/net/ethernet/dec/tulip/de4x5.c     dma_addr_t buf_dma = dma_map_single(lp->gendev, buf, flags & TD_TBS1, DMA_TO_DEVICE);
gendev           1994 drivers/net/ethernet/dec/tulip/de4x5.c static int de4x5_eisa_probe(struct device *gendev)
gendev           2005 drivers/net/ethernet/dec/tulip/de4x5.c 	edev = to_eisa_device (gendev);
gendev           2067 drivers/net/ethernet/dec/tulip/de4x5.c 	if (!(status = de4x5_hw_init (dev, iobase, gendev))) {
gendev           5160 drivers/net/ethernet/dec/tulip/de4x5.c 	struct pci_dev *pdev = to_pci_dev (lp->gendev);
gendev           2827 drivers/net/ethernet/hp/hp100.c static int hp100_eisa_probe(struct device *gendev)
gendev           2830 drivers/net/ethernet/hp/hp100.c 	struct eisa_device *edev = to_eisa_device(gendev);
gendev           2846 drivers/net/ethernet/hp/hp100.c 	dev_set_drvdata(gendev, dev);
gendev           2853 drivers/net/ethernet/hp/hp100.c static int hp100_eisa_remove(struct device *gendev)
gendev           2855 drivers/net/ethernet/hp/hp100.c 	struct net_device *dev = dev_get_drvdata(gendev);
gendev            365 drivers/nvdimm/pmem.c 	struct device *gendev;
gendev            474 drivers/nvdimm/pmem.c 	gendev = disk_to_dev(disk);
gendev            475 drivers/nvdimm/pmem.c 	gendev->groups = pmem_attribute_groups;
gendev           1760 drivers/pci/pci.c static void pcim_release(struct device *gendev, void *res)
gendev           1762 drivers/pci/pci.c 	struct pci_dev *dev = to_pci_dev(gendev);
gendev            598 include/linux/ide.h 	struct device	gendev;
gendev            629 include/linux/ide.h #define to_ide_device(dev)		container_of(dev, ide_drive_t, gendev)
gendev            787 include/linux/ide.h 	struct device		gendev;
gendev            290 lib/devres.c   static void pcim_iomap_release(struct device *gendev, void *res)
gendev            292 lib/devres.c   	struct pci_dev *dev = to_pci_dev(gendev);