Lines Matching refs:input_dev

194 	input_report_abs(cdev->input_dev, axis,
202 struct input_dev *input_dev = cdev->input_dev;
229 input_sync(input_dev);
235 struct input_dev *input_dev = cdev->input_dev;
241 input_report_abs(input_dev, ABS_X, i);
242 input_sync(input_dev);
247 input_report_abs(input_dev, ABS_HAT0X, i);
249 input_report_abs(input_dev, ABS_HAT0Y, i);
251 input_report_abs(input_dev, ABS_HAT1X, i);
253 input_report_abs(input_dev, ABS_HAT1Y, i);
255 input_report_abs(input_dev, ABS_HAT2X, i);
257 input_report_abs(input_dev, ABS_HAT2Y, i);
259 input_report_abs(input_dev, ABS_HAT3X, i);
261 input_report_abs(input_dev, ABS_HAT3Y, i);
262 input_sync(input_dev);
267 input_report_abs(input_dev, ABS_HAT0X, decode_erp(buf[21], buf[20]));
268 input_report_abs(input_dev, ABS_HAT0Y, decode_erp(buf[15], buf[14]));
269 input_report_abs(input_dev, ABS_HAT1X, decode_erp(buf[9], buf[8]));
270 input_report_abs(input_dev, ABS_HAT1Y, decode_erp(buf[3], buf[2]));
273 input_report_abs(input_dev, ABS_HAT2X, decode_erp(buf[19], buf[18]));
274 input_report_abs(input_dev, ABS_HAT2Y, decode_erp(buf[13], buf[12]));
275 input_report_abs(input_dev, ABS_HAT3X, decode_erp(buf[7], buf[6]));
276 input_report_abs(input_dev, ABS_HAT3Y, decode_erp(buf[1], buf[0]));
279 input_report_abs(input_dev, ABS_RX, decode_erp(buf[17], buf[16]));
281 input_report_abs(input_dev, ABS_RY, decode_erp(buf[11], buf[10]));
283 input_report_abs(input_dev, ABS_RZ, decode_erp(buf[5], buf[4]));
285 input_sync(input_dev);
293 struct input_dev *input_dev = cdev->input_dev;
294 unsigned short *keycode = input_dev->keycode;
300 if (input_dev->id.product == USB_PID_RIGKONTROL2)
304 for (i = 0; i < input_dev->keycodemax && i < len * 8; i++)
305 input_report_key(input_dev, keycode[i],
311 input_report_abs(cdev->input_dev, ABS_MISC, 255 - buf[4]);
315 input_report_abs(cdev->input_dev, ABS_X, buf[5] & 0xf);
316 input_report_abs(cdev->input_dev, ABS_Y, buf[5] >> 4);
317 input_report_abs(cdev->input_dev, ABS_Z, buf[6] & 0xf);
318 input_report_abs(cdev->input_dev, ABS_MISC, buf[6] >> 4);
322 input_sync(input_dev);
340 input_report_key(cdev->input_dev, KONTROLS4_BUTTON(i),
346 input_report_abs(cdev->input_dev, KONTROLS4_ABS(36), buf[9] | ((buf[8] & 0x3) << 8));
348 input_report_abs(cdev->input_dev, KONTROLS4_ABS(37), buf[13] | ((buf[12] & 0x3) << 8));
351 input_report_abs(cdev->input_dev, KONTROLS4_ABS(38), buf[3] & 0xf);
352 input_report_abs(cdev->input_dev, KONTROLS4_ABS(39), buf[4] >> 4);
353 input_report_abs(cdev->input_dev, KONTROLS4_ABS(40), buf[4] & 0xf);
354 input_report_abs(cdev->input_dev, KONTROLS4_ABS(41), buf[5] >> 4);
355 input_report_abs(cdev->input_dev, KONTROLS4_ABS(42), buf[5] & 0xf);
356 input_report_abs(cdev->input_dev, KONTROLS4_ABS(43), buf[6] >> 4);
357 input_report_abs(cdev->input_dev, KONTROLS4_ABS(44), buf[6] & 0xf);
358 input_report_abs(cdev->input_dev, KONTROLS4_ABS(45), buf[7] >> 4);
359 input_report_abs(cdev->input_dev, KONTROLS4_ABS(46), buf[7] & 0xf);
468 input_sync(cdev->input_dev);
482 input_report_abs(cdev->input_dev, MASCHINE_PAD(pad_id),
487 input_sync(cdev->input_dev);
532 static int snd_usb_caiaq_input_open(struct input_dev *idev)
551 static void snd_usb_caiaq_input_close(struct input_dev *idev)
571 if (!cdev->input_dev || len < 1)
590 struct input_dev *input;
818 cdev->input_dev = input;
828 cdev->input_dev = NULL;
834 if (!cdev || !cdev->input_dev)
841 input_unregister_device(cdev->input_dev);
842 cdev->input_dev = NULL;