Lines Matching refs:dmi
1752 struct dm_ioctl *dmi; in copy_params() local
1768 dmi = param_kernel; in copy_params()
1769 dmi->data_size = minimum_data_size; in copy_params()
1778 dmi = NULL; in copy_params()
1780 dmi = kvmalloc(param_kernel->data_size, GFP_KERNEL | __GFP_HIGH); in copy_params()
1783 if (!dmi) { in copy_params()
1792 memcpy(dmi, param_kernel, minimum_data_size); in copy_params()
1794 if (copy_from_user(&dmi->data, (char __user *)user + minimum_data_size, in copy_params()
1802 *param = dmi; in copy_params()
1806 free_params(dmi, param_kernel->data_size, *param_flags); in copy_params()
2067 int __init dm_early_create(struct dm_ioctl *dmi, in dm_early_create() argument
2076 if (!dmi->target_count) in dm_early_create()
2079 r = check_name(dmi->name); in dm_early_create()
2083 if (dmi->flags & DM_PERSISTENT_DEV_FLAG) in dm_early_create()
2084 m = MINOR(huge_decode_dev(dmi->dev)); in dm_early_create()
2092 r = dm_hash_insert(dmi->name, *dmi->uuid ? dmi->uuid : NULL, md); in dm_early_create()
2097 r = dm_table_create(&t, get_mode(dmi), dmi->target_count, md); in dm_early_create()
2102 for (i = 0; i < dmi->target_count; i++) { in dm_early_create()
2133 set_disk_ro(dm_disk(md), !!(dmi->flags & DM_READONLY_FLAG)); in dm_early_create()
2140 DMINFO("%s (%s) is ready", md->disk->disk_name, dmi->name); in dm_early_create()
2147 (void) __hash_remove(__get_name_cell(dmi->name)); in dm_early_create()