Lines Matching defs:usbhid_device
62 struct usbhid_device { struct
63 struct hid_device *hid; /* pointer to corresponding HID dev */
65 struct usb_interface *intf; /* USB interface */
66 int ifnum; /* USB interface number */
68 unsigned int bufsize; /* URB buffer size */
70 struct urb *urbin; /* Input URB */
71 char *inbuf; /* Input buffer */
72 dma_addr_t inbuf_dma; /* Input buffer dma */
74 struct urb *urbctrl; /* Control URB */
75 struct usb_ctrlrequest *cr; /* Control request struct */
76 struct hid_control_fifo ctrl[HID_CONTROL_FIFO_SIZE]; /* Control fifo */
77 unsigned char ctrlhead, ctrltail; /* Control fifo head & tail */
78 char *ctrlbuf; /* Control buffer */
79 dma_addr_t ctrlbuf_dma; /* Control buffer dma */
80 unsigned long last_ctrl; /* record of last output for timeouts */
82 struct urb *urbout; /* Output URB */
83 struct hid_output_fifo out[HID_CONTROL_FIFO_SIZE]; /* Output pipe fifo */
84 unsigned char outhead, outtail; /* Output pipe fifo head & tail */
85 char *outbuf; /* Output buffer */
86 dma_addr_t outbuf_dma; /* Output buffer dma */
87 unsigned long last_out; /* record of last output for timeouts */
89 spinlock_t lock; /* fifo spinlock */
90 … long iofl; /* I/O flags (CTRL_RUNNING, OUT_RUNNING) */
91 struct timer_list io_retry; /* Retry timer */
92 unsigned long stop_retry; /* Time to give up, in jiffies */
93 unsigned int retry_delay; /* Delay length in ms */
94 struct work_struct reset_work; /* Task context for resets */
95 wait_queue_head_t wait; /* For sleeping */