usbtouch 71 drivers/input/touchscreen/usbtouchscreen.c void (*process_pkt) (struct usbtouch_usb *usbtouch, unsigned char *pkt, int len); usbtouch 81 drivers/input/touchscreen/usbtouchscreen.c int (*read_data) (struct usbtouch_usb *usbtouch, unsigned char *pkt); usbtouch 82 drivers/input/touchscreen/usbtouchscreen.c int (*alloc) (struct usbtouch_usb *usbtouch); usbtouch 83 drivers/input/touchscreen/usbtouchscreen.c int (*init) (struct usbtouch_usb *usbtouch); usbtouch 84 drivers/input/touchscreen/usbtouchscreen.c void (*exit) (struct usbtouch_usb *usbtouch); usbtouch 249 drivers/input/touchscreen/usbtouchscreen.c static int e2i_init(struct usbtouch_usb *usbtouch) usbtouch 252 drivers/input/touchscreen/usbtouchscreen.c struct usb_device *udev = interface_to_usbdev(usbtouch->interface); usbtouch 258 drivers/input/touchscreen/usbtouchscreen.c dev_dbg(&usbtouch->interface->dev, usbtouch 293 drivers/input/touchscreen/usbtouchscreen.c static int egalax_init(struct usbtouch_usb *usbtouch) usbtouch 297 drivers/input/touchscreen/usbtouchscreen.c struct usb_device *udev = interface_to_usbdev(usbtouch->interface); usbtouch 456 drivers/input/touchscreen/usbtouchscreen.c struct usbtouch_usb *usbtouch = usb_get_intfdata(intf); usbtouch 457 drivers/input/touchscreen/usbtouchscreen.c struct mtouch_priv *priv = usbtouch->priv; usbtouch 473 drivers/input/touchscreen/usbtouchscreen.c static int mtouch_get_fw_revision(struct usbtouch_usb *usbtouch) usbtouch 475 drivers/input/touchscreen/usbtouchscreen.c struct usb_device *udev = interface_to_usbdev(usbtouch->interface); usbtouch 476 drivers/input/touchscreen/usbtouchscreen.c struct mtouch_priv *priv = usbtouch->priv; usbtouch 490 drivers/input/touchscreen/usbtouchscreen.c dev_warn(&usbtouch->interface->dev, usbtouch 506 drivers/input/touchscreen/usbtouchscreen.c static int mtouch_alloc(struct usbtouch_usb *usbtouch) usbtouch 510 drivers/input/touchscreen/usbtouchscreen.c usbtouch->priv = kmalloc(sizeof(struct mtouch_priv), GFP_KERNEL); usbtouch 511 drivers/input/touchscreen/usbtouchscreen.c if (!usbtouch->priv) usbtouch 514 drivers/input/touchscreen/usbtouchscreen.c ret = sysfs_create_group(&usbtouch->interface->dev.kobj, usbtouch 517 drivers/input/touchscreen/usbtouchscreen.c kfree(usbtouch->priv); usbtouch 518 drivers/input/touchscreen/usbtouchscreen.c usbtouch->priv = NULL; usbtouch 525 drivers/input/touchscreen/usbtouchscreen.c static int mtouch_init(struct usbtouch_usb *usbtouch) usbtouch 528 drivers/input/touchscreen/usbtouchscreen.c struct usb_device *udev = interface_to_usbdev(usbtouch->interface); usbtouch 530 drivers/input/touchscreen/usbtouchscreen.c ret = mtouch_get_fw_revision(usbtouch); usbtouch 538 drivers/input/touchscreen/usbtouchscreen.c dev_dbg(&usbtouch->interface->dev, usbtouch 550 drivers/input/touchscreen/usbtouchscreen.c dev_dbg(&usbtouch->interface->dev, usbtouch 561 drivers/input/touchscreen/usbtouchscreen.c input_set_abs_params(usbtouch->input, ABS_X, 0, 0xffff, 0, 0); usbtouch 562 drivers/input/touchscreen/usbtouchscreen.c input_set_abs_params(usbtouch->input, ABS_Y, 0, 0xffff, 0, 0); usbtouch 568 drivers/input/touchscreen/usbtouchscreen.c static void mtouch_exit(struct usbtouch_usb *usbtouch) usbtouch 570 drivers/input/touchscreen/usbtouchscreen.c struct mtouch_priv *priv = usbtouch->priv; usbtouch 572 drivers/input/touchscreen/usbtouchscreen.c sysfs_remove_group(&usbtouch->interface->dev.kobj, &mtouch_attr_group); usbtouch 686 drivers/input/touchscreen/usbtouchscreen.c static int dmc_tsc10_init(struct usbtouch_usb *usbtouch) usbtouch 688 drivers/input/touchscreen/usbtouchscreen.c struct usb_device *dev = interface_to_usbdev(usbtouch->interface); usbtouch 922 drivers/input/touchscreen/usbtouchscreen.c static int nexio_alloc(struct usbtouch_usb *usbtouch) usbtouch 927 drivers/input/touchscreen/usbtouchscreen.c usbtouch->priv = kmalloc(sizeof(struct nexio_priv), GFP_KERNEL); usbtouch 928 drivers/input/touchscreen/usbtouchscreen.c if (!usbtouch->priv) usbtouch 931 drivers/input/touchscreen/usbtouchscreen.c priv = usbtouch->priv; usbtouch 940 drivers/input/touchscreen/usbtouchscreen.c dev_dbg(&usbtouch->interface->dev, usbtouch 955 drivers/input/touchscreen/usbtouchscreen.c static int nexio_init(struct usbtouch_usb *usbtouch) usbtouch 957 drivers/input/touchscreen/usbtouchscreen.c struct usb_device *dev = interface_to_usbdev(usbtouch->interface); usbtouch 958 drivers/input/touchscreen/usbtouchscreen.c struct usb_host_interface *interface = usbtouch->interface->cur_altsetting; usbtouch 959 drivers/input/touchscreen/usbtouchscreen.c struct nexio_priv *priv = usbtouch->priv; usbtouch 1027 drivers/input/touchscreen/usbtouchscreen.c nexio_ack_complete, usbtouch); usbtouch 1035 drivers/input/touchscreen/usbtouchscreen.c static void nexio_exit(struct usbtouch_usb *usbtouch) usbtouch 1037 drivers/input/touchscreen/usbtouchscreen.c struct nexio_priv *priv = usbtouch->priv; usbtouch 1045 drivers/input/touchscreen/usbtouchscreen.c static int nexio_read_data(struct usbtouch_usb *usbtouch, unsigned char *pkt) usbtouch 1048 drivers/input/touchscreen/usbtouchscreen.c struct nexio_priv *priv = usbtouch->priv; usbtouch 1066 drivers/input/touchscreen/usbtouchscreen.c if (!usbtouch->type->max_xc) { usbtouch 1067 drivers/input/touchscreen/usbtouchscreen.c usbtouch->type->max_xc = 2 * x_len; usbtouch 1068 drivers/input/touchscreen/usbtouchscreen.c input_set_abs_params(usbtouch->input, ABS_X, usbtouch 1069 drivers/input/touchscreen/usbtouchscreen.c 0, usbtouch->type->max_xc, 0, 0); usbtouch 1070 drivers/input/touchscreen/usbtouchscreen.c usbtouch->type->max_yc = 2 * y_len; usbtouch 1071 drivers/input/touchscreen/usbtouchscreen.c input_set_abs_params(usbtouch->input, ABS_Y, usbtouch 1072 drivers/input/touchscreen/usbtouchscreen.c 0, usbtouch->type->max_yc, 0, 0); usbtouch 1101 drivers/input/touchscreen/usbtouchscreen.c input_report_abs(usbtouch->input, usbtouch 1103 drivers/input/touchscreen/usbtouchscreen.c input_report_abs(usbtouch->input, usbtouch 1105 drivers/input/touchscreen/usbtouchscreen.c input_report_abs(usbtouch->input, usbtouch 1107 drivers/input/touchscreen/usbtouchscreen.c input_report_abs(usbtouch->input, usbtouch 1109 drivers/input/touchscreen/usbtouchscreen.c input_report_abs(usbtouch->input, usbtouch 1111 drivers/input/touchscreen/usbtouchscreen.c input_mt_sync(usbtouch->input); usbtouch 1114 drivers/input/touchscreen/usbtouchscreen.c usbtouch->x = 2 * begin_x + w; usbtouch 1115 drivers/input/touchscreen/usbtouchscreen.c usbtouch->y = 2 * begin_y + h; usbtouch 1116 drivers/input/touchscreen/usbtouchscreen.c usbtouch->touch = packet->flags & 0x01; usbtouch 1152 drivers/input/touchscreen/usbtouchscreen.c static void usbtouch_process_multi(struct usbtouch_usb *usbtouch, usbtouch 1385 drivers/input/touchscreen/usbtouchscreen.c static void usbtouch_process_pkt(struct usbtouch_usb *usbtouch, usbtouch 1388 drivers/input/touchscreen/usbtouchscreen.c struct usbtouch_device_info *type = usbtouch->type; usbtouch 1390 drivers/input/touchscreen/usbtouchscreen.c if (!type->read_data(usbtouch, pkt)) usbtouch 1393 drivers/input/touchscreen/usbtouchscreen.c input_report_key(usbtouch->input, BTN_TOUCH, usbtouch->touch); usbtouch 1396 drivers/input/touchscreen/usbtouchscreen.c input_report_abs(usbtouch->input, ABS_X, usbtouch->y); usbtouch 1397 drivers/input/touchscreen/usbtouchscreen.c input_report_abs(usbtouch->input, ABS_Y, usbtouch->x); usbtouch 1399 drivers/input/touchscreen/usbtouchscreen.c input_report_abs(usbtouch->input, ABS_X, usbtouch->x); usbtouch 1400 drivers/input/touchscreen/usbtouchscreen.c input_report_abs(usbtouch->input, ABS_Y, usbtouch->y); usbtouch 1403 drivers/input/touchscreen/usbtouchscreen.c input_report_abs(usbtouch->input, ABS_PRESSURE, usbtouch->press); usbtouch 1404 drivers/input/touchscreen/usbtouchscreen.c input_sync(usbtouch->input); usbtouch 1409 drivers/input/touchscreen/usbtouchscreen.c static void usbtouch_process_multi(struct usbtouch_usb *usbtouch, usbtouch 1416 drivers/input/touchscreen/usbtouchscreen.c if (unlikely(usbtouch->buf_len)) { usbtouch 1418 drivers/input/touchscreen/usbtouchscreen.c pkt_len = usbtouch->type->get_pkt_len( usbtouch 1419 drivers/input/touchscreen/usbtouchscreen.c usbtouch->buffer, usbtouch->buf_len); usbtouch 1430 drivers/input/touchscreen/usbtouchscreen.c if (usbtouch->buf_len + append >= usbtouch->type->rept_size) usbtouch 1432 drivers/input/touchscreen/usbtouchscreen.c memcpy(usbtouch->buffer + usbtouch->buf_len, pkt, append); usbtouch 1433 drivers/input/touchscreen/usbtouchscreen.c usbtouch->buf_len += append; usbtouch 1435 drivers/input/touchscreen/usbtouchscreen.c pkt_len = usbtouch->type->get_pkt_len( usbtouch 1436 drivers/input/touchscreen/usbtouchscreen.c usbtouch->buffer, usbtouch->buf_len); usbtouch 1442 drivers/input/touchscreen/usbtouchscreen.c tmp = pkt_len - usbtouch->buf_len; usbtouch 1443 drivers/input/touchscreen/usbtouchscreen.c if (usbtouch->buf_len + tmp >= usbtouch->type->rept_size) usbtouch 1445 drivers/input/touchscreen/usbtouchscreen.c memcpy(usbtouch->buffer + usbtouch->buf_len, pkt, tmp); usbtouch 1446 drivers/input/touchscreen/usbtouchscreen.c usbtouch_process_pkt(usbtouch, usbtouch->buffer, pkt_len); usbtouch 1459 drivers/input/touchscreen/usbtouchscreen.c pkt_len = usbtouch->type->get_pkt_len(buffer + pos, usbtouch 1470 drivers/input/touchscreen/usbtouchscreen.c usbtouch_process_pkt(usbtouch, buffer + pos, pkt_len); usbtouch 1473 drivers/input/touchscreen/usbtouchscreen.c memcpy(usbtouch->buffer, buffer + pos, buf_len - pos); usbtouch 1474 drivers/input/touchscreen/usbtouchscreen.c usbtouch->buf_len = buf_len - pos; usbtouch 1481 drivers/input/touchscreen/usbtouchscreen.c usbtouch->buf_len = 0; usbtouch 1489 drivers/input/touchscreen/usbtouchscreen.c struct usbtouch_usb *usbtouch = urb->context; usbtouch 1490 drivers/input/touchscreen/usbtouchscreen.c struct device *dev = &usbtouch->interface->dev; usbtouch 1517 drivers/input/touchscreen/usbtouchscreen.c usbtouch->type->process_pkt(usbtouch, usbtouch->data, urb->actual_length); usbtouch 1520 drivers/input/touchscreen/usbtouchscreen.c usb_mark_last_busy(interface_to_usbdev(usbtouch->interface)); usbtouch 1529 drivers/input/touchscreen/usbtouchscreen.c struct usbtouch_usb *usbtouch = input_get_drvdata(input); usbtouch 1532 drivers/input/touchscreen/usbtouchscreen.c usbtouch->irq->dev = interface_to_usbdev(usbtouch->interface); usbtouch 1534 drivers/input/touchscreen/usbtouchscreen.c r = usb_autopm_get_interface(usbtouch->interface) ? -EIO : 0; usbtouch 1538 drivers/input/touchscreen/usbtouchscreen.c mutex_lock(&usbtouch->pm_mutex); usbtouch 1539 drivers/input/touchscreen/usbtouchscreen.c if (!usbtouch->type->irq_always) { usbtouch 1540 drivers/input/touchscreen/usbtouchscreen.c if (usb_submit_urb(usbtouch->irq, GFP_KERNEL)) { usbtouch 1546 drivers/input/touchscreen/usbtouchscreen.c usbtouch->interface->needs_remote_wakeup = 1; usbtouch 1547 drivers/input/touchscreen/usbtouchscreen.c usbtouch->is_open = true; usbtouch 1549 drivers/input/touchscreen/usbtouchscreen.c mutex_unlock(&usbtouch->pm_mutex); usbtouch 1550 drivers/input/touchscreen/usbtouchscreen.c usb_autopm_put_interface(usbtouch->interface); usbtouch 1557 drivers/input/touchscreen/usbtouchscreen.c struct usbtouch_usb *usbtouch = input_get_drvdata(input); usbtouch 1560 drivers/input/touchscreen/usbtouchscreen.c mutex_lock(&usbtouch->pm_mutex); usbtouch 1561 drivers/input/touchscreen/usbtouchscreen.c if (!usbtouch->type->irq_always) usbtouch 1562 drivers/input/touchscreen/usbtouchscreen.c usb_kill_urb(usbtouch->irq); usbtouch 1563 drivers/input/touchscreen/usbtouchscreen.c usbtouch->is_open = false; usbtouch 1564 drivers/input/touchscreen/usbtouchscreen.c mutex_unlock(&usbtouch->pm_mutex); usbtouch 1566 drivers/input/touchscreen/usbtouchscreen.c r = usb_autopm_get_interface(usbtouch->interface); usbtouch 1567 drivers/input/touchscreen/usbtouchscreen.c usbtouch->interface->needs_remote_wakeup = 0; usbtouch 1569 drivers/input/touchscreen/usbtouchscreen.c usb_autopm_put_interface(usbtouch->interface); usbtouch 1575 drivers/input/touchscreen/usbtouchscreen.c struct usbtouch_usb *usbtouch = usb_get_intfdata(intf); usbtouch 1577 drivers/input/touchscreen/usbtouchscreen.c usb_kill_urb(usbtouch->irq); usbtouch 1584 drivers/input/touchscreen/usbtouchscreen.c struct usbtouch_usb *usbtouch = usb_get_intfdata(intf); usbtouch 1587 drivers/input/touchscreen/usbtouchscreen.c mutex_lock(&usbtouch->pm_mutex); usbtouch 1588 drivers/input/touchscreen/usbtouchscreen.c if (usbtouch->is_open || usbtouch->type->irq_always) usbtouch 1589 drivers/input/touchscreen/usbtouchscreen.c result = usb_submit_urb(usbtouch->irq, GFP_NOIO); usbtouch 1590 drivers/input/touchscreen/usbtouchscreen.c mutex_unlock(&usbtouch->pm_mutex); usbtouch 1597 drivers/input/touchscreen/usbtouchscreen.c struct usbtouch_usb *usbtouch = usb_get_intfdata(intf); usbtouch 1601 drivers/input/touchscreen/usbtouchscreen.c if (usbtouch->type->init) { usbtouch 1602 drivers/input/touchscreen/usbtouchscreen.c err = usbtouch->type->init(usbtouch); usbtouch 1612 drivers/input/touchscreen/usbtouchscreen.c mutex_lock(&usbtouch->pm_mutex); usbtouch 1613 drivers/input/touchscreen/usbtouchscreen.c if (usbtouch->is_open) usbtouch 1614 drivers/input/touchscreen/usbtouchscreen.c err = usb_submit_urb(usbtouch->irq, GFP_NOIO); usbtouch 1615 drivers/input/touchscreen/usbtouchscreen.c mutex_unlock(&usbtouch->pm_mutex); usbtouch 1621 drivers/input/touchscreen/usbtouchscreen.c struct usbtouch_usb *usbtouch) usbtouch 1623 drivers/input/touchscreen/usbtouchscreen.c usb_free_coherent(udev, usbtouch->data_size, usbtouch 1624 drivers/input/touchscreen/usbtouchscreen.c usbtouch->data, usbtouch->data_dma); usbtouch 1625 drivers/input/touchscreen/usbtouchscreen.c kfree(usbtouch->buffer); usbtouch 1643 drivers/input/touchscreen/usbtouchscreen.c struct usbtouch_usb *usbtouch; usbtouch 1658 drivers/input/touchscreen/usbtouchscreen.c usbtouch = kzalloc(sizeof(struct usbtouch_usb), GFP_KERNEL); usbtouch 1660 drivers/input/touchscreen/usbtouchscreen.c if (!usbtouch || !input_dev) usbtouch 1663 drivers/input/touchscreen/usbtouchscreen.c mutex_init(&usbtouch->pm_mutex); usbtouch 1666 drivers/input/touchscreen/usbtouchscreen.c usbtouch->type = type; usbtouch 1670 drivers/input/touchscreen/usbtouchscreen.c usbtouch->data_size = type->rept_size; usbtouch 1679 drivers/input/touchscreen/usbtouchscreen.c usbtouch->data_size = min(usbtouch->data_size, usbtouch 1683 drivers/input/touchscreen/usbtouchscreen.c usbtouch->data = usb_alloc_coherent(udev, usbtouch->data_size, usbtouch 1684 drivers/input/touchscreen/usbtouchscreen.c GFP_KERNEL, &usbtouch->data_dma); usbtouch 1685 drivers/input/touchscreen/usbtouchscreen.c if (!usbtouch->data) usbtouch 1689 drivers/input/touchscreen/usbtouchscreen.c usbtouch->buffer = kmalloc(type->rept_size, GFP_KERNEL); usbtouch 1690 drivers/input/touchscreen/usbtouchscreen.c if (!usbtouch->buffer) usbtouch 1694 drivers/input/touchscreen/usbtouchscreen.c usbtouch->irq = usb_alloc_urb(0, GFP_KERNEL); usbtouch 1695 drivers/input/touchscreen/usbtouchscreen.c if (!usbtouch->irq) { usbtouch 1701 drivers/input/touchscreen/usbtouchscreen.c usbtouch->interface = intf; usbtouch 1702 drivers/input/touchscreen/usbtouchscreen.c usbtouch->input = input_dev; usbtouch 1705 drivers/input/touchscreen/usbtouchscreen.c strlcpy(usbtouch->name, udev->manufacturer, sizeof(usbtouch->name)); usbtouch 1709 drivers/input/touchscreen/usbtouchscreen.c strlcat(usbtouch->name, " ", sizeof(usbtouch->name)); usbtouch 1710 drivers/input/touchscreen/usbtouchscreen.c strlcat(usbtouch->name, udev->product, sizeof(usbtouch->name)); usbtouch 1713 drivers/input/touchscreen/usbtouchscreen.c if (!strlen(usbtouch->name)) usbtouch 1714 drivers/input/touchscreen/usbtouchscreen.c snprintf(usbtouch->name, sizeof(usbtouch->name), usbtouch 1719 drivers/input/touchscreen/usbtouchscreen.c usb_make_path(udev, usbtouch->phys, sizeof(usbtouch->phys)); usbtouch 1720 drivers/input/touchscreen/usbtouchscreen.c strlcat(usbtouch->phys, "/input0", sizeof(usbtouch->phys)); usbtouch 1722 drivers/input/touchscreen/usbtouchscreen.c input_dev->name = usbtouch->name; usbtouch 1723 drivers/input/touchscreen/usbtouchscreen.c input_dev->phys = usbtouch->phys; usbtouch 1727 drivers/input/touchscreen/usbtouchscreen.c input_set_drvdata(input_dev, usbtouch); usbtouch 1741 drivers/input/touchscreen/usbtouchscreen.c usb_fill_int_urb(usbtouch->irq, udev, usbtouch 1743 drivers/input/touchscreen/usbtouchscreen.c usbtouch->data, usbtouch->data_size, usbtouch 1744 drivers/input/touchscreen/usbtouchscreen.c usbtouch_irq, usbtouch, endpoint->bInterval); usbtouch 1746 drivers/input/touchscreen/usbtouchscreen.c usb_fill_bulk_urb(usbtouch->irq, udev, usbtouch 1748 drivers/input/touchscreen/usbtouchscreen.c usbtouch->data, usbtouch->data_size, usbtouch 1749 drivers/input/touchscreen/usbtouchscreen.c usbtouch_irq, usbtouch); usbtouch 1751 drivers/input/touchscreen/usbtouchscreen.c usbtouch->irq->dev = udev; usbtouch 1752 drivers/input/touchscreen/usbtouchscreen.c usbtouch->irq->transfer_dma = usbtouch->data_dma; usbtouch 1753 drivers/input/touchscreen/usbtouchscreen.c usbtouch->irq->transfer_flags |= URB_NO_TRANSFER_DMA_MAP; usbtouch 1757 drivers/input/touchscreen/usbtouchscreen.c err = type->alloc(usbtouch); usbtouch 1768 drivers/input/touchscreen/usbtouchscreen.c err = type->init(usbtouch); usbtouch 1777 drivers/input/touchscreen/usbtouchscreen.c err = input_register_device(usbtouch->input); usbtouch 1785 drivers/input/touchscreen/usbtouchscreen.c usb_set_intfdata(intf, usbtouch); usbtouch 1787 drivers/input/touchscreen/usbtouchscreen.c if (usbtouch->type->irq_always) { usbtouch 1790 drivers/input/touchscreen/usbtouchscreen.c err = usb_submit_urb(usbtouch->irq, GFP_KERNEL); usbtouch 1807 drivers/input/touchscreen/usbtouchscreen.c type->exit(usbtouch); usbtouch 1809 drivers/input/touchscreen/usbtouchscreen.c usb_free_urb(usbtouch->irq); usbtouch 1811 drivers/input/touchscreen/usbtouchscreen.c usbtouch_free_buffers(udev, usbtouch); usbtouch 1814 drivers/input/touchscreen/usbtouchscreen.c kfree(usbtouch); usbtouch 1820 drivers/input/touchscreen/usbtouchscreen.c struct usbtouch_usb *usbtouch = usb_get_intfdata(intf); usbtouch 1822 drivers/input/touchscreen/usbtouchscreen.c if (!usbtouch) usbtouch 1830 drivers/input/touchscreen/usbtouchscreen.c input_unregister_device(usbtouch->input); usbtouch 1831 drivers/input/touchscreen/usbtouchscreen.c usb_free_urb(usbtouch->irq); usbtouch 1832 drivers/input/touchscreen/usbtouchscreen.c if (usbtouch->type->exit) usbtouch 1833 drivers/input/touchscreen/usbtouchscreen.c usbtouch->type->exit(usbtouch); usbtouch 1834 drivers/input/touchscreen/usbtouchscreen.c usbtouch_free_buffers(interface_to_usbdev(intf), usbtouch); usbtouch 1835 drivers/input/touchscreen/usbtouchscreen.c kfree(usbtouch);