Searched refs:le64toh (Results 1 - 16 of 16) sorted by relevance

/systemd/src/journal/
H A Djournal-verify.c138 if (le64toh(o->data.entry_offset) == 0)
141 if ((le64toh(o->data.entry_offset) == 0) ^ (le64toh(o->data.n_entries) == 0)) {
146 if (le64toh(o->object.size) - offsetof(DataObject, payload) <= 0) {
149 le64toh(o->object.size));
153 h1 = le64toh(o->data.hash);
162 le64toh(o->object.size) - offsetof(Object, data.payload),
172 h2 = hash64(o->data.payload, le64toh(o->object.size) - offsetof(Object, data.payload));
195 if (le64toh(o->object.size) - offsetof(FieldObject, payload) <= 0) {
199 le64toh(
[all...]
H A Djournal-file.c312 if (le64toh(f->header->header_size) < HEADER_SIZE_MIN)
318 if ((le64toh(f->header->header_size) + le64toh(f->header->arena_size)) > (uint64_t) f->last_stat.st_size)
321 if (le64toh(f->header->tail_object_offset) > (le64toh(f->header->header_size) + le64toh(f->header->arena_size)))
324 if (!VALID64(le64toh(f->header->data_hash_table_offset)) ||
325 !VALID64(le64toh(f->header->field_hash_table_offset)) ||
326 !VALID64(le64toh(f->header->tail_object_offset)) ||
327 !VALID64(le64toh(
[all...]
H A Dtest-journal.c67 assert_se(le64toh(o->entry.seqnum) == 1);
70 assert_se(le64toh(o->entry.seqnum) == 2);
73 assert_se(le64toh(o->entry.seqnum) == 3);
78 assert_se(le64toh(o->entry.seqnum) == 1);
82 assert_se(le64toh(o->entry.seqnum) == 1);
85 assert_se(le64toh(o->entry.seqnum) == 3);
89 assert_se(le64toh(o->entry.seqnum) == 2);
92 assert_se(le64toh(o->entry.seqnum) == 2);
97 assert_se(le64toh(o->entry.seqnum) == 1);
100 assert_se(le64toh(
[all...]
H A Djournal-authenticate.c35 r = le64toh(f->header->n_tags) + 1;
64 le64toh(o->tag.seqnum),
260 gcry_md_write(f->hmac, o->data.payload, le64toh(o->object.size) - offsetof(DataObject, payload));
266 gcry_md_write(f->hmac, o->field.payload, le64toh(o->object.size) - offsetof(FieldObject, payload));
271 gcry_md_write(f->hmac, &o->entry.seqnum, le64toh(o->object.size) - offsetof(EntryObject, seqnum));
375 if (le64toh(m->header_size) < sizeof(FSSHeader)) {
380 if (le64toh(m->fsprg_state_size) != FSPRG_stateinbytes(le16toh(m->fsprg_secpar))) {
385 f->fss_file_size = le64toh(m->header_size) + le64toh(m->fsprg_state_size);
396 if (le64toh(
[all...]
H A Dcatalog.c575 le64toh(h->header_size) < sizeof(CatalogHeader) ||
576 le64toh(h->catalog_item_size) < sizeof(CatalogItem) ||
578 le64toh(h->n_items) <= 0 ||
579 st.st_size < (off_t) (le64toh(h->header_size) + le64toh(h->catalog_item_size) * le64toh(h->n_items))) {
605 f = bsearch(&key, (const uint8_t*) p + le64toh(h->header_size), le64toh(h->n_items), le64toh(h->catalog_item_size), catalog_compare_func);
612 f = bsearch(&key, (const uint8_t*) p + le64toh(
[all...]
H A Dsd-journal.c143 l->seqnum = le64toh(o->entry.seqnum);
145 l->realtime = le64toh(o->entry.realtime);
146 l->monotonic = le64toh(o->entry.monotonic);
148 l->xor_hash = le64toh(o->entry.xor_hash);
522 r = journal_file_find_data_object_with_hash(f, m->data, m->size, le64toh(m->le_hash), NULL, &dp);
611 r = journal_file_find_data_object_with_hash(f, m->data, m->size, le64toh(m->le_hash), NULL, &dp);
762 n_entries = le64toh(f->header->n_entries);
937 sid, le64toh(o->entry.seqnum),
938 bid, le64toh(o->entry.monotonic),
939 le64toh(
[all...]
H A Djournal-file.h179 (le64toh((h)->header_size) >= offsetof(Header, field) + sizeof((h)->field))
H A Dcompress.c205 size = le64toh( *(le64_t*)src );
206 if (size < 0 || (unsigned) size != le64toh(*(le64_t*)src))
H A Djournal-vacuum.c142 return le64toh(n_entries) <= 0;
H A Djournald-native.c230 l = le64toh(l_le);
/systemd/src/libsystemd/sd-hwdb/
H A Dsd-hwdb.c101 return (const struct trie_child_entry_f *)((const char *)node + le64toh(hwdb->head->node_size));
107 base += le64toh(hwdb->head->node_size);
108 base += node->children_count * le64toh(hwdb->head->child_entry_size);
113 return (const struct trie_node_f *)(hwdb->map + le64toh(off));
117 return hwdb->map + le64toh(off);
133 le64toh(hwdb->head->child_entry_size), trie_children_cmp_f);
189 if (le64toh(node->values_count) && fnmatch(linebuf_get(buf), search, 0) == 0)
190 for (i = 0; i < le64toh(node->values_count); i++) {
256 for (n = 0; n < le64toh(node->values_count); n++) {
319 (size_t)hwdb->st.st_size != le64toh(hwd
[all...]
/systemd/src/basic/
H A Dsparse-endian.h54 #undef le64toh macro
82 static inline uint64_t le64toh(le64_t value) { return bswap_64_on_be((uint64_t __force)value); } function
H A Dbtrfs-util.c532 ret->otime = (usec_t) le64toh(ri->otime.sec) * USEC_PER_SEC +
536 ret->read_only = !!(le64toh(ri->flags) & BTRFS_ROOT_SUBVOL_RDONLY);
625 ret->referenced = le64toh(qii->rfer);
626 ret->exclusive = le64toh(qii->excl);
633 if (le64toh(qli->flags) & BTRFS_QGROUP_LIMIT_MAX_RFER)
634 ret->referenced_max = le64toh(qli->max_rfer);
638 if (le64toh(qli->flags) & BTRFS_QGROUP_LIMIT_MAX_EXCL)
639 ret->exclusive_max = le64toh(qli->max_excl);
1262 p = strndup((char*) ref + sizeof(struct btrfs_root_ref), le64toh(ref->name_len));
1404 .lim.max_rfer = le64toh(ql
[all...]
H A Dxattr-util.c131 u = le64toh(le);
/systemd/src/libsystemd/sd-bus/
H A Dbus-gvariant.c283 return le64toh(x.u64);
/systemd/src/journal-remote/
H A Djournal-remote-parse.c224 source->data_size = le64toh( *(uint64_t *) data );

Completed in 2117 milliseconds