Lines Matching defs:report

110  * bluetooth. The message lengths are defined by the hid vendor specific report
111 * descriptor for the HIDPP_SHORT report type (total message lenth 7 bytes) and
112 * the HIDPP_LONG report type (total message length 20 bytes)
114 * The RAP protocol uses both report types, whereas the FAP only uses HIDPP_LONG
418 /* Send as long report if short reports are not supported. */
477 struct hidpp_report *report)
480 (report->fap.feature_index == hidpp->wireless_feature_index)) ||
481 ((report->report_id == REPORT_ID_HIDPP_SHORT) &&
482 (report->rap.sub_id == 0x41));
801 struct hidpp_report *report = (struct hidpp_report *)data;
805 if (report->report_id != REPORT_ID_HIDPP_SHORT)
808 switch (report->rap.sub_id) {
811 level = hidpp10_battery_status_map_level(report->rawbytes[1]);
812 status = hidpp10_battery_status_map_status(report->rawbytes[2]);
815 capacity = report->rap.params[0];
817 status = hidpp10_battery_mileage_map_status(report->rawbytes[3]);
1189 * The spec says this should be < 31 but some devices report 30
1344 struct hidpp_report *report = (struct hidpp_report *)data;
1348 if (report->fap.feature_index != hidpp->battery.feature_index ||
1349 report->fap.funcindex_clientid != EVENT_BATTERY_LEVEL_STATUS_BROADCAST)
1352 status = hidpp20_batterylevel_map_status_capacity(report->fap.params,
1528 struct hidpp_report *report = (struct hidpp_report *)data;
1531 if (report->fap.feature_index != hidpp->battery.voltage_feature_index ||
1532 report->fap.funcindex_clientid != EVENT_BATTERY_VOLTAGE_STATUS_BROADCAST)
1535 status = hidpp20_battery_map_status_voltage(report->fap.params, &voltage,
1737 struct hidpp_report *report = (struct hidpp_report *)data;
1738 u8 *params = (u8 *)report->fap.params;
1742 if (report->fap.feature_index != hidpp->battery.feature_index ||
1743 report->fap.funcindex_clientid != EVENT_UNIFIED_BATTERY_STATUS_EVENT)
1986 struct hidpp_report *report = (struct hidpp_report *)data;
1989 if (report->fap.feature_index != hidpp->battery.adc_measurement_feature_index ||
1990 report->fap.funcindex_clientid != EVENT_ADC_MEASUREMENT_STATUS_BROADCAST)
1993 status = hidpp20_map_adc_measurement_1f20(report->fap.params, &voltage);
2149 struct hidpp_report *report = (struct hidpp_report *)data;
2153 function = report->fap.funcindex_clientid;
2156 if (report->fap.feature_index != hidpp->battery.solar_feature_index ||
2162 capacity = report->fap.params[0];
2166 lux = (report->fap.params[1] << 8) | report->fap.params[2];
3061 struct hidpp_report *report = (struct hidpp_report *)data;
3070 hid_err(hdev, "Received HID report of bad size (%d)",
3088 if ((report->fap.feature_index != wd->mt_feature_index) ||
3089 (report->fap.funcindex_clientid != EVENT_TOUCHPAD_RAW_XY))
3197 /* how buttons are mapped in the report */
3235 hid_err(hdev, "error in report\n");
3242 * m560 mouse report for middle, forward and backward button
3270 hid_err(hdev, "error in report\n");
3277 * Logitech M560 mouse report
3598 * Buttons are either delivered through the regular mouse report *or*
3599 * through the extra buttons report. At least for button 6 how it is
3607 /* Some mice report events on button 9+, use BTN_MISC */
3631 /* HID++1.0 kbds which only report 0x10xx consumer usages through sub-id 0x03 */
3634 /* Find the consumer-page input report desc and change Maximums to 0x107f */
3683 * Build a normal consumer report (3) out of the data, this detour
3684 * is necessary to get some keyboards to report their 0x10xx usages.
3868 struct hidpp_report *report = (struct hidpp_report *)data;
3880 if (hidpp_match_answer(question, report) ||
3881 hidpp_match_error(question, report)) {
3882 *answer = *report;
3895 if (unlikely(hidpp_report_is_connect_event(hidpp, report))) {
3897 !(report->rap.params[0] & (1 << 6)));
3958 static int hidpp_raw_event(struct hid_device *hdev, struct hid_report *report,
3971 hid_err(hdev, "received hid++ report of bad size (%d)",
3979 hid_err(hdev, "received hid++ report of bad size (%d)",
3987 hid_err(hdev, "received hid++ report of bad size (%d)",
3995 /* If no report is available for further processing, skip calling
4333 struct hid_report *report;
4336 report = re->report_id_hash[id];
4337 if (!report)
4340 return report->field[0]->report_count + 1;
4381 hid_warn(hdev, "not enough values in hidpp report %d\n", id);
4389 struct hid_report *report;
4392 report = list_first_entry_or_null(report_list, struct hid_report, list);
4393 return report && report->application == application;