Lines Matching defs:input_dev

209 	input_report_abs(cdev->input_dev, axis,
217 struct input_dev *input_dev = cdev->input_dev;
250 input_sync(input_dev);
256 struct input_dev *input_dev = cdev->input_dev;
264 input_report_abs(input_dev, ABS_X, i);
265 input_sync(input_dev);
272 input_report_abs(input_dev, ABS_HAT0X, i);
274 input_report_abs(input_dev, ABS_HAT0Y, i);
276 input_report_abs(input_dev, ABS_HAT1X, i);
278 input_report_abs(input_dev, ABS_HAT1Y, i);
280 input_report_abs(input_dev, ABS_HAT2X, i);
282 input_report_abs(input_dev, ABS_HAT2Y, i);
284 input_report_abs(input_dev, ABS_HAT3X, i);
286 input_report_abs(input_dev, ABS_HAT3Y, i);
287 input_sync(input_dev);
294 input_report_abs(input_dev, ABS_HAT0X, decode_erp(buf[21], buf[20]));
295 input_report_abs(input_dev, ABS_HAT0Y, decode_erp(buf[15], buf[14]));
296 input_report_abs(input_dev, ABS_HAT1X, decode_erp(buf[9], buf[8]));
297 input_report_abs(input_dev, ABS_HAT1Y, decode_erp(buf[3], buf[2]));
300 input_report_abs(input_dev, ABS_HAT2X, decode_erp(buf[19], buf[18]));
301 input_report_abs(input_dev, ABS_HAT2Y, decode_erp(buf[13], buf[12]));
302 input_report_abs(input_dev, ABS_HAT3X, decode_erp(buf[7], buf[6]));
303 input_report_abs(input_dev, ABS_HAT3Y, decode_erp(buf[1], buf[0]));
306 input_report_abs(input_dev, ABS_RX, decode_erp(buf[17], buf[16]));
308 input_report_abs(input_dev, ABS_RY, decode_erp(buf[11], buf[10]));
310 input_report_abs(input_dev, ABS_RZ, decode_erp(buf[5], buf[4]));
312 input_sync(input_dev);
320 struct input_dev *input_dev = cdev->input_dev;
321 unsigned short *keycode = input_dev->keycode;
327 if (input_dev->id.product == USB_PID_RIGKONTROL2)
331 for (i = 0; i < input_dev->keycodemax && i < len * 8; i++)
332 input_report_key(input_dev, keycode[i],
340 input_report_abs(cdev->input_dev, ABS_MISC, 255 - buf[4]);
346 input_report_abs(cdev->input_dev, ABS_X, buf[5] & 0xf);
347 input_report_abs(cdev->input_dev, ABS_Y, buf[5] >> 4);
348 input_report_abs(cdev->input_dev, ABS_Z, buf[6] & 0xf);
349 input_report_abs(cdev->input_dev, ABS_MISC, buf[6] >> 4);
353 input_sync(input_dev);
371 input_report_key(cdev->input_dev, KONTROLS4_BUTTON(i),
377 input_report_abs(cdev->input_dev, KONTROLS4_ABS(36), buf[9] | ((buf[8] & 0x3) << 8));
379 input_report_abs(cdev->input_dev, KONTROLS4_ABS(37), buf[13] | ((buf[12] & 0x3) << 8));
382 input_report_abs(cdev->input_dev, KONTROLS4_ABS(38), buf[3] & 0xf);
383 input_report_abs(cdev->input_dev, KONTROLS4_ABS(39), buf[4] >> 4);
384 input_report_abs(cdev->input_dev, KONTROLS4_ABS(40), buf[4] & 0xf);
385 input_report_abs(cdev->input_dev, KONTROLS4_ABS(41), buf[5] >> 4);
386 input_report_abs(cdev->input_dev, KONTROLS4_ABS(42), buf[5] & 0xf);
387 input_report_abs(cdev->input_dev, KONTROLS4_ABS(43), buf[6] >> 4);
388 input_report_abs(cdev->input_dev, KONTROLS4_ABS(44), buf[6] & 0xf);
389 input_report_abs(cdev->input_dev, KONTROLS4_ABS(45), buf[7] >> 4);
390 input_report_abs(cdev->input_dev, KONTROLS4_ABS(46), buf[7] & 0xf);
499 input_sync(cdev->input_dev);
513 input_report_abs(cdev->input_dev, MASCHINE_PAD(pad_id),
518 input_sync(cdev->input_dev);
563 static int snd_usb_caiaq_input_open(struct input_dev *idev)
582 static void snd_usb_caiaq_input_close(struct input_dev *idev)
602 if (!cdev->input_dev || len < 1)
621 struct input_dev *input;
857 cdev->input_dev = input;
869 cdev->input_dev = NULL;
875 if (!cdev || !cdev->input_dev)
879 input_unregister_device(cdev->input_dev);
884 if (!cdev || !cdev->input_dev)
889 cdev->input_dev = NULL;