Home
last modified time | relevance | path

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

/optee_os-3.20.0/core/kernel/
A Dree_fs_ta.c96 struct ver_db_hdr db_hdr = { }; in check_update_version() local
117 res = ops->write(fh, 0, &db_hdr, sizeof(db_hdr)); in check_update_version()
121 len = sizeof(db_hdr); in check_update_version()
123 res = ops->read(fh, 0, &db_hdr, &len); in check_update_version()
126 } else if (len != sizeof(db_hdr)) { in check_update_version()
132 for (i = 0; i < db_hdr.nb_entries; i++) { in check_update_version()
135 res = ops->read(fh, sizeof(db_hdr) + (i * len), &db_entry, in check_update_version()
158 res = ops->write(fh, sizeof(db_hdr) + (i * len), in check_update_version()
167 res = ops->write(fh, sizeof(db_hdr) + (db_hdr.nb_entries * len), in check_update_version()
172 db_hdr.nb_entries++; in check_update_version()
[all …]

Completed in 3 milliseconds