Lines Matching +full:0 +full:xb5

14  * | 0x02      | n           |           |
17 * data packet after set xy mode command, 0x80 0xb5 0x02 0x01
22 * 0 status 0 1 0 0 0 0 X X
23 * 1 color 0 0 0 0 H 0 S T
30 * no state reported 0x00
31 * battery low 0x01
32 * battery good 0x02
48 #define USB_REQ_GET_REPORT 0x01
49 #define USB_REQ_SET_REPORT 0x09
51 #define USB_VENDOR_ID_PEGASUSTECH 0x0e20
52 #define USB_DEVICE_ID_PEGASUS_NOTETAKER_EN100 0x0101
55 #define NOTETAKER_REPORT_ID 0x02
56 #define NOTETAKER_SET_CMD 0x80
57 #define NOTETAKER_SET_MODE 0xb5
59 #define NOTETAKER_LED_MOUSE 0x02
60 #define PEN_MODE_XY 0x01
62 #define SPECIAL_COMMAND 0x80
63 #define BUTTON_PRESSED 0xb5
64 #define COMMAND_VERSION 0xa9
67 #define BATTERY_NO_REPORT 0x40
68 #define BATTERY_LOW 0x41
69 #define BATTERY_GOOD 0x42
71 #define PEN_TIP BIT(0)
102 cmd_buf[0] = NOTETAKER_REPORT_ID; in pegasus_control_msg()
107 usb_sndctrlpipe(pegasus->usbdev, 0), in pegasus_control_msg()
110 0, 0, cmd_buf, sizeof_buf, in pegasus_control_msg()
116 error = result < 0 ? result : -EIO; in pegasus_control_msg()
122 return 0; in pegasus_control_msg()
138 switch (data[0]) { in pegasus_parse_packet()
157 if (x == 0 && y == 0) in pegasus_parse_packet()
182 case 0: in pegasus_irq()
239 return 0; in pegasus_open()
273 /* We control interface 0 */ in pegasus_probe()
283 endpoint = &intf->cur_altsetting->endpoint[0].desc; in pegasus_probe()
308 pegasus->irq = usb_alloc_urb(0, GFP_KERNEL); in pegasus_probe()
367 input_set_abs_params(input_dev, ABS_X, -1500, 1500, 8, 0); in pegasus_probe()
368 input_set_abs_params(input_dev, ABS_Y, 1600, 3000, 8, 0); in pegasus_probe()
374 return 0; in pegasus_probe()
413 return 0; in pegasus_suspend()
419 int retval = 0; in pegasus_resume()
422 if (pegasus->is_open && usb_submit_urb(pegasus->irq, GFP_NOIO) < 0) in pegasus_resume()
432 int retval = 0; in pegasus_reset_resume()
438 if (!retval && usb_submit_urb(pegasus->irq, GFP_NOIO) < 0) in pegasus_reset_resume()