Home
last modified time | relevance | path

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

/Linux-v6.1/drivers/hid/amd-sfh-hid/hid_descriptor/
Damd_sfh_hid_desc.c211 struct accel3_input_report acc_input; in get_input_report() local
223 get_common_inputs(&acc_input.common_property, report_id); in get_input_report()
224 acc_input.in_accel_x_value = (int)sensor_virt_addr[0] / AMD_SFH_FW_MULTIPLIER; in get_input_report()
225 acc_input.in_accel_y_value = (int)sensor_virt_addr[1] / AMD_SFH_FW_MULTIPLIER; in get_input_report()
226 acc_input.in_accel_z_value = (int)sensor_virt_addr[2] / AMD_SFH_FW_MULTIPLIER; in get_input_report()
227 memcpy(input_report, &acc_input, sizeof(acc_input)); in get_input_report()
228 report_size = sizeof(acc_input); in get_input_report()
/Linux-v6.1/drivers/hid/amd-sfh-hid/sfh1_1/
Damd_sfh_desc.c166 struct accel3_input_report acc_input; in get_input_rep() local
186 get_common_inputs(&acc_input.common_property, report_id); in get_input_rep()
187 acc_input.in_accel_x_value = float_to_int(accel_data.acceldata.x) / 100; in get_input_rep()
188 acc_input.in_accel_y_value = float_to_int(accel_data.acceldata.y) / 100; in get_input_rep()
189 acc_input.in_accel_z_value = float_to_int(accel_data.acceldata.z) / 100; in get_input_rep()
190 memcpy(input_report, &acc_input, sizeof(acc_input)); in get_input_rep()
191 report_size = sizeof(acc_input); in get_input_rep()