Lines Matching refs:rap

130 struct rap {  struct
141 struct rap rap; argument
307 response->rap.sub_id == HIDPP_ERROR) { in hidpp_send_message_sync()
308 ret = response->rap.params[1]; in hidpp_send_message_sync()
387 message->rap.sub_id = sub_id; in hidpp_send_rap_command_sync()
388 message->rap.reg_address = reg_address; in hidpp_send_rap_command_sync()
389 memcpy(&message->rap.params, params, param_count); in hidpp_send_rap_command_sync()
413 return ((answer->rap.sub_id == HIDPP_ERROR) || in hidpp_match_error()
425 (report->rap.sub_id == 0x41)); in hidpp_report_is_connect_event()
551 memcpy(params, response.rap.params, 3); in hidpp10_set_register()
661 hidpp10_battery_status_map_level(response.rap.params[0]); in hidpp10_query_battery_status()
662 status = hidpp10_battery_status_map_status(response.rap.params[1]); in hidpp10_query_battery_status()
712 hidpp->battery.capacity = response.rap.params[0]; in hidpp10_query_battery_mileage()
713 status = hidpp10_battery_mileage_map_status(response.rap.params[2]); in hidpp10_query_battery_mileage()
731 switch (report->rap.sub_id) { in hidpp10_battery_event()
738 capacity = report->rap.params[0]; in hidpp10_battery_event()
784 len = response.rap.params[1]; in hidpp_unifying_get_name()
786 if (2 + len > sizeof(response.rap.params)) in hidpp_unifying_get_name()
796 memcpy(name, &response.rap.params[2], len); in hidpp_unifying_get_name()
822 *serial = *((u32 *)&response.rap.params[1]); in hidpp_unifying_get_serial()
916 if (response.rap.params[2] != ping_byte) { in hidpp_root_get_protocol_version()
918 __func__, response.rap.params[2], ping_byte); in hidpp_root_get_protocol_version()
922 hidpp->protocol_major = response.rap.params[0]; in hidpp_root_get_protocol_version()
923 hidpp->protocol_minor = response.rap.params[1]; in hidpp_root_get_protocol_version()
3568 !(report->rap.params[0] & (1 << 6))); in hidpp_raw_hidpp_event()