mouse 246 arch/mips/include/asm/ip32/mace.h struct mace_ps2port mouse; mouse 137 drivers/hid/hid-logitech-dj.c struct hid_device *mouse; mouse 541 drivers/hid/hid-logitech-dj.c if (djrcv_dev->mouse && mouse 542 drivers/hid/hid-logitech-dj.c hid_compare_device_paths(hdev, djrcv_dev->mouse, sep)) { mouse 576 drivers/hid/hid-logitech-dj.c if (djrcv_dev->mouse == hdev) mouse 577 drivers/hid/hid-logitech-dj.c djrcv_dev->mouse = NULL; mouse 621 drivers/hid/hid-logitech-dj.c djrcv_dev->mouse = hdev; mouse 51 drivers/hid/usbhid/usbmouse.c struct usb_mouse *mouse = urb->context; mouse 52 drivers/hid/usbhid/usbmouse.c signed char *data = mouse->data; mouse 53 drivers/hid/usbhid/usbmouse.c struct input_dev *dev = mouse->dev; mouse 82 drivers/hid/usbhid/usbmouse.c dev_err(&mouse->usbdev->dev, mouse 84 drivers/hid/usbhid/usbmouse.c mouse->usbdev->bus->bus_name, mouse 85 drivers/hid/usbhid/usbmouse.c mouse->usbdev->devpath, status); mouse 90 drivers/hid/usbhid/usbmouse.c struct usb_mouse *mouse = input_get_drvdata(dev); mouse 92 drivers/hid/usbhid/usbmouse.c mouse->irq->dev = mouse->usbdev; mouse 93 drivers/hid/usbhid/usbmouse.c if (usb_submit_urb(mouse->irq, GFP_KERNEL)) mouse 101 drivers/hid/usbhid/usbmouse.c struct usb_mouse *mouse = input_get_drvdata(dev); mouse 103 drivers/hid/usbhid/usbmouse.c usb_kill_urb(mouse->irq); mouse 111 drivers/hid/usbhid/usbmouse.c struct usb_mouse *mouse; mouse 128 drivers/hid/usbhid/usbmouse.c mouse = kzalloc(sizeof(struct usb_mouse), GFP_KERNEL); mouse 130 drivers/hid/usbhid/usbmouse.c if (!mouse || !input_dev) mouse 133 drivers/hid/usbhid/usbmouse.c mouse->data = usb_alloc_coherent(dev, 8, GFP_ATOMIC, &mouse->data_dma); mouse 134 drivers/hid/usbhid/usbmouse.c if (!mouse->data) mouse 137 drivers/hid/usbhid/usbmouse.c mouse->irq = usb_alloc_urb(0, GFP_KERNEL); mouse 138 drivers/hid/usbhid/usbmouse.c if (!mouse->irq) mouse 141 drivers/hid/usbhid/usbmouse.c mouse->usbdev = dev; mouse 142 drivers/hid/usbhid/usbmouse.c mouse->dev = input_dev; mouse 145 drivers/hid/usbhid/usbmouse.c strlcpy(mouse->name, dev->manufacturer, sizeof(mouse->name)); mouse 149 drivers/hid/usbhid/usbmouse.c strlcat(mouse->name, " ", sizeof(mouse->name)); mouse 150 drivers/hid/usbhid/usbmouse.c strlcat(mouse->name, dev->product, sizeof(mouse->name)); mouse 153 drivers/hid/usbhid/usbmouse.c if (!strlen(mouse->name)) mouse 154 drivers/hid/usbhid/usbmouse.c snprintf(mouse->name, sizeof(mouse->name), mouse 159 drivers/hid/usbhid/usbmouse.c usb_make_path(dev, mouse->phys, sizeof(mouse->phys)); mouse 160 drivers/hid/usbhid/usbmouse.c strlcat(mouse->phys, "/input0", sizeof(mouse->phys)); mouse 162 drivers/hid/usbhid/usbmouse.c input_dev->name = mouse->name; mouse 163 drivers/hid/usbhid/usbmouse.c input_dev->phys = mouse->phys; mouse 175 drivers/hid/usbhid/usbmouse.c input_set_drvdata(input_dev, mouse); mouse 180 drivers/hid/usbhid/usbmouse.c usb_fill_int_urb(mouse->irq, dev, pipe, mouse->data, mouse 182 drivers/hid/usbhid/usbmouse.c usb_mouse_irq, mouse, endpoint->bInterval); mouse 183 drivers/hid/usbhid/usbmouse.c mouse->irq->transfer_dma = mouse->data_dma; mouse 184 drivers/hid/usbhid/usbmouse.c mouse->irq->transfer_flags |= URB_NO_TRANSFER_DMA_MAP; mouse 186 drivers/hid/usbhid/usbmouse.c error = input_register_device(mouse->dev); mouse 190 drivers/hid/usbhid/usbmouse.c usb_set_intfdata(intf, mouse); mouse 194 drivers/hid/usbhid/usbmouse.c usb_free_urb(mouse->irq); mouse 196 drivers/hid/usbhid/usbmouse.c usb_free_coherent(dev, 8, mouse->data, mouse->data_dma); mouse 199 drivers/hid/usbhid/usbmouse.c kfree(mouse); mouse 205 drivers/hid/usbhid/usbmouse.c struct usb_mouse *mouse = usb_get_intfdata (intf); mouse 208 drivers/hid/usbhid/usbmouse.c if (mouse) { mouse 209 drivers/hid/usbhid/usbmouse.c usb_kill_urb(mouse->irq); mouse 210 drivers/hid/usbhid/usbmouse.c input_unregister_device(mouse->dev); mouse 211 drivers/hid/usbhid/usbmouse.c usb_free_urb(mouse->irq); mouse 212 drivers/hid/usbhid/usbmouse.c usb_free_coherent(interface_to_usbdev(intf), 8, mouse->data, mouse->data_dma); mouse 213 drivers/hid/usbhid/usbmouse.c kfree(mouse); mouse 114 drivers/input/mouse/vsxxxaa.c static void vsxxxaa_drop_bytes(struct vsxxxaa *mouse, int num) mouse 116 drivers/input/mouse/vsxxxaa.c if (num >= mouse->count) { mouse 117 drivers/input/mouse/vsxxxaa.c mouse->count = 0; mouse 119 drivers/input/mouse/vsxxxaa.c memmove(mouse->buf, mouse->buf + num, BUFLEN - num); mouse 120 drivers/input/mouse/vsxxxaa.c mouse->count -= num; mouse 124 drivers/input/mouse/vsxxxaa.c static void vsxxxaa_queue_byte(struct vsxxxaa *mouse, unsigned char byte) mouse 126 drivers/input/mouse/vsxxxaa.c if (mouse->count == BUFLEN) { mouse 128 drivers/input/mouse/vsxxxaa.c mouse->name, mouse->phys); mouse 129 drivers/input/mouse/vsxxxaa.c vsxxxaa_drop_bytes(mouse, 1); mouse 134 drivers/input/mouse/vsxxxaa.c mouse->buf[mouse->count++] = byte; mouse 137 drivers/input/mouse/vsxxxaa.c static void vsxxxaa_detection_done(struct vsxxxaa *mouse) mouse 139 drivers/input/mouse/vsxxxaa.c switch (mouse->type) { mouse 141 drivers/input/mouse/vsxxxaa.c strlcpy(mouse->name, "DEC VSXXX-AA/-GA mouse", mouse 142 drivers/input/mouse/vsxxxaa.c sizeof(mouse->name)); mouse 146 drivers/input/mouse/vsxxxaa.c strlcpy(mouse->name, "DEC VSXXX-AB digitizer", mouse 147 drivers/input/mouse/vsxxxaa.c sizeof(mouse->name)); mouse 151 drivers/input/mouse/vsxxxaa.c snprintf(mouse->name, sizeof(mouse->name), mouse 153 drivers/input/mouse/vsxxxaa.c mouse->type); mouse 159 drivers/input/mouse/vsxxxaa.c mouse->name, mouse->version, mouse->country, mouse->phys); mouse 165 drivers/input/mouse/vsxxxaa.c static int vsxxxaa_check_packet(struct vsxxxaa *mouse, int packet_len) mouse 170 drivers/input/mouse/vsxxxaa.c if (!IS_HDR_BYTE(mouse->buf[0])) { mouse 171 drivers/input/mouse/vsxxxaa.c DBG("vsck: len=%d, 1st=0x%02x\n", packet_len, mouse->buf[0]); mouse 177 drivers/input/mouse/vsxxxaa.c if (IS_HDR_BYTE(mouse->buf[i])) { mouse 182 drivers/input/mouse/vsxxxaa.c packet_len, i, mouse->buf[i]); mouse 190 drivers/input/mouse/vsxxxaa.c static inline int vsxxxaa_smells_like_packet(struct vsxxxaa *mouse, mouse 193 drivers/input/mouse/vsxxxaa.c return mouse->count >= len && MATCH_PACKET_TYPE(mouse->buf[0], type); mouse 196 drivers/input/mouse/vsxxxaa.c static void vsxxxaa_handle_REL_packet(struct vsxxxaa *mouse) mouse 198 drivers/input/mouse/vsxxxaa.c struct input_dev *dev = mouse->dev; mouse 199 drivers/input/mouse/vsxxxaa.c unsigned char *buf = mouse->buf; mouse 234 drivers/input/mouse/vsxxxaa.c vsxxxaa_drop_bytes(mouse, 3); mouse 237 drivers/input/mouse/vsxxxaa.c mouse->name, mouse->phys, dx, dy, mouse 252 drivers/input/mouse/vsxxxaa.c static void vsxxxaa_handle_ABS_packet(struct vsxxxaa *mouse) mouse 254 drivers/input/mouse/vsxxxaa.c struct input_dev *dev = mouse->dev; mouse 255 drivers/input/mouse/vsxxxaa.c unsigned char *buf = mouse->buf; mouse 285 drivers/input/mouse/vsxxxaa.c vsxxxaa_drop_bytes(mouse, 5); mouse 288 drivers/input/mouse/vsxxxaa.c mouse->name, mouse->phys, x, y, mouse 304 drivers/input/mouse/vsxxxaa.c static void vsxxxaa_handle_POR_packet(struct vsxxxaa *mouse) mouse 306 drivers/input/mouse/vsxxxaa.c struct input_dev *dev = mouse->dev; mouse 307 drivers/input/mouse/vsxxxaa.c unsigned char *buf = mouse->buf; mouse 329 drivers/input/mouse/vsxxxaa.c mouse->version = buf[0] & 0x0f; mouse 330 drivers/input/mouse/vsxxxaa.c mouse->country = (buf[1] >> 4) & 0x07; mouse 331 drivers/input/mouse/vsxxxaa.c mouse->type = buf[1] & 0x0f; mouse 343 drivers/input/mouse/vsxxxaa.c vsxxxaa_drop_bytes(mouse, 4); mouse 344 drivers/input/mouse/vsxxxaa.c vsxxxaa_detection_done(mouse); mouse 356 drivers/input/mouse/vsxxxaa.c mouse->name, mouse->phys, error); mouse 367 drivers/input/mouse/vsxxxaa.c mouse->name, mouse->phys); mouse 368 drivers/input/mouse/vsxxxaa.c serio_write(mouse->serio, 'S'); /* Standard format */ mouse 370 drivers/input/mouse/vsxxxaa.c serio_write(mouse->serio, 'R'); /* Incremental */ mouse 372 drivers/input/mouse/vsxxxaa.c serio_write(mouse->serio, 'L'); /* 72 samples/sec */ mouse 375 drivers/input/mouse/vsxxxaa.c static void vsxxxaa_parse_buffer(struct vsxxxaa *mouse) mouse 377 drivers/input/mouse/vsxxxaa.c unsigned char *buf = mouse->buf; mouse 391 drivers/input/mouse/vsxxxaa.c while (mouse->count > 0 && !IS_HDR_BYTE(buf[0])) { mouse 394 drivers/input/mouse/vsxxxaa.c mouse->name, mouse->phys); mouse 395 drivers/input/mouse/vsxxxaa.c vsxxxaa_drop_bytes(mouse, 1); mouse 402 drivers/input/mouse/vsxxxaa.c if (vsxxxaa_smells_like_packet(mouse, VSXXXAA_PACKET_REL, 3)) { mouse 404 drivers/input/mouse/vsxxxaa.c stray_bytes = vsxxxaa_check_packet(mouse, 3); mouse 406 drivers/input/mouse/vsxxxaa.c vsxxxaa_handle_REL_packet(mouse); mouse 408 drivers/input/mouse/vsxxxaa.c } else if (vsxxxaa_smells_like_packet(mouse, mouse 411 drivers/input/mouse/vsxxxaa.c stray_bytes = vsxxxaa_check_packet(mouse, 5); mouse 413 drivers/input/mouse/vsxxxaa.c vsxxxaa_handle_ABS_packet(mouse); mouse 415 drivers/input/mouse/vsxxxaa.c } else if (vsxxxaa_smells_like_packet(mouse, mouse 418 drivers/input/mouse/vsxxxaa.c stray_bytes = vsxxxaa_check_packet(mouse, 4); mouse 420 drivers/input/mouse/vsxxxaa.c vsxxxaa_handle_POR_packet(mouse); mouse 429 drivers/input/mouse/vsxxxaa.c vsxxxaa_drop_bytes(mouse, stray_bytes); mouse 438 drivers/input/mouse/vsxxxaa.c struct vsxxxaa *mouse = serio_get_drvdata(serio); mouse 440 drivers/input/mouse/vsxxxaa.c vsxxxaa_queue_byte(mouse, data); mouse 441 drivers/input/mouse/vsxxxaa.c vsxxxaa_parse_buffer(mouse); mouse 448 drivers/input/mouse/vsxxxaa.c struct vsxxxaa *mouse = serio_get_drvdata(serio); mouse 452 drivers/input/mouse/vsxxxaa.c input_unregister_device(mouse->dev); mouse 453 drivers/input/mouse/vsxxxaa.c kfree(mouse); mouse 458 drivers/input/mouse/vsxxxaa.c struct vsxxxaa *mouse; mouse 462 drivers/input/mouse/vsxxxaa.c mouse = kzalloc(sizeof(struct vsxxxaa), GFP_KERNEL); mouse 464 drivers/input/mouse/vsxxxaa.c if (!mouse || !input_dev) mouse 467 drivers/input/mouse/vsxxxaa.c mouse->dev = input_dev; mouse 468 drivers/input/mouse/vsxxxaa.c mouse->serio = serio; mouse 469 drivers/input/mouse/vsxxxaa.c strlcat(mouse->name, "DEC VSXXX-AA/-GA mouse or VSXXX-AB digitizer", mouse 470 drivers/input/mouse/vsxxxaa.c sizeof(mouse->name)); mouse 471 drivers/input/mouse/vsxxxaa.c snprintf(mouse->phys, sizeof(mouse->phys), "%s/input0", serio->phys); mouse 473 drivers/input/mouse/vsxxxaa.c input_dev->name = mouse->name; mouse 474 drivers/input/mouse/vsxxxaa.c input_dev->phys = mouse->phys; mouse 490 drivers/input/mouse/vsxxxaa.c serio_set_drvdata(serio, mouse); mouse 511 drivers/input/mouse/vsxxxaa.c kfree(mouse); mouse 183 drivers/input/serio/maceps2.c port_data[1].port = &mace->perif.ps2.mouse; mouse 132 drivers/media/rc/ati_remote.c static bool mouse = true; mouse 133 drivers/media/rc/ati_remote.c module_param(mouse, bool, 0444); mouse 134 drivers/media/rc/ati_remote.c MODULE_PARM_DESC(mouse, "Enable mouse device, default = yes"); mouse 899 drivers/media/rc/ati_remote.c if (mouse) { mouse 127 drivers/misc/ibmasm/remote.c input->data.mouse.x, input->data.mouse.y, mouse 148 drivers/misc/ibmasm/remote.c input_report_abs(dev, ABS_X, input->data.mouse.x); mouse 149 drivers/misc/ibmasm/remote.c input_report_abs(dev, ABS_Y, input->data.mouse.y); mouse 65 drivers/misc/ibmasm/remote.h struct mouse_input mouse; mouse 87 drivers/staging/unisys/visorinput/visorinput.c } mouse; mouse 447 drivers/staging/unisys/visorinput/visorinput.c xres = data.mouse.x_res; mouse 448 drivers/staging/unisys/visorinput/visorinput.c yres = data.mouse.y_res;