Lines Matching defs:device
96 struct hw_device_t** device);
126 struct sensors_poll_device_t device; // must be first
368 /** Open a new instance of a sensor device using name */
370 struct hw_device_t** device)
376 memset(&dev->device, 0, sizeof(sensors_poll_device_t));
378 dev->device.common.tag = HARDWARE_DEVICE_TAG;
379 dev->device.common.version = 0;
380 dev->device.common.module = const_cast<hw_module_t*>(module);
381 dev->device.common.close = poll__close;
382 dev->device.activate = poll__activate;
383 dev->device.setDelay = poll__setDelay;
384 dev->device.poll = poll__poll;
386 *device = &dev->device.common;