Lines Matching defs:magn_state

147 	struct magn_3d_state *magn_state = iio_priv(indio_dev);
157 hid_sensor_power_state(&magn_state->magn_flux_attributes, true);
158 report_id = magn_state->magn[chan->address].report_id;
159 min = magn_state->magn[chan->address].logical_minimum;
163 magn_state->magn_flux_attributes.hsdev,
171 &magn_state->magn_flux_attributes,
175 hid_sensor_power_state(&magn_state->magn_flux_attributes,
182 *val = magn_state->magn_flux_attr.scale_pre_decml;
183 *val2 = magn_state->magn_flux_attr.scale_post_decml;
184 ret_type = magn_state->magn_flux_attr.scale_precision;
187 *val = magn_state->rot_attr.scale_pre_decml;
188 *val2 = magn_state->rot_attr.scale_post_decml;
189 ret_type = magn_state->rot_attr.scale_precision;
198 *val = magn_state->magn_flux_attr.value_offset;
202 *val = magn_state->rot_attr.value_offset;
211 &magn_state->magn_flux_attributes, val, val2);
217 &magn_state->magn_flux_attributes, val, val2);
221 &magn_state->rot_attributes, val, val2);
242 struct magn_3d_state *magn_state = iio_priv(indio_dev);
248 &magn_state->magn_flux_attributes, val, val2);
254 &magn_state->magn_flux_attributes, val, val2);
258 &magn_state->rot_attributes, val, val2);
289 struct magn_3d_state *magn_state = iio_priv(indio_dev);
292 if (atomic_read(&magn_state->magn_flux_attributes.data_ready))
293 hid_sensor_push_data(indio_dev, magn_state->iio_vals);
305 struct magn_3d_state *magn_state = iio_priv(indio_dev);
328 iio_val = magn_state->magn_val_addr[offset];
480 struct magn_3d_state *magn_state;
492 magn_state = iio_priv(indio_dev);
493 magn_state->magn_flux_attributes.hsdev = hsdev;
494 magn_state->magn_flux_attributes.pdev = pdev;
498 &magn_state->magn_flux_attributes);
503 magn_state->rot_attributes = magn_state->magn_flux_attributes;
507 HID_USAGE_SENSOR_COMPASS_3D, magn_state);
519 atomic_set(&magn_state->magn_flux_attributes.data_ready, 0);
522 &magn_state->magn_flux_attributes);
534 magn_state->callbacks.send_event = magn_3d_proc_event;
535 magn_state->callbacks.capture_sample = magn_3d_capture_sample;
536 magn_state->callbacks.pdev = pdev;
538 &magn_state->callbacks);
549 hid_sensor_remove_trigger(indio_dev, &magn_state->magn_flux_attributes);
558 struct magn_3d_state *magn_state = iio_priv(indio_dev);
562 hid_sensor_remove_trigger(indio_dev, &magn_state->magn_flux_attributes);