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

/linux-4.1.27/drivers/iio/light/
H A Dhid-sensor-prox.c35 struct prox_state { struct
72 struct prox_state *prox_state = iio_priv(indio_dev); prox_read_raw() local
83 report_id = prox_state->prox_attr.report_id; prox_read_raw()
92 hid_sensor_power_state(&prox_state->common_attributes, prox_read_raw()
95 prox_state->common_attributes.hsdev, prox_read_raw()
99 hid_sensor_power_state(&prox_state->common_attributes, prox_read_raw()
108 *val = prox_state->prox_attr.units; prox_read_raw()
113 prox_state->prox_attr.unit_expo); prox_read_raw()
118 &prox_state->common_attributes, val, val2); prox_read_raw()
122 &prox_state->common_attributes, val, val2); prox_read_raw()
139 struct prox_state *prox_state = iio_priv(indio_dev); prox_write_raw() local
145 &prox_state->common_attributes, val, val2); prox_write_raw()
149 &prox_state->common_attributes, val, val2); prox_write_raw()
178 struct prox_state *prox_state = iio_priv(indio_dev); prox_proc_event() local
181 if (atomic_read(&prox_state->common_attributes.data_ready)) prox_proc_event()
183 &prox_state->human_presence, prox_proc_event()
184 sizeof(prox_state->human_presence)); prox_proc_event()
196 struct prox_state *prox_state = iio_priv(indio_dev); prox_capture_sample() local
201 prox_state->human_presence = *(u32 *)raw_data; prox_capture_sample()
216 struct prox_state *st) prox_parse_report()
252 struct prox_state *prox_state; hid_prox_probe() local
256 sizeof(struct prox_state)); hid_prox_probe()
261 prox_state = iio_priv(indio_dev); hid_prox_probe()
262 prox_state->common_attributes.hsdev = hsdev; hid_prox_probe()
263 prox_state->common_attributes.pdev = pdev; hid_prox_probe()
266 &prox_state->common_attributes); hid_prox_probe()
281 HID_USAGE_SENSOR_PROX, prox_state); hid_prox_probe()
300 atomic_set(&prox_state->common_attributes.data_ready, 0); hid_prox_probe()
302 &prox_state->common_attributes); hid_prox_probe()
314 prox_state->callbacks.send_event = prox_proc_event; hid_prox_probe()
315 prox_state->callbacks.capture_sample = prox_capture_sample; hid_prox_probe()
316 prox_state->callbacks.pdev = pdev; hid_prox_probe()
318 &prox_state->callbacks); hid_prox_probe()
329 hid_sensor_remove_trigger(&prox_state->common_attributes); hid_prox_probe()
342 struct prox_state *prox_state = iio_priv(indio_dev); hid_prox_remove() local
346 hid_sensor_remove_trigger(&prox_state->common_attributes); hid_prox_remove()

Completed in 136 milliseconds