Lines Matching refs:gtco

105 struct gtco {  struct
200 static void parse_hid_report_descriptor(struct gtco *device, char * report, in parse_hid_report_descriptor()
557 struct gtco *device = input_get_drvdata(inputdev); in gtco_input_open()
571 struct gtco *device = input_get_drvdata(inputdev); in gtco_input_close()
587 struct gtco *device = input_get_drvdata(inputdev); in gtco_setup_caps()
629 struct gtco *device = urbinfo->context; in gtco_urb_callback()
836 struct gtco *gtco; in gtco_probe() local
846 gtco = kzalloc(sizeof(struct gtco), GFP_KERNEL); in gtco_probe()
848 if (!gtco || !input_dev) { in gtco_probe()
855 gtco->inputdevice = input_dev; in gtco_probe()
858 gtco->intf = usbinterface; in gtco_probe()
861 gtco->buffer = usb_alloc_coherent(udev, REPORT_MAX_SIZE, in gtco_probe()
862 GFP_KERNEL, &gtco->buf_dma); in gtco_probe()
863 if (!gtco->buffer) { in gtco_probe()
870 gtco->urbinfo = usb_alloc_urb(0, GFP_KERNEL); in gtco_probe()
871 if (!gtco->urbinfo) { in gtco_probe()
938 parse_hid_report_descriptor(gtco, report, result); in gtco_probe()
955 usb_make_path(udev, gtco->usbpath, sizeof(gtco->usbpath)); in gtco_probe()
956 strlcat(gtco->usbpath, "/input0", sizeof(gtco->usbpath)); in gtco_probe()
964 input_dev->phys = gtco->usbpath; in gtco_probe()
966 input_set_drvdata(input_dev, gtco); in gtco_probe()
978 usb_fill_int_urb(gtco->urbinfo, in gtco_probe()
982 gtco->buffer, in gtco_probe()
985 gtco, in gtco_probe()
988 gtco->urbinfo->transfer_dma = gtco->buf_dma; in gtco_probe()
989 gtco->urbinfo->transfer_flags |= URB_NO_TRANSFER_DMA_MAP; in gtco_probe()
992 usb_set_intfdata(usbinterface, gtco); in gtco_probe()
1002 usb_free_urb(gtco->urbinfo); in gtco_probe()
1005 gtco->buffer, gtco->buf_dma); in gtco_probe()
1008 kfree(gtco); in gtco_probe()
1020 struct gtco *gtco = usb_get_intfdata(interface); in gtco_disconnect() local
1024 if (gtco) { in gtco_disconnect()
1025 input_unregister_device(gtco->inputdevice); in gtco_disconnect()
1026 usb_kill_urb(gtco->urbinfo); in gtco_disconnect()
1027 usb_free_urb(gtco->urbinfo); in gtco_disconnect()
1029 gtco->buffer, gtco->buf_dma); in gtco_disconnect()
1030 kfree(gtco); in gtco_disconnect()