Home
last modified time | relevance | path

Searched refs:dirh (Results 1 – 3 of 3) sorted by relevance

/optee_os/core/tee/
H A Dfs_dirfile.c54 static TEE_Result maybe_grow_files(struct tee_fs_dirfile_dirh *dirh, int idx) in maybe_grow_files() argument
58 if (idx < dirh->nbits) in maybe_grow_files()
61 p = realloc(dirh->files, bitstr_size(idx + 1)); in maybe_grow_files()
64 dirh->files = p; in maybe_grow_files()
66 bit_nclear(dirh->files, dirh->nbits, idx); in maybe_grow_files()
67 dirh->nbits = idx + 1; in maybe_grow_files()
72 static TEE_Result set_file(struct tee_fs_dirfile_dirh *dirh, int idx) in set_file() argument
74 TEE_Result res = maybe_grow_files(dirh, idx); in set_file()
77 bit_set(dirh->files, idx); in set_file()
82 static void clear_file(struct tee_fs_dirfile_dirh *dirh, int idx) in clear_file() argument
[all …]
H A Dtee_ree_fs.c41 struct tee_fs_dirfile_dirh *dirh; member
527 static TEE_Result open_dirh(struct tee_fs_dirfile_dirh **dirh) in open_dirh() argument
549 res = tee_fs_dirfile_open(false, hashp, 0, &ree_dirf_ops, dirh); in open_dirh()
568 res = tee_fs_dirfile_open(true, NULL, 0, &ree_dirf_ops, dirh); in open_dirh()
578 static TEE_Result commit_dirh_writes(struct tee_fs_dirfile_dirh *dirh) in commit_dirh_writes() argument
583 res = tee_fs_dirfile_commit_writes(dirh, hash, NULL); in commit_dirh_writes()
589 static void close_dirh(struct tee_fs_dirfile_dirh **dirh) in close_dirh() argument
591 tee_fs_dirfile_close(*dirh); in close_dirh()
592 *dirh = NULL; in close_dirh()
597 static TEE_Result open_dirh(struct tee_fs_dirfile_dirh **dirh) in open_dirh() argument
[all …]
/optee_os/core/include/tee/
H A Dfs_dirfile.h61 struct tee_fs_dirfile_dirh **dirh);
69 void tee_fs_dirfile_close(struct tee_fs_dirfile_dirh *dirh);
77 TEE_Result tee_fs_dirfile_commit_writes(struct tee_fs_dirfile_dirh *dirh,
87 TEE_Result tee_fs_dirfile_get_tmp(struct tee_fs_dirfile_dirh *dirh,
98 TEE_Result tee_fs_dirfile_find(struct tee_fs_dirfile_dirh *dirh,
122 TEE_Result tee_fs_dirfile_rename(struct tee_fs_dirfile_dirh *dirh,
132 TEE_Result tee_fs_dirfile_remove(struct tee_fs_dirfile_dirh *dirh,
140 TEE_Result tee_fs_dirfile_update_hash(struct tee_fs_dirfile_dirh *dirh,
154 TEE_Result tee_fs_dirfile_get_next(struct tee_fs_dirfile_dirh *dirh,