Lines Matching refs:dev
114 set_light_backlight(struct light_device_t* dev,
126 set_speaker_light_locked(struct light_device_t* dev,
198 handle_speaker_battery_locked(struct light_device_t* dev)
201 set_speaker_light_locked(dev, &g_battery);
203 set_speaker_light_locked(dev, &g_notification);
208 set_light_notifications(struct light_device_t* dev,
213 handle_speaker_battery_locked(dev);
219 set_light_attention(struct light_device_t* dev,
228 handle_speaker_battery_locked(dev);
236 close_lights(struct light_device_t *dev)
238 if (dev) {
239 free(dev);
255 int (*set_light)(struct light_device_t* dev,
269 struct light_device_t *dev = malloc(sizeof(struct light_device_t));
270 memset(dev, 0, sizeof(*dev));
272 dev->common.tag = HARDWARE_DEVICE_TAG;
273 dev->common.version = 0;
274 dev->common.module = (struct hw_module_t*)module;
275 dev->common.close = (int (*)(struct hw_device_t*))close_lights;
276 dev->set_light = set_light;
278 *device = (struct hw_device_t*)dev;