Home
last modified time | relevance | path

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

/linux/drivers/hid/amd-sfh-hid/hid_descriptor/
H A Damd_sfh_hid_desc.c214 struct accel3_input_report acc_input; in get_input_report() local
226 get_common_inputs(&acc_input.common_property, report_id); in get_input_report()
227 acc_input.in_accel_x_value = (int)sensor_virt_addr[0] / AMD_SFH_FW_MULTIPLIER; in get_input_report()
228 acc_input.in_accel_y_value = (int)sensor_virt_addr[1] / AMD_SFH_FW_MULTIPLIER; in get_input_report()
229 acc_input.in_accel_z_value = (int)sensor_virt_addr[2] / AMD_SFH_FW_MULTIPLIER; in get_input_report()
230 memcpy(input_report, &acc_input, sizeof(acc_input)); in get_input_report()
231 report_size = sizeof(acc_input); in get_input_report()
/linux/drivers/hid/amd-sfh-hid/sfh1_1/
H A Damd_sfh_desc.c182 struct accel3_input_report acc_input; in get_input_rep() local
203 get_common_inputs(&acc_input.common_property, report_id); in get_input_rep()
204 acc_input.in_accel_x_value = amd_sfh_float_to_int(accel_data.acceldata.x) / 100; in get_input_rep()
205 acc_input.in_accel_y_value = amd_sfh_float_to_int(accel_data.acceldata.y) / 100; in get_input_rep()
206 acc_input.in_accel_z_value = amd_sfh_float_to_int(accel_data.acceldata.z) / 100; in get_input_rep()
207 memcpy(input_report, &acc_input, sizeof(acc_input)); in get_input_rep()
208 report_size = sizeof(acc_input); in get_input_rep()