Home
last modified time | relevance | path

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

/openbmc/linux/drivers/hid/amd-sfh-hid/hid_descriptor/
H A 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()
/openbmc/linux/drivers/hid/amd-sfh-hid/sfh1_1/
H A Damd_sfh_desc.c181 struct magno_input_report magno_input; in get_input_rep() local
224 get_common_inputs(&magno_input.common_property, report_id); in get_input_rep()
225 magno_input.in_magno_x = float_to_int(mag_data.magdata.x) / 100; in get_input_rep()
226 magno_input.in_magno_y = float_to_int(mag_data.magdata.y) / 100; in get_input_rep()
227 magno_input.in_magno_z = float_to_int(mag_data.magdata.z) / 100; in get_input_rep()
228 magno_input.in_magno_accuracy = mag_data.accuracy / 100; in get_input_rep()
229 memcpy(input_report, &magno_input, sizeof(magno_input)); in get_input_rep()
230 report_size = sizeof(magno_input); in get_input_rep()