Searched refs:magn_state (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/drivers/iio/magnetometer/
H A Dhid-sensor-magn-3d.c156 struct magn_3d_state *magn_state = iio_priv(indio_dev); magn_3d_read_raw() local
165 hid_sensor_power_state(&magn_state->common_attributes, true); magn_3d_read_raw()
167 magn_state->magn[chan->address].report_id; magn_3d_read_raw()
171 magn_state->common_attributes.hsdev, magn_3d_read_raw()
177 hid_sensor_power_state(&magn_state->common_attributes, magn_3d_read_raw()
181 hid_sensor_power_state(&magn_state->common_attributes, false); magn_3d_read_raw()
185 *val = magn_state->scale_pre_decml; magn_3d_read_raw()
186 *val2 = magn_state->scale_post_decml; magn_3d_read_raw()
187 ret_type = magn_state->scale_precision; magn_3d_read_raw()
190 *val = magn_state->value_offset; magn_3d_read_raw()
195 &magn_state->common_attributes, val, val2); magn_3d_read_raw()
199 &magn_state->common_attributes, val, val2); magn_3d_read_raw()
216 struct magn_3d_state *magn_state = iio_priv(indio_dev); magn_3d_write_raw() local
222 &magn_state->common_attributes, val, val2); magn_3d_write_raw()
226 &magn_state->common_attributes, val, val2); magn_3d_write_raw()
254 struct magn_3d_state *magn_state = iio_priv(indio_dev); magn_3d_proc_event() local
257 if (atomic_read(&magn_state->common_attributes.data_ready)) magn_3d_proc_event()
258 hid_sensor_push_data(indio_dev, magn_state->iio_vals); magn_3d_proc_event()
270 struct magn_3d_state *magn_state = iio_priv(indio_dev); magn_3d_capture_sample() local
293 iio_val = magn_state->magn_val_addr[offset]; magn_3d_capture_sample()
418 struct magn_3d_state *magn_state; hid_magn_3d_probe() local
430 magn_state = iio_priv(indio_dev); hid_magn_3d_probe()
431 magn_state->common_attributes.hsdev = hsdev; hid_magn_3d_probe()
432 magn_state->common_attributes.pdev = pdev; hid_magn_3d_probe()
436 &magn_state->common_attributes); hid_magn_3d_probe()
444 HID_USAGE_SENSOR_COMPASS_3D, magn_state); hid_magn_3d_probe()
463 atomic_set(&magn_state->common_attributes.data_ready, 0); hid_magn_3d_probe()
465 &magn_state->common_attributes); hid_magn_3d_probe()
477 magn_state->callbacks.send_event = magn_3d_proc_event; hid_magn_3d_probe()
478 magn_state->callbacks.capture_sample = magn_3d_capture_sample; hid_magn_3d_probe()
479 magn_state->callbacks.pdev = pdev; hid_magn_3d_probe()
481 &magn_state->callbacks); hid_magn_3d_probe()
492 hid_sensor_remove_trigger(&magn_state->common_attributes); hid_magn_3d_probe()
503 struct magn_3d_state *magn_state = iio_priv(indio_dev); hid_magn_3d_remove() local
507 hid_sensor_remove_trigger(&magn_state->common_attributes); hid_magn_3d_remove()

Completed in 182 milliseconds