Lines Matching refs:subsys_info

2046 	struct cnss_subsys_info *subsys_info;  in cnss_device_crashed()  local
2051 subsys_info = &plat_priv->subsys_info; in cnss_device_crashed()
2052 if (subsys_info->subsys_device) { in cnss_device_crashed()
2054 subsys_set_crash_status(subsys_info->subsys_device, true); in cnss_device_crashed()
2055 subsystem_restart_dev(subsys_info->subsys_device); in cnss_device_crashed()
2938 struct cnss_subsys_info *subsys_info; in cnss_register_subsys() local
2940 subsys_info = &plat_priv->subsys_info; in cnss_register_subsys()
2942 subsys_info->subsys_desc.name = plat_priv->device_name; in cnss_register_subsys()
2943 subsys_info->subsys_desc.owner = THIS_MODULE; in cnss_register_subsys()
2944 subsys_info->subsys_desc.powerup = cnss_subsys_powerup; in cnss_register_subsys()
2945 subsys_info->subsys_desc.shutdown = cnss_subsys_shutdown; in cnss_register_subsys()
2946 subsys_info->subsys_desc.ramdump = cnss_subsys_ramdump; in cnss_register_subsys()
2947 subsys_info->subsys_desc.crash_shutdown = cnss_subsys_crash_shutdown; in cnss_register_subsys()
2948 subsys_info->subsys_desc.dev = &plat_priv->plat_dev->dev; in cnss_register_subsys()
2950 subsys_info->subsys_device = subsys_register(&subsys_info->subsys_desc); in cnss_register_subsys()
2951 if (IS_ERR(subsys_info->subsys_device)) { in cnss_register_subsys()
2952 ret = PTR_ERR(subsys_info->subsys_device); in cnss_register_subsys()
2957 subsys_info->subsys_handle = in cnss_register_subsys()
2958 subsystem_get(subsys_info->subsys_desc.name); in cnss_register_subsys()
2959 if (!subsys_info->subsys_handle) { in cnss_register_subsys()
2963 } else if (IS_ERR(subsys_info->subsys_handle)) { in cnss_register_subsys()
2964 ret = PTR_ERR(subsys_info->subsys_handle); in cnss_register_subsys()
2972 subsys_unregister(subsys_info->subsys_device); in cnss_register_subsys()
2979 struct cnss_subsys_info *subsys_info; in cnss_unregister_subsys() local
2981 subsys_info = &plat_priv->subsys_info; in cnss_unregister_subsys()
2982 subsystem_put(subsys_info->subsys_handle); in cnss_unregister_subsys()
2983 subsys_unregister(subsys_info->subsys_device); in cnss_unregister_subsys()
2988 struct cnss_subsys_info *subsys_info = &plat_priv->subsys_info; in cnss_create_ramdump_device() local
2990 return create_ramdump_device(subsys_info->subsys_desc.name, in cnss_create_ramdump_device()
2991 subsys_info->subsys_desc.dev); in cnss_create_ramdump_device()