Lines Matching refs:ent
33 static int get_log_file_id(struct fs_dirent *ent);
113 struct fs_dirent ent; in check_log_file_exist() local
124 rc = fs_readdir(&dir, &ent); in check_log_file_exist()
129 if (ent.name[0] == 0) { in check_log_file_exist()
133 rc = get_log_file_id(&ent); in check_log_file_exist()
228 static int get_log_file_id(struct fs_dirent *ent) in get_log_file_id() argument
233 if (ent->type != FS_DIR_ENTRY_FILE) { in get_log_file_id()
237 len = strlen(ent->name); in get_log_file_id()
243 if (memcmp(ent->name, CONFIG_LOG_BACKEND_FS_FILE_PREFIX, LOG_PREFIX_LEN) != 0) { in get_log_file_id()
247 num = atoi(ent->name + LOG_PREFIX_LEN); in get_log_file_id()
264 struct fs_dirent ent; in allocate_new_file() local
282 rc = fs_readdir(&dir, &ent); in allocate_new_file()
283 if ((rc < 0) || (ent.name[0] == 0)) { in allocate_new_file()
287 file_num = get_log_file_id(&ent); in allocate_new_file()
313 rc = fs_readdir(&dir, &ent); in allocate_new_file()
314 if ((rc < 0) || (ent.name[0] == 0)) { in allocate_new_file()
318 file_num = get_log_file_id(&ent); in allocate_new_file()