Lines Matching refs:dev
117 static int set_light_backlight(struct light_device_t* dev __unused, in set_light_backlight()
185 static int set_light_notifications(struct light_device_t* dev __unused, in set_light_notifications()
195 static int set_light_attention(struct light_device_t* dev __unused, in set_light_attention()
207 static int close_lights(struct light_device_t *dev) in close_lights() argument
209 if (dev) in close_lights()
210 free(dev); in close_lights()
225 int (*set_light)(struct light_device_t* dev, in open_lights()
239 struct light_device_t *dev = malloc(sizeof(struct light_device_t)); in open_lights() local
241 if(!dev) in open_lights()
244 memset(dev, 0, sizeof(*dev)); in open_lights()
246 dev->common.tag = HARDWARE_DEVICE_TAG; in open_lights()
247 dev->common.version = 0; in open_lights()
248 dev->common.module = (struct hw_module_t*)module; in open_lights()
249 dev->common.close = (int (*)(struct hw_device_t*))close_lights; in open_lights()
250 dev->set_light = set_light; in open_lights()
252 *device = (struct hw_device_t*)dev; in open_lights()