Lines Matching refs:sysc_soc
36 enum sysc_soc { enum
63 enum sysc_soc soc;
84 static struct sysc_soc_info *sysc_soc; variable
1782 switch (sysc_soc->soc) { in sysc_quirk_dispc()
1879 if (sysc_soc->soc == SOC_3430) { in sysc_pre_reset_quirk_dss()
2530 list_for_each(pos, &sysc_soc->restored_modules) { in sysc_reinit_modules()
2581 mutex_lock(&sysc_soc->list_lock); in sysc_add_restored()
2583 list_add(&restored_module->node, &sysc_soc->restored_modules); in sysc_add_restored()
2585 if (sysc_soc->nb.notifier_call) in sysc_add_restored()
2588 sysc_soc->nb.notifier_call = sysc_context_notifier; in sysc_add_restored()
2589 cpu_pm_register_notifier(&sysc_soc->nb); in sysc_add_restored()
2592 mutex_unlock(&sysc_soc->list_lock); in sysc_add_restored()
3086 mutex_lock(&sysc_soc->list_lock); in sysc_add_disabled()
3087 list_add(&disabled_module->node, &sysc_soc->disabled_modules); in sysc_add_disabled()
3088 mutex_unlock(&sysc_soc->list_lock); in sysc_add_disabled()
3108 if (sysc_soc) in sysc_init_static_data()
3111 sysc_soc = kzalloc(sizeof(*sysc_soc), GFP_KERNEL); in sysc_init_static_data()
3112 if (!sysc_soc) in sysc_init_static_data()
3115 mutex_init(&sysc_soc->list_lock); in sysc_init_static_data()
3116 INIT_LIST_HEAD(&sysc_soc->disabled_modules); in sysc_init_static_data()
3117 INIT_LIST_HEAD(&sysc_soc->restored_modules); in sysc_init_static_data()
3118 sysc_soc->general_purpose = true; in sysc_init_static_data()
3122 sysc_soc->general_purpose = pdata->soc_type_gp(); in sysc_init_static_data()
3126 sysc_soc->soc = (int)match->data; in sysc_init_static_data()
3132 switch (sysc_soc->soc) { in sysc_init_static_data()
3147 if (!sysc_soc->general_purpose) { in sysc_init_static_data()
3148 switch (sysc_soc->soc) { in sysc_init_static_data()
3188 if (!sysc_soc) in sysc_cleanup_static_data()
3191 if (sysc_soc->nb.notifier_call) in sysc_cleanup_static_data()
3192 cpu_pm_unregister_notifier(&sysc_soc->nb); in sysc_cleanup_static_data()
3194 mutex_lock(&sysc_soc->list_lock); in sysc_cleanup_static_data()
3195 list_for_each_safe(pos, tmp, &sysc_soc->restored_modules) { in sysc_cleanup_static_data()
3200 list_for_each_safe(pos, tmp, &sysc_soc->disabled_modules) { in sysc_cleanup_static_data()
3205 mutex_unlock(&sysc_soc->list_lock); in sysc_cleanup_static_data()
3214 mutex_lock(&sysc_soc->list_lock); in sysc_check_disabled_devices()
3215 list_for_each(pos, &sysc_soc->disabled_modules) { in sysc_check_disabled_devices()
3223 mutex_unlock(&sysc_soc->list_lock); in sysc_check_disabled_devices()
3248 if (sysc_soc->soc == SOC_3430) in sysc_check_active_timer()