Lines Matching refs:iwake_watermark

406 	struct isys_iwake_watermark *iwake_watermark = &isys->iwake_watermark;  in get_lut_ltrdid()  local
412 if (iwake_watermark->ltrdid.lut_ltr.value) in get_lut_ltrdid()
413 *pltr_did = iwake_watermark->ltrdid; in get_lut_ltrdid()
513 struct isys_iwake_watermark *iwake_watermark = &isys->iwake_watermark; in enable_iwake() local
516 mutex_lock(&iwake_watermark->mutex); in enable_iwake()
518 if (iwake_watermark->iwake_enabled == enable) { in enable_iwake()
519 mutex_unlock(&iwake_watermark->mutex); in enable_iwake()
525 iwake_watermark->iwake_enabled = enable; in enable_iwake()
527 mutex_unlock(&iwake_watermark->mutex); in enable_iwake()
532 struct isys_iwake_watermark *iwake_watermark = &isys->iwake_watermark; in update_watermark_setting() local
549 mutex_lock(&iwake_watermark->mutex); in update_watermark_setting()
550 if (iwake_watermark->force_iwake_disable) { in update_watermark_setting()
557 if (list_empty(&iwake_watermark->video_list)) { in update_watermark_setting()
560 list_for_each(stream_node, &iwake_watermark->video_list) { in update_watermark_setting()
567 mutex_unlock(&iwake_watermark->mutex); in update_watermark_setting()
572 mutex_lock(&iwake_watermark->mutex); in update_watermark_setting()
610 mutex_lock(&iwake_watermark->mutex); in update_watermark_setting()
643 mutex_unlock(&iwake_watermark->mutex); in update_watermark_setting()
648 struct isys_iwake_watermark *iwake_watermark = &isys->iwake_watermark; in isys_iwake_watermark_init() local
650 INIT_LIST_HEAD(&iwake_watermark->video_list); in isys_iwake_watermark_init()
651 mutex_init(&iwake_watermark->mutex); in isys_iwake_watermark_init()
653 iwake_watermark->ltrdid.lut_ltr.value = 0; in isys_iwake_watermark_init()
654 iwake_watermark->isys = isys; in isys_iwake_watermark_init()
655 iwake_watermark->iwake_enabled = false; in isys_iwake_watermark_init()
656 iwake_watermark->force_iwake_disable = false; in isys_iwake_watermark_init()
661 struct isys_iwake_watermark *iwake_watermark = &isys->iwake_watermark; in isys_iwake_watermark_cleanup() local
663 mutex_lock(&iwake_watermark->mutex); in isys_iwake_watermark_cleanup()
664 list_del(&iwake_watermark->video_list); in isys_iwake_watermark_cleanup()
665 mutex_unlock(&iwake_watermark->mutex); in isys_iwake_watermark_cleanup()
667 mutex_destroy(&iwake_watermark->mutex); in isys_iwake_watermark_cleanup()