Lines Matching full:report
52 /* Find a given report */
56 struct hid_report *report = NULL; in picolcd_report() local
58 list_for_each_entry(report, feature_report_list, list) { in picolcd_report()
59 if (report->id == id) in picolcd_report()
60 return report; in picolcd_report()
62 hid_warn(hdev, "No report with id 0x%x found\n", id); in picolcd_report()
66 /* Submit a report and wait for a reply from device - if device fades away
73 struct hid_report *report = picolcd_out_report(report_id, hdev); in picolcd_send_and_wait() local
77 if (!report || !data) in picolcd_send_and_wait()
86 work->out_report = report; in picolcd_send_and_wait()
92 for (i = k = 0; i < report->maxfield; i++) in picolcd_send_and_wait()
93 for (j = 0; j < report->field[i]->report_count; j++) { in picolcd_send_and_wait()
94 hid_set_field(report->field[i], j, k < size ? raw_data[k] : 0); in picolcd_send_and_wait()
102 hid_hw_request(data->hdev, report, HID_REQ_SET_REPORT); in picolcd_send_and_wait()
117 struct hid_report *report, u8 *raw_data, int size) in picolcd_raw_keypad() argument
219 struct hid_report *report = picolcd_out_report(REPORT_RESET, hdev); in picolcd_reset() local
223 if (!data || !report || report->maxfield != 1) in picolcd_reset()
231 hid_set_field(report->field[0], 0, 1); in picolcd_reset()
236 hid_hw_request(hdev, report, HID_REQ_SET_REPORT); in picolcd_reset()
268 struct hid_report *report = NULL; in picolcd_operation_mode_store() local
274 report = picolcd_out_report(REPORT_EXIT_FLASHER, data->hdev); in picolcd_operation_mode_store()
277 report = picolcd_out_report(REPORT_EXIT_KEYBOARD, data->hdev); in picolcd_operation_mode_store()
282 if (!report || report->maxfield != 1) in picolcd_operation_mode_store()
286 hid_set_field(report->field[0], 0, timeout & 0xff); in picolcd_operation_mode_store()
287 hid_set_field(report->field[0], 1, (timeout >> 8) & 0xff); in picolcd_operation_mode_store()
288 hid_hw_request(data->hdev, report, HID_REQ_SET_REPORT); in picolcd_operation_mode_store()
325 * Handle raw report as sent by device
328 struct hid_report *report, u8 *raw_data, int size) in picolcd_raw_event() argument
339 size, report->id); in picolcd_raw_event()
343 if (report->id == REPORT_KEY_STATE) { in picolcd_raw_event()
345 ret = picolcd_raw_keypad(data, report, raw_data+1, size-1); in picolcd_raw_event()
346 } else if (report->id == REPORT_IR_DATA) { in picolcd_raw_event()
347 ret = picolcd_raw_cir(data, report, raw_data+1, size-1); in picolcd_raw_event()
352 * report we got is one of the expected ones or not. in picolcd_raw_event()
357 data->pending->in_report = report; in picolcd_raw_event()
363 picolcd_debug_raw_event(data, hdev, report, raw_data, size); in picolcd_raw_event()
409 struct hid_report *report) in picolcd_init_keys() argument
415 if (!report) in picolcd_init_keys()
417 if (report->maxfield != 1 || report->field[0]->report_count != 2 || in picolcd_init_keys()
418 report->field[0]->report_size != 8) { in picolcd_init_keys()
419 hid_err(hdev, "unsupported KEY_STATE report\n"); in picolcd_init_keys()
551 hid_err(hdev, "device report parse failed\n"); in picolcd_probe()