Lines Matching refs:fap
127 struct fap { struct
143 struct fap fap; argument
145 u8 rawbytes[sizeof(struct fap)];
318 response->fap.feature_index == HIDPP20_ERROR) { in hidpp_send_message_sync()
319 ret = response->fap.params[1]; in hidpp_send_message_sync()
337 if (param_count > sizeof(message->fap.params)) in hidpp_send_fap_command_sync()
348 message->fap.feature_index = feat_index; in hidpp_send_fap_command_sync()
349 message->fap.funcindex_clientid = funcindex_clientid | LINUX_KERNEL_SW_ID; in hidpp_send_fap_command_sync()
350 memcpy(&message->fap.params, params, param_count); in hidpp_send_fap_command_sync()
409 return (answer->fap.feature_index == question->fap.feature_index) && in hidpp_match_answer()
410 (answer->fap.funcindex_clientid == question->fap.funcindex_clientid); in hidpp_match_answer()
417 (answer->fap.feature_index == HIDPP20_ERROR)) && in hidpp_match_error()
418 (answer->fap.funcindex_clientid == question->fap.feature_index) && in hidpp_match_error()
419 (answer->fap.params[0] == question->fap.funcindex_clientid); in hidpp_match_error()
426 (report->fap.feature_index == hidpp->wireless_feature_index)) || in hidpp_report_is_connect_event()
879 if (response.fap.params[0] == 0) in hidpp_root_get_feature()
882 *feature_index = response.fap.params[0]; in hidpp_root_get_feature()
883 *feature_type = response.fap.params[1]; in hidpp_root_get_feature()
961 *nameLength = response.fap.params[0]; in hidpp_devicenametype_get_count()
1003 device_name[i] = response.fap.params[i]; in hidpp_devicenametype_get_device_name()
1130 u8 *params = (u8 *)response.fap.params; in hidpp20_batterylevel_get_battery_capacity()
1158 u8 *params = (u8 *)response.fap.params; in hidpp20_batterylevel_get_battery_info()
1227 if (report->fap.feature_index != hidpp->battery.feature_index || in hidpp20_battery_event_1000()
1228 report->fap.funcindex_clientid != EVENT_BATTERY_LEVEL_STATUS_BROADCAST) in hidpp20_battery_event_1000()
1231 status = hidpp20_batterylevel_map_status_capacity(report->fap.params, in hidpp20_battery_event_1000()
1315 u8 *params = (u8 *)response.fap.params; in hidpp20_battery_get_battery_voltage()
1412 if (report->fap.feature_index != hidpp->battery.voltage_feature_index || in hidpp20_battery_voltage_event()
1413 report->fap.funcindex_clientid != EVENT_BATTERY_VOLTAGE_STATUS_BROADCAST) in hidpp20_battery_voltage_event()
1416 status = hidpp20_battery_map_status_voltage(report->fap.params, &voltage, in hidpp20_battery_voltage_event()
1458 u8 *params = (u8 *)response.fap.params; in hidpp20_unifiedbattery_get_capabilities()
1554 u8 *params = (u8 *)response.fap.params; in hidpp20_unifiedbattery_get_status()
1619 u8 *params = (u8 *)report->fap.params; in hidpp20_battery_event_1004()
1623 if (report->fap.feature_index != hidpp->battery.feature_index || in hidpp20_battery_event_1004()
1624 report->fap.funcindex_clientid != EVENT_UNIFIED_BATTERY_STATUS_EVENT) in hidpp20_battery_event_1004()
1762 *multiplier = response.fap.params[1]; in hidpp_hrs_set_highres_scrolling_mode()
1794 *multiplier = response.fap.params[0]; in hidpp_hrw_get_wheel_capability()
1877 function = report->fap.funcindex_clientid; in hidpp_solar_battery_event()
1880 if (report->fap.feature_index != hidpp->battery.solar_feature_index || in hidpp_solar_battery_event()
1886 capacity = report->fap.params[0]; in hidpp_solar_battery_event()
1890 lux = (report->fap.params[1] << 8) | report->fap.params[2]; in hidpp_solar_battery_event()
1945 u8 *params = (u8 *)response.fap.params; in hidpp_touchpad_fw_items_set()
2015 u8 *params = (u8 *)response.fap.params; in hidpp_touchpad_get_raw_info()
2237 slot = response.fap.params[0]; in hidpp_ff_work_handler()
2805 if ((report->fap.feature_index != wd->mt_feature_index) || in wtp_raw_event()
2806 (report->fap.funcindex_clientid != EVENT_TOUCHPAD_RAW_XY)) in wtp_raw_event()
3153 data->slot_autocenter = response.fap.params[0]; in g920_ff_set_autocenter()
3186 data->num_effects = response.fap.params[0] - HIDPP_FF_RESERVED_SLOTS; in g920_get_config()
3205 900 : get_unaligned_be16(&response.fap.params[0]); in g920_get_config()
3216 0xffff : get_unaligned_be16(&response.fap.params[0]); in g920_get_config()