Lines Matching refs:ramdump_info
2750 struct icnss_ramdump_info *ramdump_info; in icnss_create_ramdump_device() local
2752 ramdump_info = kzalloc(sizeof(*ramdump_info), GFP_KERNEL); in icnss_create_ramdump_device()
2753 if (!ramdump_info) in icnss_create_ramdump_device()
2761 snprintf(ramdump_info->name, ARRAY_SIZE(ramdump_info->name), "icnss_%s", dev_name); in icnss_create_ramdump_device()
2763 ramdump_info->minor = ida_simple_get(&rd_minor_id, 0, RAMDUMP_NUM_DEVICES, GFP_KERNEL); in icnss_create_ramdump_device()
2764 if (ramdump_info->minor < 0) { in icnss_create_ramdump_device()
2766 ramdump_info->minor); in icnss_create_ramdump_device()
2771 ramdump_info->dev = device_create(priv->icnss_ramdump_class, NULL, in icnss_create_ramdump_device()
2773 ramdump_info->minor), in icnss_create_ramdump_device()
2774 ramdump_info, ramdump_info->name); in icnss_create_ramdump_device()
2775 if (IS_ERR_OR_NULL(ramdump_info->dev)) { in icnss_create_ramdump_device()
2776 ret = PTR_ERR(ramdump_info->dev); in icnss_create_ramdump_device()
2778 ramdump_info->name, ret); in icnss_create_ramdump_device()
2781 return (void *)ramdump_info; in icnss_create_ramdump_device()
2784 ida_simple_remove(&rd_minor_id, ramdump_info->minor); in icnss_create_ramdump_device()
2786 kfree(ramdump_info); in icnss_create_ramdump_device()
4927 void icnss_destroy_ramdump_device(struct icnss_ramdump_info *ramdump_info) in icnss_destroy_ramdump_device() argument
4930 if (IS_ERR_OR_NULL(ramdump_info)) in icnss_destroy_ramdump_device()
4933 device_unregister(ramdump_info->dev); in icnss_destroy_ramdump_device()
4935 ida_simple_remove(&rd_minor_id, ramdump_info->minor); in icnss_destroy_ramdump_device()
4937 kfree(ramdump_info); in icnss_destroy_ramdump_device()