Lines Matching refs:le64toh
312 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(f->header->entry_array_offset)))
394 le64toh(f->header->header_size) +
395 le64toh(f->header->arena_size);
398 if (new_size < le64toh(f->header->header_size))
399 new_size = le64toh(f->header->header_size);
445 f->header->arena_size = htole64(new_size - le64toh(f->header->header_size));
518 s = le64toh(o->object.size);
550 r = le64toh(f->header->tail_entry_seqnum) + 1;
588 p = le64toh(f->header->tail_object_offset);
590 p = le64toh(f->header->header_size);
596 p += ALIGN64(le64toh(tail->object.size));
614 f->header->n_objects = htole64(le64toh(f->header->n_objects) + 1);
694 p = le64toh(f->header->data_hash_table_offset);
695 s = le64toh(f->header->data_hash_table_size);
720 p = le64toh(f->header->field_hash_table_offset);
721 s = le64toh(f->header->field_hash_table_size);
753 m = le64toh(f->header->field_hash_table_size) / sizeof(HashItem);
761 p = le64toh(f->field_hash_table[h].tail_hash_offset);
775 f->header->n_fields = htole64(le64toh(f->header->n_fields) + 1);
798 m = le64toh(f->header->data_hash_table_size) / sizeof(HashItem);
808 p = le64toh(f->data_hash_table[h].tail_hash_offset);
826 f->header->n_data = htole64(le64toh(f->header->n_data) + 1);
844 if (le64toh(f->header->field_hash_table_size) <= 0)
854 m = le64toh(f->header->field_hash_table_size) / sizeof(HashItem);
859 p = le64toh(f->field_hash_table[h].head_hash_offset);
868 if (le64toh(o->field.hash) == hash &&
869 le64toh(o->object.size) == osize &&
880 p = le64toh(o->field.next_hash_offset);
916 if (le64toh(f->header->data_hash_table_size) <= 0)
926 m = le64toh(f->header->data_hash_table_size) / sizeof(HashItem);
931 p = le64toh(f->data_hash_table[h].head_hash_offset);
940 if (le64toh(o->data.hash) != hash)
948 l = le64toh(o->object.size);
973 } else if (le64toh(o->object.size) == osize &&
986 p = le64toh(o->data.next_hash_offset);
1154 fo->field.head_data_offset = le64toh(p);
1178 return (le64toh(o->object.size) - offsetof(Object, entry.items)) / sizeof(EntryItem);
1187 return (le64toh(o->object.size) - offsetof(Object, entry_array.items)) / sizeof(uint64_t);
1197 return (le64toh(o->object.size) - offsetof(Object, hash_table.items)) / sizeof(HashItem);
1214 a = le64toh(*first);
1215 i = hidx = le64toh(*idx);
1231 a = le64toh(o->entry_array.next_entry_array_offset);
1267 f->header->n_entry_arrays = htole64(le64toh(f->header->n_entry_arrays) + 1);
1293 i = htole64(le64toh(*idx) - 1);
1299 *idx = htole64(le64toh(*idx) + 1);
1310 p = le64toh(o->entry.items[i].object_offset);
1511 if (le64toh(a->object_offset) < le64toh(b->object_offset))
1513 if (le64toh(a->object_offset) > le64toh(b->object_offset))
1551 xor_hash ^= le64toh(o->data.hash);
1657 p = le64toh(o->entry_array.items[i]);
1663 a = le64toh(o->entry_array.next_entry_array_offset);
1670 chain_cache_put(f->chain_cache, ci, first, a, le64toh(o->entry_array.items[0]), t, i);
1782 lp = p = le64toh(array->entry_array.items[i]);
1810 p = le64toh(array->entry_array.items[x]);
1830 p = le64toh(array->entry_array.items[y]);
1860 p = le64toh(array->entry_array.items[i]);
1893 a = le64toh(array->entry_array.next_entry_array_offset);
1903 chain_cache_put(f->chain_cache, ci, first, a, le64toh(array->entry_array.items[0]), t, subtract_one ? (i > 0 ? i-1 : (uint64_t) -1) : i);
1908 p = le64toh(array->entry_array.items[i-1]);
1910 p = le64toh(array->entry_array.items[i]);
2024 if (le64toh(o->entry.seqnum) == needle)
2026 else if (le64toh(o->entry.seqnum) < needle)
2042 le64toh(f->header->entry_array_offset),
2043 le64toh(f->header->n_entries),
2061 if (le64toh(o->entry.realtime) == needle)
2063 else if (le64toh(o->entry.realtime) < needle)
2079 le64toh(f->header->entry_array_offset),
2080 le64toh(f->header->n_entries),
2098 if (le64toh(o->entry.monotonic) == needle)
2100 else if (le64toh(o->entry.monotonic) < needle)
2138 le64toh(o->data.entry_offset),
2139 le64toh(o->data.entry_array_offset),
2140 le64toh(o->data.n_entries),
2160 f->current_seqnum = le64toh(o->entry.seqnum);
2161 f->current_realtime = le64toh(o->entry.realtime);
2162 f->current_monotonic = le64toh(o->entry.monotonic);
2164 f->current_xor_hash = le64toh(o->entry.xor_hash);
2233 n = le64toh(f->header->n_entries);
2241 le64toh(f->header->entry_array_offset),
2242 le64toh(f->header->n_entries),
2266 le64toh(f->header->entry_array_offset),
2303 n = le64toh(d->data.n_entries);
2314 le64toh(d->data.entry_offset),
2315 le64toh(d->data.entry_array_offset),
2316 le64toh(d->data.n_entries),
2341 le64toh(d->data.entry_offset),
2342 le64toh(d->data.entry_array_offset),
2364 le64toh(d->data.entry_offset),
2365 le64toh(d->data.entry_array_offset),
2366 le64toh(d->data.n_entries),
2395 le64toh(o->data.entry_offset),
2396 le64toh(o->data.entry_array_offset),
2397 le64toh(o->data.n_entries),
2417 le64toh(d->data.entry_offset),
2418 le64toh(d->data.entry_array_offset),
2419 le64toh(d->data.n_entries),
2432 le64toh(o->data.entry_offset),
2433 le64toh(o->data.entry_array_offset),
2434 le64toh(o->data.n_entries),
2473 le64toh(d->data.entry_offset),
2474 le64toh(d->data.entry_array_offset),
2475 le64toh(d->data.n_entries),
2499 le64toh(d->data.entry_offset),
2500 le64toh(d->data.entry_array_offset),
2501 le64toh(d->data.n_entries),
2518 p = le64toh(f->header->header_size);
2540 le64toh(o->entry.seqnum),
2541 le64toh(o->entry.monotonic),
2542 le64toh(o->entry.realtime));
2559 le64toh(o->tag.seqnum),
2560 le64toh(o->tag.epoch));
2572 if (p == le64toh(f->header->tail_object_offset))
2575 p = p + ALIGN64(le64toh(o->object.size));
2634 le64toh(f->header->header_size),
2635 le64toh(f->header->arena_size),
2636 le64toh(f->header->data_hash_table_size) / sizeof(HashItem),
2637 le64toh(f->header->field_hash_table_size) / sizeof(HashItem),
2639 le64toh(f->header->head_entry_seqnum),
2640 le64toh(f->header->tail_entry_seqnum),
2641 format_timestamp_safe(x, sizeof(x), le64toh(f->header->head_entry_realtime)),
2642 format_timestamp_safe(y, sizeof(y), le64toh(f->header->tail_entry_realtime)),
2643 format_timespan(z, sizeof(z), le64toh(f->header->tail_entry_monotonic), USEC_PER_MSEC),
2644 le64toh(f->header->n_objects),
2645 le64toh(f->header->n_entries));
2650 le64toh(f->header->n_data),
2651 100.0 * (double) le64toh(f->header->n_data) / ((double) (le64toh(f->header->data_hash_table_size) / sizeof(HashItem))));
2656 le64toh(f->header->n_fields),
2657 100.0 * (double) le64toh(f->header->n_fields) / ((double) (le64toh(f->header->field_hash_table_size) / sizeof(HashItem))));
2661 le64toh(f->header->n_tags));
2664 le64toh(f->header->n_entry_arrays));
2927 le64toh((*f)->header->head_entry_seqnum),
2928 le64toh((*f)->header->head_entry_realtime));
3027 ts.monotonic = le64toh(o->entry.monotonic);
3028 ts.realtime = le64toh(o->entry.realtime);
3041 q = le64toh(o->entry.items[i].object_offset);
3051 l = le64toh(o->object.size) - offsetof(Object, data.payload);
3079 xor_hash ^= le64toh(u->data.hash);
3212 *from = le64toh(f->header->head_entry_realtime);
3219 *to = le64toh(f->header->tail_entry_realtime);
3237 if (le64toh(o->data.n_entries) <= 0)
3241 r = journal_file_move_to_object(f, OBJECT_ENTRY, le64toh(o->data.entry_offset), &o);
3245 *from = le64toh(o->entry.monotonic);
3254 le64toh(o->data.entry_offset),
3255 le64toh(o->data.entry_array_offset),
3256 le64toh(o->data.n_entries)-1,
3261 *to = le64toh(o->entry.monotonic);
3273 if (le64toh(f->header->header_size) < sizeof(Header)) {
3285 if (le64toh(f->header->n_data) * 4ULL > (le64toh(f->header->data_hash_table_size) / sizeof(HashItem)) * 3ULL) {
3288 100.0 * (double) le64toh(f->header->n_data) / ((double) (le64toh(f->header->data_hash_table_size) / sizeof(HashItem))),
3289 le64toh(f->header->n_data),
3290 le64toh(f->header->data_hash_table_size) / sizeof(HashItem),
3292 f->last_stat.st_size / le64toh(f->header->n_data));
3297 if (le64toh(f->header->n_fields) * 4ULL > (le64toh(f->header->field_hash_table_size) / sizeof(HashItem)) * 3ULL) {
3300 100.0 * (double) le64toh(f->header->n_fields) / ((double) (le64toh(f->header->field_hash_table_size) / sizeof(HashItem))),
3301 le64toh(f->header->n_fields),
3302 le64toh(f->header->field_hash_table_size) / sizeof(HashItem));
3309 le64toh(f->header->n_data) > 0 &&
3310 le64toh(f->header->n_fields) == 0)
3316 h = le64toh(f->header->head_entry_realtime);