Home
last modified time | relevance | path

Searched refs:sensor_virt_addr (Results 1 – 3 of 3) sorted by relevance

/linux-6.1.9/drivers/hid/amd-sfh-hid/hid_descriptor/
Damd_sfh_hid_desc.c207 u32 *sensor_virt_addr = in_data->sensor_virt_addr[current_index]; in get_input_report() local
218 if (!sensor_virt_addr || !input_report) 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()
232 gyro_input.in_angel_x_value = (int)sensor_virt_addr[0] / AMD_SFH_FW_MULTIPLIER; in get_input_report()
233 gyro_input.in_angel_y_value = (int)sensor_virt_addr[1] / AMD_SFH_FW_MULTIPLIER; in get_input_report()
234 gyro_input.in_angel_z_value = (int)sensor_virt_addr[2] / AMD_SFH_FW_MULTIPLIER; in get_input_report()
240 magno_input.in_magno_x = (int)sensor_virt_addr[0] / AMD_SFH_FW_MULTIPLIER; in get_input_report()
241 magno_input.in_magno_y = (int)sensor_virt_addr[1] / AMD_SFH_FW_MULTIPLIER; in get_input_report()
[all …]
/linux-6.1.9/drivers/hid/amd-sfh-hid/
Damd_sfh_client.c237 in_data->sensor_virt_addr[i] = dma_alloc_coherent(dev, sizeof(int) * 8, in amd_sfh_hid_client_init()
240 if (!in_data->sensor_virt_addr[i]) { in amd_sfh_hid_client_init()
324 if (in_data->sensor_virt_addr[i]) { in amd_sfh_hid_client_init()
326 in_data->sensor_virt_addr[i], in amd_sfh_hid_client_init()
360 if (in_data->sensor_virt_addr[i]) { in amd_sfh_hid_client_deinit()
362 in_data->sensor_virt_addr[i], in amd_sfh_hid_client_deinit()
Damd_sfh_hid.h28 u32 *sensor_virt_addr[MAX_HID_DEVICES]; member