Lines Matching refs:new
112 uint8_t *new; member
287 uint8_t *new; in usb_kbd_service_key() local
291 new = data->old; in usb_kbd_service_key()
292 old = data->new; in usb_kbd_service_key()
294 new = data->new; in usb_kbd_service_key()
299 (memscan(new + 2, old[i], USB_KBD_BOOT_REPORT_SIZE - 2) == in usb_kbd_service_key()
300 new + USB_KBD_BOOT_REPORT_SIZE)) { in usb_kbd_service_key()
301 res |= usb_kbd_translate(data, old[i], data->new[0], up); in usb_kbd_service_key()
314 if (data->new[0] == 0x00) in usb_kbd_irq_worker()
317 else if ((data->new[0] == LEFT_CNTR) || (data->new[0] == RIGHT_CNTR)) in usb_kbd_irq_worker()
326 if ((data->new[2] > 3) && (data->old[2] == data->new[2])) in usb_kbd_irq_worker()
327 res |= usb_kbd_translate(data, data->new[2], data->new[0], 2); in usb_kbd_irq_worker()
332 memcpy(data->old, data->new, USB_KBD_BOOT_REPORT_SIZE); in usb_kbd_irq_worker()
357 if (usb_int_msg(dev, data->intpipe, &data->new[0],
367 1, 0, data->new, USB_KBD_BOOT_REPORT_SIZE);
368 if (memcmp(data->old, data->new, USB_KBD_BOOT_REPORT_SIZE)) {
377 USB_KBD_BOOT_REPORT_SIZE, data->new,
488 data->new = memalign(USB_DMA_MINALIGN,
519 USB_KBD_BOOT_REPORT_SIZE, data->new,
524 1, 0, data->new, USB_KBD_BOOT_REPORT_SIZE) < 0) {
526 if (usb_int_msg(dev, data->intpipe, data->new, data->intpktsize,
634 free(data->new);
681 free(data->new);