Lines Matching refs:filename
28 const char *filename; member
43 static const char *filename[MAX_SIMDISK_COUNT] = { variable
55 if (n_files < ARRAY_SIZE(filename)) in simdisk_param_set_filename()
56 filename[n_files++] = val; in simdisk_param_set_filename()
65 module_param_cb(filename, &simdisk_param_ops_filename, &n_files, 0);
66 MODULE_PARM_DESC(filename, "Backing storage filename.");
151 static int simdisk_attach(struct simdisk *dev, const char *filename) in simdisk_attach() argument
155 filename = kstrdup(filename, GFP_KERNEL); in simdisk_attach()
156 if (filename == NULL) in simdisk_attach()
165 dev->fd = simc_open(filename, O_RDWR, 0); in simdisk_attach()
167 pr_err("SIMDISK: Can't open %s: %d\n", filename, errno); in simdisk_attach()
173 dev->filename = filename; in simdisk_attach()
174 pr_info("SIMDISK: %s=%s\n", dev->gd->disk_name, dev->filename); in simdisk_attach()
177 kfree(filename); in simdisk_attach()
194 dev->filename, errno); in simdisk_detach()
198 dev->gd->disk_name, dev->filename); in simdisk_detach()
200 kfree(dev->filename); in simdisk_detach()
201 dev->filename = NULL; in simdisk_detach()
212 const char *s = dev->filename; in proc_read_simdisk()
270 dev->filename = NULL; in simdisk_setup()
323 if (filename[i] != NULL && filename[i][0] != 0 && in simdisk_init()
325 simdisk_attach(sddev + i, filename[i]); in simdisk_init()