Lines Matching refs:fap
113 struct fap { struct
129 struct fap fap; argument
131 u8 rawbytes[sizeof(struct fap)];
297 response->fap.feature_index == HIDPP20_ERROR) { in hidpp_send_message_sync()
298 ret = response->fap.params[1]; in hidpp_send_message_sync()
316 if (param_count > sizeof(message->fap.params)) in hidpp_send_fap_command_sync()
327 message->fap.feature_index = feat_index; in hidpp_send_fap_command_sync()
328 message->fap.funcindex_clientid = funcindex_clientid; in hidpp_send_fap_command_sync()
329 memcpy(&message->fap.params, params, param_count); in hidpp_send_fap_command_sync()
383 return (answer->fap.feature_index == question->fap.feature_index) && in hidpp_match_answer()
384 (answer->fap.funcindex_clientid == question->fap.funcindex_clientid); in hidpp_match_answer()
391 (answer->fap.feature_index == HIDPP20_ERROR)) && in hidpp_match_error()
392 (answer->fap.funcindex_clientid == question->fap.feature_index) && in hidpp_match_error()
393 (answer->fap.params[0] == question->fap.funcindex_clientid); in hidpp_match_error()
849 if (response.fap.params[0] == 0) in hidpp_root_get_feature()
852 *feature_index = response.fap.params[0]; in hidpp_root_get_feature()
853 *feature_type = response.fap.params[1]; in hidpp_root_get_feature()
931 *nameLength = response.fap.params[0]; in hidpp_devicenametype_get_count()
973 device_name[i] = response.fap.params[i]; in hidpp_devicenametype_get_device_name()
1100 u8 *params = (u8 *)response.fap.params; in hidpp20_batterylevel_get_battery_capacity()
1125 u8 *params = (u8 *)response.fap.params; in hidpp20_batterylevel_get_battery_info()
1194 if (report->fap.feature_index != hidpp->battery.feature_index || in hidpp20_battery_event()
1195 report->fap.funcindex_clientid != EVENT_BATTERY_LEVEL_STATUS_BROADCAST) in hidpp20_battery_event()
1198 status = hidpp20_batterylevel_map_status_capacity(report->fap.params, in hidpp20_battery_event()
1306 *multiplier = response.fap.params[1]; in hidpp_hrs_set_highres_scrolling_mode()
1338 *multiplier = response.fap.params[0]; in hidpp_hrw_get_wheel_capability()
1421 function = report->fap.funcindex_clientid; in hidpp_solar_battery_event()
1424 if (report->fap.feature_index != hidpp->battery.solar_feature_index || in hidpp_solar_battery_event()
1430 capacity = report->fap.params[0]; in hidpp_solar_battery_event()
1434 lux = (report->fap.params[1] << 8) | report->fap.params[2]; in hidpp_solar_battery_event()
1489 u8 *params = (u8 *)response.fap.params; in hidpp_touchpad_fw_items_set()
1559 u8 *params = (u8 *)response.fap.params; in hidpp_touchpad_get_raw_info()
1781 slot = response.fap.params[0]; in hidpp_ff_work_handler()
2350 if ((report->fap.feature_index != wd->mt_feature_index) || in wtp_raw_event()
2351 (report->fap.funcindex_clientid != EVENT_TOUCHPAD_RAW_XY)) in wtp_raw_event()
2698 data->slot_autocenter = response.fap.params[0]; in g920_ff_set_autocenter()
2731 data->num_effects = response.fap.params[0] - HIDPP_FF_RESERVED_SLOTS; in g920_get_config()
2750 900 : get_unaligned_be16(&response.fap.params[0]); in g920_get_config()
2761 0xffff : get_unaligned_be16(&response.fap.params[0]); in g920_get_config()