Lines Matching refs:rap
126 struct rap { struct
137 struct rap rap; argument
302 response->rap.sub_id == HIDPP_ERROR) { in hidpp_send_message_sync()
303 ret = response->rap.params[1]; in hidpp_send_message_sync()
382 message->rap.sub_id = sub_id; in hidpp_send_rap_command_sync()
383 message->rap.reg_address = reg_address; in hidpp_send_rap_command_sync()
384 memcpy(&message->rap.params, params, param_count); in hidpp_send_rap_command_sync()
408 return ((answer->rap.sub_id == HIDPP_ERROR) || in hidpp_match_error()
420 (report->rap.sub_id == 0x41)); in hidpp_report_is_connect_event()
545 memcpy(params, response.rap.params, 3); in hidpp10_set_register()
655 hidpp10_battery_status_map_level(response.rap.params[0]); in hidpp10_query_battery_status()
656 status = hidpp10_battery_status_map_status(response.rap.params[1]); in hidpp10_query_battery_status()
706 hidpp->battery.capacity = response.rap.params[0]; in hidpp10_query_battery_mileage()
707 status = hidpp10_battery_mileage_map_status(response.rap.params[2]); in hidpp10_query_battery_mileage()
725 switch (report->rap.sub_id) { in hidpp10_battery_event()
732 capacity = report->rap.params[0]; in hidpp10_battery_event()
778 len = response.rap.params[1]; in hidpp_unifying_get_name()
780 if (2 + len > sizeof(response.rap.params)) in hidpp_unifying_get_name()
790 memcpy(name, &response.rap.params[2], len); in hidpp_unifying_get_name()
816 *serial = *((u32 *)&response.rap.params[1]); in hidpp_unifying_get_serial()
910 if (response.rap.params[2] != ping_byte) { in hidpp_root_get_protocol_version()
912 __func__, response.rap.params[2], ping_byte); in hidpp_root_get_protocol_version()
916 hidpp->protocol_major = response.rap.params[0]; in hidpp_root_get_protocol_version()
917 hidpp->protocol_minor = response.rap.params[1]; in hidpp_root_get_protocol_version()
3304 !(report->rap.params[0] & (1 << 6))); in hidpp_raw_hidpp_event()