/drivers/s390/cio/ |
D | ccwgroup.c | 35 static void __ccwgroup_remove_symlinks(struct ccwgroup_device *gdev) in __ccwgroup_remove_symlinks() argument 40 for (i = 0; i < gdev->count; i++) { in __ccwgroup_remove_symlinks() 42 sysfs_remove_link(&gdev->dev.kobj, str); in __ccwgroup_remove_symlinks() 43 sysfs_remove_link(&gdev->cdev[i]->dev.kobj, "group_device"); in __ccwgroup_remove_symlinks() 51 static void __ccwgroup_remove_cdev_refs(struct ccwgroup_device *gdev) in __ccwgroup_remove_cdev_refs() argument 56 for (i = 0; i < gdev->count; i++) { in __ccwgroup_remove_cdev_refs() 57 cdev = gdev->cdev[i]; in __ccwgroup_remove_cdev_refs() 63 gdev->cdev[i] = NULL; in __ccwgroup_remove_cdev_refs() 76 int ccwgroup_set_online(struct ccwgroup_device *gdev) in ccwgroup_set_online() argument 78 struct ccwgroup_driver *gdrv = to_ccwgroupdrv(gdev->dev.driver); in ccwgroup_set_online() [all …]
|
/drivers/bus/ |
D | brcmstb_gisb.c | 101 static u32 gisb_read(struct brcmstb_gisb_arb_device *gdev, int reg) in gisb_read() argument 103 int offset = gdev->gisb_offsets[reg]; in gisb_read() 113 if (gdev->big_endian) in gisb_read() 114 return ioread32be(gdev->base + offset); in gisb_read() 116 return ioread32(gdev->base + offset); in gisb_read() 119 static u64 gisb_read_address(struct brcmstb_gisb_arb_device *gdev) in gisb_read_address() argument 123 value = gisb_read(gdev, ARB_ERR_CAP_ADDR); in gisb_read_address() 124 value |= (u64)gisb_read(gdev, ARB_ERR_CAP_HI_ADDR) << 32; in gisb_read_address() 129 static void gisb_write(struct brcmstb_gisb_arb_device *gdev, u32 val, int reg) in gisb_write() argument 131 int offset = gdev->gisb_offsets[reg]; in gisb_write() [all …]
|
/drivers/uio/ |
D | uio_pruss.c | 78 struct uio_pruss_dev *gdev = info->priv; in pruss_handler() local 79 int intr_bit = (irq - gdev->hostirq_start + 2); in pruss_handler() 81 void __iomem *base = gdev->prussio_vaddr + gdev->pintc_base; in pruss_handler() 95 static void pruss_cleanup(struct device *dev, struct uio_pruss_dev *gdev) in pruss_cleanup() argument 98 struct uio_info *p = gdev->info; in pruss_cleanup() 104 iounmap(gdev->prussio_vaddr); in pruss_cleanup() 105 if (gdev->ddr_vaddr) { in pruss_cleanup() 106 dma_free_coherent(dev, extram_pool_sz, gdev->ddr_vaddr, in pruss_cleanup() 107 gdev->ddr_paddr); in pruss_cleanup() 109 if (gdev->sram_vaddr) in pruss_cleanup() [all …]
|
D | uio_pci_generic.c | 47 struct uio_pci_generic_dev *gdev = to_uio_pci_generic_dev(info); in irqhandler() local 49 if (!pci_check_and_mask_intx(gdev->pdev)) in irqhandler() 59 struct uio_pci_generic_dev *gdev; in probe() local 81 gdev = kzalloc(sizeof(struct uio_pci_generic_dev), GFP_KERNEL); in probe() 82 if (!gdev) { in probe() 87 gdev->info.name = "uio_pci_generic"; in probe() 88 gdev->info.version = DRIVER_VERSION; in probe() 89 gdev->info.irq = pdev->irq; in probe() 90 gdev->info.irq_flags = IRQF_SHARED; in probe() 91 gdev->info.handler = irqhandler; in probe() [all …]
|
/drivers/gpio/ |
D | gpiolib.c | 90 struct gpio_device *gdev; in gpio_to_desc() local 95 list_for_each_entry(gdev, &gpio_devices, list) { in gpio_to_desc() 96 if (gdev->base <= gpio && in gpio_to_desc() 97 gdev->base + gdev->ngpio > gpio) { in gpio_to_desc() 99 return &gdev->descs[gpio - gdev->base]; in gpio_to_desc() 118 struct gpio_device *gdev = chip->gpiodev; in gpiochip_get_desc() local 120 if (hwnum >= gdev->ngpio) in gpiochip_get_desc() 123 return &gdev->descs[hwnum]; in gpiochip_get_desc() 133 return desc->gdev->base + (desc - &desc->gdev->descs[0]); in desc_to_gpio() 144 if (!desc || !desc->gdev || !desc->gdev->chip) in gpiod_to_chip() [all …]
|
D | gpiolib-sysfs.c | 183 ret = gpiochip_lock_as_irq(desc->gdev->chip, gpio_chip_hwgpio(desc)); in gpio_sysfs_request_irq() 197 gpiochip_unlock_as_irq(desc->gdev->chip, gpio_chip_hwgpio(desc)); in gpio_sysfs_request_irq() 215 gpiochip_unlock_as_irq(desc->gdev->chip, gpio_chip_hwgpio(desc)); in gpio_sysfs_free_irq() 550 struct gpio_device *gdev; in gpiod_export() local 569 gdev = desc->gdev; in gpiod_export() 570 chip = gdev->chip; in gpiod_export() 575 if (!chip || !gdev->mockdev) { in gpiod_export() 610 dev = device_create_with_groups(&gpio_class, &gdev->dev, in gpiod_export() 721 int gpiochip_sysfs_register(struct gpio_device *gdev) in gpiochip_sysfs_register() argument 725 struct gpio_chip *chip = gdev->chip; in gpiochip_sysfs_register() [all …]
|
D | gpiolib.h | 180 struct gpio_device *gdev; member 209 return desc - &desc->gdev->descs[0]; in gpio_chip_hwgpio() 250 int gpiochip_sysfs_register(struct gpio_device *gdev); 251 void gpiochip_sysfs_unregister(struct gpio_device *gdev); 255 static inline int gpiochip_sysfs_register(struct gpio_device *gdev) in gpiochip_sysfs_register() argument 260 static inline void gpiochip_sysfs_unregister(struct gpio_device *gdev) in gpiochip_sysfs_unregister() argument
|
D | gpiolib-of.c | 234 struct gpio_device *gdev = gc->gpiodev; in of_gpiochip_set_names() local 245 if (gdev->ngpio != nstrings) in of_gpiochip_set_names() 246 dev_info(&gdev->dev, "gpio-line-names specifies %d line " in of_gpiochip_set_names() 248 nstrings, gdev->ngpio); in of_gpiochip_set_names() 254 for (i = 0; i < gdev->ngpio; i++) { in of_gpiochip_set_names() 264 dev_err(&gdev->dev, in of_gpiochip_set_names() 269 gdev->descs[i].name = name; in of_gpiochip_set_names()
|
D | gpiolib-acpi.c | 75 static int acpi_gpiochip_pin_to_gpio_offset(struct gpio_device *gdev, int pin) in acpi_gpiochip_pin_to_gpio_offset() argument 80 if (list_empty(&gdev->pin_ranges)) in acpi_gpiochip_pin_to_gpio_offset() 83 list_for_each_entry(pin_range, &gdev->pin_ranges, node) { in acpi_gpiochip_pin_to_gpio_offset() 90 return range->base + i - gdev->base; in acpi_gpiochip_pin_to_gpio_offset() 97 gpio_base = range->base - gdev->base; in acpi_gpiochip_pin_to_gpio_offset() 106 static inline int acpi_gpiochip_pin_to_gpio_offset(struct gpio_device *gdev, in acpi_gpiochip_pin_to_gpio_offset() argument
|
/drivers/s390/net/ |
D | qeth_l2_main.c | 606 dev_info(&card->gdev->dev, in qeth_l2_send_setmac() 613 dev_warn(&card->gdev->dev, in qeth_l2_send_setmac() 617 dev_warn(&card->gdev->dev, in qeth_l2_send_setmac() 1030 static int qeth_l2_probe_device(struct ccwgroup_device *gdev) in qeth_l2_probe_device() argument 1032 struct qeth_card *card = dev_get_drvdata(&gdev->dev); in qeth_l2_probe_device() 1035 if (gdev->dev.type == &qeth_generic_devtype) { in qeth_l2_probe_device() 1036 rc = qeth_l2_create_device_attributes(&gdev->dev); in qeth_l2_probe_device() 1146 SET_NETDEV_DEV(card->dev, &card->gdev->dev); in qeth_l2_setup_netdev() 1160 static int __qeth_l2_set_online(struct ccwgroup_device *gdev, int recovery_mode) in __qeth_l2_set_online() argument 1162 struct qeth_card *card = dev_get_drvdata(&gdev->dev); in __qeth_l2_set_online() [all …]
|
D | qeth_l3_main.c | 286 dev_warn(&card->gdev->dev, in qeth_l3_add_ip() 850 dev_warn(&card->gdev->dev, in qeth_l3_register_addr_entry() 911 dev_info(&card->gdev->dev, in qeth_l3_setadapter_parms() 919 "0x%x\n", dev_name(&card->gdev->dev), rc); in qeth_l3_setadapter_parms() 925 dev_warn(&card->gdev->dev, "Reading the adapter MAC" in qeth_l3_setadapter_parms() 957 dev_info(&card->gdev->dev, in qeth_l3_start_ipa_arp_processing() 965 dev_warn(&card->gdev->dev, in qeth_l3_start_ipa_arp_processing() 979 dev_info(&card->gdev->dev, in qeth_l3_start_ipa_ip_fragmentation() 988 dev_warn(&card->gdev->dev, in qeth_l3_start_ipa_ip_fragmentation() 992 dev_info(&card->gdev->dev, in qeth_l3_start_ipa_ip_fragmentation() [all …]
|
D | qeth_core_main.c | 97 ccwgroup_set_offline(card->gdev); in qeth_close_dev_handler() 399 dev_err(&card->gdev->dev, "Failed to create completion queue\n"); in qeth_alloc_cq() 535 dev_warn(&card->gdev->dev, "The qeth device driver " in __qeth_issue_next_read() 538 "available\n", dev_name(&card->gdev->dev)); in __qeth_issue_next_read() 547 "rc=%i\n", dev_name(&card->gdev->dev), rc); in __qeth_issue_next_read() 602 ipa_name, com, dev_name(&card->gdev->dev), in qeth_issue_ipa_msg() 607 ipa_name, com, dev_name(&card->gdev->dev), in qeth_issue_ipa_msg() 632 dev_err(&card->gdev->dev, in qeth_check_ipa_data() 639 dev_warn(&card->gdev->dev, in qeth_check_ipa_data() 652 dev_info(&card->gdev->dev, in qeth_check_ipa_data() [all …]
|
D | lcs.c | 2081 card->gdev = ccwgdev; in lcs_probe_device() 2273 struct ccwgroup_device *gdev; in lcs_recovery() local 2282 gdev = card->gdev; in lcs_recovery() 2283 dev_warn(&gdev->dev, in lcs_recovery() 2285 rc = __lcs_shutdown_device(gdev, 1); in lcs_recovery() 2286 rc = lcs_new_device(gdev); in lcs_recovery() 2329 __lcs_shutdown_device(card->gdev, 1); in lcs_pm_suspend() 2338 rc = lcs_new_device(card->gdev); in lcs_pm_resume() 2342 dev_warn(&card->gdev->dev, "The lcs device driver " in lcs_pm_resume() 2348 static int lcs_prepare(struct ccwgroup_device *gdev) in lcs_prepare() argument [all …]
|
D | ctcm_main.c | 1704 static int ctcm_pm_suspend(struct ccwgroup_device *gdev) in ctcm_pm_suspend() argument 1706 struct ctcm_priv *priv = dev_get_drvdata(&gdev->dev); in ctcm_pm_suspend() 1708 if (gdev->state == CCWGROUP_OFFLINE) in ctcm_pm_suspend() 1717 ccw_device_set_offline(gdev->cdev[1]); in ctcm_pm_suspend() 1718 ccw_device_set_offline(gdev->cdev[0]); in ctcm_pm_suspend() 1722 static int ctcm_pm_resume(struct ccwgroup_device *gdev) in ctcm_pm_resume() argument 1724 struct ctcm_priv *priv = dev_get_drvdata(&gdev->dev); in ctcm_pm_resume() 1727 if (gdev->state == CCWGROUP_OFFLINE) in ctcm_pm_resume() 1729 rc = ccw_device_set_online(gdev->cdev[1]); in ctcm_pm_resume() 1732 rc = ccw_device_set_online(gdev->cdev[0]); in ctcm_pm_resume()
|
D | ctcm_sysfs.c | 115 struct ccwgroup_device *gdev = to_ccwgroupdev(dev); in stats_show() local 118 if (!priv || gdev->state != CCWGROUP_ONLINE) in stats_show()
|
D | qeth_core_sys.c | 164 dev_warn_once(&card->gdev->dev, in qeth_dev_portname_store() 424 card->discipline->remove(card->gdev); in qeth_dev_layer2_store() 432 rc = card->discipline->setup(card->gdev); in qeth_dev_layer2_store() 483 dev_err(&card->gdev->dev, "Adapter does not " in qeth_dev_isolation_store()
|
D | lcs.h | 308 struct ccwgroup_device *gdev; member
|
D | qeth_core.h | 93 #define CARD_BUS_ID(card) dev_name(&card->gdev->dev) 782 struct ccwgroup_device *gdev; member
|
/drivers/staging/greybus/ |
D | gbphy.h | 21 static inline void *gb_gbphy_get_data(struct gbphy_device *gdev) in gb_gbphy_get_data() argument 23 return dev_get_drvdata(&gdev->dev); in gb_gbphy_get_data() 26 static inline void gb_gbphy_set_data(struct gbphy_device *gdev, void *data) in gb_gbphy_set_data() argument 28 dev_set_drvdata(&gdev->dev, data); in gb_gbphy_set_data()
|
/drivers/video/fbdev/ |
D | smscufx.c | 97 struct device *gdev; /* &udev->dev */ member 1643 dev->gdev = &usbdev->dev; /* our generic struct device * */ in ufx_usb_probe() 1646 dev_dbg(dev->gdev, "%s %s - serial #%s\n", in ufx_usb_probe() 1648 dev_dbg(dev->gdev, "vid_%04x&pid_%04x&rev_%04x driver's ufx_data struct at %p\n", in ufx_usb_probe() 1651 dev_dbg(dev->gdev, "console enable=%d\n", console); in ufx_usb_probe() 1652 dev_dbg(dev->gdev, "fb_defio enable=%d\n", fb_defio); in ufx_usb_probe() 1656 dev_err(dev->gdev, "ufx_alloc_urb_list failed\n"); in ufx_usb_probe() 1666 dev_err(dev->gdev, "framebuffer_alloc failed\n"); in ufx_usb_probe() 1677 dev_err(dev->gdev, "fb_alloc_cmap failed %x\n", retval); in ufx_usb_probe() 1688 dev_dbg(dev->gdev, "ID_REV register value 0x%08x", id_rev); in ufx_usb_probe() [all …]
|
D | udlfb.c | 1610 dev->gdev = &usbdev->dev; /* our generic struct device * */ in dlfb_usb_probe() 1675 info = framebuffer_alloc(0, dev->gdev); in dlfb_init_framebuffer_work() 1770 dev->gdev = NULL; in dlfb_usb_disconnect()
|
/drivers/ata/ |
D | pata_atp867x.c | 419 struct device *gdev = host->dev; in atp867x_ata_pci_sff_init_host() local 420 struct pci_dev *pdev = to_pci_dev(gdev); in atp867x_ata_pci_sff_init_host() 472 dev_err(gdev, "no available native port\n"); in atp867x_ata_pci_sff_init_host()
|
D | libata-sff.c | 2295 struct device *gdev = host->dev; in ata_pci_sff_init_host() local 2296 struct pci_dev *pdev = to_pci_dev(gdev); in ata_pci_sff_init_host() 2319 dev_driver_string(gdev)); in ata_pci_sff_init_host() 2321 dev_warn(gdev, in ata_pci_sff_init_host() 2345 dev_err(gdev, "no available native port\n"); in ata_pci_sff_init_host() 3197 struct device *gdev = host->dev; in ata_pci_bmdma_init() local 3198 struct pci_dev *pdev = to_pci_dev(gdev); in ata_pci_bmdma_init() 3224 rc = pcim_iomap_regions(pdev, 1 << 4, dev_driver_string(gdev)); in ata_pci_bmdma_init()
|
/drivers/i2c/muxes/ |
D | i2c-mux-gpio.c | 226 gpio_dev = &gpio_desc->gdev->dev; in i2c_mux_gpio_probe()
|
/drivers/net/ethernet/seeq/ |
D | sgiseeq.c | 242 static struct net_device *gdev; variable 761 gdev = dev; in sgiseeq_probe()
|