Home
last modified time | relevance | path

Searched refs:gdev (Results 1 – 25 of 61) sorted by relevance

123

/openbmc/linux/drivers/gnss/
H A Dcore.c55 ret = gdev->ops->open(gdev); in gnss_open()
77 gdev->ops->close(gdev); in gnss_release()
164 ret = gdev->ops->write_raw(gdev, gdev->write_buf, n); in gnss_write()
221 kfree(gdev); in gnss_device_release()
231 gdev = kzalloc(sizeof(*gdev), GFP_KERNEL); in gnss_allocate_device()
232 if (!gdev) in gnss_allocate_device()
237 kfree(gdev); in gnss_allocate_device()
268 return gdev; in gnss_allocate_device()
291 ret = cdev_device_add(&gdev->cdev, &gdev->dev); in gnss_register_device()
307 gdev->ops->close(gdev); in gnss_deregister_device()
[all …]
H A Dusb.c28 struct gnss_device *gdev; member
36 struct gnss_device *gdev = gusb->gdev; in gnss_usb_rx_complete() local
122 struct gnss_device *gdev; in gnss_usb_probe() local
139 if (!gdev) { in gnss_usb_probe()
144 gdev->ops = &gnss_usb_gnss_ops; in gnss_usb_probe()
145 gdev->type = GNSS_TYPE_NMEA; in gnss_usb_probe()
146 gnss_set_drvdata(gdev, gusb); in gnss_usb_probe()
168 gusb->gdev = gdev; in gnss_usb_probe()
172 ret = gnss_register_device(gdev); in gnss_usb_probe()
185 gnss_put_device(gdev); in gnss_usb_probe()
[all …]
H A Dserial.c87 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()
135 if (!gdev) { in gnss_serial_allocate()
140 gdev->ops = &gnss_serial_gnss_ops; in gnss_serial_allocate()
141 gnss_set_drvdata(gdev, gserial); in gnss_serial_allocate()
144 gserial->gdev = gdev; in gnss_serial_allocate()
156 gnss_put_device(gserial->gdev); in gnss_serial_allocate()
166 gnss_put_device(gserial->gdev); in gnss_serial_free()
[all …]
H A Dsirf.c39 struct gnss_device *gdev; member
167 struct gnss_device *gdev = data->gdev; in sirf_receive_buf() local
398 struct gnss_device *gdev; in sirf_probe() local
406 gdev = gnss_allocate_device(dev); in sirf_probe()
407 if (!gdev) in sirf_probe()
410 gdev->type = GNSS_TYPE_SIRF; in sirf_probe()
411 gdev->ops = &sirf_gnss_ops; in sirf_probe()
412 gnss_set_drvdata(gdev, data); in sirf_probe()
415 data->gdev = gdev; in sirf_probe()
531 gnss_put_device(data->gdev); in sirf_probe()
[all …]
/openbmc/linux/drivers/s390/cio/
H A Dccwgroup.c209 ccwgroup_ungroup(gdev); in ccwgroup_ungroup_workfn()
210 put_device(&gdev->dev); in ccwgroup_ungroup_workfn()
231 kfree(gdev); in ccwgroup_release()
323 gdev = kzalloc(struct_size(gdev, cdev, num_devices), GFP_KERNEL); in ccwgroup_create_dev()
324 if (!gdev) in ccwgroup_create_dev()
346 if (!gdev->cdev[i] || !gdev->cdev[i]->drv || in ccwgroup_create_dev()
347 gdev->cdev[i]->drv != gdev->cdev[0]->drv || in ccwgroup_create_dev()
360 dev_set_drvdata(&gdev->cdev[i]->dev, gdev); in ccwgroup_create_dev()
380 dev_set_name(&gdev->dev, "%s", dev_name(&gdev->cdev[0]->dev)); in ccwgroup_create_dev()
454 gdrv->remove(gdev); in ccwgroup_remove()
[all …]
/openbmc/linux/drivers/virt/vboxguest/
H A Dvboxguest_core.c417 struct vbg_dev *gdev = from_timer(gdev, t, heartbeat_timer); in vbg_heartbeat_timer() local
419 vbg_req_perform(gdev, gdev->guest_heartbeat_req); in vbg_heartbeat_timer()
610 or_mask = gdev->fixed_events | gdev->event_filter_tracker.mask; in vbg_set_session_event_filter()
946 gdev->cancel_req = in vbg_core_init()
959 if (!gdev->mem_balloon.get_req || !gdev->mem_balloon.change_req || in vbg_core_init()
960 !gdev->cancel_req || !gdev->ack_events_req || in vbg_core_init()
974 ret = vbg_reset_host_event_filter(gdev, gdev->fixed_events); in vbg_core_init()
1064 session->gdev = gdev; in vbg_core_open_session()
1076 struct vbg_dev *gdev = session->gdev; in vbg_core_close_session() local
1208 gdev->event_wq, in vbg_ioctl_wait_for_events()
[all …]
H A Dvboxguest_linux.c52 struct vbg_dev *gdev; in vbg_misc_device_open() local
68 struct vbg_dev *gdev; in vbg_misc_device_user_open() local
249 gdev->input = input; in vbg_create_input_device()
293 gdev = devm_kzalloc(dev, sizeof(*gdev), GFP_KERNEL); in vbg_pci_probe()
294 if (!gdev) in vbg_pci_probe()
346 gdev->io_port = io; in vbg_pci_probe()
347 gdev->mmio = vmmdev; in vbg_pci_probe()
348 gdev->dev = dev; in vbg_pci_probe()
367 gdev); in vbg_pci_probe()
389 vbg_gdev = gdev; in vbg_pci_probe()
[all …]
H A Dvboxguest_utils.c112 static bool hgcm_req_done(struct vbg_dev *gdev, in hgcm_req_done() argument
141 rc = vbg_req_perform(gdev, hgcm_connect); in vbg_hgcm_connect()
144 wait_event(gdev->hgcm_wq, in vbg_hgcm_connect()
174 rc = vbg_req_perform(gdev, hgcm_disconnect); in vbg_hgcm_disconnect()
177 wait_event(gdev->hgcm_wq, in vbg_hgcm_disconnect()
441 mutex_lock(&gdev->cancel_req_mutex); in hgcm_cancel_call()
443 rc = vbg_req_perform(gdev, gdev->cancel_req); in hgcm_cancel_call()
444 mutex_unlock(&gdev->cancel_req_mutex); in hgcm_cancel_call()
450 rc = vbg_req_perform(gdev, call); in hgcm_cancel_call()
478 rc = vbg_req_perform(gdev, call); in vbg_hgcm_do_call()
[all …]
H A Dvboxguest_core.h162 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,
/openbmc/linux/drivers/uio/
H A Duio_pruss.c73 void __iomem *base = gdev->prussio_vaddr + gdev->pintc_base; in pruss_handler()
96 if (gdev->ddr_vaddr) { in pruss_cleanup()
98 gdev->ddr_paddr); in pruss_cleanup()
100 if (gdev->sram_vaddr) in pruss_cleanup()
117 if (!gdev) in pruss_probe()
121 if (!gdev->info) in pruss_probe()
152 gdev->sram_vaddr = in pruss_probe()
164 if (!gdev->ddr_vaddr) { in pruss_probe()
204 p->priv = gdev; in pruss_probe()
222 gdev->ddr_paddr); in pruss_probe()
[all …]
H A Duio_pci_generic.c54 pci_clear_master(gdev->pdev); in release()
74 struct uio_pci_generic_dev *gdev; in probe() local
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()
96 gdev->pdev = pdev; in probe()
98 gdev->info.irq = pdev->irq; in probe()
99 gdev->info.irq_flags = IRQF_SHARED; in probe()
100 gdev->info.handler = irqhandler; in probe()
[all …]
/openbmc/linux/drivers/bus/
H A Dbrcmstb_gisb.c152 if (gdev->big_endian) in gisb_read()
185 if (gdev->big_endian) in gisb_write()
198 mutex_lock(&gdev->lock); in gisb_arb_get_timeout()
412 gdev = devm_kzalloc(&pdev->dev, sizeof(*gdev), GFP_KERNEL); in brcmstb_gisb_arb_probe()
413 if (!gdev) in brcmstb_gisb_arb_probe()
433 gdev); in brcmstb_gisb_arb_probe()
439 gdev); in brcmstb_gisb_arb_probe()
447 gdev); in brcmstb_gisb_arb_probe()
454 &gdev->valid_mask)) in brcmstb_gisb_arb_probe()
506 gdev->saved_timeout = gisb_read(gdev, ARB_TIMER); in brcmstb_gisb_arb_suspend()
[all …]
/openbmc/linux/drivers/hte/
H A Dhte.c167 gdev = ei->gdev; in hte_ts_put()
255 gdev = ei->gdev; in hte_ts_dis_en_common()
361 gdev = ei->gdev; in __hte_req_ts()
446 if (gdev->chip && gdev->chip->dev && in of_node_to_htedevice()
606 ret = gdev->chip->xlate_of(gdev->chip, &args, in hte_ts_get()
612 ret = gdev->chip->xlate_plat(gdev->chip, desc, in hte_ts_get()
780 if (!ei->gdev || !ei->gdev->chip) in hte_get_clk_src_info()
859 if (!gdev) in hte_register_chip()
863 chip->gdev = gdev; in hte_register_chip()
868 gdev->ei[i].gdev = gdev; in hte_register_chip()
[all …]
/openbmc/linux/include/linux/
H A Dgnss.h31 int (*open)(struct gnss_device *gdev);
32 void (*close)(struct gnss_device *gdev);
33 int (*write_raw)(struct gnss_device *gdev, const unsigned char *buf,
59 void gnss_put_device(struct gnss_device *gdev);
60 int gnss_register_device(struct gnss_device *gdev);
61 void gnss_deregister_device(struct gnss_device *gdev);
63 int gnss_insert_raw(struct gnss_device *gdev, const unsigned char *buf,
66 static inline void gnss_set_drvdata(struct gnss_device *gdev, void *data) in gnss_set_drvdata() argument
68 dev_set_drvdata(&gdev->dev, data); in gnss_set_drvdata()
71 static inline void *gnss_get_drvdata(struct gnss_device *gdev) in gnss_get_drvdata() argument
[all …]
H A Dvbox_utils.h28 int vbg_hgcm_connect(struct vbg_dev *gdev, u32 requestor,
32 int vbg_hgcm_disconnect(struct vbg_dev *gdev, u32 requestor,
35 int vbg_hgcm_call(struct vbg_dev *gdev, u32 requestor, u32 client_id,
57 void vbg_put_gdev(struct vbg_dev *gdev);
/openbmc/linux/drivers/gpio/
H A Dgpiolib.c135 gdev->base + gdev->ngpio > gpio) { in gpio_to_desc()
137 return &gdev->descs[gpio - gdev->base]; in gpio_to_desc()
212 base = gdev->base + gdev->ngpio; in gpiochip_find_base()
286 if (gdev->base + gdev->ngpio <= next->base) { in gpiodev_add_to_list()
306 && gdev->base + gdev->ngpio <= next->base) { in gpiodev_add_to_list()
629 gdev->base + gdev->ngpio - 1, gdev->chip->label ? : "generic"); in gpiochip_setup_dev()
752 gdev = kzalloc(sizeof(*gdev), GFP_KERNEL); in gpiochip_add_data_with_key()
753 if (!gdev) in gpiochip_add_data_with_key()
847 gdev->descs[i].gdev = gdev; in gpiochip_add_data_with_key()
1077 if (gdev->chip && match(gdev->chip, data)) in gpio_device_find()
[all …]
H A Dgpiolib-cdev.c75 up_read(&gdev->sem); in call_poll_locked()
370 lh->gdev = gpio_device_get(gdev); in linehandle_create()
1840 lr->gdev = gpio_device_get(gdev); in linereq_create()
2309 le->gdev = gpio_device_get(gdev); in lineevent_create()
2549 struct gpio_device *gdev = cdev->gdev; in chipinfo_get() local
2668 struct gpio_device *gdev = cdev->gdev; in gpio_ioctl_unlocked() local
2906 cdev->gdev = gpio_device_get(gdev); in gpio_chrdev_open()
2956 struct gpio_device *gdev = cdev->gdev; in gpio_chrdev_release() local
2988 gdev->dev.devt = MKDEV(MAJOR(devt), gdev->id); in gpiolib_cdev_register()
2990 ret = cdev_device_add(&gdev->chrdev, &gdev->dev); in gpiolib_cdev_register()
[all …]
H A Dgpiolib-sysfs.h10 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
H A Dgpiolib-sysfs.c461 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()
757 parent = &gdev->dev; in gpiochip_sysfs_register()
767 gdev->mockdev = dev; in gpiochip_sysfs_register()
779 if (!gdev->mockdev) in gpiochip_sysfs_unregister()
785 gdev->mockdev = NULL; in gpiochip_sysfs_unregister()
799 struct gpio_device *gdev; in gpiolib_sysfs_init() local
[all …]
/openbmc/linux/sound/soc/qcom/qdsp6/
H A Dq6prm.c21 gpr_device_t *gdev; member
54 return audioreach_send_cmd_sync(prm->dev, prm->gdev, &prm->result, &prm->lock, in q6prm_send_cmd_sync()
63 gpr_device_t *gdev = prm->gdev; in q6prm_set_hw_core_req() local
118 gpr_device_t *gdev = prm->gdev; in q6prm_request_lpass_clock() local
122 pkt = audioreach_alloc_cmd_pkt(sizeof(*req), PRM_CMD_REQUEST_HW_RSC, 0, gdev->svc.id, in q6prm_request_lpass_clock()
155 gpr_device_t *gdev = prm->gdev; in q6prm_release_lpass_clock() local
195 gpr_device_t *gdev = priv; in prm_callback() local
196 struct q6prm *prm = dev_get_drvdata(&gdev->dev); in prm_callback()
215 static int prm_probe(gpr_device_t *gdev) in prm_probe() argument
217 struct device *dev = &gdev->dev; in prm_probe()
[all …]
/openbmc/linux/drivers/net/ethernet/intel/ice/
H A Dice_gnss.c208 struct ice_pf *pf = gnss_get_drvdata(gdev); in ice_gnss_open()
234 struct ice_pf *pf = gnss_get_drvdata(gdev); in ice_gnss_close()
261 struct ice_pf *pf = gnss_get_drvdata(gdev); in ice_gnss_write()
299 struct gnss_device *gdev; in ice_gnss_register() local
303 if (!gdev) { in ice_gnss_register()
309 gdev->ops = &ice_gnss_ops; in ice_gnss_register()
310 gdev->type = GNSS_TYPE_UBX; in ice_gnss_register()
311 gnss_set_drvdata(gdev, pf); in ice_gnss_register()
312 ret = gnss_register_device(gdev); in ice_gnss_register()
316 gnss_put_device(gdev); in ice_gnss_register()
[all …]
/openbmc/qemu/contrib/vhost-user-blk/
H A Dvhost-user-blk.c86 VugDev *gdev; in vub_panic_cb() local
91 gdev = container_of(vu_dev, VugDev, parent); in vub_panic_cb()
102 VugDev *gdev = &req->vdev_blk->parent; in vub_req_complete() local
103 VuDev *vu_dev = &gdev->parent; in vub_req_complete()
228 VugDev *gdev = &vdev_blk->parent; in vub_virtio_process_req() local
229 VuDev *vu_dev = &gdev->parent; in vub_virtio_process_req()
333 VugDev *gdev; in vub_process_vq() local
367 VugDev *gdev; in vub_get_features() local
370 gdev = container_of(dev, VugDev, parent); in vub_get_features()
401 VugDev *gdev; in vub_get_config() local
[all …]
/openbmc/linux/fs/vboxsf/
H A Dvboxsf_wrappers.c22 struct vbg_dev *gdev; in vboxsf_connect() local
29 gdev = vbg_get_gdev(); in vboxsf_connect()
30 if (IS_ERR(gdev)) in vboxsf_connect()
35 vbg_put_gdev(gdev); in vboxsf_connect()
42 struct vbg_dev *gdev; in vboxsf_disconnect() local
45 gdev = vbg_get_gdev(); in vboxsf_disconnect()
46 if (IS_ERR(gdev)) in vboxsf_disconnect()
50 vbg_put_gdev(gdev); in vboxsf_disconnect()
55 struct vbg_dev *gdev; in vboxsf_call() local
59 if (IS_ERR(gdev)) in vboxsf_call()
[all …]
/openbmc/linux/drivers/staging/greybus/
H A Dgbphy.h20 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()
/openbmc/linux/drivers/iommu/
H A Diommu.c488 struct group_device *gdev; in __iommu_probe_device() local
513 if (IS_ERR(gdev)) { in __iommu_probe_device()
514 ret = PTR_ERR(gdev); in __iommu_probe_device()
551 list_del(&gdev->list); in __iommu_probe_device()
1187 if (IS_ERR(gdev)) in iommu_group_add_device()
1188 return PTR_ERR(gdev); in iommu_group_add_device()
1827 gdev->dev, in iommu_get_default_domain_type()
1834 gdev->dev, in iommu_get_default_domain_type()
1842 last_dev = gdev->dev; in iommu_get_default_domain_type()
2326 last_gdev = gdev; in __iommu_group_set_domain_internal()
[all …]

123