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

/linux-4.4.14/drivers/iio/pressure/
H A Dhid-sensor-press.c35 struct press_state { struct
76 struct press_state *press_state = iio_priv(indio_dev); press_read_raw() local
87 report_id = press_state->press_attr.report_id; press_read_raw()
96 hid_sensor_power_state(&press_state->common_attributes, press_read_raw()
99 press_state->common_attributes.hsdev, press_read_raw()
103 hid_sensor_power_state(&press_state->common_attributes, press_read_raw()
112 *val = press_state->scale_pre_decml; press_read_raw()
113 *val2 = press_state->scale_post_decml; press_read_raw()
114 ret_type = press_state->scale_precision; press_read_raw()
117 *val = press_state->value_offset; press_read_raw()
122 &press_state->common_attributes, val, val2); press_read_raw()
126 &press_state->common_attributes, val, val2); press_read_raw()
143 struct press_state *press_state = iio_priv(indio_dev); press_write_raw() local
149 &press_state->common_attributes, val, val2); press_write_raw()
153 &press_state->common_attributes, val, val2); press_write_raw()
182 struct press_state *press_state = iio_priv(indio_dev); press_proc_event() local
185 if (atomic_read(&press_state->common_attributes.data_ready)) press_proc_event()
187 &press_state->press_data, press_proc_event()
188 sizeof(press_state->press_data)); press_proc_event()
200 struct press_state *press_state = iio_priv(indio_dev); press_capture_sample() local
205 press_state->press_data = *(u32 *)raw_data; press_capture_sample()
220 struct press_state *st) press_parse_report()
261 struct press_state *press_state; hid_press_probe() local
265 sizeof(struct press_state)); hid_press_probe()
270 press_state = iio_priv(indio_dev); hid_press_probe()
271 press_state->common_attributes.hsdev = hsdev; hid_press_probe()
272 press_state->common_attributes.pdev = pdev; hid_press_probe()
276 &press_state->common_attributes); hid_press_probe()
291 HID_USAGE_SENSOR_PRESSURE, press_state); hid_press_probe()
310 atomic_set(&press_state->common_attributes.data_ready, 0); hid_press_probe()
312 &press_state->common_attributes); hid_press_probe()
324 press_state->callbacks.send_event = press_proc_event; hid_press_probe()
325 press_state->callbacks.capture_sample = press_capture_sample; hid_press_probe()
326 press_state->callbacks.pdev = pdev; hid_press_probe()
328 &press_state->callbacks); hid_press_probe()
339 hid_sensor_remove_trigger(&press_state->common_attributes); hid_press_probe()
352 struct press_state *press_state = iio_priv(indio_dev); hid_press_remove() local
356 hid_sensor_remove_trigger(&press_state->common_attributes); hid_press_remove()

Completed in 268 milliseconds