Home
last modified time | relevance | path

Searched refs:gyro_input (Results 1 – 2 of 2) sorted by relevance

/Linux-v6.1/drivers/hid/amd-sfh-hid/hid_descriptor/
Damd_sfh_hid_desc.c212 struct gyro_input_report gyro_input; in get_input_report() local
231 get_common_inputs(&gyro_input.common_property, report_id); in get_input_report()
232 gyro_input.in_angel_x_value = (int)sensor_virt_addr[0] / AMD_SFH_FW_MULTIPLIER; in get_input_report()
233 gyro_input.in_angel_y_value = (int)sensor_virt_addr[1] / AMD_SFH_FW_MULTIPLIER; in get_input_report()
234 gyro_input.in_angel_z_value = (int)sensor_virt_addr[2] / AMD_SFH_FW_MULTIPLIER; in get_input_report()
235 memcpy(input_report, &gyro_input, sizeof(gyro_input)); in get_input_report()
236 report_size = sizeof(gyro_input); in get_input_report()
/Linux-v6.1/drivers/hid/amd-sfh-hid/sfh1_1/
Damd_sfh_desc.c167 struct gyro_input_report gyro_input; in get_input_rep() local
197 get_common_inputs(&gyro_input.common_property, report_id); in get_input_rep()
198 gyro_input.in_angel_x_value = float_to_int(gyro_data.gyrodata.x) / 1000; in get_input_rep()
199 gyro_input.in_angel_y_value = float_to_int(gyro_data.gyrodata.y) / 1000; in get_input_rep()
200 gyro_input.in_angel_z_value = float_to_int(gyro_data.gyrodata.z) / 1000; in get_input_rep()
201 memcpy(input_report, &gyro_input, sizeof(gyro_input)); in get_input_rep()
202 report_size = sizeof(gyro_input); in get_input_rep()