Lines Matching refs:filename
28 const char *filename; member
44 static const char *filename[MAX_SIMDISK_COUNT] = { variable
56 if (n_files < ARRAY_SIZE(filename)) in simdisk_param_set_filename()
57 filename[n_files++] = val; in simdisk_param_set_filename()
66 module_param_cb(filename, &simdisk_param_ops_filename, &n_files, 0);
67 MODULE_PARM_DESC(filename, "Backing storage filename.");
153 static int simdisk_attach(struct simdisk *dev, const char *filename) in simdisk_attach() argument
157 filename = kstrdup(filename, GFP_KERNEL); in simdisk_attach()
158 if (filename == NULL) in simdisk_attach()
167 dev->fd = simc_open(filename, O_RDWR, 0); in simdisk_attach()
169 pr_err("SIMDISK: Can't open %s: %d\n", filename, errno); in simdisk_attach()
175 dev->filename = filename; in simdisk_attach()
176 pr_info("SIMDISK: %s=%s\n", dev->gd->disk_name, dev->filename); in simdisk_attach()
179 kfree(filename); in simdisk_attach()
196 dev->filename, errno); in simdisk_detach()
200 dev->gd->disk_name, dev->filename); in simdisk_detach()
202 kfree(dev->filename); in simdisk_detach()
203 dev->filename = NULL; in simdisk_detach()
214 const char *s = dev->filename; in proc_read_simdisk()
271 dev->filename = NULL; in simdisk_setup()
335 if (filename[i] != NULL && filename[i][0] != 0 && in simdisk_init()
337 simdisk_attach(sddev + i, filename[i]); in simdisk_init()