/drivers/gnss/ |
D | core.c | 38 struct gnss_device *gdev; in gnss_open() local 41 gdev = container_of(inode->i_cdev, struct gnss_device, cdev); in gnss_open() 43 get_device(&gdev->dev); in gnss_open() 46 file->private_data = gdev; in gnss_open() 48 down_write(&gdev->rwsem); in gnss_open() 49 if (gdev->disconnected) { in gnss_open() 54 if (gdev->count++ == 0) { in gnss_open() 55 ret = gdev->ops->open(gdev); in gnss_open() 57 gdev->count--; in gnss_open() 60 up_write(&gdev->rwsem); in gnss_open() [all …]
|
D | serial.c | 22 static int gnss_serial_open(struct gnss_device *gdev) in gnss_serial_open() argument 24 struct gnss_serial *gserial = gnss_get_drvdata(gdev); in gnss_serial_open() 49 static void gnss_serial_close(struct gnss_device *gdev) in gnss_serial_close() argument 51 struct gnss_serial *gserial = gnss_get_drvdata(gdev); in gnss_serial_close() 59 static int gnss_serial_write_raw(struct gnss_device *gdev, in gnss_serial_write_raw() argument 62 struct gnss_serial *gserial = gnss_get_drvdata(gdev); in gnss_serial_write_raw() 87 struct gnss_device *gdev = gserial->gdev; in gnss_serial_receive_buf() local 89 return gnss_insert_raw(gdev, buf, count); in gnss_serial_receive_buf() 127 struct gnss_device *gdev; in gnss_serial_allocate() local 134 gdev = gnss_allocate_device(&serdev->dev); in gnss_serial_allocate() [all …]
|
D | sirf.c | 39 struct gnss_device *gdev; member 88 static int sirf_open(struct gnss_device *gdev) in sirf_open() argument 90 struct sirf_data *data = gnss_get_drvdata(gdev); in sirf_open() 108 dev_err(&gdev->dev, "failed to runtime resume: %d\n", ret); in sirf_open() 125 static void sirf_close(struct gnss_device *gdev) in sirf_close() argument 127 struct sirf_data *data = gnss_get_drvdata(gdev); in sirf_close() 139 static int sirf_write_raw(struct gnss_device *gdev, const unsigned char *buf, in sirf_write_raw() argument 142 struct sirf_data *data = gnss_get_drvdata(gdev); in sirf_write_raw() 167 struct gnss_device *gdev = data->gdev; in sirf_receive_buf() local 177 ret = gnss_insert_raw(gdev, buf, count); in sirf_receive_buf() [all …]
|
/drivers/s390/cio/ |
D | ccwgroup.c | 36 static void __ccwgroup_remove_symlinks(struct ccwgroup_device *gdev) in __ccwgroup_remove_symlinks() argument 41 for (i = 0; i < gdev->count; i++) { in __ccwgroup_remove_symlinks() 43 sysfs_remove_link(&gdev->dev.kobj, str); in __ccwgroup_remove_symlinks() 44 sysfs_remove_link(&gdev->cdev[i]->dev.kobj, "group_device"); in __ccwgroup_remove_symlinks() 52 static void __ccwgroup_remove_cdev_refs(struct ccwgroup_device *gdev) in __ccwgroup_remove_cdev_refs() argument 57 for (i = 0; i < gdev->count; i++) { in __ccwgroup_remove_cdev_refs() 58 cdev = gdev->cdev[i]; in __ccwgroup_remove_cdev_refs() 64 gdev->cdev[i] = NULL; in __ccwgroup_remove_cdev_refs() 77 int ccwgroup_set_online(struct ccwgroup_device *gdev) in ccwgroup_set_online() argument 79 struct ccwgroup_driver *gdrv = to_ccwgroupdrv(gdev->dev.driver); in ccwgroup_set_online() [all …]
|
/drivers/virt/vboxguest/ |
D | vboxguest_core.c | 47 static void vbg_guest_mappings_init(struct vbg_dev *gdev) in vbg_guest_mappings_init() argument 63 rc = vbg_req_perform(gdev, req); in vbg_guest_mappings_init() 82 gdev->guest_mappings_dummy_page = alloc_page(GFP_HIGHUSER); in vbg_guest_mappings_init() 83 if (!gdev->guest_mappings_dummy_page) in vbg_guest_mappings_init() 87 pages[i] = gdev->guest_mappings_dummy_page; in vbg_guest_mappings_init() 105 rc = vbg_req_perform(gdev, req); in vbg_guest_mappings_init() 107 gdev->guest_mappings = guest_mappings[i]; in vbg_guest_mappings_init() 117 if (!gdev->guest_mappings) { in vbg_guest_mappings_init() 118 __free_page(gdev->guest_mappings_dummy_page); in vbg_guest_mappings_init() 119 gdev->guest_mappings_dummy_page = NULL; in vbg_guest_mappings_init() [all …]
|
D | vboxguest_linux.c | 52 struct vbg_dev *gdev; in vbg_misc_device_open() local 55 gdev = container_of(filp->private_data, struct vbg_dev, misc_device); in vbg_misc_device_open() 57 session = vbg_core_open_session(gdev, vbg_misc_device_requestor(inode)); in vbg_misc_device_open() 68 struct vbg_dev *gdev; in vbg_misc_device_user_open() local 71 gdev = container_of(filp->private_data, struct vbg_dev, in vbg_misc_device_user_open() 74 session = vbg_core_open_session(gdev, vbg_misc_device_requestor(inode) | in vbg_misc_device_user_open() 203 struct vbg_dev *gdev = input_get_drvdata(input); in vbg_input_open() local 206 return vbg_core_set_mouse_status(gdev, feat); in vbg_input_open() 216 struct vbg_dev *gdev = input_get_drvdata(input); in vbg_input_close() local 218 vbg_core_set_mouse_status(gdev, 0); in vbg_input_close() [all …]
|
D | vboxguest_utils.c | 98 int vbg_req_perform(struct vbg_dev *gdev, void *req) in vbg_req_perform() argument 102 outl(phys_req, gdev->io_port + VMMDEV_PORT_OFF_REQUEST); in vbg_req_perform() 112 static bool hgcm_req_done(struct vbg_dev *gdev, in hgcm_req_done() argument 118 spin_lock_irqsave(&gdev->event_spinlock, flags); in hgcm_req_done() 120 spin_unlock_irqrestore(&gdev->event_spinlock, flags); in hgcm_req_done() 125 int vbg_hgcm_connect(struct vbg_dev *gdev, u32 requestor, in vbg_hgcm_connect() argument 141 rc = vbg_req_perform(gdev, hgcm_connect); in vbg_hgcm_connect() 144 wait_event(gdev->hgcm_wq, in vbg_hgcm_connect() 145 hgcm_req_done(gdev, &hgcm_connect->header)); in vbg_hgcm_connect() 159 int vbg_hgcm_disconnect(struct vbg_dev *gdev, u32 requestor, in vbg_hgcm_disconnect() argument [all …]
|
D | vboxguest_core.h | 162 struct vbg_dev *gdev; member 193 int vbg_core_init(struct vbg_dev *gdev, u32 fixed_events); 194 void vbg_core_exit(struct vbg_dev *gdev); 195 struct vbg_session *vbg_core_open_session(struct vbg_dev *gdev, u32 requestor); 198 int vbg_core_set_mouse_status(struct vbg_dev *gdev, u32 features); 202 void vbg_linux_mouse_event(struct vbg_dev *gdev); 208 int vbg_req_perform(struct vbg_dev *gdev, void *req); 210 struct vbg_dev *gdev, u32 requestor, u32 client_id, u32 function,
|
/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 | 44 struct uio_pci_generic_dev *gdev = to_uio_pci_generic_dev(info); in release() local 54 pci_clear_master(gdev->pdev); in release() 62 struct uio_pci_generic_dev *gdev = to_uio_pci_generic_dev(info); in irqhandler() local 64 if (!pci_check_and_mask_intx(gdev->pdev)) in irqhandler() 74 struct uio_pci_generic_dev *gdev; in probe() local 89 gdev = kzalloc(sizeof(struct uio_pci_generic_dev), GFP_KERNEL); in probe() 90 if (!gdev) { in probe() 95 gdev->info.name = "uio_pci_generic"; in probe() 96 gdev->info.version = DRIVER_VERSION; in probe() 97 gdev->info.release = release; in probe() [all …]
|
/drivers/bus/ |
D | brcmstb_gisb.c | 139 static u32 gisb_read(struct brcmstb_gisb_arb_device *gdev, int reg) in gisb_read() argument 141 int offset = gdev->gisb_offsets[reg]; in gisb_read() 151 if (gdev->big_endian) in gisb_read() 152 return ioread32be(gdev->base + offset); in gisb_read() 154 return ioread32(gdev->base + offset); in gisb_read() 157 static u64 gisb_read_address(struct brcmstb_gisb_arb_device *gdev) in gisb_read_address() argument 161 value = gisb_read(gdev, ARB_ERR_CAP_ADDR); in gisb_read_address() 162 value |= (u64)gisb_read(gdev, ARB_ERR_CAP_HI_ADDR) << 32; in gisb_read_address() 167 static u64 gisb_read_bp_address(struct brcmstb_gisb_arb_device *gdev) in gisb_read_bp_address() argument 171 value = gisb_read(gdev, ARB_BP_CAP_ADDR); in gisb_read_bp_address() [all …]
|
/drivers/gpio/ |
D | gpiolib.c | 110 struct gpio_device *gdev; in gpio_to_desc() local 115 list_for_each_entry(gdev, &gpio_devices, list) { in gpio_to_desc() 116 if (gdev->base <= gpio && in gpio_to_desc() 117 gdev->base + gdev->ngpio > gpio) { in gpio_to_desc() 119 return &gdev->descs[gpio - gdev->base]; in gpio_to_desc() 145 struct gpio_device *gdev = gc->gpiodev; in gpiochip_get_desc() local 147 if (hwnum >= gdev->ngpio) in gpiochip_get_desc() 150 return &gdev->descs[hwnum]; in gpiochip_get_desc() 166 return desc->gdev->base + (desc - &desc->gdev->descs[0]); in desc_to_gpio() 177 if (!desc || !desc->gdev) in gpiod_to_chip() [all …]
|
D | gpiolib-cdev.c | 70 struct gpio_device *gdev; member 186 blocking_notifier_call_chain(&desc->gdev->notifier, in linehandle_set_config() 203 if (!lh->gdev->chip) in linehandle_ioctl() 268 put_device(&lh->gdev->dev); in linehandle_free() 288 static int linehandle_create(struct gpio_device *gdev, void __user *ip) in linehandle_create() argument 310 lh->gdev = gdev; in linehandle_create() 311 get_device(&gdev->dev); in linehandle_create() 329 struct gpio_desc *desc = gpiochip_get_desc(gdev->chip, offset); in linehandle_create() 362 blocking_notifier_call_chain(&desc->gdev->notifier, in linehandle_create() 365 dev_dbg(&gdev->dev, "registered chardev handle for line %d\n", in linehandle_create() [all …]
|
D | gpiolib-sysfs.c | 196 ret = gpiochip_lock_as_irq(desc->gdev->chip, gpio_chip_hwgpio(desc)); in gpio_sysfs_request_irq() 210 gpiochip_unlock_as_irq(desc->gdev->chip, gpio_chip_hwgpio(desc)); in gpio_sysfs_request_irq() 228 gpiochip_unlock_as_irq(desc->gdev->chip, gpio_chip_hwgpio(desc)); in gpio_sysfs_free_irq() 474 gc = desc->gdev->chip; in export_store() 581 struct gpio_device *gdev; in gpiod_export() local 600 gdev = desc->gdev; in gpiod_export() 601 chip = gdev->chip; in gpiod_export() 606 if (!chip || !gdev->mockdev) { in gpiod_export() 641 dev = device_create_with_groups(&gpio_class, &gdev->dev, in gpiod_export() 752 int gpiochip_sysfs_register(struct gpio_device *gdev) in gpiochip_sysfs_register() argument [all …]
|
D | gpiolib-sysfs.h | 8 int gpiochip_sysfs_register(struct gpio_device *gdev); 9 void gpiochip_sysfs_unregister(struct gpio_device *gdev); 13 static inline int gpiochip_sysfs_register(struct gpio_device *gdev) in gpiochip_sysfs_register() argument 18 static inline void gpiochip_sysfs_unregister(struct gpio_device *gdev) in gpiochip_sysfs_unregister() argument
|
D | gpiolib-cdev.h | 10 int gpiolib_cdev_register(struct gpio_device *gdev, dev_t devt); 11 void gpiolib_cdev_unregister(struct gpio_device *gdev);
|
D | gpiolib-of.h | 18 void of_gpio_dev_init(struct gpio_chip *gc, struct gpio_device *gdev); 38 struct gpio_device *gdev) in of_gpio_dev_init() argument
|
D | gpiolib-of.c | 1045 void of_gpio_dev_init(struct gpio_chip *gc, struct gpio_device *gdev) in of_gpio_dev_init() argument 1049 gdev->dev.of_node = gc->of_node; in of_gpio_dev_init() 1051 gc->of_node = gdev->dev.of_node; in of_gpio_dev_init() 1052 if (gdev->dev.of_node) in of_gpio_dev_init() 1053 gdev->dev.fwnode = of_fwnode_handle(gdev->dev.of_node); in of_gpio_dev_init()
|
D | gpiolib.h | 100 struct gpio_device *gdev; member 145 return desc - &desc->gdev->descs[0]; in gpio_chip_hwgpio()
|
/drivers/staging/greybus/ |
D | gbphy.h | 20 static inline void *gb_gbphy_get_data(struct gbphy_device *gdev) in gb_gbphy_get_data() argument 22 return dev_get_drvdata(&gdev->dev); in gb_gbphy_get_data() 25 static inline void gb_gbphy_set_data(struct gbphy_device *gdev, void *data) in gb_gbphy_set_data() argument 27 dev_set_drvdata(&gdev->dev, data); in gb_gbphy_set_data()
|
/drivers/s390/net/ |
D | qeth_l3_main.c | 190 dev_warn(&card->gdev->dev, in qeth_l3_add_ip() 653 dev_warn(&card->gdev->dev, in qeth_l3_register_addr_entry() 697 dev_warn(&card->gdev->dev, "Reading the adapter MAC" in qeth_l3_setadapter_parms() 711 dev_info(&card->gdev->dev, in qeth_l3_start_ipa_arp_processing() 719 dev_warn(&card->gdev->dev, in qeth_l3_start_ipa_arp_processing() 733 dev_info(&card->gdev->dev, in qeth_l3_start_ipa_source_mac() 742 dev_warn(&card->gdev->dev, in qeth_l3_start_ipa_source_mac() 755 dev_info(&card->gdev->dev, in qeth_l3_start_ipa_vlan() 763 dev_warn(&card->gdev->dev, in qeth_l3_start_ipa_vlan() 767 dev_info(&card->gdev->dev, "VLAN enabled\n"); in qeth_l3_start_ipa_vlan() [all …]
|
D | qeth_l2_main.c | 98 dev_info(&card->gdev->dev, in qeth_l2_send_setmac() 103 dev_warn(&card->gdev->dev, in qeth_l2_send_setmac() 107 dev_warn(&card->gdev->dev, in qeth_l2_send_setmac() 1034 dev_warn(&card->gdev->dev, in qeth_l2_enable_brport_features() 1185 kobject_uevent_env(&card->gdev->dev.kobj, KOBJ_CHANGE, env); in qeth_bridge_emit_host_event() 1220 kobject_uevent_env(&data->card->gdev->dev.kobj, in qeth_bridge_state_change_worker() 1359 dev_info(&data->card->gdev->dev, in qeth_addr_change_event_worker() 1465 dev_err(&card->gdev->dev, in qeth_bridgeport_makerc() 1471 dev_err(&card->gdev->dev, in qeth_bridgeport_makerc() 1479 dev_err(&card->gdev->dev, in qeth_bridgeport_makerc() [all …]
|
D | qeth_core_main.c | 83 ccwgroup_set_offline(card->gdev); in qeth_close_dev_handler() 429 dev_err(&card->gdev->dev, "Failed to create completion queue\n"); in qeth_alloc_cq() 645 dev_err_ratelimited(&card->gdev->dev, in qeth_add_local_addrs4() 669 dev_err(&card->gdev->dev, in qeth_add_local_addrs4() 688 dev_err_ratelimited(&card->gdev->dev, in qeth_add_local_addrs6() 712 dev_err(&card->gdev->dev, in qeth_add_local_addrs6() 731 dev_err_ratelimited(&card->gdev->dev, in qeth_del_local_addrs4() 761 dev_err_ratelimited(&card->gdev->dev, in qeth_del_local_addrs6() 889 dev_err(&card->gdev->dev, in qeth_check_ipa_data() 894 dev_warn(&card->gdev->dev, in qeth_check_ipa_data() [all …]
|
D | ctcm_sysfs.c | 117 struct ccwgroup_device *gdev = to_ccwgroupdev(dev); in stats_show() local 120 if (!priv || gdev->state != CCWGROUP_ONLINE) in stats_show()
|
/drivers/video/fbdev/ |
D | smscufx.c | 94 struct device *gdev; /* &udev->dev */ member 1642 dev->gdev = &usbdev->dev; /* our generic struct device * */ in ufx_usb_probe() 1645 dev_dbg(dev->gdev, "%s %s - serial #%s\n", in ufx_usb_probe() 1647 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() 1655 dev_err(dev->gdev, "ufx_alloc_urb_list failed\n"); in ufx_usb_probe() 1664 dev_err(dev->gdev, "framebuffer_alloc failed\n"); in ufx_usb_probe() 1676 dev_err(dev->gdev, "fb_alloc_cmap failed %x\n", retval); in ufx_usb_probe() 1682 dev_dbg(dev->gdev, "ID_REV register value 0x%08x", id_rev); in ufx_usb_probe() [all …]
|