Home | History | Annotate | Download | only in hwcomposer

Lines Matching defs:dev

73 static int hwc_prepare(hwc_composer_device_1_t * /*dev*/,
84 static int hwc_set(hwc_composer_device_1_t * /*dev*/,
99 static int hwc_device_close(struct hw_device_t *dev)
101 struct hwc_context_t* ctx = (struct hwc_context_t*)dev;
115 struct hwc_context_t *dev;
116 dev = (hwc_context_t*)malloc(sizeof(*dev));
119 memset(dev, 0, sizeof(*dev));
122 dev->device.common.tag = HARDWARE_DEVICE_TAG;
123 dev->device.common.version = HWC_DEVICE_API_VERSION_1_0;
124 dev->device.common.module = const_cast<hw_module_t*>(module);
125 dev->device.common.close = hwc_device_close;
127 dev->device.prepare = hwc_prepare;
128 dev->device.set = hwc_set;
130 *device = &dev->device.common;