Lines Matching refs:dev

127 set_light_backlight(struct light_device_t* dev,  in set_light_backlight()  argument
134 if(!dev) { in set_light_backlight()
167 set_speaker_light_locked(struct light_device_t* dev, in set_speaker_light_locked() argument
175 if(!dev) { in set_speaker_light_locked()
240 handle_speaker_battery_locked(struct light_device_t* dev) in handle_speaker_battery_locked() argument
243 set_speaker_light_locked(dev, &g_battery); in handle_speaker_battery_locked()
245 set_speaker_light_locked(dev, &g_notification); in handle_speaker_battery_locked()
250 set_light_battery(struct light_device_t* dev, in set_light_battery() argument
255 handle_speaker_battery_locked(dev); in set_light_battery()
261 set_light_notifications(struct light_device_t* dev, in set_light_notifications() argument
266 handle_speaker_battery_locked(dev); in set_light_notifications()
272 set_light_attention(struct light_device_t* dev, in set_light_attention() argument
281 handle_speaker_battery_locked(dev); in set_light_attention()
287 set_light_buttons(struct light_device_t* dev, in set_light_buttons() argument
291 if(!dev) { in set_light_buttons()
302 close_lights(struct light_device_t *dev) in close_lights() argument
304 if (dev) { in close_lights()
305 free(dev); in close_lights()
321 int (*set_light)(struct light_device_t* dev, in open_lights()
345 struct light_device_t *dev = malloc(sizeof(struct light_device_t)); in open_lights() local
347 if(!dev) in open_lights()
350 memset(dev, 0, sizeof(*dev)); in open_lights()
352 dev->common.tag = HARDWARE_DEVICE_TAG; in open_lights()
353 dev->common.version = LIGHTS_DEVICE_API_VERSION_2_0; in open_lights()
354 dev->common.module = (struct hw_module_t*)module; in open_lights()
355 dev->common.close = (int (*)(struct hw_device_t*))close_lights; in open_lights()
356 dev->set_light = set_light; in open_lights()
358 *device = (struct hw_device_t*)dev; in open_lights()