Lines Matching refs:rap

103 struct rap {  struct
114 struct rap rap; argument
254 response->rap.sub_id == HIDPP_ERROR) { in hidpp_send_message_sync()
255 ret = response->rap.params[1]; in hidpp_send_message_sync()
329 message->rap.sub_id = sub_id; in hidpp_send_rap_command_sync()
330 message->rap.reg_address = reg_address; in hidpp_send_rap_command_sync()
331 memcpy(&message->rap.params, params, param_count); in hidpp_send_rap_command_sync()
355 return ((answer->rap.sub_id == HIDPP_ERROR) || in hidpp_match_error()
364 (report->rap.sub_id == 0x41); in hidpp_report_is_connect_event()
419 memcpy(params, response.rap.params, 3); in hidpp10_enable_battery_reporting()
505 hidpp10_battery_status_map_level(response.rap.params[0]); in hidpp10_query_battery_status()
506 status = hidpp10_battery_status_map_status(response.rap.params[1]); in hidpp10_query_battery_status()
556 hidpp->battery.capacity = response.rap.params[0]; in hidpp10_query_battery_mileage()
557 status = hidpp10_battery_mileage_map_status(response.rap.params[2]); in hidpp10_query_battery_mileage()
575 switch (report->rap.sub_id) { in hidpp10_battery_event()
582 capacity = report->rap.params[0]; in hidpp10_battery_event()
628 len = response.rap.params[1]; in hidpp_unifying_get_name()
630 if (2 + len > sizeof(response.rap.params)) in hidpp_unifying_get_name()
637 memcpy(name, &response.rap.params[2], len); in hidpp_unifying_get_name()
663 *serial = *((u32 *)&response.rap.params[1]); in hidpp_unifying_get_serial()
756 if (response.rap.params[2] != ping_byte) { in hidpp_root_get_protocol_version()
758 __func__, response.rap.params[2], ping_byte); in hidpp_root_get_protocol_version()
762 hidpp->protocol_major = response.rap.params[0]; in hidpp_root_get_protocol_version()
763 hidpp->protocol_minor = response.rap.params[1]; in hidpp_root_get_protocol_version()
807 *serial = *((u32 *)&response.rap.params[1]); in hidpp_get_serial()
2698 !(report->rap.params[0] & (1 << 6))); in hidpp_raw_hidpp_event()