Home
last modified time | relevance | path

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

/openbmc/linux/drivers/hid/amd-sfh-hid/hid_descriptor/
H A Damd_sfh_hid_desc.c215 struct gyro_input_report gyro_input; in get_input_report() local
234 get_common_inputs(&gyro_input.common_property, report_id); in get_input_report()
235 gyro_input.in_angel_x_value = (int)sensor_virt_addr[0] / AMD_SFH_FW_MULTIPLIER; in get_input_report()
236 gyro_input.in_angel_y_value = (int)sensor_virt_addr[1] / AMD_SFH_FW_MULTIPLIER; in get_input_report()
237 gyro_input.in_angel_z_value = (int)sensor_virt_addr[2] / AMD_SFH_FW_MULTIPLIER; in get_input_report()
238 memcpy(input_report, &gyro_input, sizeof(gyro_input)); in get_input_report()
239 report_size = sizeof(gyro_input); in get_input_report()
/openbmc/linux/drivers/hid/amd-sfh-hid/sfh1_1/
H A Damd_sfh_desc.c183 struct gyro_input_report gyro_input; in get_input_rep() local
213 get_common_inputs(&gyro_input.common_property, report_id); in get_input_rep()
214 gyro_input.in_angel_x_value = float_to_int(gyro_data.gyrodata.x) / 1000; in get_input_rep()
215 gyro_input.in_angel_y_value = float_to_int(gyro_data.gyrodata.y) / 1000; in get_input_rep()
216 gyro_input.in_angel_z_value = float_to_int(gyro_data.gyrodata.z) / 1000; in get_input_rep()
217 memcpy(input_report, &gyro_input, sizeof(gyro_input)); in get_input_rep()
218 report_size = sizeof(gyro_input); in get_input_rep()