Lines Matching refs:device
80 struct sensors_control_device_t device; // must be first
88 struct sensors_data_device_t device; // must be first
145 struct hw_device_t** device);
983 /** Open a new instance of a sensor device using name */
985 struct hw_device_t** device)
995 dev->device.common.tag = HARDWARE_DEVICE_TAG;
996 dev->device.common.version = 0;
997 dev->device.common.module = module;
998 dev->device.common.close = control__close;
999 dev->device.open_data_source = control__open_data_source;
1000 dev->device.activate = control__activate;
1001 dev->device.set_delay= control__set_delay;
1002 dev->device.wake = control__wake;
1003 *device = &dev->device.common;
1011 dev->device.common.tag = HARDWARE_DEVICE_TAG;
1012 dev->device.common.version = 0;
1013 dev->device.common.module = module;
1014 dev->device
1015 dev->device.data_open = data__data_open;
1016 dev->device.data_close = data__data_close;
1017 dev->device.poll = data__poll;
1018 *device = &dev->device.common;