Lines Matching refs:Object
109 Object tail; in journal_file_tail_end_by_pread()
146 Object *tail; in journal_file_tail_end_by_mmap()
634 static uint64_t minimum_header_size(Object *o) { in minimum_header_size()
654 static int journal_file_check_object(JournalFile *f, uint64_t offset, Object *o) { in journal_file_check_object()
667 if (le64toh(o->object.size) <= offsetof(Object, data.payload)) in journal_file_check_object()
670 offsetof(Object, data.payload), in journal_file_check_object()
689 if (le64toh(o->object.size) <= offsetof(Object, field.payload)) in journal_file_check_object()
692 offsetof(Object, field.payload), in journal_file_check_object()
709 if (sz < offsetof(Object, entry.items) || in journal_file_check_object()
710 (sz - offsetof(Object, entry.items)) % sizeof(EntryItem) != 0) in journal_file_check_object()
713 offsetof(Object, entry.items), in journal_file_check_object()
717 if ((sz - offsetof(Object, entry.items)) / sizeof(EntryItem) <= 0) in journal_file_check_object()
720 … (sz - offsetof(Object, entry.items)) / sizeof(EntryItem), in journal_file_check_object()
749 if (sz < offsetof(Object, hash_table.items) || in journal_file_check_object()
750 (sz - offsetof(Object, hash_table.items)) % sizeof(HashItem) != 0 || in journal_file_check_object()
751 (sz - offsetof(Object, hash_table.items)) / sizeof(HashItem) <= 0) in journal_file_check_object()
765 if (sz < offsetof(Object, entry_array.items) || in journal_file_check_object()
766 (sz - offsetof(Object, entry_array.items)) % sizeof(le64_t) != 0 || in journal_file_check_object()
767 (sz - offsetof(Object, entry_array.items)) / sizeof(le64_t) <= 0) in journal_file_check_object()
800 int journal_file_move_to_object(JournalFile *f, ObjectType type, uint64_t offset, Object **ret) { in journal_file_move_to_object()
803 Object *o; in journal_file_move_to_object()
824 o = (Object*) t; in journal_file_move_to_object()
855 o = (Object*) t; in journal_file_move_to_object()
867 int journal_file_read_object_header(JournalFile *f, ObjectType type, uint64_t offset, Object *ret) { in journal_file_read_object_header()
870 Object o; in journal_file_read_object_header()
973 Object **ret, in journal_file_append_object()
978 Object *o; in journal_file_append_object()
1002 o = (Object*) t; in journal_file_append_object()
1022 Object *o; in journal_file_setup_data_hash_table()
1041 offsetof(Object, hash_table.items) + s, in journal_file_setup_data_hash_table()
1048 f->header->data_hash_table_offset = htole64(p + offsetof(Object, hash_table.items)); in journal_file_setup_data_hash_table()
1056 Object *o; in journal_file_setup_field_hash_table()
1070 offsetof(Object, hash_table.items) + s, in journal_file_setup_field_hash_table()
1077 f->header->field_hash_table_offset = htole64(p + offsetof(Object, hash_table.items)); in journal_file_setup_field_hash_table()
1137 Object *o, in journal_file_link_field()
1182 Object *o, in journal_file_link_data()
1260 Object **ret, uint64_t *ret_offset) { in journal_file_find_field_object_with_hash()
1278 osize = offsetof(Object, field.payload) + size; in journal_file_find_field_object_with_hash()
1287 Object *o; in journal_file_find_field_object_with_hash()
1338 Object **ret, uint64_t *ret_offset) { in journal_file_find_field_object()
1353 Object **ret, uint64_t *ret_offset) { in journal_file_find_data_object_with_hash()
1371 osize = offsetof(Object, data.payload) + size; in journal_file_find_data_object_with_hash()
1382 Object *o; in journal_file_find_data_object_with_hash()
1400 if (l <= offsetof(Object, data.payload)) in journal_file_find_data_object_with_hash()
1403 l -= offsetof(Object, data.payload); in journal_file_find_data_object_with_hash()
1452 Object **ret, uint64_t *ret_offset) { in journal_file_find_data_object()
1503 Object **ret, uint64_t *ret_offset) { in journal_file_append_field()
1507 Object *o; in journal_file_append_field()
1524 osize = offsetof(Object, field.payload) + size; in journal_file_append_field()
1560 Object **ret, uint64_t *ret_offset) { in journal_file_append_data()
1563 Object *o, *fo; in journal_file_append_data()
1584 osize = offsetof(Object, data.payload) + size; in journal_file_append_data()
1597 o->object.size = htole64(offsetof(Object, data.payload) + rsize); in journal_file_append_data()
1644 uint64_t journal_file_entry_n_items(Object *o) { in journal_file_entry_n_items()
1652 if (sz < offsetof(Object, entry.items)) in journal_file_entry_n_items()
1655 return (sz - offsetof(Object, entry.items)) / sizeof(EntryItem); in journal_file_entry_n_items()
1658 uint64_t journal_file_entry_array_n_items(Object *o) { in journal_file_entry_array_n_items()
1667 if (sz < offsetof(Object, entry_array.items)) in journal_file_entry_array_n_items()
1670 return (sz - offsetof(Object, entry_array.items)) / sizeof(uint64_t); in journal_file_entry_array_n_items()
1673 uint64_t journal_file_hash_table_n_items(Object *o) { in journal_file_hash_table_n_items()
1682 if (sz < offsetof(Object, hash_table.items)) in journal_file_hash_table_n_items()
1685 return (sz - offsetof(Object, hash_table.items)) / sizeof(HashItem); in journal_file_hash_table_n_items()
1694 Object *o; in link_entry_into_array()
1731 offsetof(Object, entry_array.items) + n * sizeof(uint64_t), in link_entry_into_array()
1795 static int journal_file_link_entry_item(JournalFile *f, Object *o, uint64_t offset, uint64_t i) { in journal_file_link_entry_item()
1815 static int journal_file_link_entry(JournalFile *f, Object *o, uint64_t offset) { in journal_file_link_entry()
1871 Object **ret, uint64_t *ret_offset) { in journal_file_append_entry_internal()
1874 Object *o; in journal_file_append_entry_internal()
1882 osize = offsetof(Object, entry.items) + (n_items * sizeof(EntryItem)); in journal_file_append_entry_internal()
2030 Object **ret, uint64_t *ret_offset) { in journal_file_append_entry()
2065 Object *o; in journal_file_append_entry()
2181 static int bump_entry_array(JournalFile *f, Object *o, uint64_t offset, uint64_t first, direction_t… in bump_entry_array()
2221 Object **ret, uint64_t *ret_offset) { in generic_array_get()
2223 Object *o; in generic_array_get()
2328 Object **ret, uint64_t *ret_offset) { in generic_array_get_plus_one()
2363 Object **ret, in generic_array_bisect()
2382 Object *array = NULL; in generic_array_bisect()
2593 Object **ret, in generic_array_bisect_plus_one()
2672 Object **ret, in journal_file_move_to_entry_by_offset()
2690 Object *o; in test_object_seqnum()
2713 Object **ret, in journal_file_move_to_entry_by_seqnum()
2729 Object *o; in test_object_realtime()
2753 Object **ret, in journal_file_move_to_entry_by_realtime()
2769 Object *o; in test_object_monotonic()
2792 Object **o, in find_data_object_by_boot_id()
2806 Object **ret, in journal_file_move_to_entry_by_monotonic()
2809 Object *o; in journal_file_move_to_entry_by_monotonic()
2841 void journal_file_save_location(JournalFile *f, Object *o, uint64_t offset) { in journal_file_save_location()
2917 Object **ret, uint64_t *ret_offset) { in journal_file_next_entry()
2967 Object *d, in journal_file_next_entry_for_data()
2969 Object **ret, uint64_t *ret_offset) { in journal_file_next_entry_for_data()
3001 Object *d, in journal_file_move_to_entry_by_offset_for_data()
3004 Object **ret, uint64_t *ret_offset) { in journal_file_move_to_entry_by_offset_for_data()
3023 Object *d, in journal_file_move_to_entry_by_monotonic_for_data()
3027 Object **ret, uint64_t *ret_offset) { in journal_file_move_to_entry_by_monotonic_for_data()
3029 Object *o; in journal_file_move_to_entry_by_monotonic_for_data()
3112 Object *d, in journal_file_move_to_entry_by_seqnum_for_data()
3115 Object **ret, uint64_t *ret_offset) { in journal_file_move_to_entry_by_seqnum_for_data()
3134 Object *d, in journal_file_move_to_entry_by_realtime_for_data()
3137 Object **ret, uint64_t *ret_offset) { in journal_file_move_to_entry_by_realtime_for_data()
3155 Object *o; in journal_file_dump()
3735 int journal_file_copy_entry(JournalFile *from, JournalFile *to, Object *o, uint64_t p) { in journal_file_copy_entry()
3764 Object *u; in journal_file_copy_entry()
3773 if (l < offsetof(Object, data.payload)) in journal_file_copy_entry()
3776 l -= offsetof(Object, data.payload); in journal_file_copy_entry()
3874 Object *o; in journal_file_get_cutoff_monotonic_usec()