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.");
154 static int simdisk_attach(struct simdisk *dev, const char *filename) in simdisk_attach() argument
158 filename = kstrdup(filename, GFP_KERNEL); in simdisk_attach()
159 if (filename == NULL) in simdisk_attach()
168 dev->fd = simc_open(filename, O_RDWR, 0); in simdisk_attach()
170 pr_err("SIMDISK: Can't open %s: %d\n", filename, errno); in simdisk_attach()
176 dev->filename = filename; in simdisk_attach()
177 pr_info("SIMDISK: %s=%s\n", dev->gd->disk_name, dev->filename); in simdisk_attach()
180 kfree(filename); in simdisk_attach()
197 dev->filename, errno); in simdisk_detach()
201 dev->gd->disk_name, dev->filename); in simdisk_detach()
203 kfree(dev->filename); in simdisk_detach()
204 dev->filename = NULL; in simdisk_detach()
215 const char *s = dev->filename; in proc_read_simdisk()
266 dev->filename = NULL; in simdisk_setup()
328 if (filename[i] != NULL && filename[i][0] != 0 && in simdisk_init()
330 simdisk_attach(sddev + i, filename[i]); in simdisk_init()