Lines Matching refs:filename

93 static inline int fs_exists_unsupported(const char *filename)
98 static inline int fs_size_unsupported(const char *filename, loff_t *size)
103 static inline int fs_read_unsupported(const char *filename, void *buf,
110 static inline int fs_write_unsupported(const char *filename, void *buf,
117 static inline int fs_ln_unsupported(const char *filename, const char *target)
131 static inline int fs_opendir_unsupported(const char *filename,
137 static inline int fs_unlink_unsupported(const char *filename)
168 int (*exists)(const char *filename);
169 int (*size)(const char *filename, loff_t *size);
170 int (*read)(const char *filename, void *buf, loff_t offset,
172 int (*write)(const char *filename, void *buf, loff_t offset,
181 int (*opendir)(const char *filename, struct fs_dir_stream **dirsp);
190 int (*unlink)(const char *filename);
192 int (*ln)(const char *filename, const char *target);
549 int fs_exists(const char *filename)
555 ret = info->exists(filename);
562 int fs_size(const char *filename, loff_t *size)
568 ret = info->size(filename, size);
577 static int fs_read_lmb_check(const char *filename, ulong addr, loff_t offset,
586 ret = info->size(filename, &size);
611 static int _fs_read(const char *filename, ulong addr, loff_t offset, loff_t len,
620 ret = fs_read_lmb_check(filename, addr, offset, len, info);
631 ret = info->read(filename, buf, offset, len, actread);
636 log_debug("** %s shorter than offset + len **\n", filename);
642 int fs_read(const char *filename, ulong addr, loff_t offset, loff_t len,
645 return _fs_read(filename, addr, offset, len, 0, actread);
648 int fs_write(const char *filename, ulong addr, loff_t offset, loff_t len,
656 ret = info->write(filename, buf, offset, len, actwrite);
660 log_err("** Unable to write file %s **\n", filename);
668 struct fs_dir_stream *fs_opendir(const char *filename)
674 ret = info->opendir(filename, &dirs);
720 int fs_unlink(const char *filename)
726 ret = info->unlink(filename);
802 const char *filename;
832 filename = argv[4];
834 filename = env_get("bootfile");
835 if (!filename) {
850 ret = _fs_read(filename, addr, pos, bytes, 1, &len_read);
853 log_err("Failed to load '%s'\n", filename);
905 const char *filename;
919 filename = argv[4];
927 ret = fs_write(filename, addr, pos, bytes, &len);