/linux/drivers/gnss/ |
A D | core.c | 55 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 …]
|
A D | serial.c | 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() 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 …]
|
A D | sirf.c | 39 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 …]
|
/linux/drivers/s390/cio/ |
A D | ccwgroup.c | 209 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 …]
|
/linux/drivers/virt/vboxguest/ |
A D | vboxguest_core.c | 417 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 …]
|
A D | vboxguest_linux.c | 52 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() 286 gdev = devm_kzalloc(dev, sizeof(*gdev), GFP_KERNEL); in vbg_pci_probe() 287 if (!gdev) in vbg_pci_probe() 339 gdev->io_port = io; in vbg_pci_probe() 340 gdev->mmio = vmmdev; in vbg_pci_probe() 341 gdev->dev = dev; in vbg_pci_probe() 382 vbg_gdev = gdev; in vbg_pci_probe() 397 gdev->misc_device.minor, pci->irq, gdev->io_port, in vbg_pci_probe() [all …]
|
A D | vboxguest_utils.c | 112 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 …]
|
A 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,
|
/linux/drivers/bus/ |
A D | brcmstb_gisb.c | 152 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() 414 gdev = devm_kzalloc(&pdev->dev, sizeof(*gdev), GFP_KERNEL); in brcmstb_gisb_arb_probe() 415 if (!gdev) in brcmstb_gisb_arb_probe() 435 gdev); in brcmstb_gisb_arb_probe() 441 gdev); in brcmstb_gisb_arb_probe() 449 gdev); in brcmstb_gisb_arb_probe() 456 &gdev->valid_mask)) in brcmstb_gisb_arb_probe() 508 gdev->saved_timeout = gisb_read(gdev, ARB_TIMER); in brcmstb_gisb_arb_suspend() [all …]
|
/linux/drivers/uio/ |
A D | uio_pruss.c | 81 void __iomem *base = gdev->prussio_vaddr + gdev->pintc_base; in pruss_handler() 104 if (gdev->ddr_vaddr) { in pruss_cleanup() 106 gdev->ddr_paddr); in pruss_cleanup() 108 if (gdev->sram_vaddr) in pruss_cleanup() 125 if (!gdev) in pruss_probe() 129 if (!gdev->info) in pruss_probe() 160 gdev->sram_vaddr = in pruss_probe() 172 if (!gdev->ddr_vaddr) { in pruss_probe() 208 p->priv = gdev; in pruss_probe() 225 gdev->ddr_paddr); in pruss_probe() [all …]
|
A D | uio_pci_generic.c | 54 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 …]
|
/linux/drivers/gpio/ |
A D | gpiolib.c | 116 gdev->base + gdev->ngpio > gpio) { in gpio_to_desc() 118 return &gdev->descs[gpio - gdev->base]; in gpio_to_desc() 190 if (gdev->base + gdev->ngpio <= base) in gpiochip_find_base() 266 if (gdev->base + gdev->ngpio <= next->base) { in gpiodev_add_to_list() 286 && gdev->base + gdev->ngpio <= next->base) { in gpiodev_add_to_list() 535 gdev->base + gdev->ngpio - 1, gdev->chip->label ? : "generic"); in gpiochip_setup_dev() 607 gdev = kzalloc(sizeof(*gdev), GFP_KERNEL); in gpiochip_add_data_with_key() 701 gdev->descs[i].gdev = gdev; in gpiochip_add_data_with_key() 805 gdev->base, gdev->base + gdev->ngpio - 1, in gpiochip_add_data_with_key() 1943 gdev = desc->gdev; in gpiod_request() [all …]
|
A D | gpiolib-cdev.c | 307 lh->gdev = gdev; in linehandle_create() 1341 lr->gdev = gdev; in linereq_create() 1753 le->gdev = gdev; in lineevent_create() 1987 struct gpio_device *gdev = cdev->gdev; in chipinfo_get() local 2108 struct gpio_device *gdev = cdev->gdev; in gpio_ioctl() local 2112 if (!gdev->chip) in gpio_ioctl() 2297 cdev->gdev = gdev; in gpio_chrdev_open() 2333 struct gpio_device *gdev = cdev->gdev; in gpio_chrdev_release() local 2363 gdev->dev.devt = MKDEV(MAJOR(devt), gdev->id); in gpiolib_cdev_register() 2365 ret = cdev_device_add(&gdev->chrdev, &gdev->dev); in gpiolib_cdev_register() [all …]
|
A D | gpiolib-sysfs.c | 466 gc = desc->gdev->chip; in export_store() 570 struct gpio_device *gdev; in gpiod_export() local 589 gdev = desc->gdev; in gpiod_export() 590 chip = gdev->chip; in gpiod_export() 763 parent = &gdev->dev; in gpiochip_sysfs_register() 773 gdev->mockdev = dev; in gpiochip_sysfs_register() 785 if (!gdev->mockdev) in gpiochip_sysfs_unregister() 792 gdev->mockdev = NULL; in gpiochip_sysfs_unregister() 797 desc = &gdev->descs[i]; in gpiochip_sysfs_unregister() 807 struct gpio_device *gdev; in gpiolib_sysfs_init() local [all …]
|
A 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
|
A 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);
|
/linux/include/linux/ |
A D | gnss.h | 31 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 …]
|
A D | vbox_utils.h | 28 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);
|
/linux/sound/soc/qcom/qdsp6/ |
A D | q6prm.c | 20 gpr_device_t *gdev; member 53 return audioreach_send_cmd_sync(prm->dev, prm->gdev, &prm->result, &prm->lock, in q6prm_send_cmd_sync() 62 gpr_device_t *gdev = prm->gdev; in q6prm_set_hw_core_req() local 117 gpr_device_t *gdev = prm->gdev; in q6prm_request_lpass_clock() local 121 pkt = audioreach_alloc_cmd_pkt(sizeof(*req), PRM_CMD_REQUEST_HW_RSC, 0, gdev->svc.id, in q6prm_request_lpass_clock() 154 gpr_device_t *gdev = prm->gdev; in q6prm_release_lpass_clock() local 194 gpr_device_t *gdev = priv; in prm_callback() local 195 struct q6prm *prm = dev_get_drvdata(&gdev->dev); in prm_callback() 214 static int prm_probe(gpr_device_t *gdev) in prm_probe() argument 216 struct device *dev = &gdev->dev; in prm_probe() [all …]
|
A D | q6apm.c | 32 gpr_device_t *gdev = apm->gdev; in q6apm_send_cmd_sync() local 34 return audioreach_send_cmd_sync(&gdev->dev, gdev, &apm->result, &apm->lock, in q6apm_send_cmd_sync() 632 graph->port = gpr_alloc_port(apm->gdev, dev, graph_callback, graph); in q6apm_graph_open() 714 static int apm_probe(gpr_device_t *gdev) in apm_probe() argument 716 struct device *dev = &gdev->dev; in apm_probe() 728 apm->gdev = gdev; in apm_probe() 760 gpr_device_t *gdev = priv; in apm_callback() local 761 struct q6apm *apm = dev_get_drvdata(&gdev->dev); in apm_callback() 762 struct device *dev = &gdev->dev; in apm_callback()
|
/linux/fs/vboxsf/ |
A D | vboxsf_wrappers.c | 22 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 …]
|
/linux/drivers/staging/greybus/ |
A 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()
|
/linux/drivers/s390/net/ |
A D | qeth_l3_main.c | 187 dev_warn(&card->gdev->dev, in qeth_l3_add_ip() 648 dev_warn(&card->gdev->dev, in qeth_l3_register_addr_entry() 706 dev_info(&card->gdev->dev, in qeth_l3_start_ipa_arp_processing() 714 dev_warn(&card->gdev->dev, in qeth_l3_start_ipa_arp_processing() 728 dev_info(&card->gdev->dev, in qeth_l3_start_ipa_source_mac() 737 dev_warn(&card->gdev->dev, in qeth_l3_start_ipa_source_mac() 750 dev_info(&card->gdev->dev, in qeth_l3_start_ipa_vlan() 758 dev_warn(&card->gdev->dev, in qeth_l3_start_ipa_vlan() 806 dev_err(&card->gdev->dev, in qeth_l3_softsetup_ipv6() 814 dev_err(&card->gdev->dev, in qeth_l3_softsetup_ipv6() [all …]
|
A 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() 1561 dev_err(&card->gdev->dev, in qeth_bridgeport_makerc() 1567 dev_err(&card->gdev->dev, in qeth_bridgeport_makerc() 1590 dev_err(&card->gdev->dev, in qeth_bridgeport_makerc() 1596 dev_err(&card->gdev->dev, in qeth_bridgeport_makerc() 1602 dev_err(&card->gdev->dev, in qeth_bridgeport_makerc() 1608 dev_err(&card->gdev->dev, in qeth_bridgeport_makerc() 2284 if (gdev->dev.type) { in qeth_l2_probe_device() [all …]
|
/linux/drivers/video/fbdev/ |
A D | smscufx.c | 94 struct device *gdev; /* &udev->dev */ member 1634 dev_dbg(dev->gdev, "%s %s - serial #%s\n", in ufx_usb_probe() 1640 dev_dbg(dev->gdev, "console enable=%d\n", console); in ufx_usb_probe() 1679 dev_dbg(dev->gdev, "resetting device"); in ufx_usb_probe() 1683 dev_dbg(dev->gdev, "configuring system clock"); in ufx_usb_probe() 1687 dev_dbg(dev->gdev, "configuring DDR2 controller"); in ufx_usb_probe() 1691 dev_dbg(dev->gdev, "configuring I2C controller"); in ufx_usb_probe() 1695 dev_dbg(dev->gdev, "selecting display mode"); in ufx_usb_probe() 1705 dev_dbg(dev->gdev, "checking var"); in ufx_usb_probe() 1709 dev_dbg(dev->gdev, "setting par"); in ufx_usb_probe() [all …]
|