Lines Matching refs:dmi
1854 struct dm_ioctl *dmi; in copy_params() local
1871 dmi = param_kernel; in copy_params()
1872 dmi->data_size = minimum_data_size; in copy_params()
1881 dmi = NULL; in copy_params()
1883 dmi = kvmalloc(param_kernel->data_size, GFP_KERNEL | __GFP_HIGH); in copy_params()
1886 if (!dmi) { in copy_params()
1895 memcpy(dmi, param_kernel, minimum_data_size); in copy_params()
1897 if (copy_from_user(&dmi->data, (char __user *)user + minimum_data_size, in copy_params()
1905 *param = dmi; in copy_params()
1909 free_params(dmi, param_kernel->data_size, *param_flags); in copy_params()
2165 int __init dm_early_create(struct dm_ioctl *dmi, in dm_early_create() argument
2174 if (!dmi->target_count) in dm_early_create()
2177 r = check_name(dmi->name); in dm_early_create()
2181 if (dmi->flags & DM_PERSISTENT_DEV_FLAG) in dm_early_create()
2182 m = MINOR(huge_decode_dev(dmi->dev)); in dm_early_create()
2190 r = dm_hash_insert(dmi->name, *dmi->uuid ? dmi->uuid : NULL, md); in dm_early_create()
2195 r = dm_table_create(&t, get_mode(dmi), dmi->target_count, md); in dm_early_create()
2200 for (i = 0; i < dmi->target_count; i++) { in dm_early_create()
2230 set_disk_ro(dm_disk(md), !!(dmi->flags & DM_READONLY_FLAG)); in dm_early_create()
2237 DMINFO("%s (%s) is ready", md->disk->disk_name, dmi->name); in dm_early_create()
2244 (void) __hash_remove(__get_name_cell(dmi->name)); in dm_early_create()