Lines Matching refs:dev
130 set_light_backlight(struct light_device_t* dev,
142 set_speaker_light_locked(struct light_device_t* dev,
230 handle_speaker_battery_locked(struct light_device_t* dev)
233 set_speaker_light_locked(dev, &g_battery);
235 set_speaker_light_locked(dev, &g_notification);
240 set_light_notifications(struct light_device_t* dev,
245 handle_speaker_battery_locked(dev);
251 set_light_attention(struct light_device_t* dev,
260 handle_speaker_battery_locked(dev);
268 close_lights(struct light_device_t *dev)
270 if (dev) {
271 free(dev);
287 int (*set_light)(struct light_device_t* dev,
301 struct light_device_t *dev = malloc(sizeof(struct light_device_t));
302 memset(dev, 0, sizeof(*dev));
304 dev->common.tag = HARDWARE_DEVICE_TAG;
305 dev->common.version = 0;
306 dev->common.module = (struct hw_module_t*)module;
307 dev->common.close = (int (*)(struct hw_device_t*))close_lights;
308 dev->set_light = set_light;
310 *device = (struct hw_device_t*)dev;