• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/hid/usbhid/

Lines Matching defs:hid

25 #define debug(format, arg...) pr_debug("hid-pidff: " format "\n" , ## arg)
30 #include <linux/hid.h>
156 struct hid_device *hid;
264 usbhid_submit_report(pidff->hid, pidff->reports[PID_SET_ENVELOPE],
291 usbhid_submit_report(pidff->hid, pidff->reports[PID_SET_CONSTANT],
326 usbhid_submit_report(pidff->hid, pidff->reports[PID_SET_EFFECT],
358 usbhid_submit_report(pidff->hid, pidff->reports[PID_SET_PERIODIC],
400 usbhid_wait_io(pidff->hid);
401 usbhid_submit_report(pidff->hid, pidff->reports[PID_SET_CONDITION],
442 usbhid_submit_report(pidff->hid, pidff->reports[PID_SET_RAMP],
467 usbhid_submit_report(pidff->hid, pidff->reports[PID_CREATE_NEW_EFFECT],
473 usbhid_wait_io(pidff->hid);
477 usbhid_submit_report(pidff->hid, pidff->reports[PID_BLOCK_LOAD],
479 usbhid_wait_io(pidff->hid);
495 printk(KERN_ERR "hid-pidff: pid_block_load failed 60 times\n");
515 usbhid_wait_io(pidff->hid);
516 usbhid_submit_report(pidff->hid, pidff->reports[PID_EFFECT_OPERATION],
538 usbhid_submit_report(pidff->hid, pidff->reports[PID_BLOCK_FREE],
606 "hid-pidff: invalid waveform\n");
697 printk(KERN_ERR "hid-pidff: invalid type\n");
718 usbhid_submit_report(pidff->hid, pidff->reports[PID_DEVICE_GAIN],
743 usbhid_submit_report(pidff->hid, pidff->reports[PID_SET_EFFECT],
775 if (report->field[i]->usage[j].hid ==
814 static void pidff_find_reports(struct hid_device *hid, int report_type,
821 &hid->report_enum[report_type].report_list, list) {
841 hid->collection[i - 1].type != HID_COLLECTION_LOGICAL)
843 ret = pidff_check_usage(hid->collection[i - 1].usage);
884 printk(KERN_ERR "hid-pidff: logical_minimum "
905 if (fld->usage[j].hid == (HID_UP_PID | usagetable[i])) {
948 printk(KERN_ERR "hid-pidff: effect lists not found\n");
953 printk(KERN_ERR "hid-pidff: direction field not found\n");
958 printk(KERN_ERR "hid-pidff: device control field not found\n");
964 "hid-pidff: block load status field not found\n");
970 "hid-pidff: effect operation field not found\n");
982 printk(KERN_ERR "hid-pidff: no effect types found\n");
1015 if (pidff->set_effect_type->usage[pidff_type].hid !=
1016 pidff->create_new_effect_type->usage[pidff_type].hid) {
1017 printk(KERN_ERR "hid-pidff: "
1074 "hid-pidff: unknown set_effect report layout\n");
1081 "hid-pidff: unknown pid_block_load report layout\n");
1087 "hid-pidff: unknown effect_operation report layout\n");
1093 "hid-pidff: unknown pid_block_free report layout\n");
1105 printk(KERN_WARNING "hid-pidff: "
1108 printk(KERN_WARNING "hid-pidff: "
1112 printk(KERN_WARNING "hid-pidff: "
1119 "hid-pidff: unknown constant effect layout\n");
1125 printk(KERN_WARNING "hid-pidff: unknown ramp effect layout\n");
1135 "hid-pidff: unknown condition effect layout\n");
1145 "hid-pidff: unknown periodic effect layout\n");
1162 struct hid_device *hid = pidff->hid;
1167 usbhid_submit_report(hid, pidff->reports[PID_DEVICE_CONTROL], USB_DIR_OUT);
1168 usbhid_wait_io(hid);
1169 usbhid_submit_report(hid, pidff->reports[PID_DEVICE_CONTROL], USB_DIR_OUT);
1170 usbhid_wait_io(hid);
1174 usbhid_submit_report(hid, pidff->reports[PID_DEVICE_CONTROL], USB_DIR_OUT);
1175 usbhid_wait_io(hid);
1178 usbhid_submit_report(hid, pidff->reports[PID_POOL], USB_DIR_IN);
1179 usbhid_wait_io(hid);
1185 printk(KERN_WARNING "hid-pidff: device reports "
1191 usbhid_submit_report(hid, pidff->reports[PID_POOL],
1193 usbhid_wait_io(hid);
1216 printk(KERN_ERR "hid-pidff: upload request failed\n");
1225 printk(KERN_NOTICE "hid-pidff: "
1239 int hid_pidff_init(struct hid_device *hid)
1242 struct hid_input *hidinput = list_entry(hid->inputs.next,
1251 if (list_empty(&hid->report_enum[HID_OUTPUT_REPORT].report_list)) {
1260 pidff->hid = hid;
1262 pidff_find_reports(hid, HID_OUTPUT_REPORT, pidff);
1263 pidff_find_reports(hid, HID_FEATURE_REPORT, pidff);
1279 usbhid_submit_report(pidff->hid, pidff->reports[PID_DEVICE_GAIN],
1306 printk(KERN_NOTICE "hid-pidff: "