Lines Matching refs:fname

68 static int littlefs_increase_infile_value(char *fname)  in littlefs_increase_infile_value()  argument
75 rc = fs_open(&file, fname, FS_O_CREATE | FS_O_RDWR); in littlefs_increase_infile_value()
77 LOG_ERR("FAIL: open %s: %d", fname, rc); in littlefs_increase_infile_value()
83 LOG_ERR("FAIL: read %s: [rd:%d]", fname, rc); in littlefs_increase_infile_value()
86 LOG_PRINTK("%s read count:%u (bytes: %d)\n", fname, boot_count, rc); in littlefs_increase_infile_value()
90 LOG_ERR("FAIL: seek %s: %d", fname, rc); in littlefs_increase_infile_value()
97 LOG_ERR("FAIL: write %s: %d", fname, rc); in littlefs_increase_infile_value()
101 LOG_PRINTK("%s write new boot count %u: [wr:%d]\n", fname, in littlefs_increase_infile_value()
107 LOG_ERR("FAIL: close %s: %d", fname, ret); in littlefs_increase_infile_value()
171 static int littlefs_binary_file_adj(char *fname) in littlefs_binary_file_adj() argument
184 rc = fs_open(&file, fname, FS_O_CREATE | FS_O_RDWR); in littlefs_binary_file_adj()
186 LOG_ERR("FAIL: open %s: %d", fname, rc); in littlefs_binary_file_adj()
190 rc = fs_stat(fname, &dirent); in littlefs_binary_file_adj()
192 LOG_ERR("FAIL: stat %s: %d", fname, rc); in littlefs_binary_file_adj()
199 fname); in littlefs_binary_file_adj()
206 fname, rc); in littlefs_binary_file_adj()
212 LOG_PRINTK("------ FILE: %s ------\n", fname); in littlefs_binary_file_adj()
217 LOG_ERR("FAIL: seek %s: %d", fname, rc); in littlefs_binary_file_adj()
223 LOG_ERR("FAIL: write %s: %d", fname, rc); in littlefs_binary_file_adj()
229 LOG_ERR("FAIL: close %s: %d", fname, ret); in littlefs_binary_file_adj()