/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 | usb.c | 28 struct gnss_device *gdev; member 36 struct gnss_device *gdev = gusb->gdev; in gnss_usb_rx_complete() local 47 dev_dbg(&gdev->dev, "urb stopped: %d\n", status); in gnss_usb_rx_complete() 50 dev_err(&gdev->dev, "urb stopped: %d\n", status); in gnss_usb_rx_complete() 53 dev_dbg(&gdev->dev, "nonzero urb status: %d\n", status); in gnss_usb_rx_complete() 61 ret = gnss_insert_raw(gdev, urb->transfer_buffer, len); in gnss_usb_rx_complete() 63 dev_dbg(&gdev->dev, "dropped %d bytes\n", len - ret); in gnss_usb_rx_complete() 67 dev_err(&gdev->dev, "failed to resubmit urb: %d\n", ret); in gnss_usb_rx_complete() 70 static int gnss_usb_open(struct gnss_device *gdev) in gnss_usb_open() argument 72 struct gnss_usb *gusb = gnss_get_drvdata(gdev); in gnss_usb_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() 56 int ccwgroup_set_online(struct ccwgroup_device *gdev) in ccwgroup_set_online() argument 58 struct ccwgroup_driver *gdrv = to_ccwgroupdrv(gdev->dev.driver); in ccwgroup_set_online() 61 if (atomic_cmpxchg(&gdev->onoff, 0, 1) != 0) in ccwgroup_set_online() 63 if (gdev->state == CCWGROUP_ONLINE) in ccwgroup_set_online() 66 ret = gdrv->set_online(gdev); in ccwgroup_set_online() 70 gdev->state = CCWGROUP_ONLINE; 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/bus/ |
D | brcmstb_gisb.c | 140 static u32 gisb_read(struct brcmstb_gisb_arb_device *gdev, int reg) in gisb_read() argument 142 int offset = gdev->gisb_offsets[reg]; in gisb_read() 152 if (gdev->big_endian) in gisb_read() 153 return ioread32be(gdev->base + offset); in gisb_read() 155 return ioread32(gdev->base + offset); in gisb_read() 158 static u64 gisb_read_address(struct brcmstb_gisb_arb_device *gdev) in gisb_read_address() argument 162 value = gisb_read(gdev, ARB_ERR_CAP_ADDR); in gisb_read_address() 163 value |= (u64)gisb_read(gdev, ARB_ERR_CAP_HI_ADDR) << 32; in gisb_read_address() 168 static u64 gisb_read_bp_address(struct brcmstb_gisb_arb_device *gdev) in gisb_read_bp_address() argument 172 value = gisb_read(gdev, ARB_BP_CAP_ADDR); in gisb_read_bp_address() [all …]
|
/drivers/uio/ |
D | uio_pruss.c | 70 struct uio_pruss_dev *gdev = info->priv; in pruss_handler() local 71 int intr_bit = (irq - gdev->hostirq_start + 2); in pruss_handler() 73 void __iomem *base = gdev->prussio_vaddr + gdev->pintc_base; in pruss_handler() 87 static void pruss_cleanup(struct device *dev, struct uio_pruss_dev *gdev) in pruss_cleanup() argument 90 struct uio_info *p = gdev->info; in pruss_cleanup() 95 iounmap(gdev->prussio_vaddr); in pruss_cleanup() 96 if (gdev->ddr_vaddr) { in pruss_cleanup() 97 dma_free_coherent(dev, extram_pool_sz, gdev->ddr_vaddr, in pruss_cleanup() 98 gdev->ddr_paddr); in pruss_cleanup() 100 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 = devm_kzalloc(&pdev->dev, sizeof(struct uio_pci_generic_dev), GFP_KERNEL); in probe() 90 if (!gdev) in probe() 93 gdev->info.name = "uio_pci_generic"; in probe() 94 gdev->info.version = DRIVER_VERSION; in probe() 95 gdev->info.release = release; in probe() [all …]
|
/drivers/hte/ |
D | hte.c | 68 struct hte_device *gdev; member 107 static void hte_chip_dbgfs_init(struct hte_device *gdev) in hte_chip_dbgfs_init() argument 109 const struct hte_chip *chip = gdev->chip; in hte_chip_dbgfs_init() 112 gdev->dbg_root = debugfs_create_dir(name, hte_root); in hte_chip_dbgfs_init() 114 debugfs_create_atomic_t("ts_requested", 0444, gdev->dbg_root, in hte_chip_dbgfs_init() 115 &gdev->ts_req); in hte_chip_dbgfs_init() 116 debugfs_create_u32("total_ts", 0444, gdev->dbg_root, in hte_chip_dbgfs_init() 117 &gdev->nlines); in hte_chip_dbgfs_init() 122 if (!ei->gdev->dbg_root || !name) in hte_ts_dbgfs_init() 125 ei->ts_dbg_root = debugfs_create_dir(name, ei->gdev->dbg_root); in hte_ts_dbgfs_init() [all …]
|
/drivers/gpio/ |
D | gpiolib.c | 128 struct gpio_device *gdev; in gpio_to_desc() local 133 list_for_each_entry(gdev, &gpio_devices, list) { in gpio_to_desc() 134 if (gdev->base <= gpio && in gpio_to_desc() 135 gdev->base + gdev->ngpio > gpio) { in gpio_to_desc() 137 return &gdev->descs[gpio - gdev->base]; in gpio_to_desc() 163 struct gpio_device *gdev = gc->gpiodev; in gpiochip_get_desc() local 165 if (hwnum >= gdev->ngpio) in gpiochip_get_desc() 168 return &gdev->descs[array_index_nospec(hwnum, gdev->ngpio)]; in gpiochip_get_desc() 184 return desc->gdev->base + (desc - &desc->gdev->descs[0]); in desc_to_gpio() 195 if (!desc || !desc->gdev) in gpiod_to_chip() [all …]
|
D | gpiolib-cdev.c | 69 struct gpio_device *gdev, poll_fn func) in call_poll_locked() argument 73 down_read(&gdev->sem); in call_poll_locked() 75 up_read(&gdev->sem); in call_poll_locked() 81 unsigned long arg, struct gpio_device *gdev, in call_ioctl_locked() argument 86 down_read(&gdev->sem); in call_ioctl_locked() 88 up_read(&gdev->sem); in call_ioctl_locked() 95 struct gpio_device *gdev, read_fn func) in call_read_locked() argument 99 down_read(&gdev->sem); in call_read_locked() 101 up_read(&gdev->sem); in call_read_locked() 119 struct gpio_device *gdev; member [all …]
|
D | gpiolib-sysfs.c | 198 ret = gpiochip_lock_as_irq(desc->gdev->chip, gpio_chip_hwgpio(desc)); in gpio_sysfs_request_irq() 212 gpiochip_unlock_as_irq(desc->gdev->chip, gpio_chip_hwgpio(desc)); in gpio_sysfs_request_irq() 230 gpiochip_unlock_as_irq(desc->gdev->chip, gpio_chip_hwgpio(desc)); in gpio_sysfs_free_irq() 461 gc = desc->gdev->chip; in export_store() 564 struct gpio_device *gdev; in gpiod_export() local 583 gdev = desc->gdev; in gpiod_export() 584 chip = gdev->chip; in gpiod_export() 589 if (!chip || !gdev->mockdev) { in gpiod_export() 624 dev = device_create_with_groups(&gpio_class, &gdev->dev, in gpiod_export() 735 int gpiochip_sysfs_register(struct gpio_device *gdev) in gpiochip_sysfs_register() argument [all …]
|
D | gpiolib-sysfs.h | 10 int gpiochip_sysfs_register(struct gpio_device *gdev); 11 void gpiochip_sysfs_unregister(struct gpio_device *gdev); 15 static inline int gpiochip_sysfs_register(struct gpio_device *gdev) in gpiochip_sysfs_register() argument 20 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);
|
/drivers/net/ethernet/intel/ice/ |
D | ice_gnss.c | 206 static int ice_gnss_open(struct gnss_device *gdev) in ice_gnss_open() argument 208 struct ice_pf *pf = gnss_get_drvdata(gdev); in ice_gnss_open() 232 static void ice_gnss_close(struct gnss_device *gdev) in ice_gnss_close() argument 234 struct ice_pf *pf = gnss_get_drvdata(gdev); in ice_gnss_close() 258 ice_gnss_write(struct gnss_device *gdev, const unsigned char *buf, in ice_gnss_write() argument 261 struct ice_pf *pf = gnss_get_drvdata(gdev); in ice_gnss_write() 299 struct gnss_device *gdev; in ice_gnss_register() local 302 gdev = gnss_allocate_device(ice_pf_to_dev(pf)); in ice_gnss_register() 303 if (!gdev) { in ice_gnss_register() 309 gdev->ops = &ice_gnss_ops; in ice_gnss_register() [all …]
|
/drivers/iommu/ |
D | iommu.c | 488 struct group_device *gdev; in __iommu_probe_device() local 511 gdev = iommu_group_alloc_device(group, dev); in __iommu_probe_device() 513 if (IS_ERR(gdev)) { in __iommu_probe_device() 514 ret = PTR_ERR(gdev); in __iommu_probe_device() 522 list_add_tail(&gdev->list, &group->devices); in __iommu_probe_device() 551 list_del(&gdev->list); in __iommu_probe_device() 552 __iommu_group_free_device(group, gdev); in __iommu_probe_device() 1184 struct group_device *gdev; in iommu_group_add_device() local 1186 gdev = iommu_group_alloc_device(group, dev); in iommu_group_add_device() 1187 if (IS_ERR(gdev)) in iommu_group_add_device() [all …]
|
/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 | 188 dev_warn(&card->gdev->dev, in qeth_l3_add_ip() 652 dev_warn(&card->gdev->dev, in qeth_l3_register_addr_entry() 696 dev_warn(&card->gdev->dev, "Reading the adapter MAC" in qeth_l3_setadapter_parms() 710 dev_info(&card->gdev->dev, in qeth_l3_start_ipa_arp_processing() 718 dev_warn(&card->gdev->dev, in qeth_l3_start_ipa_arp_processing() 732 dev_info(&card->gdev->dev, in qeth_l3_start_ipa_source_mac() 741 dev_warn(&card->gdev->dev, in qeth_l3_start_ipa_source_mac() 754 dev_info(&card->gdev->dev, in qeth_l3_start_ipa_vlan() 762 dev_warn(&card->gdev->dev, in qeth_l3_start_ipa_vlan() 766 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() 1220 dev_warn(&card->gdev->dev, in qeth_l2_enable_brport_features() 1294 kobject_uevent_env(&card->gdev->dev.kobj, KOBJ_CHANGE, env); in qeth_bridge_emit_host_event() 1329 kobject_uevent_env(&data->card->gdev->dev.kobj, in qeth_bridge_state_change_worker() 1470 dev_info(&data->card->gdev->dev, in qeth_addr_change_event_worker() 1576 dev_err(&card->gdev->dev, in qeth_bridgeport_makerc() 1582 dev_err(&card->gdev->dev, in qeth_bridgeport_makerc() 1590 dev_err(&card->gdev->dev, in qeth_bridgeport_makerc() [all …]
|
D | qeth_core_main.c | 382 dev_err(&card->gdev->dev, in qeth_alloc_cq() 541 dev_err_ratelimited(&card->gdev->dev, in qeth_add_local_addrs4() 565 dev_err(&card->gdev->dev, in qeth_add_local_addrs4() 584 dev_err_ratelimited(&card->gdev->dev, in qeth_add_local_addrs6() 608 dev_err(&card->gdev->dev, in qeth_add_local_addrs6() 627 dev_err_ratelimited(&card->gdev->dev, in qeth_del_local_addrs4() 657 dev_err_ratelimited(&card->gdev->dev, in qeth_del_local_addrs6() 801 dev_info(&card->gdev->dev, in qeth_default_link_info() 827 dev_err(&card->gdev->dev, in qeth_check_ipa_data() 834 dev_warn(&card->gdev->dev, in qeth_check_ipa_data() [all …]
|
/drivers/video/fbdev/ |
D | smscufx.c | 94 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() 1652 dev_dbg(dev->gdev, "console enable=%d\n", console); in ufx_usb_probe() 1653 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() 1665 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() 1683 dev_dbg(dev->gdev, "ID_REV register value 0x%08x", id_rev); in ufx_usb_probe() [all …]
|