Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/hid/amd-sfh-hid/hid_descriptor/
Damd_sfh_hid_desc.c213 struct magno_input_report magno_input; in get_input_report() local
242 get_common_inputs(&magno_input.common_property, report_id); in get_input_report()
243 magno_input.in_magno_x = (int)sensor_virt_addr[0] / AMD_SFH_FW_MULTIPLIER; in get_input_report()
244 magno_input.in_magno_y = (int)sensor_virt_addr[1] / AMD_SFH_FW_MULTIPLIER; in get_input_report()
245 magno_input.in_magno_z = (int)sensor_virt_addr[2] / AMD_SFH_FW_MULTIPLIER; in get_input_report()
246 magno_input.in_magno_accuracy = (u16)sensor_virt_addr[3] / AMD_SFH_FW_MULTIPLIER; in get_input_report()
247 memcpy(input_report, &magno_input, sizeof(magno_input)); in get_input_report()
248 report_size = sizeof(magno_input); in get_input_report()
/linux-6.12.1/drivers/hid/amd-sfh-hid/sfh1_1/
Damd_sfh_desc.c181 struct magno_input_report magno_input; in get_input_rep() local
225 get_common_inputs(&magno_input.common_property, report_id); in get_input_rep()
226 magno_input.in_magno_x = amd_sfh_float_to_int(mag_data.magdata.x) / 100; in get_input_rep()
227 magno_input.in_magno_y = amd_sfh_float_to_int(mag_data.magdata.y) / 100; in get_input_rep()
228 magno_input.in_magno_z = amd_sfh_float_to_int(mag_data.magdata.z) / 100; in get_input_rep()
229 magno_input.in_magno_accuracy = mag_data.accuracy / 100; in get_input_rep()
230 memcpy(input_report, &magno_input, sizeof(magno_input)); in get_input_rep()
231 report_size = sizeof(magno_input); in get_input_rep()