Lines Matching refs:pending
308 memset(&hsdev->pending, 0, sizeof(hsdev->pending)); in sensor_hub_input_attr_get_raw_value()
309 init_completion(&hsdev->pending.ready); in sensor_hub_input_attr_get_raw_value()
310 hsdev->pending.usage_id = usage_id; in sensor_hub_input_attr_get_raw_value()
311 hsdev->pending.attr_usage_id = attr_usage_id; in sensor_hub_input_attr_get_raw_value()
312 hsdev->pending.raw_size = 0; in sensor_hub_input_attr_get_raw_value()
315 hsdev->pending.status = true; in sensor_hub_input_attr_get_raw_value()
323 &hsdev->pending.ready, HZ*5); in sensor_hub_input_attr_get_raw_value()
324 switch (hsdev->pending.raw_size) { in sensor_hub_input_attr_get_raw_value()
327 ret_val = *(s8 *)hsdev->pending.raw_data; in sensor_hub_input_attr_get_raw_value()
329 ret_val = *(u8 *)hsdev->pending.raw_data; in sensor_hub_input_attr_get_raw_value()
333 ret_val = *(s16 *)hsdev->pending.raw_data; in sensor_hub_input_attr_get_raw_value()
335 ret_val = *(u16 *)hsdev->pending.raw_data; in sensor_hub_input_attr_get_raw_value()
338 ret_val = *(u32 *)hsdev->pending.raw_data; in sensor_hub_input_attr_get_raw_value()
343 kfree(hsdev->pending.raw_data); in sensor_hub_input_attr_get_raw_value()
344 hsdev->pending.status = false; in sensor_hub_input_attr_get_raw_value()
518 if (hsdev->pending.status && (hsdev->pending.attr_usage_id == in sensor_hub_raw_event()
520 hsdev->pending.attr_usage_id == in sensor_hub_raw_event()
523 hsdev->pending.raw_data = kmemdup(ptr, sz, GFP_ATOMIC); in sensor_hub_raw_event()
524 if (hsdev->pending.raw_data) in sensor_hub_raw_event()
525 hsdev->pending.raw_size = sz; in sensor_hub_raw_event()
527 hsdev->pending.raw_size = 0; in sensor_hub_raw_event()
528 complete(&hsdev->pending.ready); in sensor_hub_raw_event()
746 if (hsdev->pending.status) in sensor_hub_remove()
747 complete(&hsdev->pending.ready); in sensor_hub_remove()