Lines Matching refs:dev

118 set_light_backlight(struct light_device_t* dev,  in set_light_backlight()  argument
123 if(!dev) { in set_light_backlight()
133 set_speaker_light_locked(struct light_device_t* dev, in set_speaker_light_locked() argument
141 if(!dev) { in set_speaker_light_locked()
206 handle_speaker_battery_locked(struct light_device_t* dev) in handle_speaker_battery_locked() argument
209 set_speaker_light_locked(dev, &g_battery); in handle_speaker_battery_locked()
211 set_speaker_light_locked(dev, &g_notification); in handle_speaker_battery_locked()
216 set_light_battery(struct light_device_t* dev, in set_light_battery() argument
221 handle_speaker_battery_locked(dev); in set_light_battery()
227 set_light_notifications(struct light_device_t* dev, in set_light_notifications() argument
232 handle_speaker_battery_locked(dev); in set_light_notifications()
238 set_light_attention(struct light_device_t* dev, in set_light_attention() argument
247 handle_speaker_battery_locked(dev); in set_light_attention()
253 set_light_buttons(struct light_device_t* dev, in set_light_buttons() argument
257 if(!dev) { in set_light_buttons()
267 set_light_bluetooth(struct light_device_t* dev, in set_light_bluetooth() argument
271 if(!dev) { in set_light_bluetooth()
282 close_lights(struct light_device_t *dev) in close_lights() argument
284 if (dev) { in close_lights()
285 free(dev); in close_lights()
301 int (*set_light)(struct light_device_t* dev, in open_lights()
321 struct light_device_t *dev = malloc(sizeof(struct light_device_t)); in open_lights() local
323 if(!dev) in open_lights()
326 memset(dev, 0, sizeof(*dev)); in open_lights()
328 dev->common.tag = HARDWARE_DEVICE_TAG; in open_lights()
329 dev->common.version = 0; in open_lights()
330 dev->common.module = (struct hw_module_t*)module; in open_lights()
331 dev->common.close = (int (*)(struct hw_device_t*))close_lights; in open_lights()
332 dev->set_light = set_light; in open_lights()
334 *device = (struct hw_device_t*)dev; in open_lights()